-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 4/12/11 6:11 AM, Ivan Glushkov wrote:
> Hi,
> 
> I try to compile small program using make and root5 package from fink. During 
> compilation for all main root libraries I receive:
> 
> ..
> ld: warning: in /sw/lib/root/libCore.dylib, file was built for i386 which is 
> not the architecture being linked (x86_64) 
> ..
> 
> so, how can I resolve this problem? Can I compile only the root5 libraries in 
> x86_64 or should reinstall the whole fink installation?
> 
>       Cheers,
>       Ivan
> 
>> sw_vers
> ProductName:  Mac OS X
> ProductVersion:       10.6.7
> BuildVersion: 10J869
>> fink -V
> Package manager version: 0.29.21
> Distribution version: selfupdate-rsync Tue Apr 12 10:11:52 2011, 10.6, i386
> Trees: local/main stable/main stable/crypto unstable/main unstable/crypto
> 
> 
> 

A reinstall probably isn't necessary.

(To use Fink build _just_ root5 as x86_64 would require either
bootstrapping a new Fink distribution in a different tree--this can be
done.)

The problem here is that Apple's build tools default to x86_64, unless
you tell them not to, e.g by specifying "-arch i386".

Using the PATH setting from

http://www.finkproject.org/faq/usage-general.php?phpLang=en#compile-myself

will put Fink's compiler wrapper scripts, which specify the -arch flag
appropriately, at the head of the PATH, and your builds will use those.
- -- 
Alexander Hansen, Ph.D.
Fink User Liaison
http://finkakh.wordpress.com/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk2kQQ4ACgkQB8UpO3rKjQ8ZHgCeLJI7IX0E7wlNhyU9bC/RUEnt
ppwAn2tn9MAH9u1eIGwNmExJeVkPCFwY
=Yybw
-----END PGP SIGNATURE-----

------------------------------------------------------------------------------
Forrester Wave Report - Recovery time is now measured in hours and minutes
not days. Key insights are discussed in the 2010 Forrester Wave Report as
part of an in-depth evaluation of disaster recovery service providers.
Forrester found the best-in-class provider in terms of services and vision.
Read this report now!  http://p.sf.net/sfu/ibm-webcastpromo
_______________________________________________
Fink-beginners mailing list
[email protected]
List archive:
http://news.gmane.org/gmane.os.apple.fink.beginners
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-beginners

Reply via email to