[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [microblaze-uclinux] Kernel Compilation Error



Could be something wrong with your kernel configuration. auto-config.in has HW parameters and not kernel config. Keep in mind that some configs result in compilation fault.

________________________________________
From: owner-microblaze-uclinux@xxxxxxxxxxxxxx [mailto:owner-microblaze-uclinux@xxxxxxxxxxxxxx] On Behalf Of Dean Michael Ancajas
Sent: Thursday, February 01, 2007 12:49 AM
To: microblaze-uclinux@xxxxxxxxxxxxxx
Subject: [microblaze-uclinux] Kernel Compilation Error

Hello Everybody,
    I'm trying to compile a kernel image for my board (Spartan 2e xc3s600e LC Microblaze Development Board), I used the auto-config.in generated from my windows EK 7.1.02i. I also used microblaze-elf tools from the petalogix site(even if it is for EDK 8.1)

The version of my gcc is stated below.

[cdsmgr@bradwarden uClinux-dist]$ gcc -v
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/3.2.3/specs
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --with-system-zlib --enable-__cxa_atexit --host=i386-redhat-linux
Thread model: posix
gcc version 3.2.3 20030502 (Red Hat Linux 3.2.3-52)

The "make dep" command doesn't output any errors but the "make all" command outputs errors that I cannot understand. Please Help me.

These are the incomplete status messages. I've cut the starting part since it's very long.

Any inputs will be greatly appreciated. 

--Dean

Status messages of "make all" command

/home/cdsmgr/dean/uClinux-2.4.x/include/linux/timer.h:30:1: warning: "del_timer_sync" redefined
In file included from /home/cdsmgr/dean/uClinux-2.4.x/include/linux/modversions.h:188,
                 from /home/cdsmgr/dean/uClinux-2.4.x/include/linux/module.h:22,
                 from context.c:16:
/home/cdsmgr/dean/uClinux-2.4.x/include/linux/modules/ksyms.ver:576:1: warning: this is the location of the previous definition
In file included from /home/cdsmgr/dean/uClinux-2.4.x/include/linux/sched.h:23,
                 from kmod.c:23:
/home/cdsmgr/dean/uClinux-2.4.x/include/linux/smp.h:80:1: warning: "smp_num_cpus" redefined
In file included from /home/cdsmgr/dean/uClinux-2.4.x/include/linux/modversions.h:147,
                 from /home/cdsmgr/dean/uClinux-2.4.x/include/linux/module.h:22,
                 from kmod.c:22:
/home/cdsmgr/dean/uClinux-2.4.x/include/linux/modules/i386_ksyms.ver:88:1: warning: this is the location of the previous definition
In file included from /home/cdsmgr/dean/uClinux-2.4.x/include/linux/sched.h:23,
                 from kmod.c:23:
/home/cdsmgr/dean/uClinux-2.4.x/include/linux/smp.h:87:1: warning: "smp_call_function" redefined
In file included from /home/cdsmgr/dean/uClinux-2.4.x/include/linux/modversions.h:147,
                 from /home/cdsmgr/dean/uClinux-2.4.x/include/linux/module.h:22,
                 from kmod.c:22:
/home/cdsmgr/dean/uClinux-2.4.x/include/linux/modules/i386_ksyms.ver:104:1: warning: this is the location of the previous definition
In file included from /home/cdsmgr/dean/uClinux-2.4.x/include/linux/sched.h:23,
                 from kmod.c:23:
/home/cdsmgr/dean/uClinux-2.4.x/include/linux/smp.h:88:1: warning: "cpu_online_map" redefined
In file included from /home/cdsmgr/dean/uClinux-2.4.x/include/linux/modversions.h:147,
                 from /home/cdsmgr/dean/uClinux-2.4.x/include/linux/module.h:22,
                 from kmod.c:22:
/home/cdsmgr/dean/uClinux-2.4.x/include/linux/modules/i386_ksyms.ver:90:1: warning: this is the location of the previous definition
In file included from kmod.c:23:
/home/cdsmgr/dean/uClinux-2.4.x/include/linux/sched.h:162:1: warning: "set_cpus_allowed" redefined
In file included from /home/cdsmgr/dean/uClinux-2.4.x/include/linux/modversions.h:188,
                 from /home/cdsmgr/dean/uClinux-2.4.x/include/linux/module.h:22,
                 from kmod.c:22:
/home/cdsmgr/dean/uClinux-2.4.x/include/linux/modules/ksyms.ver:660:1: warning: this is the location of the previous definition
In file included from /home/cdsmgr/dean/uClinux-2.4.x/include/linux/sched.h:23,
                 from context.c:18:
/home/cdsmgr/dean/uClinux-2.4.x/include/linux/smp.h:80:1: warning: "smp_num_cpus" redefined
In file included from /home/cdsmgr/dean/uClinux-2.4.x/include/linux/modversions.h:147,
                 from /home/cdsmgr/dean/uClinux-2.4.x/include/linux/module.h:22,
                 from context.c:16:
/home/cdsmgr/dean/uClinux-2.4.x/include/linux/modules/i386_ksyms.ver:88:1: warning: this is the location of the previous definition
In file included from /home/cdsmgr/dean/uClinux-2.4.x/include/linux/sched.h:23,
                 from context.c:18:
/home/cdsmgr/dean/uClinux-2.4.x/include/linux/smp.h:87:1: warning: "smp_call_function" redefined
In file included from /home/cdsmgr/dean/uClinux-2.4.x/include/linux/modversions.h:147,
                 from /home/cdsmgr/dean/uClinux-2.4.x/include/linux/module.h:22,
                 from context.c:16:
/home/cdsmgr/dean/uClinux-2.4.x/include/linux/modules/i386_ksyms.ver:104:1: warning: this is the location of the previous definition
In file included from /home/cdsmgr/dean/uClinux-2.4.x/include/linux/sched.h:23,
                 from context.c:18:
/home/cdsmgr/dean/uClinux-2.4.x/include/linux/smp.h:88:1: warning: "cpu_online_map" redefined
In file included from /home/cdsmgr/dean/uClinux-2.4.x/include/linux/modversions.h:147,
                 from /home/cdsmgr/dean/uClinux-2.4.x/include/linux/module.h:22,
                 from context.c:16:
/home/cdsmgr/dean/uClinux-2.4.x/include/linux/modules/i386_ksyms.ver:90:1: warning: this is the location of the previous definition
In file included from context.c:18:
/home/cdsmgr/dean/uClinux-2.4.x/include/linux/sched.h:162:1: warning: "set_cpus_allowed" redefined
In file included from /home/cdsmgr/dean/uClinux-2.4.x/include/linux/modversions.h:188,
                 from /home/cdsmgr/dean/uClinux-2.4.x/include/linux/module.h:22,
                 from context.c:16:
/home/cdsmgr/dean/uClinux-2.4.x/include/linux/modules/ksyms.ver:660:1: warning: this is the location of the previous definition
mb-gcc -D__KERNEL__ -I/home/cdsmgr/dean/uClinux-2.4.x/include  -Wall -Wstrict-prototypes -Wno-trigraphs -O1 -g -fno-strict-aliasing -fno-common -DPLATFORM=uclinux-auto -O2 -fno-builtin -DNO_MM -DNO_FPU -D__ELF__ -DMAGIC_ROM_PTR -D__linux__ -I/home/cdsmgr/dean/mbgcc/bin/../lib/gcc/microblaze/3.4.1/./include -mxl-barrel-shift -mno-xl-soft-div -mxl-soft-mul   -nostdinc -iwithprefix include -DKBUILD_BASENAME=dma  -DEXPORT_SYMTAB -o dma.o -c dma.c
mb-gcc -D__KERNEL__ -I/home/cdsmgr/dean/uClinux-2.4.x/include  -Wall -Wstrict-prototypes -Wno-trigraphs -O1 -g -fno-strict-aliasing -fno-common -DPLATFORM=uclinux-auto -O2 -fno-builtin -DNO_MM -DNO_FPU -D__ELF__ -DMAGIC_ROM_PTR -D__linux__ -I/home/cdsmgr/dean/mbgcc/bin/../lib/gcc/microblaze/3.4.1/./include -mxl-barrel-shift -mno-xl-soft-div -mxl-soft-mul   -nostdinc -iwithprefix include -DKBUILD_BASENAME=uid16  -c -o uid16.o uid16.c
mb-gcc -D__KERNEL__ -I/home/cdsmgr/dean/uClinux-2.4.x/include  -Wall -Wstrict-prototypes -Wno-trigraphs -O1 -g -fno-strict-aliasing -fno-common -DPLATFORM=uclinux-auto -O2 -fno-builtin -DNO_MM -DNO_FPU -D__ELF__ -DMAGIC_ROM_PTR -D__linux__ -I/home/cdsmgr/dean/mbgcc/bin/../lib/gcc/microblaze/3.4.1/./include -mxl-barrel-shift -mno-xl-soft-div -mxl-soft-mul   -nostdinc -iwithprefix include -DKBUILD_BASENAME=ksyms  -DEXPORT_SYMTAB -o ksyms.o -c ksyms.c
In file included from /home/cdsmgr/dean/uClinux-2.4.x/include/linux/modversions.h:73,
                 from /home/cdsmgr/dean/uClinux-2.4.x/include/linux/module.h:22,
                 from ksyms.c:16:
/home/cdsmgr/dean/uClinux-2.4.x/include/linux/modules/dec_and_lock.ver:2:1: warning: "atomic_dec_and_lock" redefined
In file included from /home/cdsmgr/dean/uClinux-2.4.x/include/linux/wait.h:16,
                 from /home/cdsmgr/dean/uClinux-2.4.x/include/linux/fs.h:12,
                 from /home/cdsmgr/dean/uClinux-2.4.x/include/linux/capability.h:17,
                 from /home/cdsmgr/dean/uClinux-2.4.x/include/linux/binfmts.h:4,
                 from /home/cdsmgr/dean/uClinux-2.4.x/include/linux/sched.h:9,
                 from /home/cdsmgr/dean/uClinux-2.4.x/include/linux/mm.h:4,
                 from /home/cdsmgr/dean/uClinux-2.4.x/include/linux/slab.h:14,
                 from ksyms.c:15:
/home/cdsmgr/dean/uClinux-2.4.x/include/linux/spinlock.h:67:1: warning: this is the location of the previous definition
In file included from /home/cdsmgr/dean/uClinux-2.4.x/include/linux/modversions.h:147,
                 from /home/cdsmgr/dean/uClinux-2.4.x/include/linux/module.h:22,
                 from ksyms.c:16:
/home/cdsmgr/dean/uClinux-2.4.x/include/linux/modules/i386_ksyms.ver:6:1: warning: "MCA_bus" redefined
In file included from /home/cdsmgr/dean/uClinux-2.4.x/include/linux/prefetch.h:13,
                 from /home/cdsmgr/dean/uClinux-2.4.x/include/linux/list.h:6,
                 from /home/cdsmgr/dean/uClinux-2.4.x/include/linux/wait.h:14,
                 from /home/cdsmgr/dean/uClinux-2.4.x/include/linux/fs.h:12,
                 from /home/cdsmgr/dean/uClinux-2.4.x/include/linux/capability.h:17,
                 from /home/cdsmgr/dean/uClinux-2.4.x/include/linux/binfmts.h:4,
                 from /home/cdsmgr/dean/uClinux-2.4.x/include/linux/sched.h:9,
                 from /home/cdsmgr/dean/uClinux-2.4.x/include/linux/mm.h:4,
                 from /home/cdsmgr/dean/uClinux-2.4.x/include/linux/slab.h:14,
                 from ksyms.c:15:
/home/cdsmgr/dean/uClinux-2.4.x/include/asm/processor.h:52:1: warning: this is the location of the previous definition
In file included from /home/cdsmgr/dean/uClinux-2.4.x/include/linux/modversions.h:147,
                 from /home/cdsmgr/dean/uClinux-2.4.x/include/linux/module.h:22,
                 from ksyms.c:16:
/home/cdsmgr/dean/uClinux-2.4.x/include/linux/modules/i386_ksyms.ver:88:1: warning: "smp_num_cpus" redefined
In file included from /home/cdsmgr/dean/uClinux-2.4.x/include/linux/sched.h:23,
                 from /home/cdsmgr/dean/uClinux-2.4.x/include/linux/mm.h:4,
                 from /home/cdsmgr/dean/uClinux-2.4.x/include/linux/slab.h:14,
                 from ksyms.c:15:
/home/cdsmgr/dean/uClinux-2.4.x/include/linux/smp.h:80:1: warning: this is the location of the previous definition
In file included from /home/cdsmgr/dean/uClinux-2.4.x/include/linux/modversions.h:147,
                 from /home/cdsmgr/dean/uClinux-2.4.x/include/linux/module.h:22,
                 from ksyms.c:16:
/home/cdsmgr/dean/uClinux-2.4.x/include/linux/modules/i386_ksyms.ver:90:1: warning: "cpu_online_map" redefined
In file included from /home/cdsmgr/dean/uClinux-2.4.x/include/linux/sched.h:23,
                 from /home/cdsmgr/dean/uClinux-2.4.x/include/linux/mm.h:4,
                 from /home/cdsmgr/dean/uClinux-2.4.x/include/linux/slab.h:14,
                 from ksyms.c:15:
/home/cdsmgr/dean/uClinux-2.4.x/include/linux/smp.h:88:1: warning: this is the location of the previous definition
In file included from /home/cdsmgr/dean/uClinux-2.4.x/include/linux/modversions.h:147,
                 from /home/cdsmgr/dean/uClinux-2.4.x/include/linux/module.h:22,
                 from ksyms.c:16:
/home/cdsmgr/dean/uClinux-2.4.x/include/linux/modules/i386_ksyms.ver:104:1: warning: "smp_call_function" redefined
In file included from /home/cdsmgr/dean/uClinux-2.4.x/include/linux/sched.h:23,
                 from /home/cdsmgr/dean/uClinux-2.4.x/include/linux/mm.h:4,
                 from /home/cdsmgr/dean/uClinux-2.4.x/include/linux/slab.h:14,
                 from ksyms.c:15:
/home/cdsmgr/dean/uClinux-2.4.x/include/linux/smp.h:87:1: warning: this is the location of the previous definition
In file included from /home/cdsmgr/dean/uClinux-2.4.x/include/linux/modversions.h:188,
                 from /home/cdsmgr/dean/uClinux-2.4.x/include/linux/module.h:22,
                 from ksyms.c:16:
/home/cdsmgr/dean/uClinux-2.4.x/include/linux/modules/ksyms.ver:576:1: warning: "del_timer_sync" redefined
In file included from /home/cdsmgr/dean/uClinux-2.4.x/include/linux/ext3_fs_sb.h:20,
                 from /home/cdsmgr/dean/uClinux-2.4.x/include/linux/fs.h:722,
                 from /home/cdsmgr/dean/uClinux-2.4.x/include/linux/capability.h:17,
                 from /home/cdsmgr/dean/uClinux-2.4.x/include/linux/binfmts.h:4,
                 from /home/cdsmgr/dean/uClinux-2.4.x/include/linux/sched.h:9,
                 from /home/cdsmgr/dean/uClinux-2.4.x/include/linux/mm.h:4,
                 from /home/cdsmgr/dean/uClinux-2.4.x/include/linux/slab.h:14,
                 from ksyms.c:15:
/home/cdsmgr/dean/uClinux-2.4.x/include/linux/timer.h:30:1: warning: this is the location of the previous definition
In file included from /home/cdsmgr/dean/uClinux-2.4.x/include/linux/modversions.h:188,
                 from /home/cdsmgr/dean/uClinux-2.4.x/include/linux/module.h:22,
                 from ksyms.c:16:
/home/cdsmgr/dean/uClinux-2.4.x/include/linux/modules/ksyms.ver:660:1: warning: "set_cpus_allowed" redefined
In file included from /home/cdsmgr/dean/uClinux-2.4.x/include/linux/mm.h:4,
                 from /home/cdsmgr/dean/uClinux-2.4.x/include/linux/slab.h:14,
                 from ksyms.c:15:
/home/cdsmgr/dean/uClinux-2.4.x/include/linux/sched.h:162:1: warning: this is the location of the previous definition
In file included from /home/cdsmgr/dean/uClinux-2.4.x/include/linux/blkdev.h:11,
                 from ksyms.c:17:
/home/cdsmgr/dean/uClinux-2.4.x/include/asm/io.h:152:1: warning: "iounmap" redefined
In file included from /home/cdsmgr/dean/uClinux-2.4.x/include/linux/modversions.h:147,
                 from /home/cdsmgr/dean/uClinux-2.4.x/include/linux/module.h:22,
                 from ksyms.c:16:
/home/cdsmgr/dean/uClinux-2.4.x/include/linux/modules/i386_ksyms.ver:18:1: warning: this is the location of the previous definition
In file included from ksyms.c:19:
/home/cdsmgr/dean/uClinux-2.4.x/include/linux/kernel_stat.h: In function `kstat_irqs':
/home/cdsmgr/dean/uClinux-2.4.x/include/linux/kernel_stat.h:62: error: `smp_num_cpus' undeclared (first use in this function)
/home/cdsmgr/dean/uClinux-2.4.x/include/linux/kernel_stat.h:62: error: (Each undeclared identifier is reported only once
/home/cdsmgr/dean/uClinux-2.4.x/include/linux/kernel_stat.h:62: error: for each function it appears in.)
In file included from /home/cdsmgr/dean/uClinux-2.4.x/include/linux/interrupt.h:52,
                 from ksyms.c:23:
/home/cdsmgr/dean/uClinux-2.4.x/include/asm/hardirq.h:34:1: warning: "synchronize_irq" redefined
In file included from /home/cdsmgr/dean/uClinux-2.4.x/include/linux/modversions.h:147,
                 from /home/cdsmgr/dean/uClinux-2.4.x/include/linux/module.h:22,
                 from ksyms.c:16:
/home/cdsmgr/dean/uClinux-2.4.x/include/linux/modules/i386_ksyms.ver:92:1: warning: this is the location of the previous definition
mb-gcc -D__KERNEL__ -I/home/cdsmgr/dean/uClinux-2.4.x/include  -Wall -Wstrict-prototypes -Wno-trigraphs -O1 -g -fno-strict-aliasing -fno-common -DPLATFORM=uclinux-auto -O2 -fno-builtin -DNO_MM -DNO_FPU -D__ELF__ -DMAGIC_ROM_PTR -D__linux__ -I/home/cdsmgr/dean/mbgcc/bin/../lib/gcc/microblaze/3.4.1/./include -mxl-barrel-shift -mno-xl-soft-div -mxl-soft-mul   -nostdinc -iwithprefix include -DKBUILD_BASENAME=sysctl  -c -o sysctl.o sysctl.c
make[3]: *** [ksyms.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory `/home/cdsmgr/dean/uClinux-2.4.x/kernel'
make[2]: *** [first_rule] Error 2
make[2]: Leaving directory `/home/cdsmgr/dean/uClinux-2.4.x/kernel'
make[1]: *** [_dir_kernel] Error 2
make[1]: Leaving directory `/home/cdsmgr/dean/uClinux-2.4.x'
make: *** [linux] Error 1


-- 
Dean Michael B. Ancajas

___________________________
microblaze-uclinux mailing list
microblaze-uclinux@xxxxxxxxxxxxxx
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/