[U-Boot-Users] Eldk-4.0 mips_4KC-gcc building linux-2.4.31 error

Hi; I am using eldk-4.0 mips_4KC to build linux-2.4.31 and stumbled at this error:
/opt/eldk/usr/bin/mips_4KC-gcc -D__KERNEL__ -I/vobs/project/comac/comac_amazon_l xdb1.1/source/kernel/opensource/linux-2.4.31/include -Wall -Wstrict-prototypes - Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -fomit-frame-pointer -I /vob s/project/comac/comac_amazon_lxdb1.1/source/kernel/opensource/linux-2.4. 31/inclu de/asm/gcc -G 0 -mno-abicalls -fno-pic -pipe -finline-limit=100000 -mabi=32 -ma rch=mips32 -Wa,-32 -Wa,-march=mips32 -Wa,-mips32 -Wa,--trap -DKBUILD_BASENAME= do_mounts -c -o init/do_mounts.o init/do_mounts.c In file included from /vobs/project/comac/comac_amazon_lxdb1.1/source/kernel/ope nsource/linux-2.4.31/include/linux/byteorder/big_endian.h:11, from /vobs/project/comac/comac_amazon_lxdb1.1/source/kernel/ope nsource/linux-2.4.31/include/asm/byteorder.h:23, from /vobs/project/comac/comac_amazon_lxdb1.1/source/kernel/ope nsource/linux-2.4.31/include/linux/kernel.h:15, from /vobs/project/comac/comac_amazon_lxdb1.1/source/kernel/ope nsource/linux-2.4.31/include/linux/wait.h:13, from /vobs/project/comac/comac_amazon_lxdb1.1/source/kernel/ope nsource/linux-2.4.31/include/linux/fs.h:12, from /vobs/project/comac/comac_amazon_lxdb1.1/source/kernel/ope nsource/linux-2.4.31/include/linux/capability.h:17, from /vobs/project/comac/comac_amazon_lxdb1.1/source/kernel/ope nsource/linux-2.4.31/include/linux/binfmts.h:5, from /vobs/project/comac/comac_amazon_lxdb1.1/source/kernel/ope nsource/linux-2.4.31/include/linux/sched.h:10, from /vobs/project/comac/comac_amazon_lxdb1.1/source/kernel/ope nsource/linux-2.4.31/include/linux/mm.h:4, from /vobs/project/comac/comac_amazon_lxdb1.1/source/kernel/ope nsource/linux-2.4.31/include/linux/slab.h:14, from init/do_mounts.c:3: /vobs/project/comac/comac_amazon_lxdb1.1/source/kernel/opensource/linux- 2.4.31/i nclude/linux/byteorder/swab.h:160: warning: type qualifiers ignored on function return type /vobs/project/comac/comac_amazon_lxdb1.1/source/kernel/opensource/linux- 2.4.31/i nclude/linux/byteorder/swab.h:173: warning: type qualifiers ignored on function return type /vobs/project/comac/comac_amazon_lxdb1.1/source/kernel/opensource/linux- 2.4.31/i nclude/linux/byteorder/swab.h:186: warning: type qualifiers ignored on function return type /vobs/project/comac/comac_amazon_lxdb1.1/source/kernel/opensource/linux- 2.4.31/i nclude/linux/byteorder/swab.h:200: warning: type qualifiers ignored on function return type init/do_mounts.c:55: error: static declaration of 'root_device_name' follows non -static declaration /vobs/project/comac/comac_amazon_lxdb1.1/source/kernel/opensource/linux- 2.4.31/i nclude/linux/fs.h:1566: error: previous declaration of 'root_device_name' was he re init/do_mounts.c: In function 'identify_ramdisk_image': init/do_mounts.c:511: warning: pointer targets in passing argument 2 of 'read' d iffer in signedness init/do_mounts.c:555: warning: pointer targets in passing argument 2 of 'read' d iffer in signedness init/do_mounts.c: In function 'fill_inbuf': init/do_mounts.c:1019: warning: pointer targets in passing argument 2 of 'read' differ in signedness init/do_mounts.c: In function 'flush_window': init/do_mounts.c:1037: warning: pointer targets in passing argument 2 of 'write' differ in signedness make: *** [init/do_mounts.o] Error 1 [tehkok@linux01 linux-2.4.31 229]$
Any advice and insight is appreciated. Thanks!
Regards, KH

In message 5049F8BE55F36348A315EFBE6CF34386AB2E1A@sinse301.ap.infineon.com you wrote:
I am using eldk-4.0 mips_4KC to build linux-2.4.31 and stumbled at this error:
this is tro be expected. Using gcc-4.x on a 2.4.x kernel will show lots of problems. The easy ones are the compile time problems you see here. The more "interesting" ones are the runtime issues, when GCC optimized away some code that you need.
But what has this to do with U-Boot? Souns very much off topic here.
Any advice and insight is appreciated. Thanks!
Either fix your kernel tree to work with GCC-4.x, or use an older compiler (like from ELDK 3.1.1).
Best regards,
Wolfgang Denk
participants (2)
-
KokHow.Teh@infineon.com
-
Wolfgang Denk