hjc11111 发表于 2005-12-2 21:17:23

make armlinux 的时候出现如下错误,怎么解决

# make
/usr/local/arm/2.95.3/bin/arm-linux-gcc -D__KERNEL__ -I/root/armlinux/linux/include -Wall -Wstrict-prototypes -Wno-trigraphs -Os -mapcs -fno-strict-aliasing -fno-common -fno-common -pipe -mapcs-32 -march=armv4-mshort-load-bytes -msoft-float   -DKBUILD_BASENAME=main -c -o init/main.o init/main.c
In file included from /usr/local/arm/2.95.3/lib/gcc-lib/arm-linux/2.95.3/../../../../arm-linux/sys-include/asm/arch/dma.h:14,
               from /usr/local/arm/2.95.3/lib/gcc-lib/arm-linux/2.95.3/../../../../arm-linux/sys-include/asm/dma.h:11,
               from /root/armlinux/linux/include/linux/bootmem.h:8,
               from init/main.c:28:
/usr/local/arm/2.95.3/lib/gcc-lib/arm-linux/2.95.3/../../../../arm-linux/sys-include/asm/arch/hardware.h:16: asm/mach-types.h: ?????????
init/main.c: In function `start_kernel':
init/main.c:597: warning: implicit declaration of function `pgtable_cache_init'

真是郁闷,搞了几个星期都不能正确编译armlinux,按照那本书的步骤都不能成功!!!

hjc11111 发表于 2005-12-2 21:43:14

我再根据那本书附带的视频文件build_armlinux_4_skyeye.avi编译,仍然编译不了,出现如下错误:
# make
make: *** No rule to make target `/mnt/hda9/ywc02/skyeyeProject/linux/include/as
m/arch/param.h', needed by `/mnt/hda9/ywc02/skyeyeProject/linux/include/asm/para
m.h'.Stop.

按照书上不行,按照视频文件也不行!! 请问作者自己有没有按这些步骤编译成功过。越来越觉得浪费时间了。

ksh 发表于 2005-12-6 10:05:51

You can try to run "make clean " firstly.Then run make again?

luyongning5460 发表于 2005-12-6 15:43:41

我的也出现同样的错误,解压完之后,先执行make clean,再make也不行啊.
# make
make: *** No rule to make target `/mnt/hda9/ywc02/skyeyeProject/linux/include/as
m/arch/param.h', needed by `/mnt/hda9/ywc02/skyeyeProject/linux/include/asm/para
m.h'.Stop.

这是什么问题啊??

hjc11111 发表于 2005-12-6 22:46:57

版主给点意见好不好

luyongning5460 发表于 2005-12-7 10:40:45

查看README和Makefile文件,我试了一下以下的方法,可以行得通.不过不知道是否正确,还请各位给点意见.
make clean

make mrproper

make menuconfig
(选择所需要支持的东西)
make dep

make
完成之后生成vmlinux,vmlinux.bin
README中有如下描述:
- Make sure you have no stale .o files and dependencies lying around:
    cd linux
    make mrproper
You should now have the sources correctly installed.

Makefile:
mrproper: clean archmrproper
        find . \( -size 0 -o -name .depend \) -type f -print | xargs rm -f
        rm -f $(MRPROPER_FILES)
        rm -rf $(MRPROPER_DIRS)
        $(MAKE) -C Documentation/DocBook mrproper

这样是不是把原来压缩包的一些配置清掉了? 如framebuffer和触摸屏驱动?

mananaddd 发表于 2006-1-8 21:53:46

try
make clean all
first

truesy 发表于 2006-1-10 18:17:42

我觉得是内核配置的问题哈。
页: [1]
查看完整版本: make armlinux 的时候出现如下错误,怎么解决