LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 06-14-2016, 08:43 AM   #1
Suraj Patil
Member
 
Registered: Jun 2016
Posts: 78

Rep: Reputation: Disabled
Help mi plz for this glibc-2.22 pass 1 error


fs:/mnt/lfs/sources/glibc-build$ echo 'int main(){}' > dummy.c
lfs:/mnt/lfs/sources/glibc-build$ $LFS_TGT-gcc dummy.c
"bash: x86_64-lfs-linux-gnu-gcc: command not found"
lfs:/mnt/lfs/sources/glibc-build$ readelf -l a.out | grep ': /tools'
im starting to build my own os from scratch im geting error in glibc pass 1 error in compling my gcc how to fix tell
echo 'int main(){}' > dummy.c
$LFS_TGT-gcc dummy.c
"bash: x86_64-lfs-linux-gnu-gcc: command not found"
 
Old 06-14-2016, 12:12 PM   #2
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,564
Blog Entries: 19

Rep: Reputation: 4446Reputation: 4446Reputation: 4446Reputation: 4446Reputation: 4446Reputation: 4446Reputation: 4446Reputation: 4446Reputation: 4446Reputation: 4446Reputation: 4446
So look in /tools/bin and find out what's in there. It should contain x86_64-lfs-linux-gnu-gcc. If it doesn't, then you didn't build gcc correctly. Go back and do it again.
 
Old 06-14-2016, 12:18 PM   #3
Suraj Patil
Member
 
Registered: Jun 2016
Posts: 78

Original Poster
Rep: Reputation: Disabled
im checking this /tools/bin i was found x86_64-lfs-linux-gnu (gcc not) present can you plz help mi hazel im very thankful if you help this problem how to correct it gcc compliation

im install 1st binutils 2nd gcc 3rd was linux api 4th is glibc pass1 there is error how can i solve

Last edited by Suraj Patil; 06-14-2016 at 12:25 PM.
 
Old 06-14-2016, 12:49 PM   #4
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
Quote:
Originally Posted by Suraj Patil View Post
im checking this /tools/bin i was found x86_64-lfs-linux-gnu (gcc not) present can you plz help mi hazel im very thankful if you help this problem how to correct it gcc compliation

im install 1st binutils 2nd gcc 3rd was linux api 4th is glibc pass1 there is error how can i solve
Doing LFS is great way to learn. Your next step right now is
Code:
man ls
 
Old 06-14-2016, 01:02 PM   #5
Suraj Patil
Member
 
Registered: Jun 2016
Posts: 78

Original Poster
Rep: Reputation: Disabled
what can i due to resolve this error give mi neet answer im very thankulful for this
how to solve glibc pass1 error is any one give mi proper answer plz
 
Old 06-14-2016, 01:15 PM   #6
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,564
Blog Entries: 19

Rep: Reputation: 4446Reputation: 4446Reputation: 4446Reputation: 4446Reputation: 4446Reputation: 4446Reputation: 4446Reputation: 4446Reputation: 4446Reputation: 4446Reputation: 4446
Quote:
Originally Posted by Suraj Patil View Post
im checking this /tools/bin i was found x86_64-lfs-linux-gnu (gcc not) present can you plz help mi hazel im very thankful if you help this problem how to correct it gcc compilation
So if that file is really gcc, it clearly has the wrong name. Since you are so near the beginning of chapter 5, my advice would be to clear out the whole /tools tree and start the chapter again. This time be more careful.

Having to restart because of errors is not unusual on your first LFS build.
 
Old 06-14-2016, 01:20 PM   #7
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
Quote:
Originally Posted by Suraj Patil View Post
what can i due to resolve this error give mi neet answer im very thankulful for this
how to solve glibc pass1 error is any one give mi proper answer plz
Friendly advice. You are not going to attract much help with postings like this. No attempt to get grammar right, using text speak (violation of LQ rules), these are red flags that keep potential helpers away.
 
Old 06-14-2016, 01:26 PM   #8
Suraj Patil
Member
 
Registered: Jun 2016
Posts: 78

Original Poster
Rep: Reputation: Disabled
i can reinstalling this packages but same error is come .i was very dispointed i really dont know how to fix this
 
Old 06-15-2016, 04:03 AM   #9
Suraj Patil
Member
 
Registered: Jun 2016
Posts: 78

Original Poster
Rep: Reputation: Disabled
can anyone help me with this error I'm very very disappointed about this how to properly compile a gcc-5.2.0 and fix Glibc pass1 error
help for this I'm checking /tools/bin there is no x86_64-lfs-gnu-gcc
 
Old 06-15-2016, 04:10 AM   #10
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 this is an older version of lfs 7.8. There is anewer version 7.9 start using that.
Also which host system are you using?
maybe post the output of the version-check.sh To make sure host is compliant.
 
2 members found this post helpful.
Old 06-15-2016, 08:14 AM   #11
Suraj Patil
Member
 
Registered: Jun 2016
Posts: 78

Original Poster
Rep: Reputation: Disabled
I'm using Cent os 7 for build lfs I don't know what exactly problem to build gcc5.2.0 what can I due right know plz tell mi proper steps to compile successful all packages I'm very thankful if u give solution for this
 
Old 06-15-2016, 08:47 AM   #12
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
I did suggest building lfs 7.9 http://www.linuxfromscratch.org/lfs/view/stable/
which is upto date and posting the output of the version script
 
Old 06-15-2016, 08:54 AM   #13
Suraj Patil
Member
 
Registered: Jun 2016
Posts: 78

Original Poster
Rep: Reputation: Disabled
spiky001 my packages are lfs version 7.8
can i use this packages to build lfs
 
Old 06-15-2016, 08:56 AM   #14
Suraj Patil
Member
 
Registered: Jun 2016
Posts: 78

Original Poster
Rep: Reputation: Disabled
spiky0011 suggest me for this packages how to fix error
 
Old 06-15-2016, 09:06 AM   #15
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
just start again using 7.9 post the output of the version check script which I asked for
 
  


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
[SOLVED] LFS 7.5 error in glibc pass 1 wang Linux From Scratch 2 08-08-2014 05:13 AM
[SOLVED] Glibc 2.14.1 Pass 1 build error. ubuntudude12 Linux From Scratch 1 12-24-2011 03:31 PM
Configure: error: cannot compute sizeof (long double) in glibc pass 2 irfanali Linux From Scratch 29 02-03-2010 06:48 AM
glibc 1st pass error cody0416 Linux From Scratch 13 03-01-2009 10:28 PM
glibc error on 2nd pass buffed317 Linux From Scratch 3 09-05-2004 07:33 AM

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

All times are GMT -5. The time now is 10:09 PM.

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