免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12
最近访问板块 发新帖
楼主: xiexp2014
打印 上一主题 下一主题

[应用] 使用LTIB工具生成rootfs报错 [复制链接]

论坛徽章:
0
5 [报告]
发表于 2015-04-20 09:47 |只看该作者
我的硬件支持hf版本的。使用的是LTIB 工具,配置 -O2 -march=armv7-a -mfpu=vfpv7 -mfloat-abi=hard,然后使用./ltib -c进行编译的时候,就报错了


   

论坛徽章:
22
丑牛
日期:2014-08-15 14:32:0015-16赛季CBA联赛之同曦
日期:2017-12-14 15:28:14黑曼巴
日期:2017-08-10 08:14:342017金鸡报晓
日期:2017-02-08 10:39:42黑曼巴
日期:2016-11-15 15:48:38CU十四周年纪念徽章
日期:2016-11-09 13:19:1015-16赛季CBA联赛之同曦
日期:2016-04-08 18:00:03平安夜徽章
日期:2015-12-26 00:06:30程序设计版块每日发帖之星
日期:2015-12-03 06:20:002015七夕节徽章
日期:2015-08-21 11:06:17IT运维版块每日发帖之星
日期:2015-08-09 06:20:002015亚冠之吉达阿赫利
日期:2015-07-03 08:39:42
4 [报告]
发表于 2015-04-18 10:53 |只看该作者

arm-linux-gnueabihf-gcc: error: -mfloat-abi=soft and -mfloat-abi=hard may not be used together

这里提醒你 -mfloat-abi=soft 和  -mfloat-abi=hard  只能用一个。你删了 -mfloat-abi=hard 这个试试。soft的是总可以用的,hard的要硬件支持。

论坛徽章:
0
3 [报告]
发表于 2015-04-17 15:37 |只看该作者
当我不编译uboot和kernel时,执行./ltib -c,报错是
+ [ -n  ]

+ [ -f /home/znzx/Desktop/ltib/config/.config ]

+ cat /home/znzx/Desktop/ltib/config/.config

+ perl -ne print if m,^CONFIG_(?!PCF),

+ [ ! -f config/platform/imx/.config -a -f config/platform/imx/defconfig ]

+ [ -n  ]

+ cd config/platform/imx

+ mconf main.lkc .config





*** End of configuration.

*** Check the top-level Makefile for additional configuration options.



+ cp .config defconfig.dev



Processing platform: Freescale iMX6x Based Boards

===================================================

using config/platform/imx/.config



Processing: fake-provides

===========================



Processing: skell

===================



Processing: base_libs

=======================

sudo /opt/freescale/ltib/usr/bin/rpm --root /home/znzx/Desktop/ltib/rootfs --dbpath /var/lib/rpm -e --allmatches --nodeps --define '_tmppath /tmp/ltib' base_libs 2>/dev/null

sudo /opt/freescale/ltib/usr/bin/rpm --root /home/znzx/Desktop/ltib/rootfs --dbpath /var/lib/rpm --prefix / --ignorearch -ivh --force --excludedocs --define '_tmppath /tmp/ltib' /home/znzx/Desktop/ltib/rpm/RPMS/arm/base_libs-1.2-1.arm.rpm

error: failed dependencies:

    ld-linux.so.3(GLIBC_2.4)   is needed by base_libs-1.2-1





f_buildrpms() returned an error, exiting

traceback:

main:572





Started: Fri Apr 17 14:56:45 2015

Ended:   Fri Apr 17 14:56:59 2015

Elapsed: 14 seconds

论坛徽章:
0
2 [报告]
发表于 2015-04-17 15:37 |只看该作者
具体的错误是

+ make ARCH=arm CROSS_COMPILE= HOSTCC=ccache /usr/bin/gcc -B/usr/bin/ oldconfig

scripts/kconfig/conf --oldconfig Kconfig

#

# configuration written to .config

#

+ [ -f /home/znzx/Desktop/ltib/config/platform/imx/imx6_defconfig.dev ]

+ diff -q ./.config /home/znzx/Desktop/ltib/config/platform/imx/imx6_defconfig.dev

+ [ -n  ]

+ grep -q VERSION = 2 Makefile

+ [ %{kernel_series} = 2.4 ]

+ make ARCH=arm CROSS_COMPILE= HOSTCC=ccache /usr/bin/gcc -B/usr/bin/ uImage

scripts/kconfig/conf --silentoldconfig Kconfig

  CHK     include/linux/version.h

  CHK     include/generated/utsrelease.h

make[1]: `include/generated/mach-types.h' is up to date.

  CC      kernel/bounds.s

arm-linux-gnueabihf-gcc: error: -mfloat-abi=soft and -mfloat-abi=hard may not be used together

make[1]: *** [kernel/bounds.s] Error 1

make: *** [prepare0] Error 2

make: *** Waiting for unfinished jobs....

  CC      scripts/mod/empty.o

arm-linux-gnueabihf-gcc: error: -mfloat-abi=soft and -mfloat-abi=hard may not be used together

make[2]: *** [scripts/mod/empty.o] Error 1

make[1]: *** [scripts/mod] Error 2

make[1]: *** Waiting for unfinished jobs....

make: *** [scripts] Error 2

error: Bad exit status from /home/znzx/Desktop/ltib/tmp/rpm-tmp.39089 (%build)





RPM build errors:

    Bad exit status from /home/znzx/Desktop/ltib/tmp/rpm-tmp.39089 (%build)

Build time for kernel-3.0.35: 10 seconds



Failed building kernel-3.0.35





f_buildrpms() returned an error, exiting

traceback:

main:572





Started: Fri Apr 17 14:54:31 2015

Ended:   Fri Apr 17 14:55:25 2015

Elapsed: 54 seconds



These packages failed to build:

kernel-3.0.35



Build Failed
  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP