[6.7] Unable to build GCC-4.5.1
Hi all !
I'm trying to build a LFS usinf the v6.7 of the book and I'm stuck at chapter 5.5.1 where I have to build gcc. I'm using the liveCD and I've download the sources archives for v6.7, I'm not using sources from liveCD. So I have a gcc-4.5.1 directory which contains the sources. I've extracted gmp, mpc and mpfr in it. I've create a gcc-build directory, enter into this and type the following command : Code:
../gcc-4.5.1/configure \ Code:
checking for gmp.h... no Whats is wrong ? Thanks a lot for your help ! Julien |
Quote:
And I am not sure, you should change " $pwd ", like your configure line shows. ( Ref. § 5.5.1 ). .. |
Quote:
Thanks for your help |
Quote:
When you run '../gcc-4.5.1/configure .....' : then $(pwd) is actually the build/ folder. The gmp/ and mpfr/ <required-files> are copied to build/gmp/ and build/mpfr/ . Using $(pwd) also allows any naming for the build-gcc/ folder. ( build-gcc/ or gcc-build/, etc., your preferred naming will work.) .. |
GMP.h not found
I am building LFS 6.8 version. While installing gcc-4.5.2 I am getting an error like gmp.h header not found. Please tell me how to resolve this. My problem is similar to above but I didn't understand the solution given above.
:redface: Code:
checking if charset has consecutive values... yes |
Hi,
Although this looks similar and might have the same solution, it would be wise to start a new thread for this. For one, the above is LFS 6.7 and you are building LFS 6.8, they might (slightly) differ in the way things are done. This thread is also marked as [SOLVED]. You also need to give us a bit more info: - Which chapter are you working on (gcc is build 3 times, twice in chapter 5 and once in chapter 6), - Which host are you using (and if not the LFS liveCD, did you make it compliant), - Did you encounter any other problems before reaching this point, Assuming you are at chapter 5.5: - Did you extract the 3 packages (among which is gmp) in the correct location? - It looks like you did not create the gcc-build directory and work from there. How this is done is mentioned in the LFS book. Hope this helps. |
First of all I am grateful to you for your concern.
-> I am working in 5th chapter i.e. section 5.5 on building 1st pass of GCC 4.5.2. ->I am using Ubuntu 10.10 as my host. -> And till this point I haven't encountered any problems. -> Ya I have extracted the three packages i.e. MPC-0.8.2, MPFR-3.0.0 and and GMP-5.0.1 inside GCC directory. -> And about gcc-build directory, where should I create it. I am confused about it. I am installing the package from /mnt/lfs/sources/gcc-4.5.2. And if you need more information I can provide you. |
You should be in sources dir untar gcc cd into newly created dir then run commands as per book. FOLLOW THE BOOK
Code:
mkdir -v ../gcc-build |
Hi,
@babannasd: You mention using Ubuntu being your host, you did not answer my question about making it compliant. Did you do so? Not doing so will get you into trouble really fast..... Hope this helps. |
@Druuna:
But my friend is also doing the same project Linux From Scratch v6.8 in Debian 6.0 (SQUEEZE) which is compliant to the host system specified by LFS. He is also getting the same error no? |
@spiky0011:
Tell me the name of the directory in which I should create gcc-build exactly. Don't just show $ mkdir -v ../gcc-build specify its name. |
Hi,
Quote:
Debian (personal experience with: 6 and the previous stable and testing) _do_ need changes/additions to make it compliant. Quote:
The book assumes that you have unpacked the package and are standing in the newly created directory when you start a new building chapter. Mentioned here, bottom of the page. In this case: especially 3 a, b and c. Hope this helps. |
You have unpacked gcc then it creates a dir gcc 4.52 you then cd in to that dir then follow commands
Code:
mkdir ../gcc-build |
Please suggest me the version and flavor of Linux which I can use as host system for building LFS v6.8.I searched a lot about which host system I can use but I found nothing useful.......
|
Babannasd
why not use the LFS live cd it,s made for the job. http://www.linuxfromscratch.org/livecd/ |
hey I tried to search for torrent downloads of LFS Live cd as my connection drops regularly. But all the torrents were with 0 seeds and 0 peers. So tell me where I can download LFS 6.3?
|
Quote:
Hope this helps. PS: Why LFS 6.3 and not the latest stable LFS version? Or are you looking for the LiveCD version 6.3? |
Theres no one seeding the file thats the problem I have just checked
|
I am trying to download LFS LiveCD 6.3 not LFS 6.3. And the reason for choosing it is to use it as host system for building LFS 6.8 as it satisfies the host system requirements accurately. Now please tell me from where can I download it safely without any interrupts?
|
There is a link in post 15 there is ftp downloads
|
Hi,
I never had any toruble downloading from the LFS site (see the liveCD link in post #17). Are you sure that the unstable connection isn't you or your provider? |
@Druuna and @spiky0011:
Its k. At last I succeeded in downloading it. Thanks for the support. Meet again with more problems. |
Glad to help
|
All times are GMT -5. The time now is 05:20 PM. |