安装的gcc-linaro-6.3.1-2017.02-x86_64_arm-linux-gnueabihf,gcc 没问题。g++提示找不到。百度了一大圈也没搞定。哪位指点一下。谢谢。
离线
换一个最新版本
gcc-linaro-7.4.1-2019.02-x86_64_arm-linux-gnueabihf ,换了这个最新的版本还是这样。要崩溃了。晕哥你能编译cpp吗?
离线
理论上没有问题,晚点有空我试一试
好的。晕哥一定帮我试试。搞了一个礼拜了。多谢。
离线
https://whycan.cn/files/members/3/QQ20190801091518.png
root@test4:~# ls /usr/local/ -l total 409764 drwxr-xr-x 7 root root 4096 Oct 12 2018 arm-2010q1 -rw-r--r-- 1 root root 82460512 Apr 23 2010 arm-2010q1-202-arm-none-linux-gnueabi-i686-pc-linux-gnu.tar.bz2 drwxr-xr-x 2 root root 4096 Jun 2 10:10 bin drwxr-xr-x 2 root root 4096 Feb 15 2017 etc drwxr-xr-x 3 root root 4096 Jul 23 07:05 frp drwxr-xr-x 2 root root 4096 Feb 15 2017 games drwxr-xr-x 8 11827 9000 4096 Jul 1 2016 gcc-linaro-5.3.1-2016.05-x86_64_arm-eabi -rw-r--r-- 1 root root 229015824 Feb 26 2018 gcc-linaro-5.3.1-2016.05-x86_64_arm-eabi.tar.xz drwxr-xr-x 8 11827 9000 4096 Nov 19 2017 gcc-linaro-7.2.1-2017.11-x86_64_arm-linux-gnueabi drwxr-xr-x 8 11827 9000 4096 Jan 22 2019 gcc-linaro-7.4.1-2019.02-i686_arm-linux-gnueabihf -rw-r--r-- 1 root root 108038500 Jan 25 2019 gcc-linaro-7.4.1-2019.02-i686_arm-linux-gnueabihf.tar.xz drwxr-xr-x 3 root root 4096 Jun 6 2018 gnu-mcu-eclipse drwxr-xr-x 3 root root 4096 Aug 19 2018 gnutools drwxr-xr-x 2 root root 4096 Feb 15 2017 include drwxr-xr-x 5 root root 4096 Sep 25 2018 lib drwxr-xr-x 2 root root 4096 Sep 25 2018 libexec lrwxrwxrwx 1 root root 9 Mar 14 2017 man -> share/man drwxr-xr-x 11 root root 4096 Oct 3 2018 riscv-tools drwxr-xr-x 2 root root 4096 Feb 15 2017 sbin drwxr-xr-x 11 root root 4096 Sep 25 2018 share drwxr-xr-x 2 root root 4096 Feb 15 2017 src drwxr-xr-x 3 root root 4096 Sep 25 2018 var root@test4:~# root@test4:~# root@test4:~# root@test4:~# find /usr/local/ |grep linaro |grep g++$ /usr/local/gcc-linaro-7.2.1-2017.11-x86_64_arm-linux-gnueabi/bin/arm-linux-gnueabi-g++ /usr/local/gcc-linaro-5.3.1-2016.05-x86_64_arm-eabi/bin/arm-eabi-g++ /usr/local/gcc-linaro-7.4.1-2019.02-i686_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-g++ root@test4:~#
我安装在opt 下,我find 也有啊
sinlinx@ubuntu://opt$ find . |grep linaro |grep g++$
./gcc-linaro-7.4.1-2019.02-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-g++
./gcc-linaro-6.3.1-2017.02-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-g++
但是编译arm-linux-gnueabihf-g++ 编译一个最简单的hello就提示找不到arm-linux-gnueabihf-g++ .
离线
root@test4:~# /usr/local/gcc-linaro-7.4.1-2019.02-i686_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-g++ -v Using built-in specs. COLLECT_GCC=/usr/local/gcc-linaro-7.4.1-2019.02-i686_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-g++ COLLECT_LTO_WRAPPER=/usr/local/gcc-linaro-7.4.1-2019.02-i686_arm-linux-gnueabihf/bin/../libexec/gcc/arm-linux-gnueabihf/7.4.1/lto-wrapper Target: arm-linux-gnueabihf Configured with: '/home/tcwg-buildslave/workspace/tcwg-make-release_0/snapshots/gcc.git~linaro-7.4-2019.02/configure' SHELL=/bin/bash --with-mpc=/home/tcwg-buildslave/workspace/tcwg-make-release_0/_build/builds/destdir/i686-pc-linux-gnu --with-mpfr=/home/tcwg-buildslave/workspace/tcwg-make-release_0/_build/builds/destdir/i686-pc-linux-gnu --with-gmp=/home/tcwg-buildslave/workspace/tcwg-make-release_0/_build/builds/destdir/i686-pc-linux-gnu --with-gnu-as --with-gnu-ld --disable-libmudflap --enable-lto --enable-shared --without-included-gettext --enable-nls --with-system-zlib --disable-sjlj-exceptions --enable-gnu-unique-object --enable-linker-build-id --disable-libstdcxx-pch --enable-c99 --enable-clocale=gnu --enable-libstdcxx-debug --enable-long-long --with-cloog=no --with-ppl=no --with-isl=no --disable-multilib --with-float=hard --with-fpu=vfpv3-d16 --with-mode=thumb --with-tune=cortex-a9 --with-arch=armv7-a --enable-threads=posix --enable-multiarch --enable-libstdcxx-time=yes --enable-gnu-indirect-function --with-build-sysroot=/home/tcwg-buildslave/workspace/tcwg-make-release_0/_build/sysroots/arm-linux-gnueabihf --with-sysroot=/home/tcwg-buildslave/workspace/tcwg-make-release_0/_build/builds/destdir/i686-pc-linux-gnu/arm-linux-gnueabihf/libc --enable-checking=release --disable-bootstrap --enable-languages=c,c++,fortran,lto --build=i686-pc-linux-gnu --host=i686-pc-linux-gnu --target=arm-linux-gnueabihf --prefix=/home/tcwg-buildslave/workspace/tcwg-make-release_0/_build/builds/destdir/i686-pc-linux-gnu Thread model: posix gcc version 7.4.1 20181213 [linaro-7.4-2019.02 revision 56ec6f6b99cc167ff0c2f8e1a2eed33b1edc85d4] (Linaro GCC 7.4-2019.02) root@test4:~# root@test4:~# root@test4:~# root@test4:~# /usr/local/gcc-linaro-7.2.1-2017.11-x86_64_arm-linux-gnueabi/bin/arm-linux-gnueabi-g++ -v Using built-in specs. COLLECT_GCC=/usr/local/gcc-linaro-7.2.1-2017.11-x86_64_arm-linux-gnueabi/bin/arm-linux-gnueabi-g++ COLLECT_LTO_WRAPPER=/usr/local/gcc-linaro-7.2.1-2017.11-x86_64_arm-linux-gnueabi/bin/../libexec/gcc/arm-linux-gnueabi/7.2.1/lto-wrapper Target: arm-linux-gnueabi Configured with: '/home/tcwg-buildslave/workspace/tcwg-make-release/builder_arch/amd64/label/tcwg-x86_64-build/target/arm-linux-gnueabi/snapshots/gcc.git~linaro-7.2-2017.11/configure' SHELL=/bin/bash --with-mpc=/home/tcwg-buildslave/workspace/tcwg-make-release/builder_arch/amd64/label/tcwg-x86_64-build/target/arm-linux-gnueabi/_build/builds/destdir/x86_64-unknown-linux-gnu --with-mpfr=/home/tcwg-buildslave/workspace/tcwg-make-release/builder_arch/amd64/label/tcwg-x86_64-build/target/arm-linux-gnueabi/_build/builds/destdir/x86_64-unknown-linux-gnu --with-gmp=/home/tcwg-buildslave/workspace/tcwg-make-release/builder_arch/amd64/label/tcwg-x86_64-build/target/arm-linux-gnueabi/_build/builds/destdir/x86_64-unknown-linux-gnu --with-gnu-as --with-gnu-ld --disable-libmudflap --enable-lto --enable-shared --without-included-gettext --enable-nls --disable-sjlj-exceptions --enable-gnu-unique-object --enable-linker-build-id --disable-libstdcxx-pch --enable-c99 --enable-clocale=gnu --enable-libstdcxx-debug --enable-long-long --with-cloog=no --with-ppl=no --with-isl=no --disable-multilib --with-float=soft --with-mode=thumb --with-tune=cortex-a9 --with-arch=armv7-a --enable-threads=posix --enable-multiarch --enable-libstdcxx-time=yes --enable-gnu-indirect-function --with-build-sysroot=/home/tcwg-buildslave/workspace/tcwg-make-release/builder_arch/amd64/label/tcwg-x86_64-build/target/arm-linux-gnueabi/_build/sysroots/arm-linux-gnueabi --with-sysroot=/home/tcwg-buildslave/workspace/tcwg-make-release/builder_arch/amd64/label/tcwg-x86_64-build/target/arm-linux-gnueabi/_build/builds/destdir/x86_64-unknown-linux-gnu/arm-linux-gnueabi/libc --enable-checking=release --disable-bootstrap --enable-languages=c,c++,fortran,lto --build=x86_64-unknown-linux-gnu --host=x86_64-unknown-linux-gnu --target=arm-linux-gnueabi --prefix=/home/tcwg-buildslave/workspace/tcwg-make-release/builder_arch/amd64/label/tcwg-x86_64-build/target/arm-linux-gnueabi/_build/builds/destdir/x86_64-unknown-linux-gnu Thread model: posix gcc version 7.2.1 20171011 (Linaro GCC 7.2-2017.11) root@test4:~# root@test4:~# root@test4:~# /usr/local/gcc-linaro-7.2.1-2017.11-x86_64_arm-linux-gnueabi/bin/arm-linux-gnueabi-g++ arm-linux-gnueabi-g++: fatal error: no input files compilation terminated. root@test4:~# /usr/local/gcc-linaro-7.4.1-2019.02-i686_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-g++ arm-linux-gnueabihf-g++: fatal error: no input files compilation terminated. root@test4:~#
你的 是什么发行版本 Linux? 32bit 的吗?
我的是ubuntu-14.04.6-desktop-amd64 版本。
离线
gcc-linaro-7.4.1-2019.02-x86_64_arm-linux-gnueabihf 好像也用不了。
是编译CPP 文件是吧。
离线