溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊(cè)×
其他方式登錄
點(diǎn)擊 登錄注冊(cè) 即表示同意《億速云用戶服務(wù)條款》

Ubuntu16.04系統(tǒng)中BusyBox在配置arm交叉編譯環(huán)境時(shí)make失敗

發(fā)布時(shí)間:2020-07-22 22:15:03 來源:網(wǎng)絡(luò) 閱讀:3408 作者:銀河星君 欄目:大數(shù)據(jù)
/usr/local/arm/arm-2009q3/bin/arm-none-linux-gnueabi-gcc: No such file or directory
/home/uLinux/busybox-1.24.2/scripts/gcc-version.sh: line 11: /usr/local/arm/arm-2009q3/bin/arm-none-linux-gnueabi-gcc: No such file or directory

首先按照一篇看看:http://10638473.blog.51cto.com/10628473/1764014

再不行,可以按照如下操作:

he@ubuntu:~$ arm-none-linux-gnueabi-gcc --help
bash: /usr/local/arm/arm-2009q3/bin/arm-none-linux-gnueabi-gcc: No such file or directory
he@ubuntu:~$ arm-none-linux-gnueabi-gcc -v
bash: /usr/local/arm/arm-2009q3/bin/arm-none-linux-gnueabi-gcc: No such file or directory
he@ubuntu:~$ sudo apt-get install ia32-libs
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package ia32-libs is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source
However the following packages replace it:
  lib32ncurses5 lib32z1

E: Package 'ia32-libs' has no installation candidate
he@ubuntu:~$ sudo apt-get install lib32ncurses5 lib32z1
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  lib32tinfo5 libc6-i386
The following NEW packages will be installed:
  lib32ncurses5 lib32tinfo5 lib32z1 libc6-i386
0 upgraded, 4 newly installed, 0 to remove and 127 not upgraded.
Need to get 2,563 kB of archives.
After this operation, 11.3 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 http://202.197.96.248/files/218000000036D67B/cn.archive.ubuntu.com/ubuntu xenial/main amd64 libc6-i386 amd64 2.23-0ubuntu3 [2,335 kB]
Get:2 http://us.archive.ubuntu.com/ubuntu xenial/main amd64 lib32tinfo5 amd64 6.0+20160213-1ubuntu1 [76.9 kB]
Get:3 http://us.archive.ubuntu.com/ubuntu xenial/main amd64 lib32ncurses5 amd64 6.0+20160213-1ubuntu1 [99.5 kB]
Get:4 http://us.archive.ubuntu.com/ubuntu xenial/main amd64 lib32z1 amd64 1:1.2.8.dfsg-2ubuntu4 [52.2 kB]
Fetched 2,563 kB in 4s (606 kB/s)  
Selecting previously unselected package libc6-i386.
(Reading database ... 173885 files and directories currently installed.)
Preparing to unpack .../libc6-i386_2.23-0ubuntu3_amd64.deb ...
Unpacking libc6-i386 (2.23-0ubuntu3) ...
Selecting previously unselected package lib32tinfo5.
Preparing to unpack .../lib32tinfo5_6.0+20160213-1ubuntu1_amd64.deb ...
Unpacking lib32tinfo5 (6.0+20160213-1ubuntu1) ...
Selecting previously unselected package lib32ncurses5.
Preparing to unpack .../lib32ncurses5_6.0+20160213-1ubuntu1_amd64.deb ...
Unpacking lib32ncurses5 (6.0+20160213-1ubuntu1) ...
Selecting previously unselected package lib32z1.
Preparing to unpack .../lib32z1_1%3a1.2.8.dfsg-2ubuntu4_amd64.deb ...
Unpacking lib32z1 (1:1.2.8.dfsg-2ubuntu4) ...
Processing triggers for libc-bin (2.23-0ubuntu3) ...
Setting up libc6-i386 (2.23-0ubuntu3) ...
Setting up lib32tinfo5 (6.0+20160213-1ubuntu1) ...
Setting up lib32ncurses5 (6.0+20160213-1ubuntu1) ...
Setting up lib32z1 (1:1.2.8.dfsg-2ubuntu4) ...
Processing triggers for libc-bin (2.23-0ubuntu3) ...
he@ubuntu:~$ arm-none-linux-gnueabi-gcc -v
Using built-in specs.
Target: arm-none-linux-gnueabi
Configured with: /scratch/julian/2009q3-respin-linux-lite/src/gcc-4.4/configure --build=i686-pc-linux-gnu --host=i686-pc-linux-gnu --target=arm-none-linux-gnueabi --enable-threads --disable-libmudflap --disable-libssp --disable-libstdcxx-pch --enable-extra-sgxxlite-multilibs --with-arch=armv5te --with-gnu-as --with-gnu-ld --with-specs='%{funwind-tables|fno-unwind-tables|mabi=*|ffreestanding|nostdlib:;:-funwind-tables} %{O2:%{!fno-remove-local-statics: -fremove-local-statics}} %{O*:%{O|O0|O1|O2|Os:;:%{!fno-remove-local-statics: -fremove-local-statics}}}' --enable-languages=c,c++ --enable-shared --disable-lto --enable-symvers=gnu --enable-__cxa_atexit --with-pkgversion='Sourcery G++ Lite 2009q3-67' --with-bugurl=https://support.codesourcery.com/GNUToolchain/ --disable-nls --prefix=/opt/codesourcery --with-sysroot=/opt/codesourcery/arm-none-linux-gnueabi/libc --with-build-sysroot=/scratch/julian/2009q3-respin-linux-lite/install/arm-none-linux-gnueabi/libc --with-gmp=/scratch/julian/2009q3-respin-linux-lite/obj/host-libs-2009q3-67-arm-none-linux-gnueabi-i686-pc-linux-gnu/usr --with-mpfr=/scratch/julian/2009q3-respin-linux-lite/obj/host-libs-2009q3-67-arm-none-linux-gnueabi-i686-pc-linux-gnu/usr --with-ppl=/scratch/julian/2009q3-respin-linux-lite/obj/host-libs-2009q3-67-arm-none-linux-gnueabi-i686-pc-linux-gnu/usr --with-host-libstdcxx='-static-libgcc -Wl,-Bstatic,-lstdc++,-Bdynamic -lm' --with-cloog=/scratch/julian/2009q3-respin-linux-lite/obj/host-libs-2009q3-67-arm-none-linux-gnueabi-i686-pc-linux-gnu/usr --disable-libgomp --enable-poison-system-directories --with-build-time-tools=/scratch/julian/2009q3-respin-linux-lite/install/arm-none-linux-gnueabi/bin --with-build-time-tools=/scratch/julian/2009q3-respin-linux-lite/install/arm-none-linux-gnueabi/bin
Thread model: posix
gcc version 4.4.1 (Sourcery G++ Lite 2009q3-67) 
he@ubuntu:~$

OK,搞定。

再到BusyBox目錄下執(zhí)行make命令就可以編譯了!

編譯大概需要兩分鐘!

向AI問一下細(xì)節(jié)

免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如果涉及侵權(quán)請(qǐng)聯(lián)系站長(zhǎng)郵箱:is@yisu.com進(jìn)行舉報(bào),并提供相關(guān)證據(jù),一經(jīng)查實(shí),將立刻刪除涉嫌侵權(quán)內(nèi)容。

AI