[erlang-questions] building R14B04 64-bit in OSX 10.9.1 Mavericks with clang

Paul Davis <>
Tue Feb 4 22:59:24 CET 2014


I'm pretty sure you only want one of the --enable-darwin-64bit or
--enable-m64-build, not both. I haven't personally built on OS X 10.9
but I haven't heard anything similar from people who have.

On Tue, Feb 4, 2014 at 3:34 PM, Dave Cottlehuber <> wrote:
> 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
> _______________________________________________
> erlang-questions mailing list
> 
> http://erlang.org/mailman/listinfo/erlang-questions


More information about the erlang-questions mailing list