LinuxQuestions.org
Review your favorite Linux distribution.
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 01-28-2009, 06:49 PM   #1
Abdou_ENSI
LQ Newbie
 
Registered: Jan 2009
Posts: 3

Rep: Reputation: 0
Thumbs up unable to compile gcc 4.1.2 pass 1 version 6.3


I followed very carfully the instructions given in the book version 6.3 and i'm sure, i done all of them perfectualy, i tried many times to fix this problem but no results, the screen show me the same thing, please, if u have an unswer i will be glad...
thanks...

this is the error (in last 4 lines):

//////////////////////////////////////////////////////////////////////////

checking whether NLS is requested... no
checking what assembler to use... /tools/bin/as
checking what linker to use... /tools/x86_64-unknown-linux-gnu/bin/ld
checking what nm to use... /tools/bin/nm
checking what objdump to use... /tools/x86_64-unknown-linux-gnu/bin/objdump
checking assembler for .balign and .p2align... yes
checking assembler for .p2align with maximum skip... yes
checking assembler for working .subsection -1... yes
checking assembler for .weak... yes
checking assembler for .weakref... yes
checking assembler for .nsubspa comdat... no
checking assembler for .hidden... yes
checking linker for .hidden support... yes
checking assembler for .sleb128 and .uleb128... yes
checking assembler for eh_frame optimization... yes
checking assembler for section merging support... yes
checking assembler for COMDAT group support... yes
checking assembler for thread-local storage support... yes
checking linker -Bstatic/-Bdynamic option... yes
checking assembler for filds and fists mnemonics... yes
checking assembler for cmov syntax... no
checking assembler for GOTOFF in data... no
checking assembler for dwarf2 debug_line support... yes
checking assembler for buggy dwarf2 .file directive... no
checking assembler for --gdwarf2 option... yes
checking assembler for --gstabs option... yes
checking linker read-only and read-write section mixing... read-write
checking linker PT_GNU_EH_FRAME support... yes
checking linker position independent executable support... yes
checking linker --as-needed support... yes
checking linker --sysroot support... yes
checking __stack_chk_fail in target GNU C library... yes
Using ggc-page for garbage collection.
checking whether to enable maintainer-specific portions of Makefiles... no
Links are now set up to build a native compiler for x86_64-unknown-linux-gnu.
updating cache ./config.cache
configure: creating ./config.status
config.status: creating Makefile
config.status: creating gccbug
config.status: creating mklibgcc
config.status: creating libada-mk
config.status: creating auto-host.h
config.status: executing default commands
Bootstrapping the compiler
make[1]: Entering directory `/home/lfs/gcc-build/gcc-4.1.2/gcc'
make[1]: *** No rule to make target `bootstrap'. Stop.
make[1]: Leaving directory `/home/lfs/gcc-build/gcc-4.1.2/gcc'
make: *** [bootstrap] Error 2
lfs:~/gcc-build/gcc-4.1.2$
 
Old 01-29-2009, 02:36 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2017 CentOS6.9 CentOS7.3 + 50+ other Linux OS, for test only.
Posts: 16,735

Rep: Reputation: 3317Reputation: 3317Reputation: 3317Reputation: 3317Reputation: 3317Reputation: 3317Reputation: 3317Reputation: 3317Reputation: 3317Reputation: 3317Reputation: 3317
Welcome to LQ
Quote:
Entering directory `/home/lfs/gcc-build/gcc-4.1.2/gcc'
Sorry, this is wrong.

To build gcc-4.1.2 in /home/lfs/, you need two directories
in /home/lfs/

So we start from the very beginning :

1) cd /home/lfs/
1a) delete all gcc-4.1.2/, all gcc-build/
2) tar xvf gcc-4.1.2.tar.gz
3) mkdir gcc-build
Now you have the 2 directories, gcc-build/ , gcc-4.1.2/.
4) cd gcc-build
and in this empty directory outside gcc-4.1.2/ everything takes place.

A similar procedure is meant for binutils, so better do binutils again,
if it wasn't build correctly.
... And : binutils is to be rebuild before gcc ...
....

Last edited by knudfl; 01-29-2009 at 02:41 AM.
 
Old 01-30-2009, 12:28 PM   #3
Abdou_ENSI
LQ Newbie
 
Registered: Jan 2009
Posts: 3

Original Poster
Rep: Reputation: 0
Talking

Quote:
Originally Posted by knudfl View Post
Welcome to LQ

Sorry, this is wrong.

To build gcc-4.1.2 in /home/lfs/, you need two directories
in /home/lfs/

So we start from the very beginning :

1) cd /home/lfs/
1a) delete all gcc-4.1.2/, all gcc-build/
2) tar xvf gcc-4.1.2.tar.gz
3) mkdir gcc-build
Now you have the 2 directories, gcc-build/ , gcc-4.1.2/.
4) cd gcc-build
and in this empty directory outside gcc-4.1.2/ everything takes place.

A similar procedure is meant for binutils, so better do binutils again,
if it wasn't build correctly.
... And : binutils is to be rebuild before gcc ...
....
thanks!! it works ) but I had some other problems which need to update some packages listed in INSTALL file inside glibc-2.5.1 in order to fix them, by the way, I did not use the same glibc given in the livecd but an other one from "GNU" web site, the first one show me some errors but the last one=> every think is ok!! thank god!!
 
  


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
questions on GCC-3.4.3 - Pass 2 and Binutils-2.15.94.0.2.2 - Pass 2 satimis Linux From Scratch 7 12-26-2005 10:23 PM
Wrong GCC version during compile? raid517 Linux - Software 4 09-14-2005 09:46 AM
unable to install latest gcc version sapadman Linux - Newbie 1 07-20-2004 06:22 PM
force gcc to compile in different version??? mu664life Linux - Newbie 5 04-08-2004 12:56 AM
Chapter 5, GCC pass 1: compile failure Electrode Linux From Scratch 0 08-16-2003 08:31 PM

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

All times are GMT -5. The time now is 10:04 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration