LinuxQuestions.org
Visit Jeremy's Blog.
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 12-16-2014, 02:27 AM   #1
ethervoid
LQ Newbie
 
Registered: Dec 2014
Posts: 2

Rep: Reputation: Disabled
Compilation error in GCC Pass 1


Hi everybody!!

First of all say hello, im new here

This is my first time trying to compile Linux from Scratch

I'm doing it using a Vagrant machine and i'm getting this error while i'm trying to compile GCC (Pass 1 in the book)

stdoutput
Code:
checking for x86_64-lfs-linux-gnu-strip... /tools/x86_64-lfs-linux-gnu/bin/strip
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for --enable-version-specific-runtime-libs... no
checking whether to enable maintainer-specific portions of Makefiles... no
checking for x86_64-lfs-linux-gnu-gcc... /mnt/lfs/sources/7.5/gcc-build/./gcc/xgcc -B/mnt/lfs/sources/7.5/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 C compiler default output file name...
configure: error: in `/mnt/lfs/sources/7.5/gcc-build/x86_64-lfs-linux-gnu/libmudflap':
configure: error: C compiler cannot create executables
See `config.log' for more details.
make[1]: *** [configure-target-libmudflap] Error 1
make[1]: Leaving directory `/mnt/lfs/sources/7.5/gcc-build'
make: *** [all] Error 2
config.log
Code:
configure:3275: /mnt/lfs/sources/7.5/gcc-build/./gcc/xgcc -B/mnt/lfs/sources/7.5/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    -g -O2   conftest.c  >&5
/tools/x86_64-lfs-linux-gnu/bin/ld: cannot find crt1.o: No such file or directory
/tools/x86_64-lfs-linux-gnu/bin/ld: cannot find crti.o: No such file or directory
/tools/x86_64-lfs-linux-gnu/bin/ld: cannot find -lc
/tools/x86_64-lfs-linux-gnu/bin/ld: cannot find crtn.o: No such file or directory
collect2: error: ld returned 1 exit status
configure:3279: $? = 1
configure:3316: result:
I've been reading all the post related but i can't understand why is trying to use libc file (crt1, crti...) if glibc is not installed yet

Thank you
 
Old 12-16-2014, 11:55 AM   #2
veerain
Senior Member
 
Registered: Mar 2005
Location: Earth bound to Helios
Distribution: Custom
Posts: 2,524

Rep: Reputation: 319Reputation: 319Reputation: 319Reputation: 319
1) Which LFS Version you are building

2) Which gcc version

3) While configuring gcc disable libmudflap
 
Old 12-16-2014, 12:56 PM   #3
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
Hi

Can you post the output of the version script
http://www.linuxfromscratch.org/lfs/.../hostreqs.html

And also is there a reason for "/mnt/lfs/sources/7.5/gcc-build/"??

what is the output of echo $LFS
 
1 members found this post helpful.
Old 12-16-2014, 03:23 PM   #4
ethervoid
LQ Newbie
 
Registered: Dec 2014
Posts: 2

Original Poster
Rep: Reputation: Disabled
I've been looking for the --disable-libmudflap and i noticed that i'm reading the 7.6 version of the book (the last stable) while i'm using the packages from the 7.5 version that include that flag.

Thank you all
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[SOLVED] Gcc error building tools on 7.4.rc1 chapter 5.10. GCC-4.8.1 - Pass 2 Keith Hedger Linux From Scratch 3 08-29-2013 11:30 AM
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 11:48 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