More Solaris build problems

Mikael Pettersson <>
Sat Oct 27 11:20:37 CEST 2001


On Sat, 27 Oct 2001 02:32:42 -0400, Vance Shipley wrote:
>I've now built R8B-0 on a number of systems including
>FreeBSD 4.4-STABLE and RedHat Linux 6.2 with no trouble at all.
>However I'm having problems with Solaris 7 x86.
>
>I have applied the m4 patch and my sed lives in /usr/bin/sed
>(as well as /usr/bin/sed, they're identical) yet still I can't
>compile hipe:
>
>gcc -g -O2 -I/usr/local/src/otp_src_R8B-0/erts/i386-pc-solaris2.7  -DINSTRUM
>ENT -DHAVE_CONFIG_H -Wall -DUSE_THREADS -D_REENTRANT -DPOSIX_THREADS -D_THRE
>AD_SAFE -D_POSIX_PTHREAD_SEMANTICS -DHIPE_ARCHITECTURE=x86  -Ibeam -Isys/uni
>x -Ii386-pc-solaris2.7 -Izlib -Ihipe -c hipe/hipe_x86_glue.S -o
>/usr/local/src/otp_src_R8B-0/erts/obj.instr.beam/i386-pc-solaris2.7/hipe_x86
>_glue.o
>Assembler:
>        aline 1 : Illegal mnemonic
>        aline 1 : syntax error
>        aline 6 : Illegal mnemonic
>        aline 6 : syntax error

Known problem. Solaris/x86 (all versions) has a broken assembler
which, to put it mildly, is unfit for human-written assembly code.
So one must use the GNU assembler.

To make it all work, I also had to build a custom gcc (2.95.3) which
was configured "--with-gnu-as" (and perhaps also "--with-gnu-ld", I
don't recall). The procedure is described in the gcc sources.

Apart from this, OTP & HiPE works fine on my Solaris 8 x86 test box.

/Mikael



More information about the erlang-questions mailing list