LinuxQuestions.org
Visit Jeremy's Blog.
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 04-20-2005, 03:54 PM   #1
kartheekpn
Member
 
Registered: Mar 2005
Location: bangalore
Posts: 100

Rep: Reputation: 15
LFS v6-installation of glibc; need help


Hi ALL,
I am a LFS newbie, my HOST MACHINE INFORMATION:
Linux version 2.6.9-1.667 (bhcompile@tweety.build.redhat.com) (gcc version 3.4.2 20041017 (Red Hat 3.4.2-6.fc3)) #1 Tue Nov 2 14:41:25 EST 2004

I am encountering the following error when i try installing glibc

checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking sysdep dirs... sysdeps/i386/elf nptl/sysdeps/unix/sysv/linux/i386/i686 nptl/sysdeps/unix/sysv/linux/i386 nptl/sysdeps/unix/sysv/linux nptl/sysdeps/pthread sysdeps/pthread nptl/sysdeps/unix/sysv nptl/sysdeps/unix nptl/sysdeps/i386/i686 nptl/sysdeps/i386 sysdeps/unix/sysv/linux/i386 sysdeps/unix/sysv/linux sysdeps/gnu sysdeps/unix/common sysdeps/unix/mman sysdeps/unix/inet sysdeps/unix/sysv/i386 sysdeps/unix/sysv sysdeps/unix/i386 sysdeps/unix sysdeps/posix sysdeps/i386/i686/fpu sysdeps/i386/i686 sysdeps/i386/i486 nptl/sysdeps/i386/i486 sysdeps/i386/fpu sysdeps/i386 sysdeps/wordsize-32 sysdeps/ieee754/ldbl-96 sysdeps/ieee754/dbl-64 sysdeps/ieee754/flt-32 sysdeps/ieee754 sysdeps/generic/elf sysdeps/generic
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln -s works... yes
checking for gcc... gcc
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking how to run the C preprocessor... gcc -E
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking whether /tools/bin/as is GNU as... yes
checking whether /tools/bin/ld is GNU ld... yes
checking for /tools/bin/as... /tools/bin/as
checking version of /tools/bin/as... 2.15, ok
checking for /tools/bin/ld... /tools/bin/ld
checking version of /tools/bin/ld... 2.15, ok
checking for pwd... /bin/pwd
checking for gcc... gcc -B/tools/bin/
checking version of gcc -B/tools/bin/... 4.0.0, bad
checking for gnumake... no
checking for gmake... gmake
checking version of gmake... 3.80, ok
checking for gnumsgfmt... no
checking for gmsgfmt... no
checking for msgfmt... msgfmt
checking version of msgfmt... 0.14.1, ok
checking for makeinfo... makeinfo
checking version of makeinfo... 4.7, ok
checking for sed... sed
checking version of sed... 4.1.2, ok
checking for autoconf... autoconf
checking whether autoconf works... yes
configure:error :
***These programs are missing are missing or too old : gcc
***Check the INSTALL file for required versions

Plase help me to rectify this problem....
thanx in advance
KartheeK
3
 
Old 04-20-2005, 06:41 PM   #2
mugwump84
Member
 
Registered: Mar 2005
Distribution: Arch Linux
Posts: 61

Rep: Reputation: 15
Just what it says: You need to upgrade gcc on your host distro.
 
Old 04-21-2005, 06:32 AM   #3
kartheekpn
Member
 
Registered: Mar 2005
Location: bangalore
Posts: 100

Original Poster
Rep: Reputation: 15
Hello,

the line that shows gcc bad, is not of the host machine, it is the new gcc i have installed.. its newer than the prescribed gcc-3.4.1[as per LFS v6]. Am i right? and also the gcc got compiled without any issues....
I am listing the versions of the things i am using for the target..


binutils-2.15.tar
gcc-4.0-20050305.tar.bz2
linux-libc-headers-2.6.11.0.tar.bz2
linux-2.6.11.tar
glibc-2.3.4-20040701.tar.bz2

autoconf-2.59.tar
automake-1.8.4.tar
bash-3.0.tar
iproute2-2.6.8-040823.tar
lfs-bootscripts-3.0.tar.bz2
make-3.80.tar
vim-6.3.tar.bz2
coreutils-5.2.1.tar
tcl8.4.9-html.tar
dejagnu-1.4.4.tar
expect.tar

Another thing, When i tried creating version file as described in pg 49 LFSv6: "make include/linux/version.h", i am geting the following report:
Makefile:486: .config: no such file or directory
CHK include/linux/version.h
UPD include/linux/version.h

But the version file is getting created, is it ok....


In jist i am getting struck in 2 places:
1]While creating version.h file as described in pg 49 LFS v6
2]while compiling glibc as described in pg 51 LFS v6 (i have put the output in my first post)


Thanx
 
Old 04-21-2005, 02:54 PM   #4
frostillicus
Member
 
Registered: Jul 2004
Location: Florida
Distribution: Slackware
Posts: 32

Rep: Reputation: 15
just a thought, looks like the line

checking version of gcc -B/tools/bin 4.0.0 bad

means that it is looking for gcc-4.0.0, which it won't find. i say this because the other package checks have their version number given.

probably best to back up and reinstall gcc...
 
Old 04-21-2005, 03:00 PM   #5
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
Quote:
Originally posted by frostillicus
just a thought, looks like the line

checking version of gcc -B/tools/bin 4.0.0 bad

means that it is looking for gcc-4.0.0, which it won't find. i say this because the other package checks have their version number given.

probably best to back up and reinstall gcc...
it means it's finding 4.0 - which it probably doesn't like ( glibc has always been picky about what version of gcc you could compile it with).
 
Old 04-21-2005, 03:15 PM   #6
frostillicus
Member
 
Registered: Jul 2004
Location: Florida
Distribution: Slackware
Posts: 32

Rep: Reputation: 15
since there is no gcc-4.0 (that i know of) it is actually finding the newly installed gcc-3.4.1 but for whatever reason the 3.4.1 is being referred to as gcc-4.0, right? it's finding the 3.4.1 but thinks it's a 4.0, which it can't use.

i'm wondering how in the world a 4.0 reference got in there in the first place...
 
Old 04-21-2005, 03:38 PM   #7
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
http://gcc.gnu.org/gcc-4.0/
 
Old 04-21-2005, 11:04 PM   #8
kartheekpn
Member
 
Registered: Mar 2005
Location: bangalore
Posts: 100

Original Poster
Rep: Reputation: 15
Hi,
Thanx for supporting, i am going to download all the things with the vertions as prescribed by LFS 6 afresh including the kernel and start the whole story all over again.Let me hope 2 find luck on this go....
Thank u all......
Regards
KartheeK
 
Old 04-21-2005, 11:36 PM   #9
kartheekpn
Member
 
Registered: Mar 2005
Location: bangalore
Posts: 100

Original Poster
Rep: Reputation: 15
I am back again,

Anyone please clarify the following stuff that i have mentioned in my second post:

When i tried creating version file as described in pg 49 LFSv6: "make include/linux/version.h", i am geting the following report:

Makefile:486: .config: no such file or directory
CHK include/linux/version.h
UPD include/linux/version.h

But the version file is getting created, is it ok....????????

Hope, this wont troble me on this go...

Thanx 2 all u wonderful people who are helping me.....
 
Old 04-22-2005, 06:02 AM   #10
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
the .config is the configuration file for the kernel compile. since you just untarred the archive, you will not have one yet, so this warning is expected. later when you actually configure your kernel to build it, you will create a .config file. basically, this is normal operation.

note that your earlier problem is glibc will check your gcc version and accept it or reject it. with applications it's ok/good to have the latest and greatest, with toolchains ( your devel environment) some versions of software work better than others when pared with certain versions of this software which works best with this version of software and etc... you get the idea - sometimes with development environments you need specific versions to make it as stable and efficient as possible. I'd recommend just sticking with the book versions, LFS systems have always had a very good development environment.

Last edited by __J; 04-22-2005 at 06:05 AM.
 
Old 04-22-2005, 06:08 AM   #11
kartheekpn
Member
 
Registered: Mar 2005
Location: bangalore
Posts: 100

Original Poster
Rep: Reputation: 15
Ok, Thanx... I am now in the process of downloading xactly the same versions of packages as prescribed by LFSv6 I will redo the process once again....
 
Old 04-22-2005, 06:21 AM   #12
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
once you get your temp. toolchain built, I'd recommend using tar to back it up just in case, you never know when/if you might need it in the future:

Code:
tar -cf toolchain.tar /tools
(optionally if you want it compressed): gzip toolchain.tar
also, now is a good time ( sometime before you start the actual system building) to head over to the hints section at one of the LFS mirrors and check into those, there are alot of ways you can customize your system and tweak it to your liking. None of them are mandatory, but you should at least check into some type of package management to make upgrading/removal of packages more convenient.
 
Old 04-22-2005, 06:39 AM   #13
kartheekpn
Member
 
Registered: Mar 2005
Location: bangalore
Posts: 100

Original Poster
Rep: Reputation: 15
Thank u for all your advice, i will do that rightaway....

Regards
KartheeK
 
Old 04-22-2005, 04:18 PM   #14
kartheekpn
Member
 
Registered: Mar 2005
Location: bangalore
Posts: 100

Original Poster
Rep: Reputation: 15
hmmm...., i have now downloaded all the stuff including the patches given in pg 25 LFS v6..
I have a doubt..[might appear silly..] when should we apply these patches...
As far as I have seen ther are no commands mentioned in the LFSv6 Document???
Any inputs on these?????
Regards
KartheeK
 
Old 04-22-2005, 04:34 PM   #15
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
most of them will come into play when you start building the system, but there are a couple for the temporary devel environment. it will say in the book when to patch, so keep an eye out.
 
  


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
LFS without gcc and glibc nazir Linux From Scratch 5 08-05-2005 11:23 AM
Glibc-2.3.3-lfs-5.1 EPM_Students Linux From Scratch 1 02-12-2005 06:37 AM
glibc-2.3.3-lfs-5.1 error Zamochit Linux From Scratch 8 01-13-2005 06:00 AM
Glibc (2.3.3-lfs-5.1) Mystified Linux From Scratch 2 12-02-2004 05:14 PM
glibc install on lfs bbenz3 Linux From Scratch 7 03-26-2002 01:01 PM

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

All times are GMT -5. The time now is 10:52 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