构建汽车级Linux时出错

时间:2018-02-16 19:26:22

标签: linux raspberry-pi qemu yocto strip

我正在尝试构建汽车级linux,但我仍然遇到同样的错误 我尝试使用不同的Linux发行版在不同的机器上构建,但我仍然不断收到错误 我也试过为不同的机器建造而没有成功。

这是我上次尝试为树莓派2制作汽车级linux的完整日志:
第1点:https://pastebin.com/0pqKDdv5
第2点:https://pastebin.com/dmRCtTLe

这是我的构建配置:

BB_VERSION        = "1.32.0"
BUILD_SYS         = "x86_64-linux"
NATIVELSBSTRING   = "Debian-9.3"
TARGET_SYS        = "arm-agl-linux-gnueabi"
MACHINE           = "raspberrypi2"
DISTRO            = "poky-agl"
DISTRO_VERSION    = "4.0.2"
TUNE_FEATURES     = "arm armv7ve vfp thumb neon vfpv4 callconvention-hard"
TARGET_FPU        = "hard"
meta-raspberrypi  = "HEAD:28d4404f89eb59d406b4976c0e3f5ca19137ba74"
meta-netboot      = "HEAD:a5f69d3d31e7d75351f0e2abfc36d35ba39ce304"
meta-security-smack 
meta-security-framework = "HEAD:20bbb97f6d5400b126ae96ef446c3e60c7e16285"
meta-app-framework = "HEAD:a5f69d3d31e7d75351f0e2abfc36d35ba39ce304"
meta-qt5          = "HEAD:5f837b47f5c3e462f24cd5abf58ff6ef1dd04932"
meta-agl-demo     = "HEAD:65619655cb3f373a1b15da7a4d91191a2867464b"
meta-oe           
meta-multimedia   
meta-efl          
meta-networking   
meta-python       
meta-filesystems  = "HEAD:fe5c83312de11e80b85680ef237f8acb04b4b26e"
meta-ivi-common   
meta-agl          
meta-agl-distro   
meta-agl-bsp      = "HEAD:a5f69d3d31e7d75351f0e2abfc36d35ba39ce304"
meta              
meta-poky         = "HEAD:60402978fe3648bf560b3386c6e9dd661cdf2083"

这是我收到的第一个错误:

WARNING: qemu-native-2.7.0-r1 do_populate_sysroot: File '/.../build/tmp/sysroots/x86_64-linux/usr/share/qemu/openbios-ppc' from qemu-native was already stripped, this will prevent future debugging!
WARNING: qemu-native-2.7.0-r1 do_populate_sysroot: File '/.../build/tmp/sysroots/x86_64-linux/usr/share/qemu/openbios-sparc32' from qemu-native was already stripped, this will prevent future debugging!
WARNING: qemu-native-2.7.0-r1 do_populate_sysroot: File '/.../build/tmp/sysroots/x86_64-linux/usr/share/qemu/openbios-sparc64' from qemu-native was already stripped, this will prevent future debugging!
WARNING: qemu-native-2.7.0-r1 do_populate_sysroot: File '/.../build/tmp/sysroots/x86_64-linux/usr/share/qemu/s390-ccw.img' from qemu-native was already stripped, this will prevent future debugging!
WARNING: qemu-native-2.7.0-r1 do_populate_sysroot: File '/.../build/tmp/sysroots/x86_64-linux/usr/share/qemu/u-boot.e500' from qemu-native was already stripped, this will prevent future debugging!
ERROR: qemu-native-2.7.0-r1 do_populate_sysroot: runstrip: ''strip' --remove-section=.comment --remove-section=.note '/.../build/tmp/work/x86_64-linux/qemu-native/2.7.0-r1/sysroot-destdir/.../build/tmp/sysroots/x86_64-linux/usr/share/qemu/palcode-clipper'' strip command failed with 1 (b"strip: Unable to recognise the format of the input file `/.../build/tmp/work/x86_64-linux/qemu-native/2.7.0-r1/sysroot-destdir/.../build/tmp/sysroots/x86_64-linux/usr/share/qemu/palcode-clipper'\n")

这是第二个错误,我认为是第一个错误。

ERROR: gcc-runtime-6.2.0-r0 do_compile: oe_runmake failed
ERROR: gcc-runtime-6.2.0-r0 do_compile: Function failed: do_compile (log file is located at /.../build/tmp/work/armv7vehf-neon-vfpv4-agl-linux-gnueabi/gcc-runtime/6.2.0-r0/temp/log.do_compile.30447)
ERROR: Logfile of failure stored in: /.../build/tmp/work/armv7vehf-neon-vfpv4-agl-linux-gnueabi/gcc-runtime/6.2.0-r0/temp/log.do_compile.30447
NOTE: recipe gcc-runtime-6.2.0-r0: task do_compile: Failed
ERROR: Task (/.../poky/meta/recipes-devtools/gcc/gcc-runtime_6.2.bb:do_compile) failed with exit code '1'

我发现this thread有人遇到同样的问题,但是那里没有修复,所以我想我再问一遍,因为这个问题仍然存在。

我可以看到剥离文件存在问题,但我无法在食谱中找到解决问题的方法。

我不确定此错误是否是由使用过的主机系统引起的,或者它是否依赖于配方。

我希望有人知道解决这个问题的方法 提前致谢

Laurens Wuyts

编辑:

以下是gcc错误的日志文件:https://www.dropbox.com/s/4hd5kzgbadhdc9p/log.do_compile.30447?dl=0

以下是pastebin上的具体错误消息:
https://pastebin.com/H8M3sY6a

0 个答案:

没有答案