交叉编译手臂-找不到图书馆

时间:2018-06-26 13:28:12

标签: compilation arm arm64

我已经下载了aarch64工具链资源,以便从头开始构建gcc。编译终止,没有错误。

编译后,gcc本身可以工作,但是ld找不到像crt1.ocrti.o这样的奇怪目标文件。

aarch64-unknown-linux-gnu/bin/ld: Impossible to found  crt1.o: File or directory doesn't exists 
aarch64-unknown-linux-gnu/bin/ld: Impossible to found crti.o: File or directory doesn't exists 
aarch64-unknown-linux-gnu/bin/ld: Impossible to found  crtbegin.o: File or directory doesn't exists 
aarch64-unknown-linux-gnu/bin/ld: Impossible to found  -lc
aarch64-unknown-linux-gnu/bin/ld: Impossible to found  crtend.o: File or directory doesn't exists 
aarch64-unknown-linux-gnu/bin/ld: Impossible to found  crtn.o: File or directory doesn't exists 

为什么要使用

下载交叉编译器
sudo apt-get install g++-aarch64-linux-gnu 
sudo apt-get install gcc-aarch64-linux-gnu

这不会发生吗?

0 个答案:

没有答案