#15459 closed defect (fixed)
erlang R12B-2 build failure on Leopard 5.3 (HiPE causes Bus error)
Reported by: | sreguera@… | Owned by: | bfulgham@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | 1.6.0 |
Keywords: | Cc: | ricardo@…, axman6@…, lyle@…, wdc@…, jdfrens@…, careo@…, desterkin@…, dieter@…, michael.s.klishin@…, ascarter@…, febeling@… | |
Port: | erlang |
Description
After updating the OS to Leopard 5.3 erlang stopped working, giving a bus error.
I attempted a rebuild, but the build fails when compiling hipe.
=== Entering application hipe /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_erlang/work/erlang-R12B-2/bin/i386-apple-darwin9.3.0/hipe_mkliterals -e > hipe_literals.hrl erlc -W +debug_info +warn_obsolete_guard +inline -o../ebin hipe_rtl_arch.erl make[3]: *** [../ebin/hipe_rtl_arch.beam] Bus error make[2]: *** [opt] Error 2 make[1]: *** [opt] Error 2 make: *** [secondary_bootstrap_build] Error 2
I've downloaded and compiled the same version (R12B-2) from the erlang site using the default options (./configure && make) and everything seems to be working:
=== Entering application hipe /Users/sebas/Downloads/Erlang/otp_src_R12B-2/bin/i386-apple-darwin9.3.0/hipe_mkliterals -e > hipe_literals.hrl erlc -W +debug_info +warn_obsolete_guard +inline -o../ebin hipe_rtl_arch.erl erlc -W +debug_info +warn_obsolete_guard +inline -o../ebin hipe_tagscheme.erl erlc -W +debug_info +warn_obsolete_guard +warn_untyped_record -o../ebin hipe_consttab.erl erlc -W +debug_info +warn_obsolete_guard +warn_untyped_record -o../ebin hipe_gensym.erl ...
Change History (21)
comment:1 Changed 16 years ago by ricardo@…
comment:5 Changed 16 years ago by sreguera@…
The quick and dirty solution is to remove the "--enable-hipe" option from the configuration in the Portfile.
I've moved it to a separate variant:
--- Portfile.orig 2008-05-31 09:53:07.000000000 +0200 +++ Portfile 2008-05-31 09:54:54.000000000 +0200 @@ -45,7 +45,6 @@ configure.args --prefix=${destroot}${prefix} \ --enable-threads \ --enable-kernel-poll \ - --enable-hipe \ --disable-smp-support variant smp { @@ -58,6 +57,9 @@ depends_run-append port:openssl } +variant hipe { + configure.args-append --enable-hipe +} platform i386 { pre-configure {
comment:7 Changed 16 years ago by aschenke@…
Owner: | changed from macports-tickets@… to bfulgham@… |
---|
comment:15 Changed 16 years ago by bfulgham@…
This problem seems to persist through 10.5.4 as well. Updating port with new "hipe" variant, so users can at least use Erlang without HIPE enabled.
comment:18 Changed 16 years ago by febeling@…
Port: | erlang added |
---|---|
Summary: | erlang R12B-2 build failure on Leopard 5.3 → erlang R12B-2 build failure on Leopard 5.3 (HiPE causes Bus error) |
This issue has been resolved upstream, see this message from erlang-patches mailing list: http://www.erlang.org/pipermail/erlang-patches/2008-September/000293.html.
It will be contained in the R12-5 erlang/OTP release, which is due in about december, if all goes as usual.
Should we apply this locally maybe?
comment:19 Changed 16 years ago by will.bryant@…
As per #17099, port now builds R12-5 successfully with hipe, so we can close this ticket now (and turn hipe back on by default).
comment:20 Changed 16 years ago by bfulgham@…
Resolution: | → fixed |
---|---|
Status: | new → closed |
Committed revision 44939.
I'd like to second this bug - I had the exact same problem after upgrading Leopard to 10.5.3, and was just about to file a report when I found this one.