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

Mark Allen mallen@REDACTED
Tue Feb 4 23:39:29 CET 2014

This is how my tool erlbrew builds Erlang on OS X 10.9


There's something about hipe and clang that just doesn't build properly;
we don't need hipe for our particular implementations (we code on OS X,
test; stage and run production on Linux)

I think if you add --disable-hipe to your recipe, it should work without


On 2/4/14 4:02 PM, "Paul Davis" <paul.joseph.davis@REDACTED> wrote:

>I asked Brian Mitchell and he says that R14 is known to not work with
>Clang but it works fine building it with gcc-4.2 on OS X 10.9.
>On Tue, Feb 4, 2014 at 3:59 PM, Paul Davis <paul.joseph.davis@REDACTED>
>> 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 <dch@REDACTED>
>>> 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
>>> 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
>>> erlang-questions@REDACTED
>>> http://erlang.org/mailman/listinfo/erlang-questions
>erlang-questions mailing list

More information about the erlang-questions mailing list