This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Fine tuning gcc build to machine specific properties
- From: Brian Dessent <brian at dessent dot net>
- To: Ted Byers <r dot ted dot byers at rogers dot com>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Sun, 02 Sep 2007 23:32:55 -0700
- Subject: Re: Fine tuning gcc build to machine specific properties
- References: <947092.81130.qm@web88301.mail.re4.yahoo.com>
- Reply-to: fortran at gcc dot gnu dot org
Ted Byers wrote:
> tests using the high performance library passed. Now,
> doing exactly the same thing, make dies half way
> through at link time for one of the tests half way
> through make complaining that -lg2c doesn't exist.
> But it does, obviously, since make using gcc v 3.4.4
> found it. Where do I look for a fix to this? gcc v
> 3.4.4 must have had something hard coded into it to
> tell it where this library is, because I didn't tell
> it where to look. I didn't even know this library
> existed the first time I built the AMD acml examples.
> My guess, from what I saw today, is that my current
> build of gcc v 4.2.1 doesn't have this information
> built in. I assume that is this information was in
> either environment variables or in the GnuMakefile, my
> attempt at compiling the examples using gcc v 4.2.1
> would have succeeded.
libg2c was part of g77 but g77 no longer exists in gcc 4.x, it was
replaced by the much more modern gfortran. It's not a matter of not
finding the library, it just doesn't exist. I'd say it's a bug in the
Makefile for assuming gcc 3.x. The fortran list will be able to give
you more details.
Brian