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

Patrik Nyblom pan@REDACTED
Mon Mar 18 16:43:47 CET 2013


Hi!

On 03/14/2013 11:26 AM, Carlo Bertoldi wrote:
> 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 
> ../priv/obj/x86_64-apple-darwin12.2.0/memsup.o
> 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): 
> ../priv/obj/x86_64-apple-darwin12.2.0/memsup.o
> 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
>
Are you using macports gcc or apples llvm-wrapper in this case? If 
macports, did you install the +universal variant?

Could you also send the make output from where memsup.o was actually 
compiled?
> 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.
>
>  Carlo
Cheers,
/Patrik
>
>
> 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
>
>




More information about the erlang-questions mailing list