使用YOCTO fido分支创建的工具链存在问题

使用YOCTO fido分支创建的工具链存在问题,c,compilation,toolchain,yocto,C,Compilation,Toolchain,Yocto,。。。 13回购初始-u-b fido 回购同步 签出这些特定提交 cd/arm/fsl社区bsp fido/sources/meta fsl arm/ git签出主机 git获取 git checkout 663A838D38DD91248057711637232DF0AF01EFD7C cd/arm/fsl社区bsp fido/sources/meta fsl arm extra/ git签出主机 吉特取回 git获取 git签出12cc66a9b8c3788309cf0a72c001f27

。。。 13回购初始-u-b fido

  • 回购同步
  • 签出这些特定提交
  • cd/arm/fsl社区bsp fido/sources/meta fsl arm/
  • git签出主机
  • git获取
  • git checkout 663A838D38DD91248057711637232DF0AF01EFD7C
  • cd/arm/fsl社区bsp fido/sources/meta fsl arm extra/
  • git签出主机
  • 吉特取回
  • git获取
  • git签出12cc66a9b8c3788309cf0a72c001f27abc299271
  • cd/arm/fsl社区bsp fido/sources/poky/
  • git签出主机
  • git获取
  • git结帐5a51fb28dbdfcae8ceb503a5290532dd38aeb09f
  • 源设置环境控制板
  • 更换的机器='wandboard'
  • vi conf/local.conf
  • 开始构建工具链
  • 位烘焙元工具链
  • 运行脚本,即在构建步骤#30之后生成的脚本
  • 来源:tmp/deploy/sdk/poky-glibc-x86_64-meta-toolchain-cortexa9hf-vfp-neon-toolchain-1.8+snapshot.sh
  • ./tmp/deploy/sdk/poky-glibc-x86_64-meta-toolchain-cortexa9hf-vfp-neon-toolchain-1.8+snapshot.sh
  • 源环境-setup-cortexa9hf-vfp-neon-poky-linux-gnueabi
  • 与创建的具有绝对路径的工具链交叉编译 @debian:~$/opt/poky/1.8+snapshot/sysroot/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-gcc hello.c hello.c:1:19:致命错误:stdio.h:没有这样的文件或目录 编译终止

    使用已创建的工具链和环境集进行交叉编译 @debian:~$arm poky linux gnueabi gcc hello.c hello.c:1:19:致命错误:stdio.h:没有这样的文件或目录 编译终止

    使用已创建的工具链和环境集进行交叉编译,并明确提供包含路径 @debian:~$arm poky linux gnueabi gcc-I/opt/poky/1.8+snapshot/sysroot/cortexa9hf vfp neon poky linux gnueabi/usr/include/hello.c 在/opt/poky/1.8+snapshot/sysroot/cortexa9hf vfp neon-poky-linux-gnueabi/usr/include/features.h:389:0中包含的文件中, from/opt/poky/1.8+snapshot/sysroot/cortexa9hf vfp neon poky linux gnueabi/usr/include/stdio.h:27, 来自hello.c:1: /opt/poky/1.8+snapshot/sysroot/cortexa9hf vfp neon poky linux gnueabi/usr/include/gnu/stubs.h:7:29:致命错误:gnu/stubs soft.h:没有这样的文件或目录 编译终止

    与-v选项交叉编译 @debian:~$arm poky linux gnueabi gcc-v hello.c 使用内置规格。 COLLECT_GCC=arm poky linux gnueabi GCC COLLECT_LTO_WRAPPER=/opt/poky/1.8+snapshot/sysroot/x86_64-pokysdk-linux/usr/libexec/arm poky-linux-gnueabi/gcc/arm poky-linux-gnueabi/5.2.0/LTO-WRAPPER 目标:arm poky linux gnueabi 配置为:/arm/fsl community bsp fido/build sabre/tmp/work shared/gcc-5.2.0-r0/gcc-5.2.0/configure--build=x86_64-linux--host=x86_64-pokysdk-linux--target=arm poky linux gnueabi--prefix=/opt/poky/1.8+snapshot/sysroot/sysroot/x86_64-linux/usr--exec_prefix=/opt poky/1.8+snapshot/sysroot/x8664-pokysdk-linux/usr--bindir=/opt/poky/1.8+snapshot/sysroot/x86_64-pokysdk-linux/usr/bin/arm poky-linux-gnueabi--sbindir=/opt/poky/1.8+snapshot/sysroot/x86_64-pokysdk-linux/usr/bin/arm poky-linux-gnueabi--libexecdir=/opt/poky/1.8+snapshot/sysroot/pokysdk-linux/usr/libexec/arm-poky-linux-gnueabi--datadir=/opt/poky/1.8+snapshot/sysroot/x86_64-pokysdk-linux/usr/share--sysconfdir=/opt/poky/1.8+snapshot/sysroot/x86_64-pokysdk-linux/etc--sharedstatedir=/opt/poky/1.8+snapshot/sysroot/x86+pokysdk-linux/var--libdir=/opt/poky/1.8+snapshot/sysroot/x86_64-pokysdk-linux/usr/lib/arm poky-linux-gnueabi--includedir=/opt/poky/1.8+snapshot/sysroot/x86_64-pokysdk-linux/usr/include--infodir=/opt/poky/1.8+snapshot/sysroot/x86_64-pokysdk-linux/64-poky-linux/usr----mandir=/opt/poky/1.8+snapshot/sysroot/x86_64-pokysdk-linux/usr/share/man--禁用静默规则--禁用依赖项跟踪--使用libtool sysroot=/arm/fsl community bsp fido/build sabre/tmp/sysroot/x86_64-nativesdk-pokysdk-linux--使用gnu ld--启用共享--启用语言=c,C++——启用线程= POSIX——启用多LIB——Enabel-C99——启用长-启用Simuls= GNU——启用LIbSTDCXXX PCH-程序前缀= ARM POKY Linux GNEABI——没有本地前缀——启用目标OpThShope-使能LTO启用LBSSP——禁用引导程序——禁用LyMotFlash——用系统ZLIB——用链接器散列样式= GNU--启用链接器构建id——ppl=no——cloog=no——启用检查=release——启用cheaders=c_global——无isl——使用gxx include dir=/not/exist/usr/include/c++/5.2.0——使用构建时工具=/arm/fsl社区bsp fido/build sabre/tmp/sysroot/x86_64-linux/usr/arm poky linux gnueabi/bin--使用sysroot=/not/exist--使用build sysroot=/arm/fsl community bsp fido/build sabre/tmp/sysroot/imx6qsabred--启用毒药系统目录--使用mpfr=/arm/fsl community bsp fido/build sabre/tmp/sysroot/x86_64-nativesdk-pokysdk-linux--使用mpc=/arm/fsl community bsp fido/build sabre/tmp/sysroot/x86_64-nativesdk-pokysdk-linux--启用nls--使用arch=armv7-a 线程模型:posix gcc版本5.2.0(gcc) COLLECT\u GCC\u OPTIONS='-v'-march=armv7-a'-mtls方言=gnu' /opt/poky/1.8+snapshot/sysroot/x86_64-pokysdk-linux/usr/libexec/arm poky-linux-gnueabi/gcc/arm poky-linux-gnueabi/5.2.0/cc1-quiet-v hello.c-quiet-dumpbase hello.c-march=armv7-a-mtls方言=gnu-auxbase hello-version-o/tmp/ccqXSLVK.s GNUC11(GCC)版本5.2.0(arm poky linux gnueabi) 由GNU C版本5.2.0、GMP版本6.0.0、MPFR版本3.1.3、MPC版本1.0.3编译 GGC启发式:--param GGC min expand=100--param GGC min heapsize=131072 忽略不存在的目录
    @debian:~$  . envoiment file  
    @debian:~$ echo $CC
            arm-poky-linux-gnueabi-gcc -march=armv7ve -mfpu=neon -mfloat-abi=hard -mcpu=cortex-a7 --sysroot=/home/siva/imx7-images/sdk/meta-toolchain_sdk/sysroots/cortexa7hf-neon-poky-linux-gnueabi   
    
    @debian:~$ ${CC} hello.c -o hello  
    
     @debian:~$ ${CXX} hello.cpp -o hello