[erlang-questions] [erlang-patches] [PATCH] 64-bit solaris builds

Bjorn Gustavsson <>
Mon Mar 2 16:16:32 CET 2009


On Thu, Feb 26, 2009 at 1:27 AM, Paul Fisher <> wrote:
> Bjorn Gustavsson wrote:
>>
>> On Fri, Aug 29, 2008 at 12:59 AM, Paul Fisher <
>> <mailto:>> wrote:
>>
>>    This patch allows 64-bit builds when the target system supports both
>>    32-bit and 64-bit in the same system environment.  Specifically, this
>>    works on Solaris 10/Opensolaris, and adjusts the --enable-darwin-64-bit
>>    configure flag to be simply --enable-64bit so that it can be used for
>>    the same purpose on both darwin and solaris (building 64-bit target
>>    environment) without having to introduce another system specific
>>    configure flag.
>>
>>
>> We will address this issue in a future release (not R12B-5) by making sure
>> that CFLAGS will be properly propagated
>> by all Makefiles.
>
> I was just checking out the 13A-0 snapshot, and this failure is still
> present.  Will this (please) make it into the first drop of R13?
>
> $ CC='gcc' LD='gcc' CFLAGS='-m64 -O2' LDFLAGS='-m64' LIBS='-lmtmalloc'
> ./configure --enable-threads --enable-smp-support --enable-kernel-poll
> --enable-hipe --disable-megaco-flex-scanner-drvlineno --without-unixodbc
> ...
> $ make
> ...
>
> make[4]: Entering directory
> `/export/home/pfisher/bld/otp_src_R13A-0/lib/asn1/c_src'
> ld -G
> -L/export/home/pfisher/bld/otp_src_R13A-0/lib/erl_interface/obj/i386-pc-solaris2.11
> -o
> /export/home/pfisher/bld/otp_src_R13A-0/lib/asn1/priv/lib/i386-pc-solaris2.11/asn1_erl_drv.so
> /export/home/pfisher/bld/otp_src_R13A-0/lib/asn1/priv/obj/i386-pc-solaris2.11/asn1_erl_drv.o
> -lei  -lc -ldl -lm -lmtmalloc  -lsocket -lnsl
> ld: skipping incompatible
> /export/home/pfisher/bld/otp_src_R13A-0/lib/erl_interface/obj/i386-pc-solaris2.11/libei.a
> when searching for -lei
> ld: cannot find -lei
>

We'll try to fix it in the R13B release. (We will probably not have
time to fix it in R13A.)

/Björn

-- 
Björn Gustavsson, Erlang/OTP, Ericsson AB



More information about the erlang-questions mailing list