LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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-10-2011, 02:52 PM   #1
abhiklall
LQ Newbie
 
Registered: Mar 2011
Posts: 20

Rep: Reputation: 0
Pls help problem in compiling glibc 2.12.1


i m getting the following error pl help

from <stdin>:1:
sysdeps/unix/sysv/linux/sys/syscall.h:25: fatal error: asm/unistd.h: No such file or directory
compilation terminated.
In file included from ./sysdeps/unix/sysdep.h:21,
from ./sysdeps/unix/i386/sysdep.h:19,
from sysdeps/unix/sysv/linux/i386/sysdep.h:25,
from <stdin>:1:
sysdeps/unix/sysv/linux/sys/syscall.h:25: fatal error: asm/unistd.h: No such file or directory
compilation terminated.
In file included from ./sysdeps/unix/sysdep.h:21,
from ./sysdeps/unix/i386/sysdep.h:19,
from sysdeps/unix/sysv/linux/i386/sysdep.h:25,
from <stdin>:1:
sysdeps/unix/sysv/linux/sys/syscall.h:25: fatal error: asm/unistd.h: No such file or directory
compilation terminated.
In file included from ./sysdeps/unix/sysdep.h:21,
from ./sysdeps/unix/i386/sysdep.h:19,
from sysdeps/unix/sysv/linux/i386/sysdep.h:25,
from <stdin>:1:
sysdeps/unix/sysv/linux/sys/syscall.h:25: fatal error: asm/unistd.h: No such file or directory
compilation terminated.
In file included from ./sysdeps/unix/sysdep.h:21,
from ./sysdeps/unix/i386/sysdep.h:19,
from sysdeps/unix/sysv/linux/i386/sysdep.h:25,
from <stdin>:1:
sysdeps/unix/sysv/linux/sys/syscall.h:25: fatal error: asm/unistd.h: No such file or directory
compilation terminated.
In file included from ./sysdeps/unix/sysdep.h:21,
from ./sysdeps/unix/i386/sysdep.h:19,
from sysdeps/unix/sysv/linux/i386/sysdep.h:25,
from <stdin>:1:
sysdeps/unix/sysv/linux/sys/syscall.h:25: fatal error: asm/unistd.h: No such file or directory
compilation terminated.
In file included from ./sysdeps/unix/sysdep.h:21,
from ./sysdeps/unix/i386/sysdep.h:19,
from sysdeps/unix/sysv/linux/i386/sysdep.h:25,
from <stdin>:1:
sysdeps/unix/sysv/linux/sys/syscall.h:25: fatal error: asm/unistd.h: No such file or directory
compilation terminated.
In file included from ./sysdeps/unix/sysdep.h:21,
from ./sysdeps/unix/i386/sysdep.h:19,
from sysdeps/unix/sysv/linux/i386/sysdep.h:25,
from <stdin>:1:
sysdeps/unix/sysv/linux/sys/syscall.h:25: fatal error: asm/unistd.h: No such file or directory
compilation terminated.
In file included from ./sysdeps/unix/sysdep.h:21,
from ./sysdeps/unix/i386/sysdep.h:19,
from sysdeps/unix/sysv/linux/i386/sysdep.h:25,
from <stdin>:1:
sysdeps/unix/sysv/linux/sys/syscall.h:25: fatal error: asm/unistd.h: No such file or directory
compilation terminated.
In file included from ./sysdeps/unix/sysdep.h:21,
from ./sysdeps/unix/i386/sysdep.h:19,
from sysdeps/unix/sysv/linux/i386/sysdep.h:25,
from <stdin>:1:
sysdeps/unix/sysv/linux/sys/syscall.h:25: fatal error: asm/unistd.h: No such file or directory
compilation terminated.
In file included from ./sysdeps/unix/sysdep.h:21,
from ./sysdeps/unix/i386/sysdep.h:19,
from sysdeps/unix/sysv/linux/i386/sysdep.h:25,
from <stdin>:1:
sysdeps/unix/sysv/linux/sys/syscall.h:25: fatal error: asm/unistd.h: No such file or directory
compilation terminated.
In file included from ./sysdeps/unix/sysdep.h:21,
from ./sysdeps/unix/i386/sysdep.h:19,
from sysdeps/unix/sysv/linux/i386/sysdep.h:25,
from <stdin>:1:
sysdeps/unix/sysv/linux/sys/syscall.h:25: fatal error: asm/unistd.h: No such file or directory
compilation terminated.
In file included from ./sysdeps/unix/sysdep.h:21,
from ./sysdeps/unix/i386/sysdep.h:19,
from sysdeps/unix/sysv/linux/i386/sysdep.h:25,
from <stdin>:1:
sysdeps/unix/sysv/linux/sys/syscall.h:25: fatal error: asm/unistd.h: No such file or directory
compilation terminated.
In file included from ./sysdeps/unix/sysdep.h:21,
from ./sysdeps/unix/i386/sysdep.h:19,
from sysdeps/unix/sysv/linux/i386/sysdep.h:25,
from <stdin>:1:
sysdeps/unix/sysv/linux/sys/syscall.h:25: fatal error: asm/unistd.h: No such file or directory
compilation terminated.
In file included from ./sysdeps/unix/sysdep.h:21,
from ./sysdeps/unix/i386/sysdep.h:19,
from sysdeps/unix/sysv/linux/i386/sysdep.h:25,
from <stdin>:1:
sysdeps/unix/sysv/linux/sys/syscall.h:25: fatal error: asm/unistd.h: No such file or directory
compilation terminated.
In file included from ./sysdeps/unix/sysdep.h:21,
from ./sysdeps/unix/i386/sysdep.h:19,
from sysdeps/unix/sysv/linux/i386/sysdep.h:25,
from <stdin>:1:
sysdeps/unix/sysv/linux/sys/syscall.h:25: fatal error: asm/unistd.h: No such file or directory
compilation terminated.
In file included from ./sysdeps/unix/sysdep.h:21,
from ./sysdeps/unix/i386/sysdep.h:19,
from sysdeps/unix/sysv/linux/i386/sysdep.h:25,
from <stdin>:1:
sysdeps/unix/sysv/linux/sys/syscall.h:25: fatal error: asm/unistd.h: No such file or directory
compilation terminated.
In file included from ./sysdeps/unix/sysdep.h:21,
from ./sysdeps/unix/i386/sysdep.h:19,
from sysdeps/unix/sysv/linux/i386/sysdep.h:25,
from <stdin>:1:
sysdeps/unix/sysv/linux/sys/syscall.h:25: fatal error: asm/unistd.h: No such file or directory
compilation terminated.
In file included from ./sysdeps/unix/sysdep.h:21,
from ./sysdeps/unix/i386/sysdep.h:19,
from sysdeps/unix/sysv/linux/i386/sysdep.h:25,
from <stdin>:1:
sysdeps/unix/sysv/linux/sys/syscall.h:25: fatal error: asm/unistd.h: No such file or directory
compilation terminated.
In file included from ./sysdeps/unix/sysdep.h:21,
from ./sysdeps/unix/i386/sysdep.h:19,
from sysdeps/unix/sysv/linux/i386/sysdep.h:25,
from <stdin>:1:
sysdeps/unix/sysv/linux/sys/syscall.h:25: fatal error: asm/unistd.h: No such file or directory
compilation terminated.
In file included from ./sysdeps/unix/sysdep.h:21,
from ./sysdeps/unix/i386/sysdep.h:19,
from sysdeps/unix/sysv/linux/i386/sysdep.h:25,
from <stdin>:1:
sysdeps/unix/sysv/linux/sys/syscall.h:25: fatal error: asm/unistd.h: No such file or directory
compilation terminated.
In file included from ./sysdeps/unix/sysdep.h:21,
from ./sysdeps/unix/i386/sysdep.h:19,
from sysdeps/unix/sysv/linux/i386/sysdep.h:25,
from <stdin>:1:
sysdeps/unix/sysv/linux/sys/syscall.h:25: fatal error: asm/unistd.h: No such file or directory
compilation terminated.
In file included from ./sysdeps/unix/sysdep.h:21,
from ./sysdeps/unix/i386/sysdep.h:19,
from sysdeps/unix/sysv/linux/i386/sysdep.h:25,
from <stdin>:1:
sysdeps/unix/sysv/linux/sys/syscall.h:25: fatal error: asm/unistd.h: No such file or directory
compilation terminated.
In file included from ./sysdeps/unix/sysdep.h:21,
from ./sysdeps/unix/i386/sysdep.h:19,
from sysdeps/unix/sysv/linux/i386/sysdep.h:25,
from <stdin>:1:
sysdeps/unix/sysv/linux/sys/syscall.h:25: fatal error: asm/unistd.h: No such file or directory
compilation terminated.
In file included from ./sysdeps/unix/sysdep.h:21,
from ./sysdeps/unix/i386/sysdep.h:19,
from sysdeps/unix/sysv/linux/i386/sysdep.h:25,
from <stdin>:1:
sysdeps/unix/sysv/linux/sys/syscall.h:25: fatal error: asm/unistd.h: No such file or directory
compilation terminated.
In file included from ./sysdeps/unix/sysdep.h:21,
from ./sysdeps/unix/i386/sysdep.h:19,
from sysdeps/unix/sysv/linux/i386/sysdep.h:25,
from <stdin>:1:
sysdeps/unix/sysv/linux/sys/syscall.h:25: fatal error: asm/unistd.h: No such file or directory
compilation terminated.
In file included from ./sysdeps/unix/sysdep.h:21,
from ./sysdeps/unix/i386/sysdep.h:19,
from sysdeps/unix/sysv/linux/i386/sysdep.h:25,
from <stdin>:1:
sysdeps/unix/sysv/linux/sys/syscall.h:25: fatal error: asm/unistd.h: No such file or directory
compilation terminated.
In file included from ./sysdeps/unix/sysdep.h:21,
from ./sysdeps/unix/i386/sysdep.h:19,
from sysdeps/unix/sysv/linux/i386/sysdep.h:25,
from <stdin>:1:
sysdeps/unix/sysv/linux/sys/syscall.h:25: fatal error: asm/unistd.h: No such file or directory
compilation terminated.
In file included from ./sysdeps/unix/sysdep.h:21,
from ./sysdeps/unix/i386/sysdep.h:19,
from sysdeps/unix/sysv/linux/i386/sysdep.h:25,
from <stdin>:1:
sysdeps/unix/sysv/linux/sys/syscall.h:25: fatal error: asm/unistd.h: No such file or directory
compilation terminated.
In file included from ./sysdeps/unix/sysdep.h:21,
from ./sysdeps/unix/i386/sysdep.h:19,
from sysdeps/unix/sysv/linux/i386/sysdep.h:25,
from <stdin>:1:
sysdeps/unix/sysv/linux/sys/syscall.h:25: fatal error: asm/unistd.h: No such file or directory
compilation terminated.
In file included from ./sysdeps/unix/sysdep.h:21,
from ./sysdeps/unix/i386/sysdep.h:19,
from sysdeps/unix/sysv/linux/i386/sysdep.h:25,
from <stdin>:1:
sysdeps/unix/sysv/linux/sys/syscall.h:25: fatal error: asm/unistd.h: No such file or directory
compilation terminated.
In file included from ./sysdeps/unix/sysdep.h:21,
from ./sysdeps/unix/i386/sysdep.h:19,
from sysdeps/unix/sysv/linux/i386/sysdep.h:25,
from <stdin>:1:
sysdeps/unix/sysv/linux/sys/syscall.h:25: fatal error: asm/unistd.h: No such file or directory
compilation terminated.
mv -f /mnt/lfs/alky/sysd-syscallsT /mnt/lfs/alky/sysd-syscalls
gawk -f scripts/gen-sorted.awk \
-v subdirs='csu assert ctype locale intl catgets math setjmp signal stdlib stdio-common libio malloc string wcsmbs time dirent grp pwd posix io termios resource misc socket sysvipc gmon gnulib iconv iconvdata wctype manual shadow gshadow po argp crypt nss localedata timezone rt conform debug libidn dlfcn elf' \
-v srcpfx='' \
nptl/sysdeps/pthread/Subdirs sysdeps/unix/inet/Subdirs sysdeps/unix/Subdirs assert/Depend intl/Depend catgets/Depend stdlib/Depend stdio-common/Depend libio/Depend malloc/Depend string/Depend wcsmbs/Depend time/Depend posix/Depend iconvdata/Depend nss/Depend localedata/Depend rt/Depend debug/Depend > /mnt/lfs/alky/sysd-sorted-tmp
mv -f /mnt/lfs/alky/sysd-sorted-tmp /mnt/lfs/alky/sysd-sorted
make[1]: Leaving directory `/mnt/lfs/alky/glibc-2.13'
make[1]: Entering directory `/mnt/lfs/alky/glibc-2.13'

make[2]: Leaving directory `/mnt/lfs/alky/glibc-2.13/csu'
make[1]: *** [csu/subdir_lib] Error 2
make[1]: Leaving directory `/mnt/lfs/alky/glibc-2.13'
make: *** [all] Error 2
 
Old 04-10-2011, 03:56 PM   #2
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,623

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
-- edit Lfrom S section and not the -- General help ---
i thought this was in the General help

Last edited by John VV; 04-10-2011 at 05:20 PM.
 
Old 04-10-2011, 03:58 PM   #3
crts
Senior Member
 
Registered: Jan 2010
Posts: 2,020

Rep: Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757
Hi,

try to spell your words out.

In your title you say that you have problems compiling glibc-2.12.1. In your post, however, I see glibc-2.13. You also do not say which version of LFS you are trying to build (6.8 I assume). You further need to state which chapter you are currently working at and which commands you issued before the error occurred. It would be also helpful to know which host system you are using.

Try to use code-tags when pasting console output.

Code:
make[1]: Leaving directory `/mnt/lfs/alky/glibc-2.13'
make[1]: Entering directory `/mnt/lfs/alky/glibc-2.13'

make[2]: Leaving directory `/mnt/lfs/alky/glibc-2.13/csu'
make[1]: *** [csu/subdir_lib] Error 2
make[1]: Leaving directory `/mnt/lfs/alky/glibc-2.13'
make: *** [all] Error 2
This looks like you tried to compile from within the glibc source directory. The book instructs you that you need to create a dedicated build directory, like glibc-build and compile from within the build directory. Try to recompile with a freshly untarred source and from within the build directory.
 
Old 04-10-2011, 04:04 PM   #4
crts
Senior Member
 
Registered: Jan 2010
Posts: 2,020

Rep: Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757
Quote:
Originally Posted by John VV View Post
glib is one of the programs YOU DO -- i repeat -- You Do Not Install A Different Version Than IS ALREADY INSTALLED !!!!!!!
-- i repeat -- You Do Not Install A Different Version Than IS ALREADY INSTALLED !!!!!!!
-- i repeat -- You Do Not Install A Different Version Than IS ALREADY INSTALLED !!!!!!!

you WILL KILL YOUR Ubuntu INSTALL !!!!!!!

why do you think you need to build this ?
Did I miss something? From what I can tell he is trying to build the toolchain for his LFS. It *should* not affect the host. Unless I overlooked something in the log-file that suggests that glibc will be installed on his host system...
 
Old 04-10-2011, 04:32 PM   #5
abhiklall
LQ Newbie
 
Registered: Mar 2011
Posts: 20

Original Poster
Rep: Reputation: 0
hi...
i have tried to compile the glibc in different folder in the book the folder name is given an glibc-build i have named it alky
i am trying to build the lfs 6.7 and i am stuck on section 5.7.1 i tried with glibc-2.12.1 it gave me the error at compile time the same one ..so i tried the glibc 2.13 but the same error continues pls suggest me solutions thank you
 
Old 04-10-2011, 04:58 PM   #6
crts
Senior Member
 
Registered: Jan 2010
Posts: 2,020

Rep: Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757
Quote:
Originally Posted by abhiklall View Post
hi...
i have tried to compile the glibc in different folder in the book the folder name is given an glibc-build i have named it alky
i am trying to build the lfs 6.7 and i am stuck on section 5.7.1 i tried with glibc-2.12.1 it gave me the error at compile time the same one ..so i tried the glibc 2.13 but the same error continues pls suggest me solutions thank you
No, you tried to compile it from within the source directory. If you follow the instruction in chapter 5.7.1 you will automatically end up in the correct folder glibc is supposed to be build. The chapter also contains the commands to create the build-directory and then cd into it. This is how your directory structure should look like:
Code:
/mnt/lfs/sources/glibc-2.12.1
/mnt/lfs/sources/glibc-build # compile in this directory
Read chapter 5.7.1 again and follow it to the letter.
 
Old 04-10-2011, 05:08 PM   #7
abhiklall
LQ Newbie
 
Registered: Mar 2011
Posts: 20

Original Poster
Rep: Reputation: 0
i created a glibc-build directory then i extracted the glibc file in that which created the glibc-2.12.1 folder but i compiled it in glibc-build folder not in glibc-2.12.1 am i wrong. somewhere..?
 
Old 04-10-2011, 05:30 PM   #8
crts
Senior Member
 
Registered: Jan 2010
Posts: 2,020

Rep: Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757
Quote:
Originally Posted by abhiklall View Post
i created a glibc-build directory then i extracted the glibc file in that which created the glibc-2.12.1 folder but i compiled it in glibc-build folder not in glibc-2.12.1 am i wrong. somewhere..?
glibc-2.12.1 is NOT a subdirectory of glibc-build as your post suggests. Read my post #6 again and pay attention to the directory structure I mentioned. All you actually need to do is untar the glibc source file and cd into glibc-2.12.1. If you follow EVERY command in the book in chapter 5.7.1 then you will end up in glibc-build. So again: FOLLOW the book.
 
Old 04-10-2011, 05:51 PM   #9
abhiklall
LQ Newbie
 
Registered: Mar 2011
Posts: 20

Original Poster
Rep: Reputation: 0
i am still not clear with the directory structure sir ...first i ll extract the glibc file from the source folder then i ll create another folder named glibc-build and in that folder ill perform the compiling ..
 
Old 04-10-2011, 05:56 PM   #10
abhiklall
LQ Newbie
 
Registered: Mar 2011
Posts: 20

Original Poster
Rep: Reputation: 0
i made another directory and did the same thing as it was given in the book nut i still get the same error as the first one pls suggest something

Last edited by abhiklall; 04-10-2011 at 06:04 PM.
 
Old 04-11-2011, 03:31 AM   #11
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

- Which host are you using?
If you are using anything else then the LFS liveCD, you need to make your host compliant as mentioned in vii. Host System Requirements

You need to re-read all of chapter 5.3 General Compilation Instructions, especially the last Important box and the gray box below it.

Compiling in general:
Code:
cd $LFS/sources
tar jxf package-1.2.tar.bz2
cd package-1.2
follow the steps in the book for this specific package
cd $LFS/sources
rm -rf package-1.2 (and sometimes: rm -rf package-build)
Hope this helps.

Last edited by druuna; 04-11-2011 at 08:49 AM. Reason: Fixed typo
 
Old 04-11-2011, 11:27 AM   #12
abhiklall
LQ Newbie
 
Registered: Mar 2011
Posts: 20

Original Poster
Rep: Reputation: 0
the same problem still continues....no change ...pls help
 
Old 04-11-2011, 11:31 AM   #13
abhiklall
LQ Newbie
 
Registered: Mar 2011
Posts: 20

Original Poster
Rep: Reputation: 0
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: *** [install] Error 2
 
Old 04-12-2011, 01:21 PM   #14
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,
Quote:
Originally Posted by abhiklall View Post
the same problem still continues....no change ...pls help
Quote:
Originally Posted by abhiklall
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: *** [install] Error 2
There's no information to work with.

We need to see the command(s) you executed, and the error lines you posted aren't the interesting ones, the lines before it are (post the last 10 to 15 lines).

Info and details, but you've been told this before in this thread and the one from march.
 
Old 04-12-2011, 02:34 PM   #15
abhiklall
LQ Newbie
 
Registered: Mar 2011
Posts: 20

Original Poster
Rep: Reputation: 0
after the configure command in section 5.7.1 of lfs 6.7 and when i run the make command get the error as i have posted above there are no more detail ..than that sir
 
  


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

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

All times are GMT -5. The time now is 01:44 AM.

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