LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   LFS v6-installation of glibc; need help (https://www.linuxquestions.org/questions/linux-from-scratch-13/lfs-v6-installation-of-glibc%3B-need-help-315434/)

kartheekpn 04-20-2005 03:54 PM

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

mugwump84 04-20-2005 06:41 PM

Just what it says: You need to upgrade gcc on your host distro.

kartheekpn 04-21-2005 06:32 AM

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

frostillicus 04-21-2005 02:54 PM

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...

__J 04-21-2005 03:00 PM

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).

frostillicus 04-21-2005 03:15 PM

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...

__J 04-21-2005 03:38 PM

http://gcc.gnu.org/gcc-4.0/

kartheekpn 04-21-2005 11:04 PM

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

kartheekpn 04-21-2005 11:36 PM

I am back again,

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

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.....:)

__J 04-22-2005 06:02 AM

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.

kartheekpn 04-22-2005 06:08 AM

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....

__J 04-22-2005 06:21 AM

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.

kartheekpn 04-22-2005 06:39 AM

Thank u for all your advice, i will do that rightaway....
:cool:
Regards
KartheeK

kartheekpn 04-22-2005 04:18 PM

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... :scratch:
As far as I have seen ther are no commands mentioned in the LFSv6 Document???
Any inputs on these????? :confused:
Regards
KartheeK

__J 04-22-2005 04:34 PM

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 07:43 PM.