QQ登录

只需一步,快速开始

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 1913|回复: 0

help! make:***[vmlinux]Error 1

[复制链接]
发表于 2006-7-4 15:40:09 | 显示全部楼层 |阅读模式
I encountered make:***[vmlinux]Error 1
It seems source code is ok to compile into binary files. But the linking has some error. Any tips about it? Thanks!

here is make.out:
.......
make[1]: Entering directory `/usr/src/linux-2.4.20-sm780/arch/arm/power'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/usr/src/linux-2.4.20-sm780/arch/arm/power'
arm-linux-ld -p -X -T arch/arm/vmlinux.lds arch/arm/kernel/head-armv.o arch/arm/kernel/init_task.o init/main.o init/version.o init/do_mounts.o \
        --start-group \
        arch/arm/power/cpu.o \
         drivers/char/char.o drivers/block/block.o drivers/misc/misc.o drivers/net/net.o drivers/media/media.o drivers/net/arcnet/arcnetdrv.o drivers/ide/idedriver.o drivers/scsi/scsidrv.o drivers/mtd/mtdlink.o drivers/mmcsd/mmcsd.o drivers/video/video.o drivers/usb/usbdrv.o drivers/input/inputdrv.o drivers/i2c/i2c.o drivers/sound/sounddrivers.o \
        net/network.o \
        arch/arm/nwfpe/math-emu.o arch/arm/lib/lib.a /usr/src/linux-2.4.20-sm780/lib/lib.a \
        --end-group \
        -Map linuxmap \
        -o vmlinux
arch/arm/kernel/head-armv.o(.text.init+0x44): In function `stext':
: undefined reference to `compat'
arch/arm/kernel/head-armv.o(.text.init+0x50): In function `stext':
: undefined reference to `processor_id'
arch/arm/kernel/head-armv.o(.text.init+0x54): In function `stext':
: undefined reference to `__machine_arch_type'
arch/arm/kernel/head-armv.o(.text.init+0x5: In function `stext':
: undefined reference to `cr_alignment'
arch/arm/kernel/head-armv.o(.text.init+0x60): In function `stext':
: undefined reference to `cmdline_from_bootloader'
init/main.o(.text+0x1: In function `rest_init':
: undefined reference to `kernel_thread'
init/main.o(.text+0x30): In function `rest_init':
: undefined reference to `cpu_idle'
init/main.o(.text+0x54): In function `init':
: undefined reference to `free_initmem'
init/main.o(.text+0x64): In function `init':
: undefined reference to `sys_open'
init/main.o(.text+0x74): In function `init':
: undefined reference to `sys_dup'
init/main.o(.text+0x7c): In function `init':
: undefined reference to `sys_dup'
init/main.o(.text+0x16: In function `init':
: undefined reference to `panic'
init/main.o(.text+0x170): In function `init':
: undefined reference to `printk'
init/main.o(.text.init+0x3c): In function `profile_setup':
: undefined reference to `prof_shift'
init/main.o(.text.init+0xd: In function `calibrate_delay':
...............

arch/arm/lib/lib.a(io-readsw-armv3.o)(.text+0x: In function `.insw_bad_alignment':
: undefined reference to `panic'
arch/arm/lib/lib.a(io-writesw-armv3.o)(.text+0x: In function `.outsw_bad_alignment':
: undefined reference to `panic'
/usr/src/linux-2.4.20-sm780/lib/lib.a(rwsem-spinlock.o)(.text+0x9: In function `__down_read':
: undefined reference to `schedule'
/usr/src/linux-2.4.20-sm780/lib/lib.a(rwsem-spinlock.o)(.text+0x154): In function `__down_write':
: undefined reference to `schedule'
/usr/src/linux-2.4.20-sm780/lib/lib.a(rwsem-spinlock.o)(.text+0x1f: In function `__up_read':
: undefined reference to `wake_up_process'
/usr/src/linux-2.4.20-sm780/lib/lib.a(rwsem-spinlock.o)(.text+0x26c): In function `__up_write':
: undefined reference to `wake_up_process'
/usr/src/linux-2.4.20-sm780/lib/lib.a(rwsem-spinlock.o)(.text+0x2c: In function `__up_write':
: undefined reference to `wake_up_process'
make: *** [vmlinux] Error 1
您需要登录后才可以回帖 登录 | 注册

本版积分规则

GMT+8, 2024-11-23 04:38 , Processed in 0.084832 second(s), 16 queries .

© 2021 Powered by Discuz! X3.5.

快速回复 返回顶部 返回列表