Linux From ScratchThis Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
As requested in my previous thread "gcc 5.3.0 pass 1 compilation failed", i have erased all files and directories in $LFS and have make new compilations of binutils (success) and gcc 5.2.0 (failed)
To give answer to all previous questions :
output of versions installed on the host :
Quote:
[root@localhost ~]# ./version_check
bash, version 4.3.33(1)-release
/bin/sh -> /bin/bash
Binutils: (GNU Binutils) 2.24
bison (GNU Bison) 3.0.4
/usr/bin/yacc -> /usr/bin/yacc.bison
bzip2, Version 1.0.6, 6-Sept-2010.
Coreutils: 8.24
diff (GNU diffutils) 3.3
find (GNU findutils) 4.6.0
GNU Awk 4.1.2, API: 1.1 (GNU MPFR 3.1.3-p5, GNU MP 6.0.0)
/usr/bin/awk -> /bin/gawk
gcc (GCC) 4.9.2
g++ (GCC) 4.9.2
(GNU libc) 2.20
grep (GNU grep) 2.23
gzip 1.6
Linux version 4.4.1-pclos1 (tex@localhost.localdomain) (gcc version 4.9.2 (GCC) ) #1 SMP Sun Jan 31 20:10:02 CST 2016
m4 (GNU M4) 1.4.16
GNU Make 4.0
GNU patch 2.7.5
Perl version='5.12.3';
sed (GNU sed) 4.2.2
tar (GNU tar) 1.28
makeinfo (GNU texinfo) 4.13
xz (XZ Utils) 5.2.2
g++ compilation OK
Checking library :
Quote:
[root@localhost ~]# ./Library_check
libgmp.la: not found
libmpfr.la: not found
libmpc.la: not found
In the config.log (in $LFS/gcc_build :
Before running make : no "--with-cloog"
After running make : "--with-cloog" was written by ???
Extracted lines are :
This particular case was related to "steps involving mpfr, gmp, and mpc". Can you double check you did this correctly (unpacking these three packages within gcc source directory)?
Sorry for the late response : it was lunch time (abendessen in german).
That's exactly the same error (only the makefile line is not the same).
steps involving mpfr, gmp, mpc was correctly made, and isl.
I send attached a print screen of the directory of source/gcc
All lines of the book was respected (i have it in french, so there no problem to understand correctly)
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,150
Rep:
Looking at the attached files you are not following the book exactly, like you were told to do in a previous thread, this is what you should be doing:
Code:
mkdir -v ../gcc-build
cd ../gcc-build
Prepare GCC for compilation:
../gcc-5.2.0/configure \
--target=$LFS_TGT \
--prefix=/tools
...
If you have deviated by this already then you have probably made other mistakes/changes, start again and stick to the book, do not use any differant commands, even if its just changeing the build directory.
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,150
Rep:
Quote:
Originally Posted by spiky0011
Keith they have changed it now on 7.9 and the svn version
"mkdir -v build
cd build"
thats with gcc-5.3.0
opps 5.2.0 but dont think thats he problem
I didn't really think that would be the OP's problem it's just indicative of not following the LFS book exactly and would tend to indicate he may have made other changes, just trying to get him to follow instructions.
Sorry but you must explain the reason of your response.
From the book "mkdir -v ../gcc-build // cd ../gcc-build ", this party was made by me.
This commands create out of the sources directory a new directory gcc-build. I have
The only difference is gcc_build.
Would this the reason of the failed compilation ?
For the command line "Prepare GCC for compilation: ../gcc-5.2.0/configure \ ...."
what is the difference between enter the commands on the command line and enter the commands in an executable file ?
Sure my script contains ../sources/gcc5.2.0/configure instead ../gcc-5.2.0/configure.
The more important is to have the right path to acces the source directory.
Only if you say (and explain) this is not the same, i would heard.
Why an executable file ?
If i make an error and do restart from new, i have not to write another time this very long command line.
So i see not where is the problem between the book and what i have made.
Sorry for the late response : it was lunch time (abendessen in german).
That's exactly the same error (only the makefile line is not the same).
steps involving mpfr, gmp, mpc was correctly made, and isl.
I send attached a print screen of the directory of source/gcc
All lines of the book was respected (i have it in french, so there no problem to understand correctly)
Herve49
Abendessen = supper, no?
Anyway, there is no mention of isl in 7.8, so don't do that. Assuming you have done everything step by step correctly, and still giving errors, I'm starting to blame the host OS. I have no experience with PCLinuxOS. According to distrowatch it is a fork of Mandriva. Wasn't there some issues with Mandriva-derivative host with LFS (or was it Fedora, something like that).
If you haven't found a solution yet, my other suggestion would be to use Salix Live CD as a host. You don't need to install it, just use it as live system. I've used it to build LFS myself and had no problem out of the box.
Most of us are familiar and have found no problem with Slackware linux. My personal suggestion is Salix (Slackware-derivative), because it has Live CD option. (I can't access the Salix webpage because it is blocked - the firewall thinks it's a gaming website, just google for Salix OS). With Live CD, you don't need to install it, so you don't need to dedicate a separate partition for the host.
If you don't like live CD, then I'm sure everyone here would agree Slackware is the best choice.
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,150
Rep:
Quote:
Originally Posted by herve49
Hello to all
For Keith :
Sorry but you must explain the reason of your response.
From the book "mkdir -v ../gcc-build // cd ../gcc-build ", this party was made by me.
This commands create out of the sources directory a new directory gcc-build. I have
The only difference is gcc_build.
Would this the reason of the failed compilation ?
For the command line "Prepare GCC for compilation: ../gcc-5.2.0/configure \ ...."
what is the difference between enter the commands on the command line and enter the commands in an executable file ?
Sure my script contains ../sources/gcc5.2.0/configure instead ../gcc-5.2.0/configure.
The more important is to have the right path to acces the source directory.
Only if you say (and explain) this is not the same, i would heard.
Why an executable file ?
If i make an error and do restart from new, i have not to write another time this very long command line.
So i see not where is the problem between the book and what i have made.
I think it's better for me to leave my project.
Sorry
Herve49
The first few times you build LFS you are better off sticking strictly to the book, by all means put your commands in a script but run them from the command line first, to make sure there are no problems, scripting commands can introduce subtle problems that would be immediatly obvious when using the command line, we are trying to give you good advice but if you are going to ignore what experienced LFS builders are going to ttell you you wont get much joy with fixing your problems, it's up to you really, take the advice of the people who have done this a few times or dont.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.