Thread (5 messages) flat view 5 messages, 5 authors, 2002-10-11

Re: cross-compiler and stdarg.h

From: Hollis Blanchard <hidden>
Date: 2002-10-10 21:33:38

On Thu, 10 Oct 2002, D'Abbraccio Joe-ljd015 wrote:
When I build the kernel using the ELDK I get the following failure:
quoted
quoted
quoted
quoted
quoted
ppc_82xx-gcc -D__KERNEL__ -I/usr/opt/kernels/linuxppc_2_4_devel/include -Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -I/usr/opt/kernels/linuxppc_2_4_devel/arch/ppc -fsigned-char -msoft-float -pipe -ffixed-r2 -Wno-uninitialized -mmultiple -mstring   -nostdinc -iwithprefix include -DKBUILD_BASENAME=sched  -fno-omit-frame-pointer -c -o sched.o sched.c
In file included from /usr/opt/kernels/linuxppc_2_4_devel/include/linux/wait.h:13,
                 from /usr/opt/kernels/linuxppc_2_4_devel/include/linux/fs.h:12,
                 from /usr/opt/kernels/linuxppc_2_4_devel/include/linux/capability.h:17,
                 from /usr/opt/kernels/linuxppc_2_4_devel/include/linux/binfmts.h:5,
                 from /usr/opt/kernels/linuxppc_2_4_devel/include/linux/sched.h:9,
                 from /usr/opt/kernels/linuxppc_2_4_devel/include/linux/mm.h:4,
                 from sched.c:23:
/usr/opt/kernels/linuxppc_2_4_devel/include/linux/kernel.h:10: stdarg.h: No such file or directory
<<<<<

Where is stdarg.h expected to come from if not from stdinc (i.e.
-nostdinc).  I don't believe there is one in kernel distribution.
I just had this problem and I'm embarassed to say I'm not quite sure
what caused it. I was building on a ppc64 box, but when I switched from
the ppc32 "cross-compiler" to the native toolchain (which is ppc32) the
problem went away.

Your cross-compiler includes this file in
<prefix>/lib/gcc-lib/powerpc-linux/<version>/include/ .

-Hollis


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help