problem building gcc-4.6.0

Tim Prince n8tm@aol.com
Tue Apr 5 13:06:00 GMT 2011


On 4/5/2011 2:22 AM, Jonathan Wakely wrote:

>>
>> 1)      Installed Cygwin from setup.exe. (success)
>>
>> 2)      Installed latest ver. of all prerequisites(viz. bash,
>> binutils, bzip2, gcc-core,  gzip, m4 and make) through cygwin setup.
>> (success)
But below you show the use of a much older version of gcc.  Leave out 
the gcc-3, install just a recent version of gcc-4 (if you want to be 
credible about your "latest" terminology)
>>
>> 3)      Installed gmp, mpfr, mpc in sequence(by building from source
>> code). (success)
Why not install them (devel versions required) by setup.exe?  This would 
save a long series of questions about how you configured them, where you 
installed them, did you remember the --with options...
>>
>> 4)      Configured gcc-4.6.0 with  --enable-languages=c (from the
>> build directory as instructed in the gcc site) (success)
>
> Did you run configure as "./configure" ?
> That is NOT supported, as clearly documented in the GCC installation
> instructions.
See, you've already convinced people you didn't follow instructions.
>
>> 5)      Build gcc-4.6.0 (error)
>>
>>
>>
>> Last few lines during building including error:
>>
>> cc1-checksum.o main.o  libbackend.a ../libcpp/libcpp.a
>> ../libdecnumber/libdecnumber.a ../libcpp/libc
>> pp.a -lintl  ../libiberty/libiberty.a ../libdecnumber/libdecnumber.a
>>   -lmpc -lmpfr -lgmp   -L../zlib -lz
>> /usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../i686-pc-cygwin/bin/ld:
>> cannot find -lmpc
>> /usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../i686-pc-cygwin/bin/ld:
>> cannot find -lmpfr
>> /usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../i686-pc-cygwin/bin/ld:
>> cannot find -lgmp
>
> Obviously this means it can't find the gmp, mpfr and mpc libraries.
>
> The simplest way to solve this is not to install gmp/mpfr/mpc
> separately but to let gcc build them itself.
>

You might save the step of making the integrated build of those 
libraries until you have dealt with the other problems.
-- 
Tim Prince



More information about the Gcc-help mailing list