All of lore.kernel.org
 help / color / mirror / Atom feed
* Problems building the kernel using the ELDK
@ 2002-10-10 21:22 D'Abbraccio Joe-ljd015
  2002-10-10 21:33 ` cross-compiler and stdarg.h Hollis Blanchard
  0 siblings, 1 reply; 8+ messages in thread
From: D'Abbraccio Joe-ljd015 @ 2002-10-10 21:22 UTC (permalink / raw)
  To: 'linuxppc-embedded@lists.linuxppc.org'


When I build the kernel using the ELDK I get the following failure:
>>>>>
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.

Thanks in advance,
Joe


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 8+ messages in thread
* RE: cross-compiler and stdarg.h
@ 2002-10-11 15:55 D'Abbraccio Joe-ljd015
  2002-10-17 12:16 ` Marius Groeger
  0 siblings, 1 reply; 8+ messages in thread
From: D'Abbraccio Joe-ljd015 @ 2002-10-11 15:55 UTC (permalink / raw)
  To: 'Steven Scholz', 'Hollis Blanchard'
  Cc: 'linuxppc-embedded@lists.linuxppc.org'


Doesn't this patch simply negate the -nostdinc switch (i.e. the resulting switch is something like "-I /usr/opt/eldk-1.0.1/usr/lib/gcc-lib/ppc-linux/2.95.3/include" which is part of stdinc) ?

> -----Original Message-----
> From: Steven Scholz [mailto:steven.scholz@imc-berlin.de]
> Sent: Friday, October 11, 2002 6:46 AM
> To: Hollis Blanchard
> Cc: linuxppc-embedded@lists.linuxppc.org
> Subject: Re: cross-compiler and stdarg.h
>
>
> I had this problem too. A while ago. On 2002/09/13 I posted
> to this list but
> with no success.
>
> I found the problem in the main Makefile:
>
> ---------------
> @@ -261,7 +262,7 @@
>  # 'kbuild_2_4_nostdinc :=' or -I/usr/include for kernel code
> and you are not
> UML
>  # then your code is broken!  KAO.
>
> -kbuild_2_4_nostdinc    := -nostdinc -iwithprefix include
> +kbuild_2_4_nostdinc    := -nostdinc $(shell $(CC)
> -print-search-dirs | sed -ne
> 's/install: \(.*\)/-I \1include/gp')
>  export kbuild_2_4_nostdinc
>
>  export CPPFLAGS CFLAGS CFLAGS_KERNEL AFLAGS AFLAGS_KERNEL
> ---------------
>
> I have no idea why... :o(
>
> Cheers,
>
> Steven
>

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2002-10-17 12:16 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-10-10 21:22 Problems building the kernel using the ELDK D'Abbraccio Joe-ljd015
2002-10-10 21:33 ` cross-compiler and stdarg.h Hollis Blanchard
2002-10-11 10:46   ` Steven Scholz
2002-10-11 11:20     ` Query Anish
2002-10-11 11:43       ` Query Wolfgang Denk
2002-10-11 14:35     ` cross-compiler and stdarg.h Marius Groeger
  -- strict thread matches above, loose matches on Subject: below --
2002-10-11 15:55 D'Abbraccio Joe-ljd015
2002-10-17 12:16 ` Marius Groeger

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.