GCC 4.7.1 Pass 1 Errors when preparing for compilation
I've been following along fine with the LFS book until it's time to prepare GCC for compile.
I enter in this as the book says Code:
../gcc-4.7.1/configure \ Entire output Code:
checking build system type... i686-pc-linux-gnu Surely the code in the book can't be wrong and is missing something along the lines of Code:
--with-gmp...... |
You're right, the book is not wrong. See the note in the yellow box on that page of the book. This happens all the time. The tarballs for GCC, GMP, MPFR and MPC all should be present in your /sources directory. Then untar only the GCC tarball and change directories to its build directory (the standard compiling steps described in section 5.3). Then start copying and pasting the book's commands into your terminal. It will work.
P.S.: To me, this misunderstanding is being caused by the wording of the first paragraph on that page (just above the yellow box with the note). It appears to be telling us to unpack the tarballs of GMP, MPFR and MPC in the GCC build directory and rename them, as though we should stop and do that before proceeding. However, that paragraph is merely describing what the next steps do (immediately following the yellow box). |
Thank you.
So I should delete the ones I untarred (apart from gcc of course) and download the tarballs again and leave them packaged as is. Then go as the books says |
That's right, but the tarballs should still be there. Nothing happens to those when you untar them. Just delete the three build directories created when you untarred GMP, MPFR and MPC. Then start again with those tar and mv commands on page 34.
If you deleted the tarballs, then download them again. P.S.: I also would delete the build directory created by untarring GCC and just start over for GCC at the top of the page by untarring GCC again and changing directories to its build directory. Then go. |
Well now it's compiling, hopefully without a problem but it will be a while until I find out (about 40 mins, older hardware). Will post again if all goes well
|
So I left it to compile and when I came back this was on the terminal
Code:
checking whether ln -s works... yes |
Hi. Can you post the output of Version check as I see it dosn,t find gawk. I expect there will be other softsare required. Also what host are you using.
|
All times are GMT -5. The time now is 01:56 PM. |