64-Bit Erlang on SOLARIS 10

Valentin Micic [ MTN - Innovation Centre ] Micic_V@REDACTED
Tue Jul 4 18:48:15 CEST 2006


Has anybody successfully compiled Erlang R11B-0 (or R10B-10) on Solaris
10, using ./configure utility.

I get the following error(s):

make
cd erts/emulator && ERL_TOP=/export/home/micic_v/ERLANG/otp_src_R11B-0
make generate depend
make[1]: Entering directory
`/export/home/micic_v/ERLANG/otp_src_R11B-0/erts/emulator'
make -f sparc-sun-solaris2.10/Makefile generate
make[2]: Entering directory
`/export/home/micic_v/ERLANG/otp_src_R11B-0/erts/emulator'
/tmp/gcc64  -g -O3
-I/export/home/micic_v/ERLANG/otp_src_R11B-0/erts/sparc-sun-solaris2.10
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64  -DHAVE_CONFIG_H -Wall
-Wstrict-prototypes -Wmissing-prototypes -DUSE_THREADS  -D_THREAD_SAFE
-D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -Wa,-xarch=v8plusa -Ibeam
-Isys/unix -Isys/common -Isparc-sun-solaris2.10/opt
-Isparc-sun-solaris2.10 -Izlib -Ihipe -I../include/internal
-I../include/internal/sparc-sun-solaris2.10 -c hipe/hipe_mkliterals.c -o
/export/home/micic_v/ERLANG/otp_src_R11B-0/erts/obj.beam/sparc-sun-solar
is2.10/hipe_mkliterals.o
In file included from /usr/include/sys/signal.h:34,
                 from /usr/include/signal.h:27,
                 from sys/unix/erl_unix_sys.h:46,
                 from beam/sys.h:46,
                 from hipe/hipe_mkliterals.c:37:
/usr/include/sys/siginfo.h:259: error: parse error before "ctid_t"
/usr/include/sys/siginfo.h:292: error: parse error before '}' token
/usr/include/sys/siginfo.h:294: error: parse error before '}' token
/usr/include/sys/siginfo.h:390: error: parse error before "ctid_t"
/usr/include/sys/siginfo.h:392: error: conflicting types for `__proc'
/usr/include/sys/siginfo.h:261: error: previous declaration of `__proc'
/usr/include/sys/siginfo.h:398: error: conflicting types for `__fault'
/usr/include/sys/siginfo.h:267: error: previous declaration of `__fault'
/usr/include/sys/siginfo.h:404: error: conflicting types for `__file'
/usr/include/sys/siginfo.h:273: error: previous declaration of `__file'
/usr/include/sys/siginfo.h:420: error: conflicting types for `__prof'
/usr/include/sys/siginfo.h:287: error: previous declaration of `__prof'
/usr/include/sys/siginfo.h:424: error: conflicting types for `__rctl'
/usr/include/sys/siginfo.h:291: error: previous declaration of `__rctl'
/usr/include/sys/siginfo.h:426: error: parse error before '}' token
/usr/include/sys/siginfo.h:428: error: parse error before '}' token
/usr/include/sys/siginfo.h:432: error: parse error before "k_siginfo_t"
/usr/include/sys/siginfo.h:437: error: parse error before '}' token
In file included from /usr/include/signal.h:27,
                 from sys/unix/erl_unix_sys.h:46,
                 from beam/sys.h:46,
                 from hipe/hipe_mkliterals.c:37:
/usr/include/sys/signal.h:85: error: parse error before "siginfo_t"
In file included from sys/unix/erl_unix_sys.h:46,
                 from beam/sys.h:46,
                 from hipe/hipe_mkliterals.c:37:
/usr/include/signal.h:112: error: parse error before "siginfo_t"
/usr/include/signal.h:114: error: parse error before "siginfo_t"
make[2]: ***
[/export/home/micic_v/ERLANG/otp_src_R11B-0/erts/obj.beam/sparc-sun-sola
ris2.10/hipe_mkliterals.o] Error 1
make[2]: Leaving directory
`/export/home/micic_v/ERLANG/otp_src_R11B-0/erts/emulator'
make[1]: *** [generate] Error 2
make[1]: Leaving directory
`/export/home/micic_v/ERLANG/otp_src_R11B-0/erts/emulator'
make: *** [depend] Error 2

-----Original Message-----
From: owner-erlang-questions@REDACTED
[mailto:owner-erlang-questions@REDACTED] On Behalf Of Valentin Micic [
MTN - Innovation Centre ]
Sent: Tuesday, 04 July 2006 5:36 PM
To: Mikael Pettersson; erlang-questions@REDACTED
Subject: RE: 64-Bit Erlang on SOLARIS 10

Hello Mikael and others,

Thank you very much -- that part worked!!!

My next problem:

Compiler complains about undefined data types (i.e. ctid_t), but I
suspect GCC version that I'm running (will download one for Sol10)

V.



-----Original Message-----
From: Mikael Pettersson [mailto:mikpe@REDACTED] 
Sent: Tuesday, 04 July 2006 3:06 PM
To: Valentin Micic [ MTN - Innovation Centre ];
erlang-questions@REDACTED
Subject: Re: 64-Bit Erlang on SOLARIS 10

On Tue, 4 Jul 2006 13:04:59 +0200, "Valentin Micic [ MTN - Innovation
Centre ]" <Micic_V@REDACTED> wrote:
>Can anybody, please, tell me what parameters to pass to configure
>utility in order to force 64-bit support for Erlang emulator.
>
>Thanks in advance.

Assuming it's SPARC and you're using gcc, then you need
to pass -m64 to gcc. On the rare occasion that I do a
64-bit SPARC build, I do it via the following kludge:

cat>/tmp/gcc64
#!/bin/sh
exec gcc -m64 "$@"
^D
chmod +x /tmp/gcc64
env CC=/tmp/gcc64 ./configure <options>
make

Maybe 'env CFLAGS="-O2 -m64" ./configure' would work too.


NOTE: This e-mail message is subject to the MTN Group disclaimer see
http://www.mtn.co.za/disclaimer



NOTE: This e-mail message is subject to the MTN Group disclaimer see http://www.mtn.co.za/disclaimer




More information about the erlang-questions mailing list