[Clfs-support] problem compiling glibc-2.19 on cygwin

nagudaku nagudaku at gmail.com
Sat Jun 7 11:58:32 PDT 2014


i'm getting an error when cross-compiling glibc-2.19 with host=cygwin and
target=x86_64-unknown-linux-gnu
i've followed the instructions in CLFS  GIT-20140604-x86_64-Pure64

error message during 'make' is as below:

...snip...

make  subdir=resolv -C resolv ..=../ others
make[2]: Entering directory '/mnt/clfs/sources/work/glibc-2.19/resolv'
make[2]: Nothing to be done for 'others'.
make[2]: Leaving directory '/mnt/clfs/sources/work/glibc-2.19/resolv'
make  subdir=nss -C nss ..=../ others
make  subdir=hesiod -C hesiod ..=../ others
make[2]: Entering directory '/mnt/clfs/sources/work/glibc-2.19/hesiod'
make[2]: Nothing to be done for 'others'.
make[2]: Leaving directory '/mnt/clfs/sources/work/glibc-2.19/hesiod'
make  subdir=sunrpc -C sunrpc ..=../ others
make[2]: Entering directory '/mnt/clfs/sources/work/glibc-2.19/sunrpc'
x86_64-unknown-linux-gnu-gcc -m64 rpc_main.c -c -std=gnu99 -fgnu89-inline
 -O2 -Wall -Winline -Wwrite-strings -fmerge-all-constants -frounding-math
-g -Wstrict-prototypes        -D_RPC_THREAD_SAFE_ -I../include
-I/mnt/clfs/sources/work/glibc-build/sunrpc
 -I/mnt/clfs/sources/work/glibc-build
 -I../sysdeps/unix/sysv/linux/x86_64/64/nptl
 -I../sysdeps/unix/sysv/linux/x86_64/64
 -I../nptl/sysdeps/unix/sysv/linux/x86_64
 -I../nptl/sysdeps/unix/sysv/linux/x86  -I../sysdeps/unix/sysv/linux/x86
 -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../ports/sysdeps/unix/sysv/linux
 -I../sysdeps/unix/sysv/linux  -I../sysdeps/gnu  -I../sysdeps/unix/inet
 -I../nptl/sysdeps/unix/sysv  -I../ports/sysdeps/unix/sysv
 -I../sysdeps/unix/sysv  -I../sysdeps/unix/x86_64  -I../nptl/sysdeps/unix
 -I../ports/sysdeps/unix  -I../sysdeps/unix  -I../sysdeps/posix
 -I../nptl/sysdeps/x86_64/64  -I../sysdeps/x86_64/64
 -I../sysdeps/x86_64/fpu/multiarch  -I../sysdeps/x86_64/fpu
 -I../sysdeps/x86/fpu  -I../sysdeps/x86_64/multiarch
 -I../nptl/sysdeps/x86_64  -I../sysdeps/x86_64  -I../sysdeps/x86
 -I../sysdeps/ieee754/ldbl-96  -I../sysdeps/ieee754/dbl-64/wordsize-64
 -I../sysdeps/ieee754/dbl-64  -I../sysdeps/ieee754/flt-32
 -I../sysdeps/wordsize-64  -I../sysdeps/ieee754  -I../sysdeps/generic
 -I../nptl  -I../ports  -I.. -I../libio -I. -nostdinc -isystem
/mnt/clfs/cross-tools/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.8.3/include
-isystem
/mnt/clfs/cross-tools/bin/../lib/gcc/x86_64-unknown-linux-gnu/4.8.3/include-fixed
-isystem /tools/include  -D_LIBC_REENTRANT -include
../include/libc-symbols.h   -DNOT_IN_libc=1    -D_RPC_THREAD_SAFE_ -o
/mnt/clfs/sources/work/glibc-build/sunrpc/rpc_main.o -MD -MP -MF
/mnt/clfs/sources/work/glibc-build/sunrpc/rpc_main.o.dt -MT
/mnt/clfs/sources/work/glibc-build/sunrpc/rpc_main.o
gcc   -D_RPC_THREAD_SAFE_ -D_GNU_SOURCE -DIS_IN_build -include
/mnt/clfs/sources/work/glibc-build/config.h rpc_main.c \
        -o /mnt/clfs/sources/work/glibc-build/sunrpc/cross-rpc_main.o -MMD
-MP -MF /mnt/clfs/sources/work/glibc-build/sunrpc/cross-rpc_main.o.dt -MT
/mnt/clfs/sources/work/glibc-build/sunrpc/cross-rpc_main.o -c
rpc_main.c: In function 'find_cpp':
rpc_main.c:329:17: error: storage size of 'buf' isn't known
   struct stat64 buf;
                 ^
rpc_main.c: In function 'checkfiles':
rpc_main.c:1117:17: error: storage size of 'buf' isn't known
   struct stat64 buf;
                 ^
Makefile:165: recipe for target
'/mnt/clfs/sources/work/glibc-build/sunrpc/cross-rpc_main.o' failed
make[2]: *** [/mnt/clfs/sources/work/glibc-build/sunrpc/cross-rpc_main.o]
Error 1
make[2]: Leaving directory '/mnt/clfs/sources/work/glibc-2.19/sunrpc'
Makefile:213: recipe for target 'sunrpc/others' failed
make[1]: *** [sunrpc/others] Error 2
make[1]: Leaving directory '/mnt/clfs/sources/work/glibc-2.19'
Makefile:9: recipe for target 'all' failed
make: *** [all] Error 2


please suggest any steps to correct this error


~nagu.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.clfs.org/pipermail/clfs-support-clfs.org/attachments/20140608/24a64b54/attachment.html>


More information about the Clfs-support mailing list