[erlang-questions] Compiling R16B on Mac OS X Mountain Lion

Carlo Bertoldi carlo.bertoldi@REDACTED
Thu Mar 14 11:26:35 CET 2013

I've talked too early.
I have this error now:

make -f x86_64-apple-darwin12.2.0/Makefile TYPE=opt
gcc -m64 -m64  -o ../priv/bin/x86_64-apple-darwin12.2.0/memsup 
ld: warning: ignoring file 
../priv/obj/x86_64-apple-darwin12.2.0/memsup.o, file was built for i386 
which is not the architecture being linked (x86_64): 
Undefined symbols for architecture x86_64:
   "_main", referenced from:
       start in crt1.10.6.o
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
make[4]: *** [../priv/bin/x86_64-apple-darwin12.2.0/memsup] Error 1

This is my configure:
./configure --enable-smp-support --enable-threads --enable-kernel-poll 
--enable-darwin-64bit --enable-m64-build

The error happens with both the default compiler and the macports one.
If I omit --enable-m64-build, then sources are compiled with -m32, and 
the compilation works.


On 14/03/13 09:52, Carlo Bertoldi wrote:
> Thanks Patrik, unsetting the compiler flags solved my problem :)
> But still, sourcing were compiled with -m32.
> So I switched to gcc-4.5 included in MacPorts, and finally got the
> expected -m64.
> Cheers,
>   Carlo

Ubiquity - A little bit forward
*Carlo Bertoldi*
Via Teodosio 65 - 20131, Milano
Fisso: +39 02 288584.36 - Fax: +39 02 2829795
Email: carlo.bertoldi@REDACTED
Website: www.ubiquity.it

More information about the erlang-questions mailing list