Re: Re: compiling gcc 5.x from the scratch: issues

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Dear Sirs, following your suggestions I checked again  https://gcc.gnu.org/wiki/InstallingGCC.

Key point was here: https://gcc.gnu.org/install/download.html (last passage)
"Likewise the GMP, MPFR and MPC libraries can be automatically built together with GCC. Unpack the GMP, MPFR and/or MPC source distributions in the directory containing the GCC sources and rename their directories to gmp, mpfr and mpc, respectively (or use symbolic links with the same name)."

Actually my assumption was that if I run download_prerequisites from /contrib, it will download everything and put it at right places; but actually it does not follow statement above (it does not create gmp, mpfr and mpc folder in main gcc package directory)
So I did it manually and copied files there.

Then, from a folder I am going to have gcc build, I run ../gcc_5_2_0_release/configure --prefix=/gcc_520obj --enable-languages=c,c++ --disablemultilib --disable-bootstrap --disable-shared --enable-shared=static 
Then invoked make

When it was completed, I made install using the following: make DESTDIR=$HOME/gcc_tmp/ install
Another problem was that I don't have sudo rights, so I cannot install gcc into standard folders; but installation into some other folder works for me.
And lastly, appended PATH & LD_LIBRARY_PATH.

In conclusion, key problem was in putting GMP, OMC and MPFR source files in right directories before build is stated. Other stuff is more or less trivial.
If you feel OK with that, this information might be added to guidelines (at least FAQ)

Thank you for your motivational advice, have a good day,
Best regards, Mikhail Mishurovskiy


------- Original Message -------
Sender : Jonathan Wakely<jwakely.gcc@xxxxxxxxx>
Date : Sep 09, 2015 18:21 (GMT+09:00)
Title : Re: compiling gcc 5.x from the scratch: issues

On 9 September 2015 at 09:50, Markus Trippelsdorf wrote:
> On 2015.09.09 at 08:36 +0000, Michael Mishourovsky wrote:
>>  At my work I would like to have recent gcc installed but i have no
>>  sudo rights to update the current gcc (its 4.4.7, and OS is redhat
>>  linux).
>>
>>  So I checked out latest version of gcc via svn, and following
>>  guidelines given at gcc webpage, tried to download prerequisites,
>>  configure gcc to be compiled into a separate folder and to start
>>  make. But got a lot of errors including errors in test files (that
>>  are easy to fix), errors during linkage (seems to be almost final
>>  step); eventually failed to  build it up. As it is supposed that this
>>  SW is extensively tested, could you tell me: whether someone tried to
>>  build latest gcc (say, gcc 5.1 or 5.2) from scratch and was succeed
>>  in this (if he/she follows the guidelines given at the gcc web-site?
>>  If possible, could you check -whether it is still possible to compile
>>  gcc or not and update guidelines, if something has been changed when
>>  time passes by?
>
> Please make sure that you use a build directory outside the gcc source
> tree.
> You may simply follow: https://gcc.gnu.org/install/
>
> If the issue still persists, please post the exact errors that you
> encounter.

Also https://gcc.gnu.org/wiki/InstallingGCC

Please don't cross-post to both the gcc and gcc-help lists, we have
separate lists for a reason not just so you have additional places to
email to. You're asking for help building GCC so your email is
off-topic on the gcc list.




[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux