ARM G ++交叉编译器错误

时间:2018-07-31 10:50:37

标签: c++ arm g++ ubuntu-14.04 cross-compiling

尝试在Ubuntu 14.04计算机上使用Arm Cross编译器构建二进制文件时出现错误。

下面是我使用的命令:

arm-oe-linux-gnueabi-g++ --sysroot=/home/ubuntu/das_toolchain/sysroots/aarch64-oe-linux/ --verbose sample.cpp

编译器是(命令“ which arm-oe-linux-gnueabi-g ++”的结果):

/home/ubuntu/das_toolchain/sysroots/x86_64-oesdk-linux/usr/bin/arm-oe-linux-gnueabi/arm-oe-linux-gnueabi-g++

我得到的错误是:

Using built-in specs.
COLLECT_GCC=arm-oe-linux-gnueabi-g++
Target: arm-oe-linux-gnueabi
Configured with: /home/builduser/workspace/poky/build/tmp-glibc/work-shared/gcc-4.9.3-r0/gcc-4.9.3/configure --build=x86_64-linux --host=x86_64-oesdk-linux --target=arm-oe-linux-gnueabi --prefix=/usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/usr --exec_prefix=/usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/usr --bindir=/usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/usr/bin/arm-oe-linux-gnueabi --sbindir=/usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/usr/bin/arm-oe-linux-gnueabi --libexecdir=/usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/usr/libexec/arm-oe-linux-gnueabi --datadir=/usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/usr/share --sysconfdir=/usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/etc --sharedstatedir=/usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/com --localstatedir=/usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/var --libdir=/usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/usr/lib/arm-oe-linux-gnueabi --includedir=/usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/usr/include --oldincludedir=/usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/usr/include --infodir=/usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/usr/share/info --mandir=/usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/usr/share/man --disable-silent-rules --disable-dependency-tracking --with-libtool-sysroot=/home/builduser/workspace/poky/build/tmp-glibc/sysroots/x86_64-nativesdk-oesdk-linux --with-gnu-ld --enable-shared --enable-languages=c,c++ --enable-threads=posix --enable-multilib --enable-c99 --enable-long-long --enable-symvers=gnu --enable-libstdcxx-pch --program-prefix=arm-oe-linux-gnueabi- --without-local-prefix --enable-target-optspace --enable-lto --enable-libssp --disable-bootstrap --disable-libmudflap --with-system-zlib --with-linker-hash-style=gnu --enable-linker-build-id --with-ppl=no --with-cloog=no --enable-checking=release --enable-cheaders=c_global --with-gxx-include-dir=/not/exist/usr/include/c++/4.9.3 --with-build-time-tools=/home/builduser/workspace/poky/build/tmp-glibc/sysroots/x86_64-linux/usr/arm-oe-linux-gnueabi/bin --with-sysroot=/not/exist --with-build-sysroot=/home/builduser/workspace/poky/build/tmp-glibc/sysroots/lib32-apq8053 --enable-poison-system-directories --with-mpfr=/home/builduser/workspace/poky/build/tmp-glibc/sysroots/x86_64-nativesdk-oesdk-linux --with-mpc=/home/builduser/workspace/poky/build/tmp-glibc/sysroots/x86_64-nativesdk-oesdk-linux --enable-nls --with-arch=armv7-a
Thread model: posix
gcc version 4.9.3 (GCC) 
COLLECT_GCC_OPTIONS='--sysroot=/home/ubuntu/das_toolchain/sysroots/aarch64-oe-linux/' '-v' '-shared-libgcc' '-march=armv7-a' '-mtls-dialect=gnu'
cc1plus -quiet -v -isysroot /home/ubuntu/das_toolchain/sysroots/aarch64-oe-linux/ -D_GNU_SOURCE sample.cpp -quiet -dumpbase sample.cpp -march=armv7-a -mtls-dialect=gnu -auxbase sample -version -o /tmp/cc7ApGfu.s
arm-oe-linux-gnueabi-g++: error trying to exec 'cc1plus': execvp: No such file or directory

我的跨g ++编译器的版本是:

$ arm-oe-linux-gnueabi-g++ --version
arm-oe-linux-gnueabi-g++ (GCC) 4.9.3
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

我无法解决这个错误。请在这里帮忙。

0 个答案:

没有答案