[erlang-questions] R15B01 SmartOS Compile Error

Zheng Zhibin <>
Wed Apr 25 14:35:51 CEST 2012


Dear,

On SmartOS(Joyent SmartMachine),

When I configure in default mode, and after making, I got this error:

gcc -g -O2 -I/root/.kerl/builds/r15b01/otp_src_R15B01/erts/i386-pc-solaris2.11  -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -fno-tree-copyrename  -DERTS_SMP -DHAVE_CONFIG_H -Wall -Wstrict-prototypes -Wmissing-prototypes -Wdeclaration-after-statement -DUSE_THREADS -D_THREAD_SAFE -D_REENTRANT -DPOSIX_THREADS -D_POSIX_PTHREAD_SEMANTICS  -Ii386-pc-solaris2.11/opt/smp -Ibeam -Isys/unix -Isys/common -Ii386-pc-solaris2.11 -Izlib  -Ipcre -Ihipe -I../include -I../include/i386-pc-solaris2.11 -I../include/internal -I../include/internal/i386-pc-solaris2.11 -c i386-pc-solaris2.11/opt/smp/hipe_x86_bifs.S -o obj/i386-pc-solaris2.11/opt/smp/hipe_x86_bifs.o
i386-pc-solaris2.11/opt/smp/hipe_x86_bifs.S:2176:2: error: #endif without #if

If I set these environment variable:
"--enable-hipe --enable-smp-support --enable-threads --with-dynamic-trace=dtrace --enable-m64-build --enable-kernel-poll"
export CFLAGS=-m64
export CPPFLAGS=-m64

Then I got the error as below:
gcc  -m64 -I/root/.kerl/builds/r15b01/otp_src_R15B01/erts/i386-pc-solaris2.11  -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -fno-tree-copyrename -m64 -DERTS_SMP -DHAVE_CONFIG_H -Wall -Wstrict-prototypes -Wmissing-prototypes -Wdeclaration-after-statement -DUSE_THREADS -D_THREAD_SAFE -D_REENTRANT -DPOSIX_THREADS -D_POSIX_PTHREAD_SEMANTICS  -Ii386-pc-solaris2.11/opt/smp -Ibeam -Isys/unix -Isys/common -Ii386-pc-solaris2.11 -Izlib  -Ipcre -Ihipe -I../include -I../include/i386-pc-solaris2.11 -I../include/internal -I../include/internal/i386-pc-solaris2.11 -c hipe/hipe_bif0.c -o obj/i386-pc-solaris2.11/opt/smp/hipe_bif0.o
In file included from hipe/hipe_primops.h:91:0,
                 from hipe/hipe_bif0.c:862:
hipe/hipe_amd64_primops.h:25:1: error: 'am_sse2_fnegate_mask' undeclared here (not in a function)
gmake[3]: *** [obj/i386-pc-solaris2.11/opt/smp/hipe_bif0.o] Error 1


Anyone can help?


Thanks and regards,
Witeman

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20120425/aa7104cd/attachment.html>


More information about the erlang-questions mailing list