[erlang-bugs] Compiling 15B on SmartOS (solaris 11)

Sverker Eriksson <>
Mon Mar 12 11:57:45 CET 2012

Jared Morrow wrote:
> When compiling 15B after configuring with --enable-m64-build I get the following:
> gcc -m64 -g -O2 -I/home/jared/files/otp_src_R15B/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_amd64_bifs.S -o obj/i386-pc-solaris2.11/opt/smp/hipe_amd64_bifs.o
> i386-pc-solaris2.11/opt/smp/hipe_amd64_bifs.S:2005:2: error: #endif without #if
> make[3]: *** [obj/i386-pc-solaris2.11/opt/smp/hipe_amd64_bifs.o] Error 1
> It seems easy enough to fix on my end, but just wanted to let you know that there is a unmatched if/endif pair somewhere in hipe_amd64_bifs.S
hipe_amd64_bifs.S is generated from

hipe_amd64_bifs.S on my Linux works fine.

Could you supply some more information about the failing #endif

/Sverker, Erlang/OTP Ericsson

More information about the erlang-bugs mailing list