[erlang-questions] Solaris 10 build issues - R11B-4
Mikael Pettersson
mikpe@REDACTED
Tue May 22 10:28:14 CEST 2007
Brad Anderson writes:
> Hi all,
>
> I'm trying to get OTP R11B-4 to compile on Solaris 10 (x86, 32bit). I've
> placed the needed packages on the system so far:
> gcc 3.4.6
> openssl-0.9.8e
> make-3.81
> and their dependencies...
>
> Also, I received an 'ar' error in ./configure, so I added Solaris binutils to
> the path.
>
> Any insight would be appreciated.
>
> Cheers,
> Brad
>
>
> Here's what I'm getting:
>
> gcc -g -O2
> -I/export/home/root/installs/erlang/otp_src_R11B-4/erts/i386-pc-solaris2.10
> -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DUSE_THREADS -D_THREAD_SAFE
> -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DHYBRID -DHAVE_CONFIG_H -Wall
> -Wstrict-prototypes -Wmissing-prototypes -DUSE_THREADS -D_THREAD_SAFE
> -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -Ibeam -Isys/unix -Isys/common
> -Ii386-pc-solaris2.10/opt/hybrid -Ii386-pc-solaris2.10 -Izlib -Ihipe
> -I../include/internal -I../include/internal/i386-pc-solaris2.10 -c
> hipe/hipe_x86_glue.S -o obj/i386-pc-solaris2.10/opt/hybrid/hipe_x86_glue.o
> Assembler:
> "/var/tmp//ccdhWGox.s", line 1 : Syntax error
> Near line: " .section ".text""
> "/var/tmp//ccdhWGox.s", line 8 : Illegal mnemonic
etc
You MUST use the GNU assembler if you want HiPE support on x86.
Sun's x86 assemblers are and have always been broken beyond repair.
That means using a gcc that's been configured to use gas.
If you don't want to install or build a fixed gcc, then you can avoid
this error by doing ./configure --disable-hipe before building OTP.
/Mikael
More information about the erlang-questions
mailing list