我在构建带有 rust 迹的可移植可执行文件时遇到问题.
在Ubuntu上运行一个简单地用cargo build
构建的可执行文件会失败
./test: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.14' not found (required by ./test)
带有rustc ... -C link-args=-static
的建筑未能正确连接(输出为ld ./test
):
ld: error in ./test(.eh_frame); no .eh_frame_hdr table will be created.
除了用一个旧的glibc版本构建一个更旧的系统之外,还有其他解决方法吗?