FS#26827 - [erlang] -enable-native-libs should be dropped? (RB14B04 - hipe incompatible native code)
Attached to Project:
Community Packages
Opened by hrubi (hrubi) - Wednesday, 09 November 2011, 20:57 GMT
Last edited by Lukas Jirkovsky (6xx) - Sunday, 08 April 2012, 13:26 GMT
Opened by hrubi (hrubi) - Wednesday, 09 November 2011, 20:57 GMT
Last edited by Lukas Jirkovsky (6xx) - Sunday, 08 April 2012, 13:26 GMT
|
Details
Description:
Starting erlang shell "erl" gives following warning: {error_logger,{{2011,11,9},{21,47,1}},"<HiPE (v 3.8.1)> Warning: not loading native code for module ~w: it was compiled for an incompatible runtime system; please regenerate native code for this runtime system\n",[hipe_unified_loader]} Erlang R14B04 (erts-5.8.5) [source] [64-bit] [rq:1] [async-threads:0] [hipe] [kernel-poll:false] =INFO REPORT==== 9-Nov-2011::21:47:01 === <HiPE (v 3.8.1)> Warning: not loading native code for module hipe_unified_loader: it was compiled for an incompatible runtime system; please regenerate native code for this runtime system Eshell V5.8.5 (abort with ^G) 1> Additional info: * package version(s): elarng-R14B04-1 Rebulding this package from PKGBUILD http://projects.archlinux.org/svntogit/packages.git/tree/trunk/PKGBUILD?h=packages/erlang made the warning dissapear. Steps to reproduce: Start the shell `erl'. |
This task depends upon
Closed by Lukas Jirkovsky (6xx)
Sunday, 08 April 2012, 13:26 GMT
Reason for closing: Fixed
Additional comments about closing: Fixed with R15B01
Sunday, 08 April 2012, 13:26 GMT
Reason for closing: Fixed
Additional comments about closing: Fixed with R15B01
Same problem with erlang-R14B04-1-i686 after upgrading from erlang-R14B-2-i686. Downgrading back to erlang-R14B-2-i686 fixes the warning. I have no problem installing it on another system where erlang was not installed before. Anyway, despite the initial warning everything seem to be working fine.
Regards.
I think it's debatable within Arch that -enable-native-libs should be used. It probably has some performance upside (though I personally haven't seen any benchmarks) but at the cost of VM portability.
I think in the spirit of least-common-denominator for precompiled packages, that flag should probably be dropped.
However, it's still only a warning and other systems will benefit from the -enable-native-libs flag..
I personally can live with this.
I found a way to suppress the warning with
erl -smp
which will turn on the SMP support event with single processor. I have not investigated if there's some drawback though.
For the future reference (in case "-enable-native-libs" will be re-enabled): try "erl -smp disable" or "erl -smp enable"