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-23-2005, 07:06 AM
|
#16
|
Member
Registered: Mar 2005
Location: bangalore
Posts: 100
Original Poster
Rep:
|
Ok, Thank U __J. I will do that...
Regards
Kartheek
|
|
|
04-23-2005, 08:42 PM
|
#17
|
Member
Registered: Mar 2005
Location: bangalore
Posts: 100
Original Poster
Rep:
|
Struck again!
Hello All,
Every thing works fine till installation of gcc [pg47 LFSv6], but when it comes to the installation of linux-libc-headers i am getting confused....
My triplet:i686-pc-linux-gnu
what should be the linuux-libc-header installation commands???
cp -R include/asm-i386 /tools/include/asm
OR
cp -R include/asm-i386 /tools/include/asm-i386
OR
cp -R include/asm-i386 /tools/include
I am asking this because this is causing troubles during the installation of glibc[while running make], thats what i am predicting.....
And also while creating platform specific include asm symlink, what should be the command??
|
|
|
04-23-2005, 09:22 PM
|
#18
|
Member
Registered: Mar 2005
Location: bangalore
Posts: 100
Original Poster
Rep:
|
Hi All,
This is what i get when i run the "make" while installing glibc....
[part of it follows..]
../sysdeps/unix/sysv/linux/sys/syscall.h:25:24: asm/unstd.h: No such file or directory
In file included from ../sysdeps/unix/sysv/linux/sys/param.h:24,
from ../sysdeps/i386/i386/hp-timing.h:25,
from ../nptl/descr.h:28,
from ../nptl/i386/i386/../tls.h:98,
from ../nptl/i386/i386/tls.h:34,
from ../include/tls.h:6,
from ../sysdeps/unix/sysv/linux/i386/sysdep.h:29,
from <stdin>:1:
/tools/glibc-kernheaders/linux/param.h:4:23: asm/param.h: No such file or directory
In file included from ../socket/sys/socket.h:35,
from../include/sys/socket.h:2,
from ../inet/netinit/in.h:24,
from ../include/netinit/in.h:3,
from ../resolv/resolv.h:57,
from ../include/resolv.h:11,
from ../nptl/descr.h:39,
from ../nptl/i386/i386/../tls.h:98,
from ../nptl/i386/i386/tls.h:34,
from ../include/tls.h:6,
from ../sysdeps/unix/sysv/linux/i386/sysdep.h:29,
from <stdin>:1:
../sysdeps/unix/sysv/linux/bits/socket.h:305:24: asm/socket.h: No such file or directory
make[2]: *** [/mnt/lfs/sources/glibc-build/tcb-offsets.h] Error 1
make[2]: Leaving directory '/mnt/lfs/sources/glibc-2.3.4-20040701/csu'
make[1]: *** [csu/subdir_lib] Error2
make[1]: Leaving directory '/mnt/lfs/sources/glibc-2.3.4-20040701'
make: ***[all] Error 2
Am I right in predicting that the error is due to improper installation of Linux-Libc_headers????
Thanx
|
|
|
04-24-2005, 01:44 AM
|
#19
|
Senior Member
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973
Rep:
|
Re: Struck again!
I assume you are building the actual system, you will want this one
|
|
|
04-24-2005, 11:44 PM
|
#20
|
Member
Registered: Mar 2005
Location: bangalore
Posts: 100
Original Poster
Rep:
|
Hello,
Same[as put in my previous post] error is turning up when i run "make"during the installtion of of glibc....
I am not able to proceed furthur.....
Regards
KartheeK
|
|
|
04-25-2005, 12:05 AM
|
#21
|
Senior Member
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973
Rep:
|
is there a directory called /tools/include/asm and does it contain header files?
|
|
|
04-25-2005, 12:17 AM
|
#22
|
Member
Registered: Mar 2005
Location: bangalore
Posts: 100
Original Poster
Rep:
|
yes, theris a folder and it contains a lot of header files
|
|
|
04-25-2005, 12:21 AM
|
#23
|
Member
Registered: Mar 2005
Location: bangalore
Posts: 100
Original Poster
Rep:
|
By "/tools/include/asm" , i am assuming it as on my LFS partition.... as such ther is no directory "/tools/include/asm" on my host machine...
|
|
|
04-25-2005, 12:25 AM
|
#24
|
Member
Registered: Mar 2005
Location: bangalore
Posts: 100
Original Poster
Rep:
|
This is what i am getting still.. when i am running "make" during glibc installation..
In file included from ../sysdeps/unix/sysdep.h:21,
from ../sysdeps/unix/i386/sysdep.h:19,
from ../sysdeps/unix/sysv/linux/i386/sysdep.h:24,
from <stdin>:1:
../sysdeps/unix/sysv/linux/sys/syscall.h:25:24: asm/unistd.h: No such file or directory
In file included from ../sysdeps/unix/sysv/linux/sys/param.h:24,
from ../sysdeps/i386/i686/hp-timing.h:25,
from ../nptl/descr.h:28,
from ../nptl/sysdeps/i386/i686/../tls.h:98,
from ../nptl/sysdeps/i386/i686/tls.h:34,
from ../include/tls.h:6,
from ../sysdeps/unix/sysv/linux/i386/sysdep.h:29,
from <stdin>:1:
/tools/glibc-kernheaders/linux/param.h:4:23: asm/param.h: No such file or directory
In file included from ../socket/sys/socket.h:35,
from ../include/sys/socket.h:2,
from ../inet/netinet/in.h:24,
from ../include/netinet/in.h:3,
from ../resolv/resolv.h:57,
from ../include/resolv.h:11,
from ../nptl/descr.h:39,
from ../nptl/sysdeps/i386/i686/../tls.h:98,
from ../nptl/sysdeps/i386/i686/tls.h:34,
from ../include/tls.h:6,
from ../sysdeps/unix/sysv/linux/i386/sysdep.h:29,
from <stdin>:1:
../sysdeps/unix/sysv/linux/bits/socket.h:305:24: asm/socket.h: No such file or directory
make[2]: *** [/mnt/lfs/sources/gcc-build/tcb-offsets.h] Error 1
make[2]: Leaving directory `/mnt/lfs/sources/glibc-2.3.4-20040701/csu'
make[1]: *** [csu/subdir_lib] Error 2
make[1]: Leaving directory `/mnt/lfs/sources/glibc-2.3.4-20040701'
make: *** [all] Error 2
|
|
|
04-25-2005, 01:54 AM
|
#25
|
Senior Member
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973
Rep:
|
Quote:
Originally posted by kartheekpn
This is what i am getting still.. when i am running "make" during glibc installation..
In file included from ../sysdeps/unix/sysdep.h:21,
from ../sysdeps/unix/i386/sysdep.h:19,
from ../sysdeps/unix/sysv/linux/i386/sysdep.h:24,
from <stdin>:1:
../sysdeps/unix/sysv/linux/sys/syscall.h:25:24: asm/unistd.h: No such file or directory
In file included from ../sysdeps/unix/sysv/linux/sys/param.h:24,
from ../sysdeps/i386/i686/hp-timing.h:25,
from ../nptl/descr.h:28,
from ../nptl/sysdeps/i386/i686/../tls.h:98,
from ../nptl/sysdeps/i386/i686/tls.h:34,
from ../include/tls.h:6,
from ../sysdeps/unix/sysv/linux/i386/sysdep.h:29,
from <stdin>:1:
/tools/glibc-kernheaders/linux/param.h:4:23: asm/param.h: No such file or directory
In file included from ../socket/sys/socket.h:35,
from ../include/sys/socket.h:2,
from ../inet/netinet/in.h:24,
from ../include/netinet/in.h:3,
from ../resolv/resolv.h:57,
from ../include/resolv.h:11,
from ../nptl/descr.h:39,
from ../nptl/sysdeps/i386/i686/../tls.h:98,
from ../nptl/sysdeps/i386/i686/tls.h:34,
from ../include/tls.h:6,
from ../sysdeps/unix/sysv/linux/i386/sysdep.h:29,
from <stdin>:1:
../sysdeps/unix/sysv/linux/bits/socket.h:305:24: asm/socket.h: No such file or directory
make[2]: *** [/mnt/lfs/sources/gcc-build/tcb-offsets.h] Error 1
make[2]: Leaving directory `/mnt/lfs/sources/glibc-2.3.4-20040701/csu'
make[1]: *** [csu/subdir_lib] Error 2
make[1]: Leaving directory `/mnt/lfs/sources/glibc-2.3.4-20040701'
make: *** [all] Error 2
|
the red area is your problem, when you configure glibc with --with-headers=/tools/include, in /tools/include there needs to be a directory called asm containing the headers you copied earlier. this should fix it for you:
go back to the linux-libc-headers package you had earlier, extract it and cd into it
next do:
Code:
cp -R include/asm-i386 /tools/include/asm
verify that /tools/include/asm has headers in it ( namely socket.h and the rest that are specifically mentioned in your error output above).
|
|
|
04-25-2005, 03:04 AM
|
#26
|
Member
Registered: Mar 2005
Location: bangalore
Posts: 100
Original Poster
Rep:
|
Hello __J,
Firstly, tons of thanx for the wonderful and speedy support you are giving..
Everything is in place as u have told. ther surely is a /tools/include/asm folder with all the mentioned header files...
Still the same error.....
But one thing you are mentioning to configure glibc with "--with-headers=/tools/include" whereas in the LFS v6 book pg 51in the topic"Installation Of Glibc", they have asked to configure glibc with "--with-headers=/tools/glibc-kernheaders" ????
|
|
|
04-25-2005, 03:46 AM
|
#28
|
Member
Registered: Mar 2005
Location: bangalore
Posts: 100
Original Poster
Rep:
|
 Yes, i have done that..
I am thinking of starting everything afresh....
I will get back with any errors[let me hope they wont this time ]...
Some great person has said: "TRY TRY UNTIL YOU SUCCEED" I think I should do it.... 
|
|
|
04-26-2005, 12:10 AM
|
#29
|
Member
Registered: Mar 2005
Location: bangalore
Posts: 100
Original Poster
Rep:
|
Need Help Badly...
Hello All,
After installing afresh each and everything, i am still getting the same error. Ther is some thing mentioned about CLAGS & CXXFLAGS in:
http://lfs.osuosl.org/lfs/view/6.0/chapter05/glibc.html
Is that is what troubling me??? What do i need to do to overcome that??
Thanx
KartheeK
|
|
|
04-26-2005, 03:37 AM
|
#30
|
Senior Member
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973
Rep:
|
I'd recommend not starting over each time, you will learn more about troubleshooting problems ( you can fix almost anything with the right tools).
here is what you need to make sure of:
you have a directory called /tools/glibc-kernheaders
the /tools/glibc-kernheaders directory contains another directory called asm that contains headers from the linux-2.6.x kernel that comes with the LFS packages.
CFLAGS and CXXFLAGS in the sense that the directions are talking about is optimizations. you can specify what processor to build applications for (either optimizing for a processor while maintaining compatibility for older processors or compiling for a certain processor ( in which breaks compatibility with processors that are not at least equal to or better than the one the build was optimized for). Don't worry about these for now, you probably don't want to start messing around with this until you get a little more comfortable with it all ( overdoing optimizing or incorrectly doing it will result in possible erratic behaving programs/libraries or they will not work at all). Also I should add there are alot more optimizations that gcc supports, not just processor or hardware specific ones.
|
|
|
All times are GMT -5. The time now is 07:37 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
|
|