标题: 重新编译工具链,验证时报告crt1.o找不到 [打印本页] 作者: harry_he 时间: 2010-05-21 15:22 标题: 重新编译工具链,验证时报告crt1.o找不到 我重新编译了整个工具链,一直到gcc的第三步,编译过程没什么问题,但是最后我想验证一下编译出来的工具链是否可用,就写了个helloworld来测试,结果报告:
GNU ld (GNU Binutils) 2.19.51.20090709
Supported emulations:
elf32ppclinux
elf32ppc
elf32ppcsim
../build/install/lib/gcc/powerpc-linux-gnu/4.4.1/../../../../powerpc-linux-gnu/bin/ld: crt1.o: No such file: No such file or directory
collect2: ld returned 1 exit status
--with-build-sysroot
--with-build-sysroot=dir
Tells GCC to consider dir as the system root (see --with-sysroot) while building target libraries, instead of the directory specified with --with-sysroot. This option is only useful when you are already using --with-sysroot. You can use --with-build-sysroot when you are configuring with --prefix set to a directory that is different from the one in which you are installing GCC and your target libraries.
This option affects the system root for the compiler used to build target libraries (which runs on the build system); it does not affect the compiler which is used to build GCC itself.作者: prolj 时间: 2010-06-04 17:18
拷贝本机的就可以吧作者: EricFisher 时间: 2010-06-04 23:47
最方便的方式是,拷贝现有的