跨海湾合作委员会crti.o
我已按照 Cross linux from scrap from scrap for powerpc 中的说明进行操作,但是由于 ld
错误 crti.o:没有这样的文件或目录
,我无法通过 gcc-final
阶段。
我的工具链分为两个目录:/opt/builder/tools
和 /opt/builder/cross-tools
,Linux 头文件和 elibc 位于第一个目录,而交叉目录则位于公用事业在第二。我还为这些目录创建了链接 /tools
和 /cross-tools
。
我尝试过 /cross-tools/bin/powerpc-unknown-linux-gcc -print-search-path
并且有一个目录 /opt/builder/tools/lib
在“库”部分。但是 gcc 将 crt....o
对象的名称传递给 ld
而不使用目录前缀(我使用 strace 来找出它)。
crt....o
文件很好,因为当我将它们复制到 hello.c
目录并编译时,一切正常。
你能给一些建议吗?
预先感谢,
谢尔盖·瑙莫夫。
I have followed the instructions at Cross linux from scratch for powerpc, but I can't get past the gcc-final
stage due to an ld
error crti.o: no such file or directory
.
My tool chain is separated into two directories: /opt/builder/tools
and /opt/builder/cross-tools
, with Linux headers and eglibc in the first and cross-utilities in the second. Also I have created links /tools
and /cross-tools
for those directories.
I have tried /cross-tools/bin/powerpc-unknown-linux-gcc -print-search-path
and there was a directory /opt/builder/tools/lib
there in the "libraries" section. But gcc passes names of crt....o
objects to ld
without directory prefixes (I have used strace to find it out).
The crt....o
files are good because, when I copied them to the directory with hello.c
and compiled it, everything was ok.
Could you give some advice?
Thanks in advance,
Sergey Naumov.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
libc 提供的 crt 文件应位于 $ROOT/$TARGET/lib/ 中(即 gcc 编译的 crt 文件稍后将安装在 $ROOT/lib/gcc/$TARGET 中) /$GCC_VERSION/。
The libc-provided crt files should be in
$ROOT/$TARGET/lib/
(i.e., The gcc-compiled crt files will later be installed in$ROOT/lib/gcc/$TARGET/$GCC_VERSION/
.