天嵌 ARM开发社区

 找回密码
 注册
查看: 2676|回复: 1

关于交叉编译器的问题

[复制链接]
xiang8000 发表于 2010-11-11 22:11:26 | 显示全部楼层 |阅读模式
我去http://www.codesourcery.com/sgpp/lite/arm/portal/subscription?@template=lite上下载了个arm-2010q1版本的编译器,然后在bin中创建了arm-linux-xxx等文件,改了LINUX的环境变量,改了U-BOOT的CROSS后用这个来编译U-BOOT.2009.08,我直接编译的SMDK2410_CONFIG这个,没做任何的修改,为什么出现下列这些错误呢?编译器哪里没改对么?
arm-linux-gcc  -g  -Os   -fno-strict-aliasing  -fno-common -ffixed-r8 -msoft-float  -D__KERNEL__ -DTEXT_BASE=0x33F80000 -I/home/u-boot-2009.08/include -fno-builtin -ffreestanding -nostdinc -isystem /home/arm-2010q1/bin/../lib/gcc/arm-none-linux-gnueabi/4.4.1/include -pipe  -DCONFIG_ARM -D__ARM__ -marm  -mabi=aapcs-linux -mno-thumb-interwork -march=armv4 -Wall -Wstrict-prototypes -fno-stack-protector   -o board.o board.c -c
board.c:127: error: inline function 'coloured_LED_init' cannot be declared weak
board.c:129: error: inline function 'red_LED_on' cannot be declared weak
board.c:131: error: inline function 'red_LED_off' cannot be declared weak
board.c:133: error: inline function 'green_LED_on' cannot be declared weak
board.c:135: error: inline function 'green_LED_off' cannot be declared weak
board.c:137: error: inline function 'yellow_LED_on' cannot be declared weak
board.c:139: error: inline function 'yellow_LED_off' cannot be declared weak
board.c:141: error: inline function 'blue_LED_on' cannot be declared weak
board.c:143: error: inline function 'blue_LED_off' cannot be declared weak
make[1]: *** [board.o] Error 1
make[1]: Leaving directory `/home/u-boot-2009.08/lib_arm'
make: *** [lib_arm/libarm.a] Error 2
[root@linux u-boot-2009.08]#
错误一大堆。

问题2:我需要去了解和学会制作每一个文件系统么?比如YAFFS2,JEFF2,CramFS……我知道每个都有自己的长处和短处,我需要全部都学会还是学好1个2个就行了呢?
天嵌_support1 发表于 2010-11-12 14:22:15 | 显示全部楼层
1# xiang8000


不知道网友做什么。
你光盘里有编译器为什么不用呢?
用什么就学什么。这个只能是这样。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

i.MX8系列ARM cortex A53 M4 工控板上一条 /1 下一条

Archiver|手机版|小黑屋|天嵌 嵌入式开发社区 ( 粤ICP备11094220号 )

GMT+8, 2024-5-18 13:33 , Processed in 1.062500 second(s), 18 queries .

Powered by Discuz! X3.4

Copyright © 2001-2020, Tencent Cloud.

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