[erlang-questions] Building on OS X

Yuri Ginsburg <>
Sat May 7 07:54:47 CEST 2011


Travis,

What  version of OSX  and gcc are you using. I have successfully built OTP
for configuration:
 ./configure --enable-darwin-64bit  --disable-hipe

OSX version:
Darwin mac 10.4.0 Darwin Kernel Version 10.4.0: Fri Apr 23 18:28:53 PDT
2010; root:xnu-1504.7.4~1/RELEASE_I386 i386

gcc: gcc version 4.2.1 (Apple Inc. build 5664)

--yg

On Fri, May 6, 2011 at 4:12 PM, Travis Jensen <>wrote:

> I'm having problems building 64-bit from source on OS X.  I've tried a
> couple different things:
>
> *Without Hipe:* ./otp_build configure --enable-darwin-64bit
>  --prefix=/Users/travis/opt/erlang --disable-hipe
>
> gcc  -mdynamic-no-pic -m64 -g  -O3 -fomit-frame-pointer
> -I/Users/travis/src2/foss/otp/erts/i386-apple-darwin10.7.0  -no-cpp-precomp
>  -D_XOPEN_SOURCE -DERTS_SMP -DHAVE_CONFIG_H -Wall -Wstrict-prototypes
> -Wmissing-prototypes -Wdeclaration-after-statement -DUSE_THREADS
> -D_THREAD_SAFE -D_REENTRANT -DPOSIX_THREADS
>  -Ii386-apple-darwin10.7.0/opt/smp -Ibeam -Isys/unix -Isys/common
> -Ii386-apple-darwin10.7.0 -Izlib  -Ipcre -Ihipe -I../include
> -I../include/i386-apple-darwin10.7.0 -I../include/internal
> -I../include/internal/i386-apple-darwin10.7.0 -c beam/beam_emu.c -o
> obj/i386-apple-darwin10.7.0/opt/smp/beam_emu.o
> beam/beam_emu.c: In function 'process_main':
> beam/beam_emu.c:1177: error: label 'lb_hipe_trap_throw' used but not
> defined
> beam/beam_emu.c:1177: error: label 'lb_hipe_trap_return' used but not
> defined
> beam/beam_emu.c:1177: error: label 'lb_hipe_trap_resume' used but not
> defined
> beam/beam_emu.c:1177: error: label 'lb_hipe_trap_call_closure' used but not
> defined
> beam/beam_emu.c:1177: error: label 'lb_hipe_trap_call' used but not defined
> beam/beam_emu.c:1177: error: label 'lb_hipe_call_count' used but not
> defined
> make[3]: *** [obj/i386-apple-darwin10.7.0/opt/smp/beam_emu.o] Error 1
>
> *With Hipe:* ./otp_build configure --enable-darwin-64bit
>  --prefix=/Users/travis/opt/erlang
>
> gcc  -mdynamic-no-pic -m64 -m64 -g  -O3 -fomit-frame-pointer
> -I/Users/travis/src2/foss/otp/erts/i386-apple-darwin10.7.0  -no-cpp-precomp
>  -D_XOPEN_SOURCE -DERTS_SMP -DHAVE_CONFIG_H -Wall -Wstrict-prototypes
> -Wmissing-prototypes -Wdeclaration-after-statement -DUSE_THREADS
> -D_THREAD_SAFE -D_REENTRANT -DPOSIX_THREADS
>  -Ii386-apple-darwin10.7.0/opt/smp -Ibeam -Isys/unix -Isys/common
> -Ii386-apple-darwin10.7.0 -Izlib  -Ipcre -Ihipe -I../include
> -I../include/i386-apple-darwin10.7.0 -I../include/internal
> -I../include/internal/i386-apple-darwin10.7.0 -c beam/erl_bif_info.c -o
> obj/i386-apple-darwin10.7.0/opt/smp/erl_bif_info.o
> beam/erl_bif_info.c: In function 'system_info_1':
> beam/erl_bif_info.c:2003: error: 'am_amd64' undeclared (first use in this
> function)
> beam/erl_bif_info.c:2003: error: (Each undeclared identifier is reported
> only once
> beam/erl_bif_info.c:2003: error: for each function it appears in.)
>
> I can build 32 bit fine, but I need 64 bit for couchdb. Any ideas?
>
> Thanks.
>
> tj
> --
> *Travis Jensen*
> ***
> *Read the Software Maven @ http://softwaremaven.innerbrane.com/
> Read my LinkedIn profile @ http://www.linkedin.com/in/travisjensen
> Read my Twitter mumblings @ http://twitter.com/SoftwareMaven
> Send me email @ 
>
> **What kind of guy calls himself the Software Maven???**
>
>
> _______________________________________________
> erlang-questions mailing list
> 
> http://erlang.org/mailman/listinfo/erlang-questions
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20110506/2e4679e8/attachment.html>


More information about the erlang-questions mailing list