LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux From Scratch (http://www.linuxquestions.org/questions/linux-from-scratch-13/)
-   -   Pls help problem in compiling glibc 2.12.1 (http://www.linuxquestions.org/questions/linux-from-scratch-13/pls-help-problem-in-compiling-glibc-2-12-1-a-874156/)

abhiklall 04-10-2011 02:52 PM

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

John VV 04-10-2011 03:56 PM

-- edit Lfrom S section and not the -- General help ---
i thought this was in the General help

crts 04-10-2011 03:58 PM

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.

crts 04-10-2011 04:04 PM

Quote:

Originally Posted by John VV (Post 4320298)
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...

abhiklall 04-10-2011 04:32 PM

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

crts 04-10-2011 04:58 PM

Quote:

Originally Posted by abhiklall (Post 4320326)
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.

abhiklall 04-10-2011 05:08 PM

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..?

crts 04-10-2011 05:30 PM

Quote:

Originally Posted by abhiklall (Post 4320343)
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.

abhiklall 04-10-2011 05:51 PM

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 ..

abhiklall 04-10-2011 05:56 PM

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

druuna 04-11-2011 03:31 AM

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.

abhiklall 04-11-2011 11:27 AM

the same problem still continues....no change ...pls help

abhiklall 04-11-2011 11:31 AM

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

druuna 04-12-2011 01:21 PM

Hi,
Quote:

Originally Posted by abhiklall (Post 4321143)
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.

abhiklall 04-12-2011 02:34 PM

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


All times are GMT -5. The time now is 11:31 AM.