GCC Version

Jeremy Huddleston jeremyhu at macports.org
Thu Jul 21 08:59:22 PDT 2011


On Jul 21, 2011, at 8:29 AM, Paul C wrote:

> Irritatingly both gcc45 and gcc46 fail with the following output...
> 
> checking for the correct version of gmp.h... yes
> checking for the correct version of mpfr.h... yes
> checking for the correct version of mpc.h... yes
> checking for the correct version of the gmp/mpfr/mpc libraries... no
> configure: error: Building GCC requires GMP 4.2+, MPFR 2.3.1+ and MPC 0.8.0+.
> Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
> their locations.

gcc45 does specify those --with-* options.
gcc46 doesn't build gfortran, so it shouldn't be checking for that.

Where are you getting your gcc45 and gcc46 ports from?

You're better off using clang than gcc, IMO.

> I stripped out those libs and let MacPorts download and compile them so not quite sure what's going on there. I would have thought the locations were fine as the header files were located correctly. :-/

Huh?


> 
> 
> On 21/07/11 15:57, Jason Swails wrote:
>> 
>> 
>> On Thu, Jul 21, 2011 at 10:45 AM, Paul C <crispy1975 at gmail.com
>> <mailto:crispy1975 at gmail.com>> wrote:
>> 
>>    Hi,
>> 
>>    The main reason for the switch to a newer version of gcc is that I
>>    cannot compile glib2 with using the port command, it fails towards
>>    the end of the compile. I'll give gcc_select a go with a new version
>>    of gcc and see what happens.
>> 
>> 
>> That seems like an issue with MacPorts itself.  If a newer gcc was
>> required, it would have built it as part of the dependencies and
>> automatically used it.  I also think MacPorts will force the build
>> process to use the XCode compilers (as it usually does for packages that
>> don't require a newer gcc or fortran).
>> 
>> That said, I don't know how well MacPorts supports the PowerPC
>> architectures (on Tiger/Leopard) anymore, and I don't have a machine to
>> test that on.
>> 
>> All the best,
>> Jason
>> 
>> --
>> Jason M. Swails
>> Quantum Theory Project,
>> University of Florida
>> Ph.D. Candidate
>> 352-392-4032
> _______________________________________________
> macports-users mailing list
> macports-users at lists.macosforge.org
> http://lists.macosforge.org/mailman/listinfo.cgi/macports-users
> 



More information about the macports-users mailing list