[erlang-questions] Building OTP on Mac OSX Lion

Frank Goenninger <>
Fri Aug 19 21:23:51 CEST 2011


OOPS ... That should be:

-X-X-X-
INSTALLDIR=/opt/langtools/erlang
SRCDIR=/opt/langtools/packages/erlang/src/otp_src_R14B03

PWD=`pwd`
PATH=$PATH:.

cd $SRCDIR

OPTS="--enable-smp-support"
OPTS=$OPTS" --enable-sctp"
OPTS=$OPTS" --enable-hipe --enable-native-libs"
OPTS=$OPTS"  --enable-shared-zlib" 
OPTS=$OPTS"  --enable-darwin-64bit"
OPTS=$OPTS"  --enable-threads"
OPTS=$OPTS"  --prefix=$INSTALLDIR"

echo "*** Running configure with the following options:"
echo
echo $OPTS
echo
echo "*** ..."

echo "Press RETURN to continue !"
read


configure $OPTS
make && sudo make install
cd $PWD

-X-X-X-

;-)

Frank


Am 19.08.2011 um 21:22 schrieb Frank Goenninger:

> FWIW, I run the following script to build Erlang/OTP
> 
> -X-X-X-
> INSTALLDIR=/opt/langtools/erlang
> SRCDIR=/opt/langtools/packages/erlang/src/otp_src_R14B03
> 
> PWD=`pwd`
> PATH=$PATH:.
> 
> cd $SRCDIR
> 
> OPTS="--enable-smp-support"
> OPTS=$OPTS" --enable-sctp"
> OPTS=$OPTS" --enable-hipe --enable-native-libs"
> OPTS=$OPTS"  --enable-shared-zlib" 
> OPTS=$OPTS"  --enable-darwin-64bit"
> OPTS=$OPTS"  --enable-threads"
> OPTS=$OPTS"  --prefix=$INSTALLDIR"
> 
> echo "*** Running configure with the following options:"
> echo
> echo $OPTS
> echo
> echo "*** ..."
> 
> echo "Press RETURN to continue !"
>  /opt/langtools/packages/erlang/src
> $ sudo more run-configure 
> INSTALLDIR=/opt/langtools/erlang
> SRCDIR=/opt/langtools/packages/erlang/src/otp_src_R14B03
> 
> PWD=`pwd`
> PATH=$PATH:.
> 
> cd $SRCDIR
> 
> OPTS="--enable-smp-support"
> OPTS=$OPTS" --enable-sctp"
> OPTS=$OPTS" --enable-hipe --enable-native-libs"
> OPTS=$OPTS"  --enable-shared-zlib" 
> OPTS=$OPTS"  --enable-darwin-64bit"
> OPTS=$OPTS"  --enable-threads"
> OPTS=$OPTS"  --prefix=$INSTALLDIR"
> 
> echo "*** Running configure with the following options:"
> echo
> echo $OPTS
> echo
> echo "*** ..."
> 
> echo "Press RETURN to continue !"
> read
> 
> 
> configure $OPTS
> make && sudo make install
> cd $PWD
> 
> -X-X-X-
> 
> HTH,
> 
> Frank
> 
> Am 19.08.2011 um 21:17 schrieb Parnell Springmeyer:
> 
>>> Old Signed by an unknown key
>> 
>> I had trouble building on Lion using the GCC-LLVM binaries, I just
>> deferred to the plain GCC binaries (using the CC,CXX, etc... flags).
>> 
>> Not sure if that is your problem though since your error is happening
>> with hipe and mine was a different build error!
>> 
>> Patrick J Newton <> writes:
>> 
>>> 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
>>> 
>> 
>> -- 
>> Parnell "ixmatus" Springmeyer (http://ixmat.us)
>> 
>> * Unknown Key
>> * 0x48D4F38B(L)
>> _______________________________________________
>> erlang-questions mailing list
>> 
>> http://erlang.org/mailman/listinfo/erlang-questions
> 




More information about the erlang-questions mailing list