[erlang-questions] Building OTP on Mac OSX Lion

Patrick J Newton <>
Fri Aug 19 22:50:19 CEST 2011


Right, I've ensured a clean environment. I've even attempted the build from the tips of dev from the OTP git repository. Same result.

On Aug 19, 2011, at 4:45 PM, Dave Smith wrote:

> If CFLAGS=-O0, it should work. Make certain that you are starting from
> a fresh unpack (tar -xzf), as the Erlang source doesn't cleanup stuff
> properly between compiles with different flags/configure settings.
> 
> D.
> 
> On Fri, Aug 19, 2011 at 1:09 PM, Patrick J Newton
> <> wrote:
>> I'm trying to build R14B03 on mac osx line but am running into difficulties that I have been unable to work around. During make, there are failures during build of hipe_icode_type.erl. Any advice would be appreciated. Thanks.
>> 
>>> sw_vers
>> ProductName:    Mac OS X
>> ProductVersion: 10.7
>> BuildVersion:   11A511
>> 
>>> gcc -v
>> Using built-in specs.
>> Target: i686-apple-darwin11
>> Configured with: /private/var/tmp/llvmgcc42/llvmgcc42-2335.15~108/src/configure --disable-checking --enable-werror --prefix=/Developer/usr/llvm-gcc-4.2 --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-prefix=llvm- --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ --with-slibdir=/usr/lib --build=i686-apple-darwin11 --enable-llvm=/private/var/tmp/llvmgcc42/llvmgcc42-2335.15~108/dst-llvmCore/Developer/usr/local --program-prefix=i686-apple-darwin11- --host=x86_64-apple-darwin11 --target=i686-apple-darwin11 --with-gxx-include-dir=/usr/include/c++/4.2.1
>> Thread model: posix
>> gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2335.15.00)
>> 
>>> CFLAGS=-O0 ./configure --enable-darwin-64bit
>> 
>>>> 
>>> make
>> 
>>>> 
>> erlc -W  +debug_info +warn_unused_import +warn_missing_spec +warn_untyped_record -o../ebin hipe_icode_type.erl
>> ./hipe_icode_type.erl:62: redefining macro 'debug'
>> ./hipe_icode_type.erl:1414: function true/2 undefined
>> ./hipe_icode_type.erl:1427: function true/2 undefined
>> ./../flow/cfg.hrl:34: Warning: record cfg_info has field(s) without type information
>> make[3]: *** [../ebin/hipe_icode_type.beam] Error 1
>> make[2]: *** [opt] Error 2
>> make[1]: *** [opt] Error 2
>> make: *** [secondary_bootstrap_build] Error 2
>> 
>> 
>> 
>> _______________________________________________
>> erlang-questions mailing list
>> 
>> http://erlang.org/mailman/listinfo/erlang-questions
>> 




More information about the erlang-questions mailing list