[Clfs-support] Trouble compiling eglibc GIT-20120610-x86_64-Multilib

William Harrington berzerkula at cox.net
Sat Jul 7 09:06:14 PDT 2012


On Jul 5, 2012, at 07:31 AM, Alonso Graterol wrote:

> Hello,
>
> I am currently in chapter 10.7 (stuck for a couple of days) and  
> make instruction stops with following error
>
> gcc rpc_clntout.c -c -D_RPC_THREAD_SAFE_ -D_CROSS_RPCGEN_ \
> 	-o /sources/eglibc-build/sunrpc/cross-rpc_clntout.o -MD -MP -MF / 
> sources/eglibc-build/sunrpc/cross-rpc_clntout.o.dt -MT /sources/ 
> eglibc-build/sunrpc/cross-rpc_clntout.o
> rpc_clntout.c:34:23: fatal error: rpc/types.h: No such file or  
> directory
> compilation terminated.
> make[2]: *** [/sources/eglibc-build/sunrpc/cross-rpc_clntout.o]  
> Error 1
> make[2]: Leaving directory `/sources/eglibc-2.15/sunrpc'
> make[1]: *** [sunrpc/others] Error 2
> make[1]: Leaving directory `/sources/eglibc-2.15'
> make: *** [all] Error 2
>
> I check'd and the file is indeed at eglibc-2.15/sunrpc/rpc. I have  
> not deviated from the book. I looked into sunrpc/Makefile and there  
> are other header files listed before types.h to be searched within  
> the same "rpc" subdirectory, which I guess they are all found.
>
> I have no clue.
>
>
> Alonso

In 10.7 , here http://cross-lfs.org/view/svn/x86_64-64/final-system/ 
eglibc.html , my build line is totally different. You should not even  
have cross-rpc_clntout . No cross compiling should be going on. I  
suspect you haven't removed the eglibc-2.15 and eglibc-build from the  
cross tools phase?

Start with freshly extracted source and build directory and try  
again. The build line should be something akin to this:

gcc rpc_clntout.c -c -std=gnu99 -fgnu89-inline -O2 -Wall -Winline - 
Wwrite-strings -fmerge-all-constants -g -mtune=generic -Wstrict- 
prototypes        -I../include -I/sources/eglibc-build/sunrpc -I/ 
sources/eglibc-build -I../sysdeps/x86_64/elf -I../nptl/sysdeps/unix/ 
sysv/linux/x86_64 -I../sysdeps/unix/sysv/linux/x86_64 -I../sysdeps/ 
unix/sysv/linux/wordsize-64 -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../nptl/sysdeps/unix/sysv -I../sysdeps/ 
unix/sysv -I../sysdeps/unix/x86_64 -I../nptl/sysdeps/unix -I../ 
sysdeps/unix -I../sysdeps/posix -I../sysdeps/x86_64/fpu/multiarch - 
I../sysdeps/x86_64/fpu -I../sysdeps/x86_64/multiarch -I../nptl/ 
sysdeps/x86_64 -I../sysdeps/x86_64 -I../sysdeps/wordsize-64 -I../ 
sysdeps/ieee754/ldbl-96 -I../sysdeps/ieee754/dbl-64/wordsize-64 -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.  -D_LIBC_REENTRANT -include ../include/libc- 
symbols.h   -DNOT_IN_libc=1    -D_RPC_THREAD_SAFE_ -o /sources/eglibc- 
build/sunrpc/rpc_clntout.o -MD -MP -MF /sources/eglibc-build/sunrpc/ 
rpc_clntout.o.dt -MT /sources/eglibc-build/sunrpc/rpc_clntout.o

Which shows it is building for the final system build and not cross  
compiling like yours is trying to do.

-William Harrington



More information about the Clfs-support mailing list