[erlang-questions] building R14B04 64-bit in OSX 10.9.1 Mavericks with clang
Dave Cottlehuber
dch@REDACTED
Tue Feb 4 22:34:50 CET 2014
No matter what incantations I try, I just can’t get this to work.brew, kerl, all fail, even the mighty otp_build and configure can’t pull this rabbit out of the hat. Sample logs, although many variants were tried in vain:
./otp_build autoconf
There’s a curious sed error in otp_build which looks unrelated:
=== running autoconf in lib/test_server/src
sed: RE error: illegal byte sequence
But we forge on heedless:
./configure --prefix=/usr/local/Cellar/erlang/R14B04 --enable-kernel-poll \
--enable-threads --enable-dynamic-ssl-lib --enable-shared-zlib \
--enable-smp-support --enable-hipe \
--enable-darwin-64bit --enable-m64-build
Which produces a suspect build system name:
configure: creating ./config.status
config.status: creating emulator/i386-apple-darwin13.0.0/Makefile
It fails each time at:
Undefined symbols for architecture x86_64:
"_bp_sched2ix", referenced from:
_load_nif_2 in erl_nif.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[3]: *** [/ramdisk/otp-OTP_R14B04/bin/i386-apple-darwin13.0.0/beam.smp] Error 1
make[2]: *** [opt] Error 2
make[1]: *** [smp] Error 2
make: *** [emulator] Error 2
full logs at https://gist.github.com/dch/5a864bc0631022d58f57
Removing the --enable-darwin-64bit and --enable-m64-build doesn’t help much either:
Undefined symbols for architecture i386:
"_bp_sched2ix", referenced from:
_load_nif_2 in erl_nif.o
ld: symbol(s) not found for architecture i386
Is this even possible now? Should I try installing gcc42 instead & hope for the best?
--
Dave Cottlehuber
Sent from my PDP11
More information about the erlang-questions
mailing list