All of lore.kernel.org
 help / color / mirror / Atom feed
* Cross-compile 2.4.20 (released on 11/28/2002) failed.
@ 2002-12-08 21:05 Xiaogeng Jin
  0 siblings, 0 replies; only message in thread
From: Xiaogeng Jin @ 2002-12-08 21:05 UTC (permalink / raw)
  To: linux-kernel

There is a problem when cross compiling linux-2.4.20 for a ppc-8xx 
system on a RedHat-7.3 x86 host using gcc-2.95.4. It complained that 
stdarg.h couldn't be found when sched.c is compiled. I compared the 
Makefile of 2.4.20 with the one of linuxppc_2_4_devel and found that it 
was caused by the different definition of kbuild_2_4_nostdinc.

2.4.20 Makefile defines kbuild_2_4_nostdinc as the following:
     kbuild_2_4_nostdinc   := -nostdinc -iwithprefix include
It doesn't work.
linuxppc_2_4_devel Makefile defines kbuild_2_4_nostdinc as the following:
     kbuild_2_4_nostdinc   := -nostdinc $(shell $(CC) -print-search-dirs 
| sed -ne 's/install: \(.*\)/-I \1include/gp')
It works for me.

Please CC replies to me. Thanks.

- Shawn.

Here is the compilatin error message.

make[2]: Entering directory `/home/xjin/code/linux-2.4.20/kernel'
ppc_8xx-gcc -D__KERNEL__ -I/home/xjin/code/linux-2.4.20/include -Wall 
-Wstrict-prototypes -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common 
-fomit-frame-pointer -I/home/xjin/code/linux-2.4.20/arch/ppc 
-fsigned-char -msoft-float -pipe -ffixed-r2 -Wno-uninitialized 
-mmultiple -mstring -mcpu=860   -nostdinc -iwithprefix include 
-DKBUILD_BASENAME=sched  -fno-omit-frame-pointer -c -o sched.o sched.c
In file included from /home/xjin/code/linux-2.4.20/include/linux/wait.h:13,
                  from /home/xjin/code/linux-2.4.20/include/linux/fs.h:12,
                  from 
/home/xjin/code/linux-2.4.20/include/linux/capability.h:17,
                  from 
/home/xjin/code/linux-2.4.20/include/linux/binfmts.h:5,
                  from /home/xjin/code/linux-2.4.20/include/linux/sched.h:9,
                  from /home/xjin/code/linux-2.4.20/include/linux/mm.h:4,
                  from sched.c:23:
/home/xjin/code/linux-2.4.20/include/linux/kernel.h:10: stdarg.h: No 
such file or directory
In file included from /home/xjin/code/linux-2.4.20/include/linux/wait.h:13,
                  from /home/xjin/code/linux-2.4.20/include/linux/fs.h:12,
                  from 
/home/xjin/code/linux-2.4.20/include/linux/capability.h:17,
                  from 
/home/xjin/code/linux-2.4.20/include/linux/binfmts.h:5,
                  from /home/xjin/code/linux-2.4.20/include/linux/sched.h:9,
                  from /home/xjin/code/linux-2.4.20/include/linux/mm.h:4,
                  from sched.c:23:
/home/xjin/code/linux-2.4.20/include/linux/kernel.h:74: parse error 
before `va_list'
/home/xjin/code/linux-2.4.20/include/linux/kernel.h:74: warning: 
function declaration isn't a prototype
/home/xjin/code/linux-2.4.20/include/linux/kernel.h:77: parse error 
before `va_list'
/home/xjin/code/linux-2.4.20/include/linux/kernel.h:77: warning: 
function declaration isn't a prototype
/home/xjin/code/linux-2.4.20/include/linux/kernel.h:81: parse error 
before `va_list'
/home/xjin/code/linux-2.4.20/include/linux/kernel.h:81: warning: 
function declaration isn't a prototype
make[2]: *** [sched.o] Error 1
make[2]: Leaving directory `/home/xjin/code/linux-2.4.20/kernel'
make[1]: *** [first_rule] Error 2
make[1]: Leaving directory `/home/xjin/code/linux-2.4.20/kernel'
make: *** [_dir_kernel] Error 2


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-12-08 20:57 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-12-08 21:05 Cross-compile 2.4.20 (released on 11/28/2002) failed Xiaogeng Jin

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.