x86->powerpc-uclibc cross-compiler problem

Buday Gergely gergoe@math.bme.hu
Thu Apr 21 16:56:00 GMT 2005


Hi,

I'm trying to create a powerpc-uclibc-gcc on my ubuntu x86 host with 
scratchbox:

/scratchbox/compilers/powerpc-gcc-3.3.2-uclibc-snapshot-20040229/bin/powerpc-linux-uclibc-gcc 
-Wall -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing  -Os 
-fno-builtin -nostdinc -D_LIBC -I../../include -I. 
-I/scratchbox/compilers/powerpc-gcc-3.3.2-uclibc-snapshot-20040229/lib/gcc-lib/powerpc-linux-uclibc/3.3.2/include 
-DNDEBUG -fPIC -c _fopen.c -o _fopen.o
In file included from ../../include/stdio.h:65,
                  from _stdio.h:16,
                  from _fopen.c:8:
../../include/bits/uClibc_stdio.h:528:1: warning: "__FPUTC" redefined
../../include/bits/uClibc_stdio.h:417:1: warning: this is the location of 
the previous definition
_fopen.c:168:2: warning: #warning if builtin buffer, then need probably 
want to test vs that too
_fopen.c: In function `_stdio_fopen':
_fopen.c:169: error: structure has no member named `unbuf'
_fopen.c:170: error: structure has no member named `unbuf'
_fopen.c:170: error: structure has no member named `unbuf'
make[6]: *** [_fopen.o] Error 1

_fopen.c contains:

# if __STDIO_BUILTIN_BUF_SIZE > 0
#warning if builtin buffer, then need probably want to test vs that too
                 stream->__bufstart = stream->unbuf;
                         stream->__bufend = stream->unbuf + 
sizeof(stream->unbuf);
# else  /* __STDIO_BUILTIN_BUF_SIZE > 0 */
                         stream->__bufend = stream->__bufstart;
# endif /* __STDIO_BUILTIN_BUF_SIZE >

The strange thing is that there's no 'unbuf' member of FILE struct in any 
circumstances. Why is there, then, this reference to it? May I safely omit 
these statements from the code?

Has anybody run into this problem so far? Any hint would be appreciated.

- Gergely




------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com



More information about the crossgcc mailing list