问题:
-
readelf -s /mnt/lfs/sources/glibc-build/elf/ld.so \
-
| mawk '($7 ~ /^UND(|EF)$/ && $1 != "0:" && $4 != "REGISTER") { print; p=1 } END { exit p != 0 }'
-
mawk: line 1: regular expression compile failed (missing operand)
很可能是因为awk版本的问题,所以找到源码目录下的elf下面的Makefile,修改有操作符的地方,加上"\".
-
readelf -s /mnt/lfs/sources/glibc-build/elf/ld.so \
-
| mawk '($7 ~ /^UND(\|EF)$/ && $1 != "0:" && $4 != "REGISTER") { print; p=1 } END { exit p != 0 }'
-
mawk: line 1: regular expression compile failed (missing operand)
运气比较好,在“|EF”前面加上“\”,这里就过了。
接着又出现了问题:
-
/mnt/lfs/tools/bin/../lib/gcc/i686-lfs-linux-gnu/4.4.3/../../../../i686-lfs-linux-gnu/bin/ld: cannot find -lgcc_eh
阅读(2402) | 评论(0) | 转发(1) |