On Tue, Jul 14, 2009 at 11:01 PM, Rajinder Yadav<[email protected]> wrote: > r...@k64x2:$ uname -a > Linux K64x2 2.6.28-11-generic #42-Ubuntu SMP Fri Apr 17 01:58:03 UTC > 2009 x86_64 GNU/Linux > > LFS_Book-SVN-20090708 : Section 5.5.1 > > Error seems to be caused by: /usr/include/gnu/stubs.h:7:27: error: > gnu/stubs-32.h: No such file or directory > > Can someone tell me what I am missing? Possibly a devel package I need > to install, I am guessing system kernel header files? > > === > > /usr/include/gnu/stubs.h:7:27: error: gnu/stubs-32.h: No such file or > directory > make[5]: *** [_muldi3.o] Error 1 > make[5]: Leaving directory > > -- > Kind Regards, > Rajinder Yadav >
Upon further investigation, I only have the following 2 stub files $ cd /usr/include/gnu $ ls > libc-version.h lib-names.h stubs-64.h stubs.h doing a cat of stubs.h I notice bits/wordsize.h is included, so I check it out $ cat stubs.h ==========OUTPUT ======== /* This file selects the right generated file of `__stub_FUNCTION' macros based on the architecture being compiled for. */ #include <bits/wordsize.h> #if __WORDSIZE == 32 # include <gnu/stubs-32.h> #elif __WORDSIZE == 64 # include <gnu/stubs-64.h> #else # error "unexpected value for __WORDSIZE macro" #endif ========================= Finally I don't know why __x86_64__ is not defined, as a result __WORDSIZE is set to 32 in file wordsize.h $ cat ../bits/wordsize.h ==========OUTPUT ======== /* Determine the wordsize from the preprocessor defines. */ #if defined __x86_64__ # define __WORDSIZE 64 # define __WORDSIZE_COMPAT32 1 #else # define __WORDSIZE 32 #endif ========================= What do I need to do so stubs-64.h gets picked up? -- Kind Regards, Rajinder Yadav -- http://linuxfromscratch.org/mailman/listinfo/lfs-support FAQ: http://www.linuxfromscratch.org/lfs/faq.html Unsubscribe: See the above information page
