我已经下载了aarch64工具链资源,以便从头开始构建gcc。编译终止,没有错误。
编译后,gcc本身可以工作,但是ld找不到像crt1.o
或crti.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
这不会发生吗?