<div dir="ltr">i'm getting an error when cross-compiling glibc-2.19 with host=cygwin and target=x86_64-unknown-linux-gnu<div>i've followed the instructions in CLFS  <span style="color:rgb(0,0,0);font-family:verdana,tahoma,helvetica,arial,sans-serif;font-size:18px;line-height:1em;text-align:center">GIT-20140604-x86_64-Pure64</span></div>

<div><br></div><div>error message during 'make' is as below:</div><div><br></div><div>...snip...</div><div><br></div><div><div>make  subdir=resolv -C resolv ..=../ others</div><div>make[2]: Entering directory '/mnt/clfs/sources/work/glibc-2.19/resolv'</div>

<div>make[2]: Nothing to be done for 'others'.</div><div>make[2]: Leaving directory '/mnt/clfs/sources/work/glibc-2.19/resolv'</div><div>make  subdir=nss -C nss ..=../ others</div><div>make  subdir=hesiod -C hesiod ..=../ others</div>

<div>make[2]: Entering directory '/mnt/clfs/sources/work/glibc-2.19/hesiod'</div><div>make[2]: Nothing to be done for 'others'.</div><div>make[2]: Leaving directory '/mnt/clfs/sources/work/glibc-2.19/hesiod'</div>

<div>make  subdir=sunrpc -C sunrpc ..=../ others</div><div>make[2]: Entering directory '/mnt/clfs/sources/work/glibc-2.19/sunrpc'</div><div>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</div>

<div>gcc   -D_RPC_THREAD_SAFE_ -D_GNU_SOURCE -DIS_IN_build -include /mnt/clfs/sources/work/glibc-build/config.h rpc_main.c \</div><div>        -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</div>

<div>rpc_main.c: In function 'find_cpp':</div><div>rpc_main.c:329:17: error: storage size of 'buf' isn't known</div><div>   struct stat64 buf;</div><div>                 ^</div><div>rpc_main.c: In function 'checkfiles':</div>

<div>rpc_main.c:1117:17: error: storage size of 'buf' isn't known</div><div>   struct stat64 buf;</div><div>                 ^</div><div>Makefile:165: recipe for target '/mnt/clfs/sources/work/glibc-build/sunrpc/cross-rpc_main.o' failed</div>

<div>make[2]: *** [/mnt/clfs/sources/work/glibc-build/sunrpc/cross-rpc_main.o] Error 1</div><div>make[2]: Leaving directory '/mnt/clfs/sources/work/glibc-2.19/sunrpc'</div><div>Makefile:213: recipe for target 'sunrpc/others' failed</div>

<div>make[1]: *** [sunrpc/others] Error 2</div><div>make[1]: Leaving directory '/mnt/clfs/sources/work/glibc-2.19'</div><div>Makefile:9: recipe for target 'all' failed</div><div>make: *** [all] Error 2</div>

<div><br></div></div><div><br></div><div>please suggest any steps to correct this error</div><div><br></div><div><br></div><div>~nagu.</div></div>