This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Re: Problem with building gcc 4.9.0 (libstdc++)


Actually, the version doesn't matter except it should be greater than 4.8.

I've already read

https://gcc.gnu.org/wiki/FAQ#configure_suffix

but actually there is no answer for my case since I do have mpc, gmp and
mpfr installed (correctly at least as make check claimed for each of these
three).
If it didn't find some libs, I understand that I would have checked the
option --with-... and check the paths but now it seems like installing one
of the internal (for gcc) packages stdc++ failed.

So, you recommend to install mpc, gmp and mpfr once again using
prerequisites?

> On 8 August 2014 10:56, Jonathan Wakely wrote:
>> On 8 August 2014 10:54, Kirill Voronin wrote:
>>>
>>> I'm trying to build gcc 4.9.0 for linux (OS Red Hat, very old version).
>
> Also, any reason why you are not using 4.9.1 instead?
>
>>> I've installed manually mpc, gmp and mpfr before running ./configure
>>>
>>> Configure line:
>>> ../gcc-4.9.0/configure --prefix=/usr/new/gcc_install --enable-shared
>>> --with-gmp=/usr/new/gmp_install --with-mpfr=/usr/new/mpfc_install
>>> --with-mpc=/usr/new/mpc_install
>>>
>>> and it works fine.
>>>
>>> But then I tried to make and got the following error:
>>>
>>> checking for suffix of object files... configure: error: in
>>> `/ifs/home/icmmg/voronin/pardiso_proekt/pardiso_project/new/gcc_dir/x86_64-unknown-linux-gnu/libgcc':
>>> configure: error: cannot compute suffix of object files: cannot compile
>>
>> https://gcc.gnu.org/wiki/FAQ#configure_suffix
>>
>> Follow http://gcc.gnu.org/wiki/InstallingGCC
>
> Specifically, do not install GMP, MPFR and MPC separately, use the
> download_prerequisites script.
>


-- 



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]