problem with gcc compilation!
Hi,
i'm making my one distribution by using the LFS book version 6.4 and i have a problem with the building of gcc ! in fact it needs gmp and mpfr. i've download them but can't build them because of errors!! Somebody help me !:( |
Hi -
In the future, please try to give more details, including: * LFS version, and where you got it * Platform specifics * GCC version * the exact text of your error message(s) * etc. But to get past this problem, perhaps the easiest thing might be to just download GCC from here: http://www.linuxfromscratch.org/blfs...neral/gcc.html 'Hope that helps .. PSM |
when building gcc
**************************************************************** checking for correct version of gmp.h... no configure: error: Building GCC requires GMP 4.1+ and MPFR 2.3.0+. Try the --with-gmp and/or --with-mpfr options to specify their locations. Copies of these libraries' source code can be found at their respective hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/. See also http://gcc.gnu.org/install/prerequisites.html for additional info. If you obtained GMP and/or MPFR from a vendor distribution package, make sure that you have installed both the libraries and the header files. They may be located in separate packages. ******************************************************************** when building gmp checking for suitable m4... configure: error: No usable m4 in $PATH or /usr/5bin (see config.log for reasons). ********************************************************************************* lfs@ametchia:/mnt/lfs/sources/gmp$ echo $PATH /tools/bin:/bin:/usr/bin |
Hi,
I have to assume you are stuck at chapter 5.5.1 (please tell us this information). Did you install both GMP and MPFR as shown in this chapter? In short: - From your sources dir ($LFS/sources) unpack gcc, - enter the created gcc dir, - unpack and move both GMP and MPFR as shown in the book, - follow the rest of the chapter starting with: mkdir -v ../gcc-build cd ../gcc-build Hope this helps. |
Thank you guys!
*LFS version : 6.4 download from a search with google * Platform specifics : Linux ametchia 2.6.32-21-generic #32-Ubuntu SMP Fri Apr 16 08:10:02 UTC 2010 i686 GNU/Linux * GCC version : gcc-4.1.2 yes druuna, it is at chapter 5.5.1. i've download the gcc from http://www.linuxfromscratch.org/blfs...neral/gcc.html and i've build it!! now it's the make command which generate errors! make[2]: execvp: touch: Too many levels of symbolic links make[2]: *** [stamp-picdir] Error 127 make[2]: Leaving directory `/mnt/lfs/sources/gcc-build/libiberty' make[1]: *** [all-libiberty] Error 2 make[1]: Leaving directory `/mnt/lfs/sources/gcc-build' make: *** [all] Error 2 |
Here are my gmp and mpfr version
gmp-4.2.4.tar.bz2 mpfr-2.3.2.tar.bz2 is them alright? |
Hi,
Do _not_ use BLFS packages when building LFS!! Just follow the steps I mentioned in post #4 (i.e.: follow the book!). Remove that what you have done so far, including the gcc dir and the gcc build dir, and start at the top of chapter 5.5. Hope this helps. |
Quote:
you are not supposed to build gmp and mpfr separately. Just untar them into gcc's source directory and rename them as stated in the book. The only configure command that you run is gcc's configure. It will automatically configure gmp and mpfr, too. |
LFS 6.4? You should use either 6.6 or SVN. Preferably SVN.
Quote:
|
Hi,
Quote:
Quote:
The OP is setting up the temporary environment (LFS chapter 5). Gettext and grep are installed later in that chapter (the order in which things are installed are for a specific reason), PAM and PCRE aren't even part of LFS (they are BLFS specific). @freemanpolys: Just follow the book and all will be fine. Deviating from the book will get you in to trouble in the long run. If you have specific issues, just ask! Hope this helps. |
Quote:
Quote:
And while PAM & PCRE are not part of LFS, that means nothing. Also, MPFR & GMP are in LFS. And finally, if you're installing 6.6, remember to use Zlib 1.2.5 (instead of 1.2.4, which does not exist on the maintainers site), and change this line (6.11, installing zlib) Code:
ln -sfv ../../lib/libz.so.1.2.4 /usr/lib/libz.so Code:
ln -sfv ../../lib/libz.so.1.2.5 /usr/lib/libz.so |
Hi,
Quote:
I don't get what you are trying to say about chrooted environments and BLFS and window managers. The OP clearly isn't at that point yet, so why bother with BLFS packages and workarounds that might or might not work? Quote:
Lets stay on topic here. |
Quote:
EDIT: EMACS can really do it. With a little help with EMACS-W3M. |
hi
I've build gcc packet! but i don't have the library libgcc.a in my gcc-build directory! is everything ok? the result is that i can't create the soft link like this : ln -vs libgcc.a `gcc -print-libgcc-file-name | \ sed 's/libgcc/&_eh/'` here is the last output of the make install command: make[3]: Leaving directory `/mnt/lfs/sources/gcc-build/i686-pc-linux-gnu/libiberty' make[3]: Entering directory `/mnt/lfs/sources/gcc-build/i686-pc-linux-gnu/libiberty/testsuite' make[3]: Nothing to be done for `install'. make[3]: Leaving directory `/mnt/lfs/sources/gcc-build/i686-pc-linux-gnu/libiberty/testsuite' make[2]: Leaving directory `/mnt/lfs/sources/gcc-build/i686-pc-linux-gnu/libiberty' make[1]: Leaving directory `/mnt/lfs/sources/gcc-build' |
Hi,
Assuming that you are still working on LFS 6.4, gcc pass 1 chapter 5.5.1, first a few questions: - Did anything go wrong with the ./configure or the make steps? - Is the output posted (the make install step) all the output that was shown? - Did you do all the commands (except the mpfr and gmp steps) from the gcc-build directory ($LFS/sources/gcc-build, and not $LFS/sources/gcc-4.3.2)? - Did you do as I suggested and use the LFS packages (and _not_ the blfs packages)? |
All times are GMT -5. The time now is 08:12 PM. |