LinuxQuestions.org
Register a domain and help support LQ
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-12-2011, 02:39 PM   #16
abhiklall
LQ Newbie
 
Registered: Mar 2011
Posts: 20

Original Poster
Rep: Reputation: 0

this is what i get after entering the make command for glibc

make -r PARALLELMFLAGS="" CVSOPTS="" -C ../glibc-2.12.1 objdir=`pwd` all
make[1]: Entering directory `/mnt/lfs/glibc-2.12.1'
{ echo '#include "posix/bits/posix1_lim.h"'; \
echo '#define _LIBC 1'; \
echo '#include "misc/sys/uio.h"'; } | \
gcc -E -dM -MD -MP -MF /mnt/lfs/glibc-build/bits/stdio_lim.dT -MT '/mnt/lfs/glibc-build/bits/stdio_lim.h /mnt/lfs/glibc-build/bits/stdio_lim.d' \
-Iinclude -I/mnt/lfs/glibc-build -Isysdeps/i386/elf -Inptl/sysdeps/unix/sysv/linux/i386/i686 -Isysdeps/unix/sysv/linux/i386/i686 -Inptl/sysdeps/unix/sysv/linux/i386 -Isysdeps/unix/sysv/linux/i386 -Inptl/sysdeps/unix/sysv/linux -Inptl/sysdeps/pthread -Isysdeps/pthread -Isysdeps/unix/sysv/linux -Isysdeps/gnu -Isysdeps/unix/common -Isysdeps/unix/mman -Isysdeps/unix/inet -Isysdeps/unix/sysv/i386 -Inptl/sysdeps/unix/sysv -Isysdeps/unix/sysv -Isysdeps/unix/i386 -Inptl/sysdeps/unix -Isysdeps/unix -Isysdeps/posix -Isysdeps/i386/i686/fpu -Isysdeps/i386/i686/multiarch -Inptl/sysdeps/i386/i686 -Isysdeps/i386/i686 -Isysdeps/i386/i486 -Inptl/sysdeps/i386/i486 -Isysdeps/i386/fpu -Inptl/sysdeps/i386 -Isysdeps/i386 -Isysdeps/wordsize-32 -Isysdeps/ieee754/ldbl-96 -Isysdeps/ieee754/dbl-64 -Isysdeps/ieee754/flt-32 -Isysdeps/ieee754 -Isysdeps/generic/elf -Isysdeps/generic -Inptl -Ilibio -I. -nostdinc -isystem /usr/lib/gcc/i686-linux-gnu/4.4.5/include -isystem /usr/lib/gcc/i686-linux-gnu/4.4.5/include-fixed -isystem /tools/include -xc - -o /mnt/lfs/glibc-build/bits/stdio_lim.hT
nptl/sysdeps/unix/sysv/linux/bits/local_lim.h:39: fatal error: linux/limits.h: No such file or directory
compilation terminated.
make subdir=csu -C csu ..=../ subdir_lib
make[2]: Entering directory `/mnt/lfs/glibc-2.12.1/csu'
{ echo '#include "../posix/bits/posix1_lim.h"'; \
echo '#define _LIBC 1'; \
echo '#include "../misc/sys/uio.h"'; } | \
gcc -E -dM -MD -MP -MF /mnt/lfs/glibc-build/bits/stdio_lim.dT -MT '/mnt/lfs/glibc-build/bits/stdio_lim.h /mnt/lfs/glibc-build/bits/stdio_lim.d' \
-I../include -I/mnt/lfs/glibc-build/csu -I/mnt/lfs/glibc-build -I../sysdeps/i386/elf -I../nptl/sysdeps/unix/sysv/linux/i386/i686 -I../sysdeps/unix/sysv/linux/i386/i686 -I../nptl/sysdeps/unix/sysv/linux/i386 -I../sysdeps/unix/sysv/linux/i386 -I../nptl/sysdeps/unix/sysv/linux -I../nptl/sysdeps/pthread -I../sysdeps/pthread -I../sysdeps/unix/sysv/linux -I../sysdeps/gnu -I../sysdeps/unix/common -I../sysdeps/unix/mman -I../sysdeps/unix/inet -I../sysdeps/unix/sysv/i386 -I../nptl/sysdeps/unix/sysv -I../sysdeps/unix/sysv -I../sysdeps/unix/i386 -I../nptl/sysdeps/unix -I../sysdeps/unix -I../sysdeps/posix -I../sysdeps/i386/i686/fpu -I../sysdeps/i386/i686/multiarch -I../nptl/sysdeps/i386/i686 -I../sysdeps/i386/i686 -I../sysdeps/i386/i486 -I../nptl/sysdeps/i386/i486 -I../sysdeps/i386/fpu -I../nptl/sysdeps/i386 -I../sysdeps/i386 -I../sysdeps/wordsize-32 -I../sysdeps/ieee754/ldbl-96 -I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754/flt-32 -I../sysdeps/ieee754 -I../sysdeps/generic/elf -I../sysdeps/generic -I../nptl -I.. -I../libio -I. -nostdinc -isystem /usr/lib/gcc/i686-linux-gnu/4.4.5/include -isystem /usr/lib/gcc/i686-linux-gnu/4.4.5/include-fixed -isystem /tools/include -xc - -o /mnt/lfs/glibc-build/bits/stdio_lim.hT
../nptl/sysdeps/unix/sysv/linux/bits/local_lim.h:39: fatal error: linux/limits.h: No such file or directory
compilation terminated.
make[2]: Leaving directory `/mnt/lfs/glibc-2.12.1/csu'
make[1]: *** [csu/subdir_lib] Error 2
make[1]: Leaving directory `/mnt/lfs/glibc-2.12.1'
make: *** [all] Error 2
 
Old 04-12-2011, 02:47 PM   #17
abhiklall
LQ Newbie
 
Registered: Mar 2011
Posts: 20

Original Poster
Rep: Reputation: 0
now i get the following error while i run the make command for glibc

abhik@abhik-Inspiron-1525:/mnt/lfs/glibc-build$ make
make -r PARALLELMFLAGS="" CVSOPTS="" -C ../glibc-2.12.1 objdir=`pwd` all
make[1]: Entering directory `/mnt/lfs/glibc-2.12.1'
{ echo '#include "posix/bits/posix1_lim.h"'; \
echo '#define _LIBC 1'; \
echo '#include "misc/sys/uio.h"'; } | \
gcc -E -dM -MD -MP -MF /mnt/lfs/glibc-build/bits/stdio_lim.dT -MT '/mnt/lfs/glibc-build/bits/stdio_lim.h /mnt/lfs/glibc-build/bits/stdio_lim.d' \
-Iinclude -I/mnt/lfs/glibc-build -Isysdeps/i386/elf -Inptl/sysdeps/unix/sysv/linux/i386/i686 -Isysdeps/unix/sysv/linux/i386/i686 -Inptl/sysdeps/unix/sysv/linux/i386 -Isysdeps/unix/sysv/linux/i386 -Inptl/sysdeps/unix/sysv/linux -Inptl/sysdeps/pthread -Isysdeps/pthread -Isysdeps/unix/sysv/linux -Isysdeps/gnu -Isysdeps/unix/common -Isysdeps/unix/mman -Isysdeps/unix/inet -Isysdeps/unix/sysv/i386 -Inptl/sysdeps/unix/sysv -Isysdeps/unix/sysv -Isysdeps/unix/i386 -Inptl/sysdeps/unix -Isysdeps/unix -Isysdeps/posix -Isysdeps/i386/i686/fpu -Isysdeps/i386/i686/multiarch -Inptl/sysdeps/i386/i686 -Isysdeps/i386/i686 -Isysdeps/i386/i486 -Inptl/sysdeps/i386/i486 -Isysdeps/i386/fpu -Inptl/sysdeps/i386 -Isysdeps/i386 -Isysdeps/wordsize-32 -Isysdeps/ieee754/ldbl-96 -Isysdeps/ieee754/dbl-64 -Isysdeps/ieee754/flt-32 -Isysdeps/ieee754 -Isysdeps/generic/elf -Isysdeps/generic -Inptl -Ilibio -I. -nostdinc -isystem /usr/lib/gcc/i686-linux-gnu/4.4.5/include -isystem /usr/lib/gcc/i686-linux-gnu/4.4.5/include-fixed -isystem /tools/include -xc - -o /mnt/lfs/glibc-build/bits/stdio_lim.hT
nptl/sysdeps/unix/sysv/linux/bits/local_lim.h:39: fatal error: linux/limits.h: No such file or directory
compilation terminated.
make subdir=csu -C csu ..=../ subdir_lib
make[2]: Entering directory `/mnt/lfs/glibc-2.12.1/csu'
{ echo '#include "../posix/bits/posix1_lim.h"'; \
echo '#define _LIBC 1'; \
echo '#include "../misc/sys/uio.h"'; } | \
gcc -E -dM -MD -MP -MF /mnt/lfs/glibc-build/bits/stdio_lim.dT -MT '/mnt/lfs/glibc-build/bits/stdio_lim.h /mnt/lfs/glibc-build/bits/stdio_lim.d' \
-I../include -I/mnt/lfs/glibc-build/csu -I/mnt/lfs/glibc-build -I../sysdeps/i386/elf -I../nptl/sysdeps/unix/sysv/linux/i386/i686 -I../sysdeps/unix/sysv/linux/i386/i686 -I../nptl/sysdeps/unix/sysv/linux/i386 -I../sysdeps/unix/sysv/linux/i386 -I../nptl/sysdeps/unix/sysv/linux -I../nptl/sysdeps/pthread -I../sysdeps/pthread -I../sysdeps/unix/sysv/linux -I../sysdeps/gnu -I../sysdeps/unix/common -I../sysdeps/unix/mman -I../sysdeps/unix/inet -I../sysdeps/unix/sysv/i386 -I../nptl/sysdeps/unix/sysv -I../sysdeps/unix/sysv -I../sysdeps/unix/i386 -I../nptl/sysdeps/unix -I../sysdeps/unix -I../sysdeps/posix -I../sysdeps/i386/i686/fpu -I../sysdeps/i386/i686/multiarch -I../nptl/sysdeps/i386/i686 -I../sysdeps/i386/i686 -I../sysdeps/i386/i486 -I../nptl/sysdeps/i386/i486 -I../sysdeps/i386/fpu -I../nptl/sysdeps/i386 -I../sysdeps/i386 -I../sysdeps/wordsize-32 -I../sysdeps/ieee754/ldbl-96 -I../sysdeps/ieee754/dbl-64 -I../sysdeps/ieee754/flt-32 -I../sysdeps/ieee754 -I../sysdeps/generic/elf -I../sysdeps/generic -I../nptl -I.. -I../libio -I. -nostdinc -isystem /usr/lib/gcc/i686-linux-gnu/4.4.5/include -isystem /usr/lib/gcc/i686-linux-gnu/4.4.5/include-fixed -isystem /tools/include -xc - -o /mnt/lfs/glibc-build/bits/stdio_lim.hT
../nptl/sysdeps/unix/sysv/linux/bits/local_lim.h:39: fatal error: linux/limits.h: No such file or directory
compilation terminated.
make[2]: Leaving directory `/mnt/lfs/glibc-2.12.1/csu'
make[1]: *** [csu/subdir_lib] Error 2
make[1]: Leaving directory `/mnt/lfs/glibc-2.12.1'
make: *** [all] Error 2
 
Old 04-12-2011, 03:04 PM   #18
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374
Hi,

Quote:
abhik@abhik-Inspiron-1525:/mnt/lfs/glibc-build$ make
User abhik? Chapter 5, just about all of it, should be done as user lfs. The one you created and logged in as in chapter 4.3 and set up a sane environment for in chapter 4.4

Also: Did/do you fully remove the glibc source and build directory before re-trying?

Hope this helps.
 
Old 04-12-2011, 03:33 PM   #19
abhiklall
LQ Newbie
 
Registered: Mar 2011
Posts: 20

Original Poster
Rep: Reputation: 0
the abhik user is same as lfs user only the name is diiferent i tried it again and again but it is saying the filies limit.h which is in /tools/include not found the same error which i posted at first
 
Old 04-12-2011, 03:59 PM   #20
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374
Please answer my other question (post #18).

Why the changes? It will only complicate things and without knowing what (other?) changes you made helping you will become hard, if not impossible.
 
Old 04-15-2011, 04:33 PM   #21
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374
[SOLVED]??

How did you solve this? That information might be helpful if others encounter something similar.
 
Old 10-05-2011, 07:30 AM   #22
silKoner
LQ Newbie
 
Registered: Oct 2011
Posts: 6

Rep: Reputation: Disabled
GAWK

Hi abhiklall

I'm very, very new to Linux and LFS. I got stuck on chapter 5.7 in the LFS 6.8 book as well.

I don't know if you found a solution to this problem yet, but I think I did.

Just install 'gawk' (sudo apt-get install gawk). I found this solution in another forum.

Once I did that, the MAKE and MAKE INSTALL commands seemed to work. I still got errors at the end but I'll continue working through the book to see if the errors matter.

Hope this helps.

sK
 
Old 10-05-2011, 07:38 AM   #23
silKoner
LQ Newbie
 
Registered: Oct 2011
Posts: 6

Rep: Reputation: Disabled
Smile PS

Hi again ahbiklall

The forum I found the solution in was actually the official Linux from Scratch support mail archive:

http://archive.linuxfromscratch.org/...ch/026485.html



sK
 
Old 10-05-2011, 08:02 AM   #24
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374Reputation: 2374
@silKoner: Did you skip this chapter in the LFS book: vii. Host System Requirements.

It clearly mentions the packages that need to be installed on your host, gawk being one of them
Quote:
Gawk-3.1.5 (/usr/bin/awk should be a link to gawk)
 
Old 10-05-2011, 08:29 AM   #25
silKoner
LQ Newbie
 
Registered: Oct 2011
Posts: 6

Rep: Reputation: Disabled
Thanks

Hi druuna

Thanks for reply. I didn't skip the Host System Requirements section, but I also didn't check if my Ubuntu system met the requirements. My bad, and lucky for me I found a solution quicker than ahbiklall it would seem As I said in my post to ahbiklall, I am extremely new to the world of Linux and am quite proud of myself just for getting to start of chapter 5.8 so far. It's been slow, but I'm getting more and more confident.

Now if I could only figure out how to keep the Asus PCE-N13 Wifi PCI-E card on permanently without having to restart the computer to turn it back on, I would be happy

Have a good one.

sK
 
Old 10-05-2011, 11:30 AM   #26
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: Ubuntu 12.04/12.10/13.04/LFS/Centos6.3/Debain/PCBSD/Mageia 3
Posts: 1,642
Blog Entries: 1

Rep: Reputation: 229Reputation: 229Reputation: 229
silKoner what version of Ubuntu are you using?
 
Old 10-05-2011, 03:51 PM   #27
silKoner
LQ Newbie
 
Registered: Oct 2011
Posts: 6

Rep: Reputation: Disabled
Ubuntu version

Quote:
Originally Posted by spiky0011 View Post
silKoner what version of Ubuntu are you using?
Hi

I'm using Ubuntu 11.04 Natty Narwhal.

sK
 
Old 10-06-2011, 08:08 AM   #28
silKoner
LQ Newbie
 
Registered: Oct 2011
Posts: 6

Rep: Reputation: Disabled
I think I solved my chapter 5.7 problems

More suggestions to get chapter 5.7 to work on Ubuntu 11.04:

In a previous post in this thread, I mentioned that installing 'gawk' got 'make' and 'make install' to do something. They both appeared to be working (they ran for a little while), but I still ended up with errors (which I mentioned earlier) when they finished. I wasn't happy with that so I did a little more checking and found this post to be most useful:

http://www.linuxquestions.org/questi...1215-a-691292/

I think it was the 'chown' and 'chgrp' tips that fixed my problem. When I ran 'make' and 'make install', they both took a very long time to process, and I didn't see any errors when they finished. I assume they worked.

The symlink tip was already covered by earlier instructions in the LFS 6.8 book if I'm not mistaken, so for this thread, I don't think that's the important part.

Of course, when I executed the long SPECS command from chapter 5.8, I got 'sed' errors, so now I'm off to look into that

Good night all.

sK

Last edited by silKoner; 10-06-2011 at 08:09 AM. Reason: typo
 
Old 10-06-2011, 08:15 AM   #29
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: Ubuntu 12.04/12.10/13.04/LFS/Centos6.3/Debain/PCBSD/Mageia 3
Posts: 1,642
Blog Entries: 1

Rep: Reputation: 229Reputation: 229Reputation: 229
When i checked the host requirement script on ubuntu I found Bison, M4, Gawk and a couple of others missing
 
Old 10-06-2011, 08:56 AM   #30
silKoner
LQ Newbie
 
Registered: Oct 2011
Posts: 6

Rep: Reputation: Disabled
Quote:
Originally Posted by spiky0011 View Post
When i checked the host requirement script on ubuntu I found Bison, M4, Gawk and a couple of others missing
Hi.

I took druuna's advice and used the host requirement script too and it looked ok to me.

I took a guess about how to fix the 'sed' problem I was having in chapter 5.8 of LFS 6.8 and it worked! I am rather pleased with myself seeing as I am completely new to Linux.

But that's getting off topic

It's really late here, I'm stuffed and off to bed. I'll be back tomorrow night to continue LFS


sK
 
  


Reply

Tags
glibc, lfs


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
problem with compiling kdevelop pls help.. hamedhsn Programming 2 08-20-2010 01:21 AM
Encountered the problem as compiling the glibc-2.3.5 amaolei Linux - Laptop and Netbook 1 05-02-2005 08:12 AM
Problem compiling glibc Azmeen Linux From Scratch 4 07-09-2003 10:48 AM
Problem compiling glibc v2.3.1 agrocott Linux - Software 2 01-30-2003 12:14 PM


All times are GMT -5. The time now is 07:23 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration