* Compiling Kernel 2.6 for ppc32
@ 2003-09-09 16:17 André Lämmer
2003-09-09 16:49 ` Dan Kegel
2003-09-09 17:30 ` Wolfgang Denk
0 siblings, 2 replies; 6+ messages in thread
From: André Lämmer @ 2003-09-09 16:17 UTC (permalink / raw)
To: linuxppc-embedded
Hi!
I tried to compile the kernel 2.6. test 4 for PowerPC. I used the cross
compile tool chain ELDK V2.1 from Denx http://www.denx.de/. I am not
able to make the kernel, because I get the following error.
In file included from include/asm/system.h:8,
from include/linux/list.h:8,
from include/linux/signal.h:4,
from arch/ppc/kernel/asm-offsets.c:12:
include/linux/kernel.h:10: stdarg.h: Datei oder Verzeichnis nicht
gefunden In file included from include/asm/system.h:8,
from include/linux/list.h:8,
from include/linux/signal.h:4,
from arch/ppc/kernel/asm-offsets.c:12:
include/linux/kernel.h:73: parse error before `va_list'
include/linux/kernel.h:73: warning: function declaration isn't a
prototype
include/linux/kernel.h:76: parse error before `va_list'
include/linux/kernel.h:76: warning: function declaration isn't a
prototype
include/linux/kernel.h:80: parse error before `va_list'
include/linux/kernel.h:80: warning: function declaration isn't a
prototype
make[1]: *** [arch/ppc/kernel/asm-offsets.s] Fehler 1
make: *** [arch/ppc/kernel/asm-offsets.s] Fehler 2
I have no problems to compile the kernel for i386 mit the nativ gcc. Can
it be that the GCC 2.95.4 is to old or is there a missing option?
André
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Compiling Kernel 2.6 for ppc32
2003-09-09 16:17 Compiling Kernel 2.6 for ppc32 André Lämmer
@ 2003-09-09 16:49 ` Dan Kegel
2003-09-09 17:30 ` Wolfgang Denk
1 sibling, 0 replies; 6+ messages in thread
From: Dan Kegel @ 2003-09-09 16:49 UTC (permalink / raw)
To: André Lämmer; +Cc: linuxppc-embedded
André Lämmer wrote:
> I tried to compile the kernel 2.6. test 4 for PowerPC. I used the cross
> compile tool chain ELDK V2.1 from Denx http://www.denx.de/. I am not
> able to make the kernel, because I get the following error.
>
> In file included from include/asm/system.h:8,
> from include/linux/list.h:8,
> from include/linux/signal.h:4,
> from arch/ppc/kernel/asm-offsets.c:12:
> include/linux/kernel.h:10: stdarg.h: Datei oder Verzeichnis nicht
> gefunden
There are quite a few mentions of this problem on google.
e.g.
http://www.cs.helsinki.fi/linux/linux-kernel/2003-11/0090.html
Does it build if you do
export LANG=C
unset LC_ALL
first?
- Dan
--
Dan Kegel
http://www.kegel.com
http://counter.li.org/cgi-bin/runscript/display-person.cgi?user=78045
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Compiling Kernel 2.6 for ppc32
2003-09-09 16:17 Compiling Kernel 2.6 for ppc32 André Lämmer
2003-09-09 16:49 ` Dan Kegel
@ 2003-09-09 17:30 ` Wolfgang Denk
2003-09-10 16:08 ` André Lämmer
1 sibling, 1 reply; 6+ messages in thread
From: Wolfgang Denk @ 2003-09-09 17:30 UTC (permalink / raw)
To: André Lämmer; +Cc: linuxppc-embedded
In message <000001c376ed$eef95430$0f21258d@fhkonstanz.de> you wrote:
>
> I tried to compile the kernel 2.6. test 4 for PowerPC. I used the cross
> compile tool chain ELDK V2.1 from Denx http://www.denx.de/. I am not
> able to make the kernel, because I get the following error.
>
> In file included from include/asm/system.h:8,
> from include/linux/list.h:8,
> from include/linux/signal.h:4,
> from arch/ppc/kernel/asm-offsets.c:12:
> include/linux/kernel.h:10: stdarg.h: Datei oder Verzeichnis nicht
> gefunden In file included from include/asm/system.h:8,
...
In the top level Makefile, change the line
kbuild_2_4_nostdinc := -nostdinc -iwithprefix include
into:
kbuild_2_4_nostdinc := -nostdinc $(shell $(CC) -print-search-dirs | \
sed -ne 's/install: \(.*\)/-I \1include/gp')
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
Good manners are the settled medium of social, as specie is of
commercial, life; returns are equally expected for both.
- Lord Chesterfield _Letters to his Son_, 25 December 1753
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 6+ messages in thread
* RE: Compiling Kernel 2.6 for ppc32
2003-09-09 17:30 ` Wolfgang Denk
@ 2003-09-10 16:08 ` André Lämmer
2003-09-10 16:54 ` Wolfgang Denk
2003-09-10 19:14 ` Shih-Ying Chou
0 siblings, 2 replies; 6+ messages in thread
From: André Lämmer @ 2003-09-10 16:08 UTC (permalink / raw)
To: linuxppc-embedded
> -----Original Message-----
> From: owner-linuxppc-embedded@lists.linuxppc.org
> [mailto:owner-linuxppc-embedded@lists.linuxppc.org] On Behalf
> Of Wolfgang Denk
>
> > I tried to compile the kernel 2.6. test 4 for PowerPC. I used the
> > cross compile tool chain ELDK V2.1 from Denx
http://www.denx.de/. I am
> not able to make the kernel, because I get the following error.
>
> In file included from include/asm/system.h:8,
> from include/linux/list.h:8,
> from include/linux/signal.h:4,
> from arch/ppc/kernel/asm-offsets.c:12:
> include/linux/kernel.h:10: stdarg.h: Datei oder Verzeichnis nicht
> gefunden In file included from include/asm/system.h:8,
>
> In the top level Makefile, change the line
> kbuild_2_4_nostdinc := -nostdinc -iwithprefix include
> into:
> kbuild_2_4_nostdinc := -nostdinc $(shell $(CC) -print-search-dirs
| \
sed -ne 's/install: \(.*\)/-I
\1include/gp')
Now I tried kernel 2.6 test5 and changed the following option:
NOSTDINC_FLAGS =-nostdinc $(shell $(CC) -print-search-dirs | \
sed -ne 's/install: \(.*\)/-I \1include/gp')
The compilation continues but the binutiles of ELDK 2.1 are to old.
*** 2.6 kernels no longer buildcorrectly with old versions of binutils.
*** Please upgrade your binutils to 2.12.1 or newer
Will be there a new release in the next time?
André
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Compiling Kernel 2.6 for ppc32
2003-09-10 16:08 ` André Lämmer
@ 2003-09-10 16:54 ` Wolfgang Denk
2003-09-10 19:14 ` Shih-Ying Chou
1 sibling, 0 replies; 6+ messages in thread
From: Wolfgang Denk @ 2003-09-10 16:54 UTC (permalink / raw)
To: André Lämmer; +Cc: linuxppc-embedded
In message <000001c377b5$d341b2f0$0f21258d@fhkonstanz.de> you wrote:
>
> *** 2.6 kernels no longer buildcorrectly with old versions of binutils.
> *** Please upgrade your binutils to 2.12.1 or newer
>
> Will be there a new release in the next time?
We're working on a new (YD-3.0 based) release. But I don't think that
we will release it before October. [Helloween is a nice date for
releases :-)]
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
Each honest calling, each walk of life, has its own elite, its own
aristocracy based on excellence of performance. - James Bryant Conant
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Compiling Kernel 2.6 for ppc32
2003-09-10 16:08 ` André Lämmer
2003-09-10 16:54 ` Wolfgang Denk
@ 2003-09-10 19:14 ` Shih-Ying Chou
1 sibling, 0 replies; 6+ messages in thread
From: Shih-Ying Chou @ 2003-09-10 19:14 UTC (permalink / raw)
To: André Lämmer; +Cc: linuxppc-embedded
> *** 2.6 kernels no longer buildcorrectly with old versions of binutils.
> *** Please upgrade your binutils to 2.12.1 or newer
>
> Will be there a new release in the next time?
>
You can go to http://kegel.com/crosstool/ to download the scripts that can
help you to get the newer version of gcc, glibc and binutils. I have used
it to create a cross-compile tool chain and the tool chain can compile the
2.6.0-test5 successfully. The scripts do support several processor
architecture including ppc and others.
Hope this can help you.
Shih-Ying Chou
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2003-09-10 19:14 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-09-09 16:17 Compiling Kernel 2.6 for ppc32 André Lämmer
2003-09-09 16:49 ` Dan Kegel
2003-09-09 17:30 ` Wolfgang Denk
2003-09-10 16:08 ` André Lämmer
2003-09-10 16:54 ` Wolfgang Denk
2003-09-10 19:14 ` Shih-Ying Chou
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).