当前位置:  技术问答>linux和unix

uClinux-samsung编译过程make出现的问题

    来源: 互联网  发布时间:2016-02-22

    本文导语:  [root@localhost uClinux-samsung]# make make -C linux-2.4.x bzImage || exit 1 make[1]: Entering directory `/usr/local/uClinux-samsung/linux-2.4.x'                  from init/main.c:15: /usr/local/uClinux-samsung/linux-2.4.x/include/asm/processor.h:46: asm/...

[root@localhost uClinux-samsung]# make
make -C linux-2.4.x bzImage || exit 1
make[1]: Entering directory `/usr/local/uClinux-samsung/linux-2.4.x'
                 from init/main.c:15:
/usr/local/uClinux-samsung/linux-2.4.x/include/asm/processor.h:46: asm/arch/memory.h: ?????????
In file included from /usr/local/uClinux-samsung/linux-2.4.x/include/linux/wait.h:19,
                                 from /usr/local/uClinux-samsung/linux-2.4.x/include/linux/locks.h:8,
                 from /usr/local/uClinux-samsung/linux-2.4.x/include/linux/devfs_fs_kernel.h:6,
                 from init/main.c:16:
/usr/local/uClinux-samsung/linux-2.4.x/include/asm/pgalloc.h:20: asm/proc/cache.h: ?????????
In file included from /usr/local/uClinux-samsung/linux-2.4.x/include/asm/dma.h:9,
                 from /usr/local/uClinux-samsung/linux-2.4.x/include/linux/bootmem.h:8,
                 from init/main.c:28:
/usr/local/uClinux-samsung/linux-2.4.x/include/asm/memory.h:19: asm/arch/memory.h: ?????????
In file included from /usr/local/uClinux-samsung/linux-2.4.x/include/asm/atomic.h:34,
                 from /usr/local/uClinux-samsung/linux-2.4.x/include/asm/processor.h:44,
                                  from /usr/local/uClinux-samsung/linux-2.4.x/include/linux/slab.h:14,
                 from /usr/local/uClinux-samsung/linux-2.4.x/include/linux/proc_fs.h:5,
                 from init/main.c:15:
/usr/local/lib/gcc-lib/arm-elf/2.95.3/../../../../arm-elf/sys-include/asm/proc/system.h: In function `__xchg':
/usr/local/lib/gcc-lib/arm-elf/2.95.3/../../../../arm-elf/sys-include/asm/proc/system.h:18: warning: 
/usr/local/uClinux-samsung/linux-2.4.x/include/asm/atomic.h:45: warning: implicit declaration of function `__restore_flags'
In file included from /usr/local/uClinux-samsung/linux-2.4.x/include/asm/processor.h:47,
                 from /usr/local/uClinux-samsung/linux-2.4.x/include/linux/prefetch.h:13,
                                 from /usr/local/uClinux-samsung/linux-2.4.x/include/linux/proc_fs.h:5,
                 from init/main.c:15:
/usr/local/lib/gcc-lib/arm-elf/2.95.3/../../../../arm-elf/sys-include/asm/proc/processor.h: At top level:
/usr/local/lib/gcc-lib/arm-elf/2.95.3/../../../../arm-elf/sys-include/asm/proc/processor.h:58: warning: data definition has no type or storage class
/usr/local/lib/gcc-lib/arm-elf/2.95.3/../../../../arm-elf/sys-include/asm/proc/processor.h:63: warning: `struct thread_struct' declared inside parameter list
/usr/local/lib/gcc-lib/arm-elf/2.95.3/../../../../arm-elf/sys-include/asm/proc/processor.h:63: warning: its scope is only this definition or declaration, which is probably not what you want.
/usr/local/lib/gcc-lib/arm-elf/2.95.3/../../../../arm-elf/sys-include/asm/proc/processor.h: In function `thread_saved_pc':
/usr/local/lib/gcc-lib/arm-elf/2.95.3/../../../../arm-elf/sys-include/asm/proc/processor.h:65: dereferencing pointer to incomplete type
/usr/local/lib/gcc-lib/arm-elf/2.95.3/../../../../arm-elf/sys-include/asm/proc/processor.h:66: dereferencing pointer to incomplete type
/usr/local/lib/gcc-lib/arm-elf/2.95.3/../../../../arm-elf/sys-include/asm/proc/processor.h:69: warning: control reaches end of non-void function
/usr/local/lib/gcc-lib/arm-elf/2.95.3/../../../../arm-elf/sys-include/asm/proc/processor.h: At top level:
/usr/local/lib/gcc-lib/arm-elf/2.95.3/../../../../arm-elf/sys-include/asm/proc/processor.h:71: warning: `struct thread_struct' declared inside parameter list
/usr/local/lib/gcc-lib/arm-elf/2.95.3/../../../../arm-elf/sys-include/asm/proc/processor.h: In function `get_css_fp':
/usr/local/lib/gcc-lib/arm-elf/2.95.3/../../../../arm-elf/sys-include/asm/proc/processor.h:73: dereferencing pointer to incomplete type
/usr/local/lib/gcc-lib/arm-elf/2.95.3/../../../../arm-elf/sys-include/asm/proc/processor.h:74: /pgtable.h: In function `ptep_test_and_clear_young':
/usr/local/uClinux-samsung/linux-2.4.x/include/asm-generic/pgtable.h:7: warning: implicit declaration of function `pte_young'
/usr/local/uClinux-samsung/linux-2.4.x/include/asm-generic/pgtable.h:9: warning: implicit declaration of function `set_pte'
/usr/local/uClinux-samsung/linux-2.4.x/include/asm-generic/pgtable.h:9: warning: implicit declaration of function `pte_mkold'
/usr/local/uClinux-samsung/linux-2.4.x/include/asm-generic/pgtable.h: In function `ptep_test_and_clear_dirty':
/usr/local/uClinux-samsung/linux-2.4.x/include/asm-generic/pgtable.h:16: warning: implicit declaration of function `pte_dirty'
/usr/local/uClinux-samsung/linux-2.4.x/include/asm-generic/pgtable.h:18: warning: implicit declaration of function `pte_mkclean'
/usr/local/uClinux-samsung/linux-2.4.x/include/asm-generic/pgtable.h: In function `ptep_set_wrprotect':
/usr/local/uClinux-samsung/linux-2.4.x/include/asm-generic/pgtable.h:32: warning: implicit declaration of function `pte_wrprotect'
//usr/local/uClinux-samsung/linux-2.4.x/include/linux/highmem.h: In function `memclear_highpage_flush':
/usr/local/uClinux-samsung/linux-2.4.x/include/linux/highmem.h:81: warning: passing arg 1 of `flush_page_to_ram' makes integer from pointer without a cast
In file included from /usr/local/uClinux-samsung/linux-2.4.x/include/linux/bootmem.h:8,
                 from init/main.c:28:
/usr/local/uClinux-samsung/linux-2.4.x/include/asm/dma.h: At top level:
/usr/local/uClinux-samsung/linux-2.4.x/include/asm/dma.h:16: warning: redefinition of `dmamode_t'
/usr/local/lib/gcc-lib/arm-elf/2.95.3/../../../../arm-elf/sys-include/asm/arch/dma.h:13: warning: `dmamode_t' previously declared here
make[1]: *** [init/main.o] 错误 1
make[1]: Leaving directory `/usr/local/uClinux-samsung/linux-2.4.x'
make: *** [linux] 错误 1
请教各位大虾,指点一下问题出在哪呢?


由于字数受限,只能列出这么多,请大家指教

|
For Example:


#Makefile
ARCH = arm

CROSS_COMPILE = arm-softfloat-linux-gnu-

KDIR = /usr/L300/software/linux-2.6.12

CC = arm-softfloat-linux-gnu-gcc

init_modem : init_modem.c
$(CC)  -o $@  $^

.PHONY : clean 
clean:
rm init_modem 

|
注意交叉体系结构,同时还要注意下交叉gcc的版本

|
can't grep error here???

|
进入makefile文件,修改一些参数,如工具链以及路径。

    
 
 

您可能感兴趣的文章:

 
本站(WWW.)旨在分享和传播互联网科技相关的资讯和技术,将尽最大努力为读者提供更好的信息聚合和浏览方式。
本站(WWW.)站内文章除注明原创外,均为转载、整理或搜集自网络。欢迎任何形式的转载,转载请注明出处。












  • 相关文章推荐


  • 站内导航:


    特别声明:169IT网站部分信息来自互联网,如果侵犯您的权利,请及时告知,本站将立即删除!

    ©2012-2021,,E-mail:www_#163.com(请将#改为@)

    浙ICP备11055608号-3