Hi Riak-Users,

I'm trying to build riak on a Solaris/SPARC machine but I'm stuck on a
compilation error. Every 'gmake rel' ends like this at the moment of
building SpiderMonkey

*******************

gunzip -c js-1.8.0-rc1.tar.gz | tar xf -
patching file js/src/Makefile.in
Hunk #1 succeeded at 214 with fuzz 2.
patching file js/src/Makefile.ref
patching file js/src/Makefile.ref
Hunk #1 succeeded at 340 (offset 4 lines).
patching file js/src/config/SunOS5.10.mk
patching file js/src/config/SunOS5.10_i86pc.mk
patching file js/src/config/SunOS5.11.mk
patching file js/src/config/SunOS5.11_i86pc.mk
patching file js/src/config/SunOS5.1x_i86pc.mk
patching file js/src/config.mk
cat: cannot open ../../dist/SunOS5.10_OPT.OBJ/nspr/Version
gmake[2]: Entering directory
`/export/home/etomant/riak-0.12.0/deps/erlang_js/c_src/js/src'
cd editline; gmake -f Makefile.ref all
gmake[3]: Entering directory
`/export/home/etomant/riak-0.12.0/deps/erlang_js/c_src/js/src/editline'
gcc -o SunOS5.10_OPT.OBJ/editline.o -c -Wall -Wno-format -fPIC
-DULTRA_SPARC -DXP_UNIX -Os -DXP_UNIX -DSVR4 -DSYSV -DSOLARIS
-DHAVE_LOCALTIME_R -fPIC -Wa,-xarch=v9,-DULTRA_SPARC  -UDEBUG -DNDEBUG
-UDEBUG_etomant -DULTRA_SPARC -I/usr/sfw/include/mozilla/nspr -DJSFILE
-DHAVE_VA_COPY -DVA_COPY=va_copy  -DANSI_ARROWS -DHAVE_TCGETATTR
-DHIDE -DUSE_DIRENT -DSYS_UNIX -DHAVE_STDLIB -DUNIQUE_HISTORY
editline.c
editline.c: In function `readline':
editline.c:1038: warning: implicit declaration of function `getpid'
gcc -o SunOS5.10_OPT.OBJ/sysunix.o -c -Wall -Wno-format -fPIC
-DULTRA_SPARC -DXP_UNIX -Os -DXP_UNIX -DSVR4 -DSYSV -DSOLARIS
-DHAVE_LOCALTIME_R -fPIC -Wa,-xarch=v9,-DULTRA_SPARC  -UDEBUG -DNDEBUG
-UDEBUG_etomant -DULTRA_SPARC -I/usr/sfw/include/mozilla/nspr -DJSFILE
-DHAVE_VA_COPY -DVA_COPY=va_copy  -DANSI_ARROWS -DHAVE_TCGETATTR
-DHIDE -DUSE_DIRENT -DSYS_UNIX -DHAVE_STDLIB -DUNIQUE_HISTORY
sysunix.c
ar rv SunOS5.10_OPT.OBJ/libedit.a SunOS5.10_OPT.OBJ/editline.o
SunOS5.10_OPT.OBJ/sysunix.o
ar: creating SunOS5.10_OPT.OBJ/libedit.a
ar: writing SunOS5.10_OPT.OBJ/libedit.a
a - SunOS5.10_OPT.OBJ/editline.o
a - SunOS5.10_OPT.OBJ/sysunix.o
echo SunOS5.10_OPT.OBJ/libedit.a
SunOS5.10_OPT.OBJ/libedit.a
gmake[3]: Leaving directory
`/export/home/etomant/riak-0.12.0/deps/erlang_js/c_src/js/src/editline'
gmake -f Makefile.ref  SunOS5.10_OPT.OBJ/libjs.a
SunOS5.10_OPT.OBJ/libjs.so SunOS5.10_OPT.OBJ/js
SunOS5.10_OPT.OBJ/jsautocfg.h SunOS5.10_OPT.OBJ/jscpucfg
SunOS5.10_OPT.OBJ/jscpucfg.o
cat: cannot open ../../dist/SunOS5.10_OPT.OBJ/nspr/Version
gmake[3]: Entering directory
`/export/home/etomant/riak-0.12.0/deps/erlang_js/c_src/js/src'
gmake[3]: Circular jscpucfg.h <- SunOS5.10_OPT.OBJ/jsautocfg.h
dependency dropped.
gcc -o SunOS5.10_OPT.OBJ/jscpucfg.o -c -Wall -Wno-format -fPIC
-DULTRA_SPARC -Os -DXP_UNIX -DSVR4 -DSYSV -DSOLARIS -DHAVE_LOCALTIME_R
-fPIC -Wa,-xarch=v9,-DULTRA_SPARC  -UDEBUG -DNDEBUG -UDEBUG_etomant
-DULTRA_SPARC -DJS_THREADSAFE -DEDITLINE
-I/usr/sfw/include/mozilla/nspr -ISunOS5.10_OPT.OBJ
-I/export/home/etomant/riak-0.12.0/deps/erlang_js/c_src/system/include/nspr
-DHAVE_VA_COPY -DVA_COPY=va_copy  jscpucfg.c
gcc -o SunOS5.10_OPT.OBJ/jscpucfg SunOS5.10_OPT.OBJ/jscpucfg.o  -lm
ld: fatal: file SunOS5.10_OPT.OBJ/jscpucfg.o: wrong ELF class: ELFCLASS64
ld: fatal: File processing errors. No output written to
SunOS5.10_OPT.OBJ/jscpucfg
collect2: ld returned 1 exit status
gmake[3]: *** [SunOS5.10_OPT.OBJ/jscpucfg] Error 1
gmake[3]: Leaving directory
`/export/home/etomant/riak-0.12.0/deps/erlang_js/c_src/js/src'
gmake[2]: *** [all] Error 2
gmake[2]: Leaving directory
`/export/home/etomant/riak-0.12.0/deps/erlang_js/c_src/js/src'
gmake[1]: *** 
[/export/home/etomant/riak-0.12.0/deps/erlang_js/c_src/system/lib/libjs.a]
Error 2
gmake[1]: Leaving directory
`/export/home/etomant/riak-0.12.0/deps/erlang_js/c_src'
ERROR: gmake -C c_src failed with error: 2
gmake: *** [rel] Error 1

*******************

Any idea or direction to follow in order to successfully build riak on
Solaris/SPARC ?

Thank you and regards.
Antonio.

_______________________________________________
riak-users mailing list
riak-users@lists.basho.com
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com

Reply via email to