交叉编译:为什么ld搜索x86_64而不是mipsel?

时间:2019-07-04 08:38:03

标签: cross-compiling ld

我想为mipsel交叉编译extundelete。 主机是x86_64 slackware。 我用这个build 错误是

/usr/lib64/gcc/x86_64-slackware-linux/5.5.0/../../../../x86_64-slackware-linux/bin/ld: skipping incompatible /opt/e2fsprogs-mipsel/lib//libcom_err.so when searching for -lcom_err
/usr/lib64/gcc/x86_64-slackware-linux/5.5.0/../../../../x86_64-slackware-linux/bin/ld: extundelete-block.o: Relocations in generic ELF (EM: 8)
/usr/lib64/gcc/x86_64-slackware-linux/5.5.0/../../../../x86_64-slackware-linux/bin/ld: extundelete-block.o: Relocations in generic ELF (EM: 8)
/usr/lib64/gcc/x86_64-slackware-linux/5.5.0/../../../../x86_64-slackware-linux/bin/ld: extundelete-block.o: Relocations in generic ELF (EM: 8)
/usr/lib64/gcc/x86_64-slackware-linux/5.5.0/../../../../x86_64-slackware-linux/bin/ld: extundelete-block.o: Relocations in generic ELF (EM: 8)
/usr/lib64/gcc/x86_64-slackware-linux/5.5.0/../../../../x86_64-slackware-linux/bin/ld: extundelete-block.o: Relocations in generic ELF (EM: 8)
/usr/lib64/gcc/x86_64-slackware-linux/5.5.0/../../../../x86_64-slackware-linux/bin/ld: extundelete-block.o: Relocations in generic ELF (EM: 8)

我已经传递了LD标志,为什么使用x86_64 ld? 标志有些错误或什么? 如果删除lcomm_err部分,则找不到ext *库。

0 个答案:

没有答案