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

(again, back to the list)

OK, now I figured out what I missed earlier.

I do indeed have gcc45 installed but my /sw/bin/gcc isn't from that.
It's from ccache-default, but still uses Apple's compiler:

$ ls -l /sw32/bin/gcc
lrwxr-xr-x  1 root  admin  16 Apr 26 18:46 /sw32/bin/gcc -> /sw32/bin/ccache

$ /sw32/bin/gcc --version
i686-apple-darwin10-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5666) (dot 3)
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Your /sw/bin/gcc, on the other hand, is presumably is a _link_ pointing
to the gcc from Fink's gcc45 package.  If this is something that you
did, get rid of that link.  We deliberately _don't_ put the executables
from fink's gcc* packages (at least with the standard names) in the PATH
because they don't behave exactly like Apple's compilers.

Then use "fink reinstall fink" to clear out the extra stuff I had you
add to compiler_wrapper, or other stuff won't build.

On 5/22/11 5:39 PM, Chan, Samuel F (334G) wrote:
> The result is:
> 
> ./compile 8sc.c
> /sw/bin:/sw/sbin:/bin:/usr/bin:/sbin:/usr/sbin:/usr/X11R6/bin
> gcc (GCC) 4.5.0
> Copyright (C) 2010 Free Software Foundation, Inc.
> This is free software; see the source for copying conditions.  There is NO
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
> 
> cc1: error: unrecognized command line option "-arch"
> make: *** [8sc.o] Error 1
> 
> 
> 
> 
> 
> 
> On 5/22/11 6:24 AM, "Alexander Hansen" <alexanderk.han...@gmail.com> wrote:
> 
> (going back to the -devel list for additional suggestions)
> 
> Try the following:
> 
> edit /sw/var/lib/fink/path-prefix-10.6/compiler_wrapper as a super-user
> (e.g. via "sudo nano /sw/var/lib/fink/path-prefix-10.6/compiler_wrapper"
> and insert a couple of lines.  Change
> 
> export PATH="$newpath"
> exec $compiler -arch i386 "$@"
> 
> to
> 
> export PATH="$newpath"
> printenv PATH
> $compiler --version
> exec $compiler -arch i386 "$@"
> 
> then try to build djbfft again.  The extra lines will provide additional
> diagnostic information.
> 

- -- 
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/

iEYEARECAAYFAk3ZjF0ACgkQB8UpO3rKjQ8KXwCgntzhj3rUv0zTx4EwZtDQTiBv
ij0An0eQGqYV3jD02raE3ou1k8UFRlYH
=BDwg
-----END PGP SIGNATURE-----

------------------------------------------------------------------------------
What Every C/C++ and Fortran developer Should Know!
Read this article and learn how Intel has extended the reach of its 
next-generation tools to help Windows* and Linux* C/C++ and Fortran 
developers boost performance applications - including clusters. 
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
Fink-devel mailing list
Fink-devel@lists.sourceforge.net
List archive:
http://news.gmane.org/gmane.os.apple.fink.devel
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-devel

Reply via email to