LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 10-16-2008, 12:00 AM   #1
umpalumpa1985
LQ Newbie
 
Registered: Oct 2008
Posts: 2

Rep: Reputation: 0
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
 
Old 10-16-2008, 12:47 AM   #2
k2t0f12d
LQ Newbie
 
Registered: Jan 2007
Location: Under a rock . . .
Distribution: LFS SVN 20070514; Kubuntu 7.04 `Feisty'
Posts: 11

Rep: Reputation: 0
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
 
Old 10-16-2008, 02:43 AM   #3
umpalumpa1985
LQ Newbie
 
Registered: Oct 2008
Posts: 2

Original Poster
Rep: Reputation: 0
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
 
Old 10-16-2008, 02:51 AM   #4
k2t0f12d
LQ Newbie
 
Registered: Jan 2007
Location: Under a rock . . .
Distribution: LFS SVN 20070514; Kubuntu 7.04 `Feisty'
Posts: 11

Rep: Reputation: 0
I've kicked the LFS/DIY GNU+Linux ball around a lot, too. Its something that happens to everybody..no worries!
 
Old 02-20-2010, 01:06 AM   #5
joubin
LQ Newbie
 
Registered: Feb 2010
Posts: 2

Rep: Reputation: 0
Please help me!!!

Quote:
Originally Posted by k2t0f12d View Post
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
 
Old 02-20-2010, 03:41 AM   #6
crts
Senior Member
 
Registered: Jan 2010
Posts: 2,020

Rep: Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757
Quote:
Originally Posted by joubin View Post
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.
 
Old 02-20-2010, 11:57 PM   #7
joubin
LQ Newbie
 
Registered: Feb 2010
Posts: 2

Rep: Reputation: 0
Quote:
Originally Posted by crts View Post
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
 
Old 02-21-2010, 02:50 AM   #8
crts
Senior Member
 
Registered: Jan 2010
Posts: 2,020

Rep: Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757
Quote:
Originally Posted by joubin View Post
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.
 
  


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 6.2 Section 5.6 - Error making glibc-2.3.6 dustin_wielenga Linux From Scratch 3 01-05-2008 02:01 PM
glibc 2.3.4 - make install error - LFS 6.1.1-3 dave-gallagher Linux From Scratch 2 05-23-2006 04:12 PM
glibc-2.3.3-lfs-5.1 error Zamochit Linux From Scratch 8 01-13-2005 06:00 AM
make glibc error (LFS) gatblast45 Linux - Software 3 12-21-2004 11:30 AM
LFS 3.3 - chapter 6 - glibc error fend88 Linux From Scratch 5 04-28-2002 11:06 PM

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

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