[erlang-bugs] OTP-18.0 --enable-native-libs build failed on Ubuntu Server 14.04 LTS (HVM) and Amazon Linux AMI 2015.03 (HVM)
Bruno Matos Tavares
tavaresbm@REDACTED
Thu Aug 13 16:23:31 CEST 2015
Hi Kostis,
Sorry, I forgot to mention that I bumped into https://groups.google.com/forum/#!searchin/erlang-programming/enable-native-libs/erlang-programming/qFJmWtUQHuA/EBHC750-4UYJ.
So, I did try:
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
make clean
./otp_build autoconf
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
make
The error is different:
=== Entering application syntax_tools
make[3]: Entering directory `/home/ec2-user/tmp/otp_src_18.0/lib/syntax_tools/src'
ERLC ../ebin/erl_syntax.beam
ERLC ../ebin/erl_prettypr.beam
ERLC ../ebin/erl_syntax_lib.beam
ERLC ../ebin/erl_comment_scan.beam
erl_comment_scan.erl: internal error in native_compile;
crash reason: undef
in function hipe:compile/4
called as hipe:compile(erl_comment_scan,[],
<<70,79,..,52>>,
[])
in call from compile:native_compile_1/1 (compile.erl, line 1361)
in call from compile:'-internal_comp/4-anonymous-1-'/2 (compile.erl, line 295)
in call from compile:fold_comp/3 (compile.erl, line 321)
in call from compile:internal_comp/4 (compile.erl, line 305)
in call from compile:'-do_compile/2-anonymous-0-'/2 (compile.erl, line 155)
make[3]: *** [../ebin/erl_comment_scan.beam] Error 1
make[3]: *** Waiting for unfinished jobs....
erl_prettypr.erl: internal error in native_compile;
crash reason: undef
in function hipe:compile/4
called as hipe:compile(erl_prettypr,[],
<<70, ..>>, [])
in call from compile:native_compile_1/1 (compile.erl, line 1361)
in call from compile:'-internal_comp/4-anonymous-1-'/2 (compile.erl, line 295)
in call from compile:fold_comp/3 (compile.erl, line 321)
in call from compile:internal_comp/4 (compile.erl, line 305)
in call from compile:'-do_compile/2-anonymous-0-'/2 (compile.erl, line 155)
make[3]: *** [../ebin/erl_prettypr.beam] Error 1
erl_syntax_lib.erl: internal error in native_compile;
crash reason: undef
in function hipe:compile/4
called as hipe:compile(erl_syntax_lib,[],
<<70, .., [])
in call from compile:native_compile_1/1 (compile.erl, line 1361)
in call from compile:'-internal_comp/4-anonymous-1-'/2 (compile.erl, line 295)
in call from compile:fold_comp/3 (compile.erl, line 321)
in call from compile:internal_comp/4 (compile.erl, line 305)
in call from compile:'-do_compile/2-anonymous-0-'/2 (compile.erl, line 155)
make[3]: *** [../ebin/erl_syntax_lib.beam] Error 1
erl_syntax.erl: internal error in native_compile;
crash reason: undef
in function hipe:compile/4
called as hipe:compile(erl_syntax,[],
<<70,79,..>>, [])
in call from compile:native_compile_1/1 (compile.erl, line 1361)
in call from compile:'-internal_comp/4-anonymous-1-'/2 (compile.erl, line 295)
in call from compile:fold_comp/3 (compile.erl, line 321)
in call from compile:internal_comp/4 (compile.erl, line 305)
in call from compile:'-do_compile/2-anonymous-0-'/2 (compile.erl, line 155)
make[3]: *** [../ebin/erl_syntax.beam] Error 1
make[3]: Leaving directory `/home/ec2-user/tmp/otp_src_18.0/lib/syntax_tools/src'
make[2]: *** [opt] Error 2
make[2]: Leaving directory `/home/ec2-user/tmp/otp_src_18.0/lib/syntax_tools'
make[1]: *** [opt] Error 2
make[1]: Leaving directory `/home/ec2-user/tmp/otp_src_18.0/lib'
make: *** [tertiary_bootstrap_build] Error 2
Thank you,
Bruno.
> On 13 Aug 2015, at 14:11, Kostis Sagonas <kostis@REDACTED> wrote:
>
> 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