LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This 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


Reply
  Search this Thread
Old 02-16-2016, 12:22 PM   #1
herve49
LQ Newbie
 
Registered: Feb 2016
Distribution: PCLinuxOS
Posts: 16

Rep: Reputation: Disabled
Smile GCC 5.2.0 - pass 1 - compilation failed


Hello

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 :
Quote:
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-mandriva-linux-gnu/4.9.2/lto-wrapper
Target: x86_64-mandriva-linux-gnu
Configured with: ../configure --prefix=/usr --libexecdir=/usr/lib --with-slibdir=/lib64 --with-bugurl=http://pclinuxos.com/ --mandir=/usr/share/man --infodir=/usr/share/info --enable-checking=release --enable-languages=c,c++,ada,fortran,objc,obj-c++,java --enable-linker-build-id --build=x86_64-mandriva-linux-gnu --host=x86_64-mandriva-linux-gnu --with-cpu=generic --with-system-zlib --enable-threads=posix --enable-shared --enable-objc-gc --enable-long-long --enable-__cxa_atexit --disable-libunwind-exceptions --enable-clocale=gnu --enable-java-awt=gtk --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --enable-gtk-cairo --disable-libjava-multilib --enable-ssp --disable-libssp --disable-werror --with-ppl --with-cloog --with-python-dir=/lib/python2.7/site-packages --enable-lto
I suppose the configure script (./configure) has recovered themselves from the host, many other options too.

The end of the make command is :
Quote:
make[3]: Leaving directory '/mnt/LFS/gcc_build/libcc1'
make[2]: Leaving directory '/mnt/LFS/gcc_build/libcc1'
Checking multilib configuration for libgcc...
mkdir -p -- x86_64-lfs-linux-gnu/libgcc
Configuring in x86_64-lfs-linux-gnu/libgcc
configure: creating cache ./config.cache
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-lfs-linux-gnu
checking for --enable-version-specific-runtime-libs... no
checking for a BSD-compatible install... /usr/bin/install -c
checking for gawk... gawk
checking for x86_64-lfs-linux-gnu-ar... x86_64-lfs-linux-gnu-ar
checking for x86_64-lfs-linux-gnu-lipo... x86_64-lfs-linux-gnu-lipo
checking for x86_64-lfs-linux-gnu-nm... /mnt/LFS/gcc_build/./gcc/nm
checking for x86_64-lfs-linux-gnu-ranlib... x86_64-lfs-linux-gnu-ranlib
checking for x86_64-lfs-linux-gnu-strip... x86_64-lfs-linux-gnu-strip
checking whether ln -s works... yes
checking for x86_64-lfs-linux-gnu-gcc... /mnt/LFS/gcc_build/./gcc/xgcc -B/mnt/LFS/gcc_build/./gcc/ -B/tools/x86_64-lfs-linux-gnu/bin/ -B/tools/x86_64-lfs-linux-gnu/lib/ -isystem /tools/x86_64-lfs-linux-gnu/include -isystem /tools/x86_64-lfs-linux-gnu/sys-include
checking for suffix of object files... configure: error: in `/mnt/LFS/gcc_build/x86_64-lfs-linux-gnu/libgcc':
configure: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.
Makefile:12141: recipe for target 'configure-target-libgcc' failed
make[1]: *** [configure-target-libgcc] Error 1
make[1]: Leaving directory '/mnt/LFS/gcc_build'
Makefile:860: recipe for target 'all' failed
make: *** [all] Error 2
lfs:/mnt/LFS/gcc_build$
I attach the config.log if needed, and the script created for the command ./configure

The was the problem before i had supposed gcc5.2.0 has a bug and the problem was the same with gcc5.3.0.

If you have ideas ....

Thanks in advance

Herve49
Attached Files
File Type: log config.log (28.1 KB, 17 views)
File Type: txt configure.txt (508 Bytes, 16 views)
 
Old 02-16-2016, 12:52 PM   #2
kcirick
Member
 
Registered: Dec 2006
Distribution: Slackware 14.1; LFS 7.9-Systemd; Debian Jessie
Posts: 169

Rep: Reputation: 55
The error log seems to be the same as in the post here: http://www.linuxquestions.org/questi...fs-4175558261/

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)?
 
Old 02-16-2016, 02:49 PM   #3
herve49
LQ Newbie
 
Registered: Feb 2016
Distribution: PCLinuxOS
Posts: 16

Original Poster
Rep: Reputation: Disabled
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
Attached Thumbnails
Click image for larger version

Name:	source_gcc_directory.png
Views:	27
Size:	174.3 KB
ID:	20860  
 
Old 02-16-2016, 05:12 PM   #4
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,150

Rep: Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856
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.
 
Old 02-17-2016, 05:06 AM   #5
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
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

Last edited by spiky0011; 02-17-2016 at 05:10 AM.
 
Old 02-17-2016, 07:00 AM   #6
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,150

Rep: Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856
Quote:
Originally Posted by spiky0011 View Post
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.

Didn't know 7.9 was out yet.
 
Old 02-17-2016, 07:17 AM   #7
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Debian
Posts: 2,511
Blog Entries: 1

Rep: Reputation: 412Reputation: 412Reputation: 412Reputation: 412Reputation: 412
yea it,s rc but uses 5.3 gcc
 
Old 02-17-2016, 08:38 AM   #8
herve49
LQ Newbie
 
Registered: Feb 2016
Distribution: PCLinuxOS
Posts: 16

Original Poster
Rep: Reputation: Disabled
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
 
Old 02-17-2016, 08:39 AM   #9
kcirick
Member
 
Registered: Dec 2006
Distribution: Slackware 14.1; LFS 7.9-Systemd; Debian Jessie
Posts: 169

Rep: Reputation: 55
Quote:
Originally Posted by herve49 View Post
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.
 
Old 02-17-2016, 09:07 AM   #10
herve49
LQ Newbie
 
Registered: Feb 2016
Distribution: PCLinuxOS
Posts: 16

Original Poster
Rep: Reputation: Disabled
Kcirik

Thanks for your reply.

Yes PCLinuxOS is a fork of Mandriva, the maintainer is Bill Reynolds (alias Textar) : he was before the year 2000 (?) at Mandriva.

To fellow your advice, i will change the host OS (on another partition).
Please, have YOU a preference ?

I don't like .deb based OS's.
If you have a preference for a rpm based OS, i will try to create the LFS OS.

Herve49
 
Old 02-17-2016, 09:22 AM   #11
kcirick
Member
 
Registered: Dec 2006
Distribution: Slackware 14.1; LFS 7.9-Systemd; Debian Jessie
Posts: 169

Rep: Reputation: 55
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.
 
Old 02-17-2016, 09:38 AM   #12
herve49
LQ Newbie
 
Registered: Feb 2016
Distribution: PCLinuxOS
Posts: 16

Original Poster
Rep: Reputation: Disabled
Very thanks Kcirik

I will try with Slackware with the hope all will be pretty during and after the install.

In the past, i had try to install Debian, Linuxmint, Slackware,then Redhat, Suze, but i'm always fast returned to PCLinuxOS.

Herve49
 
Old 02-17-2016, 10:36 AM   #13
herve49
LQ Newbie
 
Registered: Feb 2016
Distribution: PCLinuxOS
Posts: 16

Original Poster
Rep: Reputation: Disabled
Just a last question.

Can I built LFS in a virtual machine ?

To be more clear : is it possible to build LFS in a Slack installed in VirtualBox ?

Herve49
 
Old 02-17-2016, 10:37 AM   #14
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,150

Rep: Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856
Quote:
Originally Posted by herve49 View Post
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.
 
Old 02-17-2016, 11:51 AM   #15
kcirick
Member
 
Registered: Dec 2006
Distribution: Slackware 14.1; LFS 7.9-Systemd; Debian Jessie
Posts: 169

Rep: Reputation: 55
Quote:
Originally Posted by herve49 View Post
Just a last question.

Can I built LFS in a virtual machine ?

To be more clear : is it possible to build LFS in a Slack installed in VirtualBox ?

Herve49
That should be fine, but then your built LFS system will stay in VirtualBox.

Good luck!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
GCC 5.3.0 - pass 1 - compilation failed herve49 Linux From Scratch 17 02-16-2016 09:31 AM
[SOLVED] Compilation error in GCC Pass 1 ethervoid Linux From Scratch 3 12-16-2014 03:23 PM
GCC 4.7.1 Pass 1 Errors when preparing for compilation SirWhy Linux From Scratch 6 08-06-2012 01:43 PM
[SOLVED] 5.5 GCC-4.5.1 - Pass 1 - c99 mode compilation error - openSUSE (host) linuxquestions2010 Linux From Scratch 5 11-17-2010 07:58 AM
5.4. GCC-4.0.3 - Pass 1 compilation error :( gothicbob Linux From Scratch 1 08-06-2007 05:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 08:33 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration