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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
|
04-20-2005, 03:54 PM
|
#1
|
Member
Registered: Mar 2005
Location: bangalore
Posts: 100
Rep:
|
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
|
|
|
04-20-2005, 06:41 PM
|
#2
|
Member
Registered: Mar 2005
Distribution: Arch Linux
Posts: 61
Rep:
|
Just what it says: You need to upgrade gcc on your host distro.
|
|
|
04-21-2005, 06:32 AM
|
#3
|
Member
Registered: Mar 2005
Location: bangalore
Posts: 100
Original Poster
Rep:
|
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
|
|
|
04-21-2005, 02:54 PM
|
#4
|
Member
Registered: Jul 2004
Location: Florida
Distribution: Slackware
Posts: 32
Rep:
|
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...
|
|
|
04-21-2005, 03:00 PM
|
#5
|
Senior Member
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973
Rep:
|
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).
|
|
|
04-21-2005, 03:15 PM
|
#6
|
Member
Registered: Jul 2004
Location: Florida
Distribution: Slackware
Posts: 32
Rep:
|
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...
|
|
|
04-21-2005, 03:38 PM
|
#7
|
Senior Member
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973
Rep:
|
|
|
|
04-21-2005, 11:04 PM
|
#8
|
Member
Registered: Mar 2005
Location: bangalore
Posts: 100
Original Poster
Rep:
|
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
|
|
|
04-21-2005, 11:36 PM
|
#9
|
Member
Registered: Mar 2005
Location: bangalore
Posts: 100
Original Poster
Rep:
|
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..... 
|
|
|
04-22-2005, 06:02 AM
|
#10
|
Senior Member
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973
Rep:
|
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.
|
|
|
04-22-2005, 06:08 AM
|
#11
|
Member
Registered: Mar 2005
Location: bangalore
Posts: 100
Original Poster
Rep:
|
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....
|
|
|
04-22-2005, 06:21 AM
|
#12
|
Senior Member
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973
Rep:
|
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.
|
|
|
04-22-2005, 06:39 AM
|
#13
|
Member
Registered: Mar 2005
Location: bangalore
Posts: 100
Original Poster
Rep:
|
Thank u for all your advice, i will do that rightaway....
Regards
KartheeK
|
|
|
04-22-2005, 04:18 PM
|
#14
|
Member
Registered: Mar 2005
Location: bangalore
Posts: 100
Original Poster
Rep:
|
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
|
|
|
04-22-2005, 04:34 PM
|
#15
|
Senior Member
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 05:12 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|