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

Alonso Graterol alonso.graterol at gmail.com
Sun Jul 8 10:44:00 PDT 2012


Hello William,

Thanks for following with me. When I posted the error I forgot that was the
attempt to continue the make after having fail once. I should have posted
the following,

gcc -m32 rpc_clntout.c -c -std=gnu99 -fgnu89-inline -O2 -Wall -Winline
-Wwrite-strings -fmerge-all-constants -g -march=i686 -mtune=generic
-Wstrict-prototypes   -Wa,-mtune=i686      -I../include
-I/sources/eglibc-build/sunrpc -I/sources/eglibc-build
-I../sysdeps/i386/elf -I../nptl/sysdeps/unix/sysv/linux/i386/i686
-I../sysdeps/unix/sysv/linux/i386/i686
-I../nptl/sysdeps/unix/sysv/linux/i386 -I../sysdeps/unix/sysv/linux/i386
-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../sysdeps/unix/sysv/i386 -I../nptl/sysdeps/unix/sysv
-I../sysdeps/unix/sysv -I../sysdeps/unix/i386 -I../nptl/sysdeps/unix
-I../sysdeps/unix -I../sysdeps/posix -I../sysdeps/i386/i686/fpu
-I../sysdeps/i386/i686/multiarch -I../nptl/sysdeps/i386/i686
-I../sysdeps/i386/i686 -I../sysdeps/i386/i486 -I../nptl/sysdeps/i386/i486
-I../sysdeps/i386/fpu -I../nptl/sysdeps/i386 -I../sysdeps/i386
-I../sysdeps/wordsize-32 -I../sysdeps/ieee754/ldbl-96
-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
rpc_clntout.c:34:19: fatal error: types.h: No such file or directory
compilation terminated.
make[2]: *** [/sources/eglibc-build/sunrpc/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
root:/sources/eglibc-build#

Nevertheless, I tried again from scratch with eglibc-2.15 (extracting the
tarball and so on) and always errors out at same point (tried twice at
least)

I am building multilib by the way.


Alonso

2012/7/7 William Harrington <berzerkula at cox.net>

>
> 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<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
> ______________________________**_________________
> Clfs-support mailing list
> Clfs-support at lists.cross-lfs.**org <Clfs-support at lists.cross-lfs.org>
> http://lists.cross-lfs.org/**listinfo.cgi/clfs-support-**cross-lfs.org<http://lists.cross-lfs.org/listinfo.cgi/clfs-support-cross-lfs.org>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.clfs.org/pipermail/clfs-support-clfs.org/attachments/20120708/cf3011e6/attachment-0001.htm>


More information about the Clfs-support mailing list