[erlang-bugs] --enable-native-libs is broken

Louis-Philippe Gauthier louis-philippe.gauthier@REDACTED
Fri Jul 18 06:46:56 CEST 2014


Hi,
I've been trying to compile 17.1 with native libs... without any success. I
get different errors on Linux and OSX.

Linux:

% build

tar -xzf otp_src_17.1.tar.gz && cd otp_src_17.1/
./configure --enable-smp-support --enable-threads --enable-kernel-poll
--enable-hipe --enable-native-libs
make

% install

sudo su
rm -rf /usr/local/lib/erlang/
make install

% test

erl
Erlang/OTP 17 [erts-6.1] [source] [64-bit] [smp:2:2] [async-threads:10]
[hipe] [kernel-poll:false]

Eshell V6.1  (abort with ^G)
1> code:is_loaded(gen_server).
{file,"/usr/local/lib/erlang/lib/stdlib-2.1/ebin/gen_server.beam"}
2> code:is_module_native(gen_server).
false


OSX:

% build

tar -xzf otp_src_17.1.tar.gz && cd otp_src_17.1/
./configure --enable-smp-support --enable-threads --enable-kernel-poll
--enable-hipe --enable-native-libs --enable-darwin-64bit
--with-dynamic-trace=dtrace
make

% error

=== Entering application hipe
 ERLC ../ebin/hipe_rtl.beam
hipe_rtl.erl: internal error in native_compile;
crash reason: undef

full stacktrace: https://gist.github.com/lpgauth/74aea9a99b9763a6ffdb
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-bugs/attachments/20140718/75c68315/attachment.htm>


More information about the erlang-bugs mailing list