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-10 21:22 Problems building the kernel using the ELDK D'Abbraccio Joe-ljd015
@ 2002-10-10 21:33 ` Hollis Blanchard
  2002-10-11 10:46   ` Steven Scholz
  0 siblings, 1 reply; 8+ messages in thread
From: Hollis Blanchard @ 2002-10-10 21:33 UTC (permalink / raw)
  To: 'linuxppc-embedded@lists.linuxppc.org'


On Thu, 10 Oct 2002, D'Abbraccio Joe-ljd015 wrote:
>
> 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.

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/

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

* Re: cross-compiler and stdarg.h
  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 14:35     ` cross-compiler and stdarg.h Marius Groeger
  0 siblings, 2 replies; 8+ messages in thread
From: Steven Scholz @ 2002-10-11 10:46 UTC (permalink / raw)
  To: Hollis Blanchard; +Cc: 'linuxppc-embedded@lists.linuxppc.org'


Hollis Blanchard wrote:
>
> On Thu, 10 Oct 2002, D'Abbraccio Joe-ljd015 wrote:
> >
> > 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.
>
> 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

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

* Query
  2002-10-11 10:46   ` Steven Scholz
@ 2002-10-11 11:20     ` Anish
  2002-10-11 11:43       ` Query Wolfgang Denk
  2002-10-11 14:35     ` cross-compiler and stdarg.h Marius Groeger
  1 sibling, 1 reply; 8+ messages in thread
From: Anish @ 2002-10-11 11:20 UTC (permalink / raw)
  To: linuxppc-embedded


Hi,
Can anybody direct me for and SMC UART device driver for Linux.
anish nema


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

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

* Re: Query
  2002-10-11 11:20     ` Query Anish
@ 2002-10-11 11:43       ` Wolfgang Denk
  0 siblings, 0 replies; 8+ messages in thread
From: Wolfgang Denk @ 2002-10-11 11:43 UTC (permalink / raw)
  To: Anish; +Cc: linuxppc-embedded


In message <Pine.OSF.4.21.0210111618230.16143-100000@ws9.cdotb.ernet.in> you wrote:
>
> Can anybody direct me for and SMC UART device driver for Linux.

What's wrong with arch/ppc/8xx_io/uart.c and  arch/ppc/8260_io/uart.c ?

Best regards,

Wolfgang Denk

--
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd@denx.de
I had the rare misfortune of being one of the first people to try and
implement a PL/1 compiler.                             -- T. Cheatham

** 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 10:46   ` Steven Scholz
  2002-10-11 11:20     ` Query Anish
@ 2002-10-11 14:35     ` Marius Groeger
  1 sibling, 0 replies; 8+ messages in thread
From: Marius Groeger @ 2002-10-11 14:35 UTC (permalink / raw)
  To: Steven Scholz; +Cc: 'linuxppc-embedded@lists.linuxppc.org'


On Fri, 11 Oct 2002, Steven Scholz wrote:

> I had this problem too. A while ago. On 2002/09/13 I posted to this list but
> with no success.

Well, I for one noticed it and am actually using the patch. :-)

Thanks,
Marius

-----------------------------------------------------------------------------
Marius Groeger           SYSGO Real-Time Solutions GmbH     mgroeger@sysgo.de
Software Engineering     Embedded and Real-Time Software    www.sysgo.de
Voice: +49-6136-9948-0   Am Pfaffenstein 14                 www.osek.de
FAX:   +49-6136-9948-10  55270 Klein-Winternheim, Germany   www.elinos.com


** 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

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


On Fri, 11 Oct 2002, D'Abbraccio Joe-ljd015 wrote:

> 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) ?

It only negates _parts_ of -nostdinc. You are right in pointing out the
potential ugliness of this solution. The culprit lies IMHO pretty deep in
strong interconnection of components which is inherent to UNIX. (Note that
this is not meant to be flame bait, please ignore this mail if it offends
you. :-)

Regards,
Marius

-----------------------------------------------------------------------------
Marius Groeger           SYSGO Real-Time Solutions AG       mgroeger@sysgo.de
Software Engineering     Embedded and Real-Time Software    www.sysgo.de
Voice: +49-6136-9948-0   Am Pfaffenstein 14                 www.osek.de
FAX:   +49-6136-9948-10  55270 Klein-Winternheim, Germany   www.elinos.com


** 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.