[erlang-bugs] R15B01 Bug - Fail to Compile in Solaris 5.10 - i386-pc-solaris2.10/opt/smp/hipe_x86_bifs.S:2176:2: error: #endif without #if

Mikael Pettersson <>
Sun May 20 12:54:58 CEST 2012


> m4  -DERTS_SMP=3D1 -DTARGET=3Di386-pc-solaris2.10 -DOPSYS=3Dsol2 -DARCH=3Dx=
> 86
> hipe/hipe_x86_bifs.m4 > i386-pc-solaris2.10/opt/smp/hipe_x86_bifs.S
> gcc -g -O2 -I/dados/install-src/otp_src_R15B01/erts/i386-pc-solaris2.10
> -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=3D64 -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.10/opt/smp
> -Ibeam -Isys/unix -Isys/common -Ii386-pc-solaris2.10 -Izlib  -Ipcre -Ihipe
> -I../include -I../include/i386-pc-solaris2.10 -I../include/internal
> -I../include/internal/i386-pc-solaris2.10 -c
> i386-pc-solaris2.10/opt/smp/hipe_x86_bifs.S -o
> obj/i386-pc-solaris2.10/opt/smp/hipe_x86_bifs.o
> i386-pc-solaris2.10/opt/smp/hipe_x86_bifs.S:2176:2: error: #endif without
> #if

Make sure m4 is a link to GNU m4, not /usr/ccs/bin/m4, then try again
in a clean unpack of the sources (i.e., rm -rf the old source dir first,
do not try a 'make clean' because that just doesn't work).

If that still fails, email me a copy of the offending hipe_x86_bifs.S file
and I'll have a look.


More information about the erlang-bugs mailing list