Opened 9 years ago

Closed 9 years ago

Last modified 8 years ago

#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 9 years ago by ricardo@…

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.

comment:2 Changed 9 years ago by ricardo@…

  • Cc ricardo@… added

Cc Me!

comment:3 Changed 9 years ago by axman6@…

  • Cc axman6@… added

Cc Me!

comment:4 Changed 9 years ago by lyle@…

  • Cc lyle@… added

Cc Me!

comment:5 Changed 9 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:6 Changed 9 years ago by wdc@…

  • Cc wdc@… added

Cc Me!

comment:7 Changed 9 years ago by aschenke@…

  • Owner changed from macports-tickets@… to bfulgham@…

comment:8 Changed 9 years ago by jdfrens@…

  • Cc jdfrens@… added

Cc Me!

comment:9 Changed 9 years ago by careo@…

  • Cc careo@… added

Cc Me!

comment:10 Changed 9 years ago by desterkin@…

  • Cc desterkin@… added

Cc Me!

comment:11 Changed 9 years ago by dieter@…

  • Cc dieter@… added

Cc Me!

comment:12 Changed 9 years ago by michael.s.klishin@…

  • Cc michael.s.klishin@… added

Cc Me!

comment:13 Changed 9 years ago by jeffrey.fredrick@…

  • Cc jeffrey.fredrick@… added

Cc Me!

comment:14 Changed 9 years ago by jeffrey.fredrick@…

  • Cc jeffrey.fredrick@… removed

Cc Me!

comment:15 Changed 9 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:16 Changed 9 years ago by ascarter@…

  • Cc ascarter@… added

Cc Me!

comment:17 Changed 9 years ago by febeling@…

  • Cc febeling@… added

Cc Me!

comment:18 Changed 9 years ago by febeling@…

  • Port erlang added
  • Summary changed from erlang R12B-2 build failure on Leopard 5.3 to 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 9 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 9 years ago by bfulgham@…

  • Resolution set to fixed
  • Status changed from new to closed

Committed revision 44939.

comment:21 Changed 8 years ago by anonymous

  • Milestone Port Bugs deleted

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.