Skip to content

Instantly share code, notes, and snippets.

@wez
Created June 13, 2011 01:24
Show Gist options
  • Save wez/1022194 to your computer and use it in GitHub Desktop.
Save wez/1022194 to your computer and use it in GitHub Desktop.
failure to build erlang on sparcv9 Solaris 10 with the system gcc
cd lib && \
ERL_TOP=/var/tmp/pkgbuild-0/erlang/sparcv9/erlang-otp-73b4221 PATH=/var/tmp/pkgbuild-0/erlang/sparcv9/erlang-otp-73b4221/bootstrap/bin:${PATH} \
make opt SECONDARY_BOOTSTRAP=true
make[1]: Entering directory `/var/tmp/pkgbuild-0/erlang/sparcv9/erlang-otp-73b4221/lib'
make[2]: Entering directory `/var/tmp/pkgbuild-0/erlang/sparcv9/erlang-otp-73b4221/lib/hipe'
=== Entering application hipe
make[3]: Entering directory `/var/tmp/pkgbuild-0/erlang/sparcv9/erlang-otp-73b4221/lib/hipe/misc'
erlc -W +debug_info +warn_exported_vars +warn_missing_spec +warn_untyped_record -o../ebin hipe_consttab.erl
make[3]: *** [../ebin/hipe_consttab.beam] Bus Error (core dumped)
make[3]: Leaving directory `/var/tmp/pkgbuild-0/erlang/sparcv9/erlang-otp-73b4221/lib/hipe/misc'
@wez
Copy link
Author

wez commented Jun 14, 2011

In case anyone is paying attention to this, I believe this is an issue with the gcc that ships with sparc solaris 10. Building a newer gcc is rather laborious process, but I'm working that angle.

@wez
Copy link
Author

wez commented Jul 3, 2011

I've opened a thread on stackoverflow for this, complete with the solution:

http://stackoverflow.com/questions/6561133/why-does-my-erlang-build-fail-with-a-core-dump-on-solaris-sparc/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment