[erlang-bugs] 64-bit solaris build failures on R12B-5

Paul Fisher <>
Wed Nov 19 15:01:25 CET 2008


I am attempting to build a 64-bit solaris version of the R12B-5 release
using only the CC/LD/CFLAGS/LDFLAGS overrides as discussed on the list,
and this is not working.

I configure with the following:

CC='gcc' LD='gcc' CFLAGS='-m64' LDFLAGS='-m64' LIBS='-lumem' ./configure
--enable-threads --enable-smp-support --enable-kernel-poll --enable-hipe
--disable-megaco-flex-scanner-drvlineno

I disable a bunch of stuff I do not want with:

touch lib/common_test/SKIP
touch lib/cosEvent/SKIP
touch lib/cosEventDomain/SKIP
touch lib/cosFileTransfer/SKIP
touch lib/cosNotification/SKIP
touch lib/cosProperty/SKIP
touch lib/cosTime/SKIP
touch lib/cosTransactions/SKIP
touch lib/megaco/SKIP
touch lib/odbc/SKIP
touch lib/orber/SKIP

I then run make, and eventually get:

gcc -c -I/export/home/pfisher/bld/otp_src_R12B-5/erts/emulator/beam
-I/export/home/pfisher/bld/otp_src_R12B-5/erts/emulator/sys/unix
-I/export/home/pfisher/bld/otp_src_R12B-5/lib/erl_interface/include -m64
-I/export/home/pfisher/bld/otp_src_R12B-5/erts/i386-pc-solaris2.11
-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64   -DUSE_THREADS
-D_THREAD_SAFE -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -fPIC -o
/export/home/pfisher/bld/otp_src_R12B-5/lib/asn1/priv/obj/i386-pc-solaris2.11/asn1_erl_drv.o 

asn1_erl_driver.c
ld -G
-L/export/home/pfisher/bld/otp_src_R12B-5/lib/erl_interface/obj/i386-pc-solaris2.11 

-o
/export/home/pfisher/bld/otp_src_R12B-5/lib/asn1/priv/lib/i386-pc-solaris2.11/asn1_erl_drv.so 

/export/home/pfisher/bld/otp_src_R12B-5/lib/asn1/priv/obj/i386-pc-solaris2.11/asn1_erl_drv.o 

-lei  -lc -ldl -lm -lumem  -lsocket -lnsl
ld: skipping incompatible
/export/home/pfisher/bld/otp_src_R12B-5/lib/erl_interface/obj/i386-pc-solaris2.11/libei.a 

when searching for -lei
ld: cannot find -lei
make[4]: ***
[/export/home/pfisher/bld/otp_src_R12B-5/lib/asn1/priv/lib/i386-pc-solaris2.11/asn1_erl_drv.so] 

Error 1

Basically, libei.a was properly built as a 64-bit library, but the asn1
driver is not.

If I disable asn1 and enable common_test, the same basic thing happens 
where the driver is built 32-bit.

Is there something that I am missing, or did the work to make
CFLAGS/LDFLAGS work not make it into R12B-5?


--
paul



More information about the erlang-bugs mailing list