我在 ubuntu 18.04 上安装了 swift,启动时出现此错误。但当我编写代码时,代码运行良好,我搜索了一些解决方案来修复此错误,但问题是我将删除libc6-dbg
。删除它可以吗?删除后,我的其他工作不会受到影响?或者我应该忽略 swift 错误,ld-2.27.so
因为我的代码可以正常工作。
error: ld-2.27.so 0xffffffff0005c564: adding range [0x1464a-0x146ba) which has a base that is less than the function's low PC 0x14dc0. Please file a bug and attach the file at the start of this error message
error: ld-2.27.so 0xffffffff0005c564: adding range [0x146d0-0x146d6) which has a base that is less than the function's low PC 0x14dc0. Please file a bug and attach the file at the start of this error message
error: ld-2.27.so 0xffffffff0005c5c5: adding range [0x1464a-0x146ba) which has a base that is less than the function's low PC 0x14dc0. Please file a bug and attach the file at the start of this error message
error: ld-2.27.so 0xffffffff0005c5c5: adding range [0x146d0-0x146d6) which has a base that is less than the function's low PC 0x14dc0. Please file a bug and attach the file at the start of this error message
Welcome to Swift version 5.0.2 (swift-5.0.2-RELEASE).
答案1
这是一个已知的错误: https://bugs.swift.org/browse/SR-8690
如果您没有在 glibc 中进行任何调试,则一种解决方法是删除调试版本:
sudo apt remove libc6-dbg