Build INCA-IP kernel from ELDK

Do you have a question? Post it now! No Registration Necessary

Translate This Thread From English to

Hello,

I am building mips kernel for Infineon INCA-IP board. The kernel was
retrieved from Denx's CVS, version 2.4.20. Cross compiler is from ELDK
with version 4.0.0. However the build process failed immediately. I
did:

make incaip_config
make oldconfig
make dep
make uImage

I got error when executing "make uImage":
=====================================================================
[root@localhost linux-mips]# make uImage
mips_4KC-gcc -D__KERNEL__ -I/usr/local/ELDK/usr/src/linux-mips/include
-Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fn o-strict-aliasing
-fno-common -fomit-frame-pointer -G 0 -mno-abicalls -fno-pic -pipe
-mtune=r4600 -mips2 -Wa,--trap -Wa ,--trap -D__linux__
-D_MIPS_SZLONG32% -D_MIPS_SZPTR32% -D_MIPS_SZINT32% -g
-DKBUILD_BASENAME=main -c -o init/main.o in it/main.c
In file included from
/usr/local/ELDK/usr/src/linux-mips/include/linux/byteorder/big_endian.h:11,
                 from
/usr/local/ELDK/usr/src/linux-mips/include/asm/byteorder.h:23,
                 from
/usr/local/ELDK/usr/src/linux-mips/include/linux/kernel.h:15,
                 from
/usr/local/ELDK/usr/src/linux-mips/include/linux/wait.h:13,
                 from
/usr/local/ELDK/usr/src/linux-mips/include/linux/fs.h:12,
                 from
/usr/local/ELDK/usr/src/linux-mips/include/linux/capability.h:17,
                 from
/usr/local/ELDK/usr/src/linux-mips/include/linux/binfmts.h:5,
                 from
/usr/local/ELDK/usr/src/linux-mips/include/linux/sched.h:9,
                 from
/usr/local/ELDK/usr/src/linux-mips/include/linux/mm.h:4,
                 from
/usr/local/ELDK/usr/src/linux-mips/include/linux/slab.h:14,
                 from
/usr/local/ELDK/usr/src/linux-mips/include/linux/proc_fs.h:5,
                 from init/main.c:15:
/usr/local/ELDK/usr/src/linux-mips/include/linux/byteorder/swab.h:160:
warning: type qualifiers ignored on function ret urn type
/usr/local/ELDK/usr/src/linux-mips/include/linux/byteorder/swab.h:173:
warning: type qualifiers ignored on function ret urn type
/usr/local/ELDK/usr/src/linux-mips/include/linux/byteorder/swab.h:186:
warning: type qualifiers ignored on function ret urn type
/usr/local/ELDK/usr/src/linux-mips/include/linux/byteorder/swab.h:200:
warning: type qualifiers ignored on function ret urn type
In file included from
/usr/local/ELDK/usr/src/linux-mips/include/linux/unistd.h:9,
                 from init/main.c:17:
/usr/local/ELDK/usr/src/linux-mips/include/asm/unistd.h:503: warning:
conflicting types for built-in function '_exit'
. scripts/mkversion > .tmpversion
mips_4KC-gcc -D__KERNEL__ -I/usr/local/ELDK/usr/src/linux-mips/include
-Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fn o-strict-aliasing
-fno-common -fomit-frame-pointer -G 0 -mno-abicalls -fno-pic -pipe
-mtune=r4600 -mips2 -Wa,--trap -Wa ,--trap -D__linux__
-D_MIPS_SZLONG32% -D_MIPS_SZPTR32% -D_MIPS_SZINT32% -g
-DUTS_MACHINE='"mips"' -DKBUILD_BASENAME=ver sion -c -o init/version.o
init/version.c
mips_4KC-gcc -D__KERNEL__ -I/usr/local/ELDK/usr/src/linux-mips/include
-Wall -Wstrict-prototypes -Wno-trigraphs -O2 -fn o-strict-aliasing
-fno-common -fomit-frame-pointer -G 0 -mno-abicalls -fno-pic -pipe
-mtune=r4600 -mips2 -Wa,--trap -Wa ,--trap -D__linux__
-D_MIPS_SZLONG32% -D_MIPS_SZPTR32% -D_MIPS_SZINT32% -g
-DKBUILD_BASENAME=do_mounts -c -o init/do_m ounts.o init/do_mounts.c
In file included from
/usr/local/ELDK/usr/src/linux-mips/include/linux/byteorder/big_endian.h:11,
                 from
/usr/local/ELDK/usr/src/linux-mips/include/asm/byteorder.h:23,
                 from
/usr/local/ELDK/usr/src/linux-mips/include/linux/kernel.h:15,
                 from
/usr/local/ELDK/usr/src/linux-mips/include/linux/wait.h:13,
                 from
/usr/local/ELDK/usr/src/linux-mips/include/linux/fs.h:12,
                 from
/usr/local/ELDK/usr/src/linux-mips/include/linux/capability.h:17,
                 from
/usr/local/ELDK/usr/src/linux-mips/include/linux/binfmts.h:5,
                 from
/usr/local/ELDK/usr/src/linux-mips/include/linux/sched.h:9,
                 from
/usr/local/ELDK/usr/src/linux-mips/include/linux/mm.h:4,
                 from
/usr/local/ELDK/usr/src/linux-mips/include/linux/slab.h:14,
                 from init/do_mounts.c:3:
/usr/local/ELDK/usr/src/linux-mips/include/linux/byteorder/swab.h:160:
warning: type qualifiers ignored on function ret urn type
/usr/local/ELDK/usr/src/linux-mips/include/linux/byteorder/swab.h:173:
warning: type qualifiers ignored on function ret urn type
/usr/local/ELDK/usr/src/linux-mips/include/linux/byteorder/swab.h:186:
warning: type qualifiers ignored on function ret urn type
/usr/local/ELDK/usr/src/linux-mips/include/linux/byteorder/swab.h:200:
warning: type qualifiers ignored on function ret urn type
In file included from
/usr/local/ELDK/usr/src/linux-mips/include/linux/unistd.h:9,
                 from init/do_mounts.c:5:
/usr/local/ELDK/usr/src/linux-mips/include/asm/unistd.h:503: warning:
conflicting types for built-in function '_exit'
init/do_mounts.c:53: error: static declaration of 'root_device_name'
follows non-static declaration
/usr/local/ELDK/usr/src/linux-mips/include/linux/fs.h:1480: error:
previous declaration of 'root_device_name' was here
init/do_mounts.c: In function 'identify_ramdisk_image':
init/do_mounts.c:487: warning: pointer targets in passing argument 2 of
'read' differ in signedness
init/do_mounts.c:514: warning: pointer targets in passing argument 2 of
'read' differ in signedness
init/do_mounts.c: In function 'rd_load_image':
init/do_mounts.c:597: warning: format '%d' expects type 'int', but
argument 3 has type 'long unsigned int'
init/do_mounts.c:624: warning: format '%d' expects type 'int', but
argument 3 has type 'long unsigned int'
init/do_mounts.c:627: warning: format '%d' expects type 'int', but
argument 2 has type 'long unsigned int'
init/do_mounts.c:639: warning: format '%d' expects type 'int', but
argument 2 has type 'long unsigned int'
init/do_mounts.c: In function 'fill_inbuf':
init/do_mounts.c:973: warning: pointer targets in passing argument 2 of
'read' differ in signedness
init/do_mounts.c: In function 'flush_window':
init/do_mounts.c:991: warning: pointer targets in passing argument 2 of
'write' differ in signedness
make: *** [init/do_mounts.o] Error 1
[root@localhost linux-mips]#


Site Timeline