New Ticket     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #15459 (closed defect: fixed)

Opened 21 months ago

Last modified 10 months ago

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

Changed 21 months 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.

Changed 21 months ago by ricardo@…

  • cc ricardo@… added

Cc Me!

Changed 21 months ago by axman6@…

  • cc axman6@… added

Cc Me!

Changed 21 months ago by lyle@…

  • cc lyle@… added

Cc Me!

Changed 21 months 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 {

Changed 21 months ago by wdc@…

  • cc wdc@… added

Cc Me!

Changed 21 months ago by aschenke@…

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

Changed 21 months ago by jdfrens@…

  • cc jdfrens@… added

Cc Me!

Changed 21 months ago by careo@…

  • cc careo@… added

Cc Me!

Changed 20 months ago by desterkin@…

  • cc desterkin@… added

Cc Me!

Changed 20 months ago by dieter@…

  • cc dieter@… added

Cc Me!

Changed 20 months ago by michael.s.klishin@…

  • cc michael.s.klishin@… added

Cc Me!

Changed 20 months ago by jeffrey.fredrick@…

  • cc jeffrey.fredrick@… added

Cc Me!

Changed 20 months ago by jeffrey.fredrick@…

  • cc jeffrey.fredrick@… removed

Cc Me!

Changed 19 months 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.

Changed 17 months ago by ascarter@…

  • cc ascarter@… added

Cc Me!

Changed 16 months ago by febeling@…

  • cc febeling@… added

Cc Me!

Changed 16 months ago by febeling@…

  • port set to erlang
  • 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?

Changed 13 months 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).

Changed 13 months ago by bfulgham@…

  • status changed from new to closed
  • resolution set to fixed

Committed revision 44939.

Changed 10 months ago by anonymous

  • milestone Port Bugs deleted

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.