[erlang-bugs] OTP-18.0 --enable-native-libs build failed on Ubuntu Server 14.04 LTS (HVM) and Amazon Linux AMI 2015.03 (HVM)

Kostis Sagonas kostis@REDACTED
Thu Aug 13 15:11:18 CEST 2015


On 08/13/2015 01:36 PM, Bruno Matos Tavares wrote:
> Hi,
>
> I’m trying to build Erlang 18.0 from the official tarball with --enable-native-libs and it fails (log at the bottom). After discussing the issue on erlang-questions (https://groups.google.com/forum/#!topic/erlang-programming/OnMkdZpml8E) --enable-native-libs seems not to be working at all on Ubuntu Server 14.04 LTS (HVM) and Amazon Linux AMI 2015.03 (HVM) (the ones I was able to test) but with a workaround only the HiPE applications gets the native libs treatment.
>
> * with the workaround
> Drop —enable-m64-build and add CFLAGS=‘-O2 -m64'
>
> CFLAGS=‘-O2 -m64' ./configure --prefix=/usr/local \
> --disable-debug \
> --enable-silent-rules \
> --enable-threads \
> --enable-smp-support \
> --enable-kernel-poll \
> --enable-hipe \
> --enable-native-libs \
> --with-ssl=/usr/bin \
> --without-docs \
> --without-wx \
> --without-javac \
> —without-odbc
>
> 1> code:is_loaded(gen_server).
> {file,"/opt/erlang//lib/stdlib-2.5/ebin/gen_server.beam"}
> 2> code:is_loaded(gen_server).
> {file,”/opt/erlang//lib/stdlib-2.5/ebin/gen_server.beam”}
> 3> gen_server:module_info(native).
> false

Be brave and execute the command:

   make clean

before everything else (i.e. when you get the tarball or at the point 
where you now are).  Then issue a

   ./otp_build autoconf

and then the

   CFLAGS='...' ./configure ...
and
   make

commands as you have them above.


Kostis



More information about the erlang-bugs mailing list