问题描述
我第一次在 Linux from Scratch 系统上工作。
背景信息:
图书版本 - 10.1
主机分布 - EndeavorOS
问题出现在步骤 5.5.1 https://www.linuxfromscratch.org/lfs/view/stable/chapter05/glibc.html
我开始编译 Glibc,但是大约一分钟左右就结束了这个过程。事情似乎在这里开始走下坡路:
/mnt/lfs/tools/lib/gcc/x86_64-lfs-linux-gnu/10.2.0/../../../../x86_64-lfs-lin
ux-gnu/bin/ld: /mnt/lfs/sources/glibc-2.33/build/nptl/libpthread_pic.a(old_pt
hread_atfork.os): in function `__dyn_pthread_atfork':
/mnt/lfs/sources/glibc-2.33/nptl/pthread_atfork.c:51: undefined reference to
`__dso_handle'
/mnt/lfs/tools/lib/gcc/x86_64-lfs-linux-gnu/10.2.0/../../../../x86_64-lfs-lin
ux-gnu/bin/ld: /mnt/lfs/sources/glibc-2.33/build/nptl/libpthread_pic.a(old_pt
hread_atfork.os): relocation R_X86_64_PC32 against undefined hidden symbol `_
_dso_handle' can not be used when making a shared object
/mnt/lfs/tools/lib/gcc/x86_64-lfs-linux-gnu/10.2.0/../../../../x86_64-lfs-lin
ux-gnu/bin/ld: final link Failed: bad value
collect2: error: ld returned 1 exit status
make[2]: *** [../Makerules:536: /mnt/lfs/sources/glibc-2.33/build/nptl/libpth
read.so] Error 1
make[2]: Leaving directory '/mnt/lfs/sources/glibc-2.33/nptl'
make[1]: *** [Makefile:479: nptl/others] Error 2
make[1]: Leaving directory '/mnt/lfs/sources/glibc-2.33'
make: *** [Makefile:9: all] Error 2
[lfs@Endeavour build]$
(完整的非缩短输出可以在这里找到:https://pastebin.com/7Qk40xr2)
多次提到`__dso_handle'
我曾尝试使用“make -j4”、“make”和“make -j1”,但它们都会导致相同的问题。
如果能提供任何帮助,我将不胜感激。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)