Jérôme LELONG wrote:
> Hi,
> 
> I'll try to answer all the questions raised during the night.
> 
> I am running OS X 10.4.11.
> 
> Concerning gcc and ld, here are the informations
> 
> denali $ ld -v
> Apple Computer, Inc. version cctools-622.9~2

Here I get

costabel% ld -v
Apple Computer, Inc. version cctools-622.3.obj~2

Seeing that Jean-François has yet another version: cctools-622.8~4, we 
will probably have a hard time to figure out the exact details of what's 
wrong. I don't know where all these different versions come from. I 
think I have the latest "mainstream" xcode version installed on that 
machine (which I am not using for compiling any more, in general), and 
/usr/bin/ld was installed by DeveloperTools.pkg on 1 July 2006.

> denali $ gcc -v
> Using built-in specs.
> Target: i686-apple-darwin8
> Configured with: ../gcc-4.3.0/configure --prefix=/sw
> --prefix=/sw/lib/gcc4.3 --mandir=/sw/share/man
> --infodir=/sw/share/info --enable-languages=c,c++,fortran,objc,java
> --with-arch=nocona --with-tune=generic --build=i686-apple-darwin8
> --with-gmp=/sw --with-libiconv-prefix=/sw --with-system-zlib
> --x-includes=/usr/X11R6/include --x-libraries=/usr/X11R6/lib
> --disable-libjava-multilib
> Thread model: posix
> gcc version 4.3.0 (GCC)
> 
> denali $ which gcc
> /sw/bin/gcc

There is definitely something wrong here. /sw/bin/gcc should *never* 
invoke gcc-4.3, even if you have gcc43 installed. In fact, /sw/bin/gcc 
does not exist unless you have ccache-default installed, in which case 
it is a symlink to /sw/bin/ccache, and the latter redirects it to 
/usr/bin/gcc.

Try "dpkg -S bin/gcc" to see which Fink package installed /sw/bin/gcc on 
your machine. I bet you will see ccache-default. Also "ls -l 
/sw/bin/gcc" would be interesting. I have no idea how your /sw/bin/gcc 
could have become gcc-4.3, unless you did something manually to it yourself.

> Of course I can compile fftw3 if I make sure /usr/bin/gcc is called by
> the command gcc but then what is the point in making fftw3 depending
> on gcc4.3? It is still unclear how to handle this.

When "gcc" is invoked during package building, what is meant is always 
/usr/bin/gcc. If gcc-4.3 is meant, the command would have to be "gcc-4". 
The point for fftw3's dependency on gcc43 is not gcc, but gfortran, 
which does not come with OSX, but with gcc43.

-- 
Martin





-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Fink-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fink-users

Reply via email to