ATF-devel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: ATF under OSX problems



On Dec 16, 2010, at 10:54 AM, Julio Merino wrote:

> On Wed, Dec 15, 2010 at 11:20 PM, e <ekamperi%gmail.com@localhost> wrote:
>> Salute.
>> 
>> I just built ATF from pkgsrc-2010Q3 under OSX and then tried to build my 
>> test suite.
>> Here is what I got:
>> 
>> stathis:mathlib/fenv% make
>> g++ -c -o obj-fenv/t_extern.o t_extern.cpp -Wall -W -g -I../include 
>> -I/usr/opt/include -I/Users/stathis/pkg/include -L/usr/opt/lib 
>> -L/Users/stathis/pkg/lib
>> g++ -o t_extern obj-fenv/t_extern.o -Wall -W -g -I../include 
>> -I/usr/opt/include -I/Users/stathis/pkg/include -L/usr/opt/lib 
>> -L/Users/stathis/pkg/lib -latf-c++ -latf-c
>> ld: warning: directory '/usr/opt/lib' following -L not found
>> ld: warning: in /Users/stathis/pkg/lib/libatf-c++.dylib, file was built for 
>> i386 which is not the architecture being linked (x86_64)
>> ld: warning: in /Users/stathis/pkg/lib/libatf-c.dylib, file was built for 
>> i386 which is not the architecture being linked (x86_64)
> 
> You are trying to link the i386 version of atf to a 64-bit binary (and
> also note you have an invalid -L path).  Try passing -m32 to your
> build.
> 
> -- 
> Julio Merino

Using -m32 did the trick. Weird why gcc tried to produce a x86_64 binary when 
host is i386 though.

Thanks!
Stathis



Home | Main Index | Thread Index | Old Index