u-boot1.1.6-undefined reference to "raise"
2014-07-01 21:48
726 查看
友善mini2440移植的uboot1.1.6,arm-linux-gcc版本4.3.2
编译报错:
...
arm-linux-ld: failed to merge target specific data of file drivers/nand/libnand.a(nand_util.o)
/usr/local/arm/4.3.2/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.2/armv4t/libgcc.a(_dvmd_lnx.o): In function `__aeabi_ldiv0':
(.text+0x8): undefined reference to `raise'
make: *** [u-boot] 错误 1
解决办法:
http://blog.csdn.net/wwd574000815/article/details/6208379
将cpu /arm920t/config.mk 改为
PLATFORM_RELFLAGS += -fno-strict-aliasing -fno-common -ffixed-r8 /
-msoft-float
PLATFORM_CPPFLAGS +=
# =========================================================================
#
# Supply options according to compiler version
#
# =========================================================================
PLATFORM_CPPFLAGS +=$(call cc-option,)
PLATFORM_RELFLAGS +=$(call cc-option,$(call cc-option,))
在uboot的根目录Makefile中把PLATFORM_LIBS 修该为如下值
PLATFORM_LIBS += -L $(shell dirname `$(CC) $(CFLAGS) -print-libgcc-file-name`) -lgcc -lc -L/usr/local/arm/4.3.2/arm-none-linux-gnueabi/libc/armv4t/usr/lib
然后重新 make distclean make 应就能通过了
编译报错:
...
arm-linux-ld: failed to merge target specific data of file drivers/nand/libnand.a(nand_util.o)
/usr/local/arm/4.3.2/bin/../lib/gcc/arm-none-linux-gnueabi/4.3.2/armv4t/libgcc.a(_dvmd_lnx.o): In function `__aeabi_ldiv0':
(.text+0x8): undefined reference to `raise'
make: *** [u-boot] 错误 1
解决办法:
http://blog.csdn.net/wwd574000815/article/details/6208379
将cpu /arm920t/config.mk 改为
PLATFORM_RELFLAGS += -fno-strict-aliasing -fno-common -ffixed-r8 /
-msoft-float
PLATFORM_CPPFLAGS +=
# =========================================================================
#
# Supply options according to compiler version
#
# =========================================================================
PLATFORM_CPPFLAGS +=$(call cc-option,)
PLATFORM_RELFLAGS +=$(call cc-option,$(call cc-option,))
在uboot的根目录Makefile中把PLATFORM_LIBS 修该为如下值
PLATFORM_LIBS += -L $(shell dirname `$(CC) $(CFLAGS) -print-libgcc-file-name`) -lgcc -lc -L/usr/local/arm/4.3.2/arm-none-linux-gnueabi/libc/armv4t/usr/lib
然后重新 make distclean make 应就能通过了
相关文章推荐
- uboot1.1.6——undefined reference to ‘raise’
- uboot_1.1.6学习1_undefined reference to "raise"
- JZ2440 编译U-boot1.1.6 undefined reference to ‘raise’
- QT开发中的"Undefined reference to vtable ***" 的问题解决办法
- undefined reference to ‘raise’
- "undefined reference to" 问题解决方法
- 解决gcc 编译时报错"undefined reference to 'main'" 问题
- extern usage error "undefined reference to `xxx' "
- gcc链接.cpp和.c文件生成的.o库文件的时候,Linking error "undefined reference to `__gxx_personality_v0'"
- 用gcc编译.cpp文件可能出现"undefined reference to `__gxx_personality_v0'"问题的解决
- "undefined reference to" 问题解决方法
- 编译出错 "undefined reference to" .
- undefined reference to" 问题解决方法
- gcc 编译错误:"undefined reference to 'sqrt'
- undefined reference to" 问题解决方
- 编译时遇到 "Undefined reference to vtable for ***" 错误怎么办?
- QT中的 undefined reference to vtable for "xxx::xxx" 错误解决
- "undefined reference to '__gxx_personality_v0' "
- eclipse 报错处理"undefined reference to `pthread_create’"
- Qt 出现"Undefined reference to 'vtable for'原因总结