[erlang-questions] hipe on freebsd/x86

Mikael Pettersson mikpe@REDACTED
Sun Oct 22 02:10:25 CEST 2006


On Sat, 21 Oct 2006 13:33:38 -0600, <calmasy@REDACTED> wrote:
>>>On my SunOS 5.9/x86 box, compiling HiPE failed.  I can provide output
>>>of those errors if that would be useful.
>>
>> Please do, and include details about the toolchain you used
>> (versions, configuration options, etc).
>
>SunOS x86-solaris1 5.9 Generic_112234-10 i86pc i386 i86pc Solaris
>
>Using gcc 3.3.2 and GNU make.  No configuration options, just
>"./configure && gmake"
>
>gcc -g -O2 -I/home/users/c/ca/calmasy/src/sol_x86/otp_src_R11B-1/erts/i386-pc-solaris2.9
> -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  -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.9/opt/hybrid
>-Ii386-pc-solaris2.9 -Izlib -Ihipe -I../include/internal
>-I../include/internal/i386-pc-solaris2.9 -c hipe/hipe_x86_glue.S -o
>obj/i386-pc-solaris2.9/opt/hybrid/hipe_x86_glue.o
>Assembler:
>        "/var/tmp//cc8haeIU.s", line 1 : Syntax error
>        "/var/tmp//cc8haeIU.s", line 8 : Illegal mnemonic
>        "/var/tmp//cc8haeIU.s", line 8 : Syntax error
>        "/var/tmp//cc8haeIU.s", line 8 : Illegal mnemonic
>        "/var/tmp//cc8haeIU.s", line 9 : Illegal mnemonic
>        "/var/tmp//cc8haeIU.s", line 9 : Syntax error
>        "/var/tmp//cc8haeIU.s", line 9 : Illegal mnemonic

etc

Looks like your gcc is using Sun's assembler. That won't work
due to Sun's braindead assembly syntax. You need the GNU binutils,
and gcc must be configured --with-gnu-as, and possibly also
--with-as=/path/to/gnu/as, before being built.

Your gcc is ancient anyway, so you may as well take this opportunity
to update to gcc-3.4.6 or better yet gcc-4.1.1.

/Mikael



More information about the erlang-questions mailing list