LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (https://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   lfs 6.3 glibc 2.5.1 compile error (https://www.linuxquestions.org/questions/linux-from-scratch-13/lfs-6-3-glibc-2-5-1-compile-error-676677/)

umpalumpa1985 10-16-2008 12:00 AM

lfs 6.3 glibc 2.5.1 compile error
 
here's my error on compiling (or trying to) glibc. My host system is arch linue kernel 2.6.27, and i've already made sure that i'm using gawk and not mawk, as i know that this causes problems itself.
make
make -r PARALLELMFLAGS="" CVSOPTS="" -C ../glibc-2.5.1 objdir=`pwd` all
make[1]: Entering directory `/mnt/lfs/tools/glibc-2.5.1'
make subdir=csu -C csu ..=../ subdir_lib
make[2]: Entering directory `/mnt/lfs/tools/glibc-2.5.1/csu'
make[2]: Nothing to be done for `subdir_lib'.
make[2]: Leaving directory `/mnt/lfs/tools/glibc-2.5.1/csu'
make subdir=iconv -C iconv ..=../ subdir_lib
make[2]: Entering directory `/mnt/lfs/tools/glibc-2.5.1/iconv'
/bin/install -c -m 644 /mnt/lfs/tools/glibc-build/../include/linux/limits.h /tools/include/linux/limits.h
/bin/install: `/mnt/lfs/tools/glibc-build/../include/linux/limits.h' and `/tools/include/linux/limits.h' are the same file
/bin/install -c -m 644 /mnt/lfs/tools/glibc-build/../include/linux/errno.h /tools/include/linux/errno.h
/bin/install: `/mnt/lfs/tools/glibc-build/../include/linux/errno.h' and `/tools/include/linux/errno.h' are the same file
make[2]: *** [/tools/include/linux/errno.h] Error 1
make[2]: Leaving directory `/mnt/lfs/tools/glibc-2.5.1/iconv'
make[1]: *** [iconv/subdir_lib] Error 2
make[1]: Leaving directory `/mnt/lfs/tools/glibc-2.5.1'
make: *** [all] Error 2


that's actually the second error. the first one i just ran make again and it fixed itself (i guess). that was this:
make[2]: *** No rule to make target `/mnt/lfs/tools/glibc-build/s-proto.d', needed by `/mnt/lfs/tools/glibc-build/signal/kill.o'. Stop.
make[2]: Leaving directory `/mnt/lfs/tools/glibc-2.5.1/signal'
make[1]: *** [signal/subdir_lib] Error 2
make[1]: Leaving directory `/mnt/lfs/tools/glibc-2.5.1'
make: *** [all] Error 2

if that's important and i should pay more attention to it let me know please, but like i said, i ran make again and it didn't give me that the second time around.

thanks in advance for your help
-J



ps just incase you need output of env:
TERM=xterm
LC_ALL=POSIX
LFS=/mnt/lfs
PATH=/tools/bin:/bin:/usr/bin
PWD=/mnt/lfs/tools
PS1=\u:\w\$
SHLVL=1
HOME=/home/lfs
_=/usr/bin/env
OLDPWD=/mnt/lfs/tools/glibc-build

and uname -a:
2.6.27-ARCH #1 SMP PREEMPT Sun Oct 12 15:16:25 CEST 2008 i686 Intel(R) Pentium(R) 4 CPU 3.20GHz GenuineIntel GNU/Linux

k2t0f12d 10-16-2008 12:47 AM

Can you add your build command to the original post? i.e.

VARS=<value> ./configure --<options>
VARS=<value> make
make [DESTDIR=<directory>] install

Thanks =D

umpalumpa1985 10-16-2008 02:43 AM

oops
 
I found one of the deadliest bugs possible. PEBKAC ha ha ha. As you can see, i had the sources in /mnt/lfs/tools, which is where /tools is symlinked to, so of course it's gonna scream about the file being the same. . .it is! As far as the ./configure switches and the build commands i just copied directly from the book. This is actually my fifth LFS, for a buddy of mine, and I can't beleive I made such a ridiculous mistake. In any case, thank you for your help!
-J

k2t0f12d 10-16-2008 02:51 AM

I've kicked the LFS/DIY GNU+Linux ball around a lot, too. Its something that happens to everybody..no worries! ;)

joubin 02-20-2010 01:06 AM

Please help me!!!
 
Quote:

Originally Posted by k2t0f12d (Post 3311825)
I've kicked the LFS/DIY GNU+Linux ball around a lot, too. Its something that happens to everybody..no worries! ;)

so, i have the same issues. Im using ubuntu to build my LFS.
everything went fine until now!
how do i fix it. i looked into the tools file and couldnt find what you guys were talking about. this is my first time running throughout this...


this is what i get

make[1]: *** No rule to make target `/home/lfs/glibc-build/Versions.all', needed by `/home/lfs/glibc-build/abi-versions.h'. Stop.
make[1]: Leaving directory `/home/lfs/glibc-2.11.1'
make: *** [all] Error 2

when i run the command make with no permitters as it says it in the book.
if the problem is not gawk vs mawk, what should i do. or how do i install gawk on ubuntu as sudo apt-get install gawk doesn't work

crts 02-20-2010 03:41 AM

Quote:

Originally Posted by joubin (Post 3870125)
so, i have the same issues. Im using ubuntu to build my LFS.
everything went fine until now!
how do i fix it. i looked into the tools file and couldnt find what you guys were talking about. this is my first time running throughout this...


this is what i get

make[1]: *** No rule to make target `/home/lfs/glibc-build/Versions.all', needed by `/home/lfs/glibc-build/abi-versions.h'. Stop.
make[1]: Leaving directory `/home/lfs/glibc-2.11.1'
make: *** [all] Error 2

when i run the command make with no permitters as it says it in the book.
if the problem is not gawk vs mawk, what should i do. or how do i install gawk on ubuntu as sudo apt-get install gawk doesn't work

First of all it is recommended to use the LFS liveCD for your very first LFS build. It is the best way to avoid compatibility problems.
If you insist on using Ubuntu as host try installing gawk via synaptic package manager (System -> Administration -> Synaptic packaggemanager).

Make sure all other requirements are met by your system.
http://www.linuxfromscratch.org/lfs/.../hostreqs.html.
If you are not building LFS 6.5 version check the requirements of your corresponding version.

joubin 02-20-2010 11:57 PM

Quote:

Originally Posted by crts (Post 3870213)
First of all it is recommended to use the LFS liveCD for your very first LFS build. It is the best way to avoid compatibility problems.
If you insist on using Ubuntu as host try installing gawk via synaptic package manager (System -> Administration -> Synaptic packaggemanager).

Make sure all other requirements are met by your system.
http://www.linuxfromscratch.org/lfs/.../hostreqs.html.
If you are not building LFS 6.5 version check the requirements of your corresponding version.

I tried using the live CD at fist.
I ran out of room before i got to compile my binutil cuz the ISO didnt have enough room
tried getting the gawk via package manager.
it found mawk for me but not gawk
do i have to turn on some sources or something

crts 02-21-2010 02:50 AM

Quote:

Originally Posted by joubin (Post 3871109)
I tried using the live CD at fist.
I ran out of room before i got to compile my binutil cuz the ISO didnt have enough room
tried getting the gawk via package manager.
it found mawk for me but not gawk
do i have to turn on some sources or something

Which version of Ubuntu do you have? I am running Ubuntu 8.04 and I have gawk in my repositiories. Maybe you should activate all available repositories and then search for it again. In synaptic package manager it should be something like
Settings -> package source
Or something similiar.


All times are GMT -5. The time now is 08:15 AM.