[erlang-questions] Compiling R16B on Mac OS X Mountain Lion
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: *** [../priv/bin/x86_64-apple-darwin12.2.0/memsup] Error 1
This is my configure:
./configure --enable-smp-support --enable-threads --enable-kernel-poll
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.
Ubiquity - A little bit forward
Via Teodosio 65 - 20131, Milano
Fisso: +39 02 288584.36 - Fax: +39 02 2829795
More information about the erlang-questions