Problem building Binutils for sparc64 target
Jason Brooks
icedown@icedown.net
Sun Sep 12 08:11:00 GMT 2004
I am running cywgin and trying to compile binutils for a cross compiler to
sparc64. I am using,
../binutils/configure prefix=/usr target=sparc64-unknown-linux-gnu
When I run make I get this.
gcc -DHAVE_CONFIG_H -I. -I../../binutils/ld -I. -D_GNU_SOURCE -I.
-I../../binutils/ld -I../bfd -I../../binutils/ld/../bfd
-I../../binutils/ld/../include -I../../binutils/ld/../intl -I../intl -g -O2
-DLOCALEDIR="\"/usr/share/locale\"" -W -Wall -Wstrict-prototypes
-Wmissing-prototypes -g -O2 -c esun4.c
esun4.c: In function `gldsun4_search_dir':
esun4.c:191: error: `DIR' undeclared (first use in this function)
esun4.c:191: error: (Each undeclared identifier is reported only once
esun4.c:191: error: for each function it appears in.)
esun4.c:191: error: `dir' undeclared (first use in this function)
esun4.c:226: warning: implicit declaration of function `opendir'
esun4.c:231: warning: implicit declaration of function `readdir'
esun4.c:231: warning: assignment makes pointer from integer without a cast
esun4.c:236: error: dereferencing pointer to incomplete type
esun4.c:237: error: dereferencing pointer to incomplete type
esun4.c:241: error: dereferencing pointer to incomplete type
esun4.c:251: error: dereferencing pointer to incomplete type
esun4.c:253: error: dereferencing pointer to incomplete type
esun4.c:255: error: dereferencing pointer to incomplete type
esun4.c:256: error: dereferencing pointer to incomplete type
esun4.c:261: error: dereferencing pointer to incomplete type
esun4.c:271: error: dereferencing pointer to incomplete type
esun4.c:279: error: dereferencing pointer to incomplete type
esun4.c:280: error: dereferencing pointer to incomplete type
esun4.c:296: error: dereferencing pointer to incomplete type
esun4.c:300: error: dereferencing pointer to incomplete type
esun4.c:301: error: dereferencing pointer to incomplete type
esun4.c:307: warning: implicit declaration of function `closedir'
make[3]: *** [esun4.o] Error 1
make[3]: Leaving directory `/xcompilers/sparc64/build-binutils/ld'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/xcompilers/sparc64/build-binutils/ld'
make[1]: *** [all-recursive-am] Error 2
make[1]: Leaving directory `/xcompilers/sparc64/build-binutils/ld'
make: *** [all-ld] Error 2
I noticed during configure it was checking for header files containing DIR,
Is there some library I am missing to do this?
More information about the Binutils
mailing list