When I try to cross compile findutils with the latest and greatest gcc
(from trunk) and the latest and greatest glibc(master in git) I get this
when cross compiling findutils:
make[4]: Entering directory
`/storage/home/solskogen/obj/_build/findutils.x86_64-centix-linux-gnu/gnulib/lib'
depbase=`echo areadlink-with-size.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
x86_64-centix-linux-gnu-gcc -std=gnu99 -DHAVE_CONFIG_H -I.
-I/home/solskogen/src/bin/findutils/gnulib/lib -I../.. -I../../intl
-g -O2 -MT areadlink-with-size.o -MD -MP -MF $depbase.Tpo -c -o
areadlink-with-size.o
/home/solskogen/src/bin/findutils/gnulib/lib/areadlink-with-size.c &&\
mv -f $depbase.Tpo $depbase.Po
In file included from ./wchar.h:37:0,
from
/home/solskogen/obj/root.x86_64-centix-linux-gnu/usr/include/_G_config.h:20,
from
/home/solskogen/obj/root.x86_64-centix-linux-gnu/usr/include/libio.h:32,
from
/home/solskogen/obj/root.x86_64-centix-linux-gnu/usr/include/stdio.h:74,
from ./stdio.h:31,
from
/home/solskogen/src/bin/findutils/gnulib/lib/areadlink-with-size.c:25:
/home/solskogen/obj/root.x86_64-centix-linux-gnu/usr/include/stdio.h:749:12:
error: expected declaration specifiers or '...' before '(' token
extern int fseek (FILE *__stream, long int __off, int __whence);
^
make[4]: *** [areadlink-with-size.o] Error 1
make[4]: Leaving directory
`/storage/home/solskogen/obj/_build/findutils.x86_64-centix-linux-gnu/gnulib/lib'
make[3]: *** [all] Error 2
make[3]: Leaving directory
`/storage/home/solskogen/obj/_build/findutils.x86_64-centix-linux-gnu/gnulib/lib'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
`/storage/home/solskogen/obj/_build/findutils.x86_64-centix-linux-gnu/gnulib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/storage/home/solskogen/obj/_build/findutils.x86_64-centix-linux-gnu'
However! If I rather use the compiler that I compiled with my cross
compiler, and enter my new root using chroot findutils compiles without
any hickup. Do you have any clue?
--
chs