< 返回版块

lygz5016 发表于 2021-12-31 09:40

Tags:arm, glibc

编译目标为armv7-unknown-linux-gnueabihf 编译之后在板子(kernel version=4.9.84, glibc version=2.30)上运行提示:

./actor-test: /lib/libc.so.6: version `GLIBC_2.33' not found (required by ./actor-test)
./actor-test: /lib/libc.so.6: version `GLIBC_2.32' not found (required by ./actor-test)
./actor-test: /lib/libc.so.6: version `GLIBC_2.34' not found (required by ./actor-test)

然后我就想到更换glibc。 好吧,下载最新的glibc-2.34源码,编译之。。。

切换到新的glibc,问题来了:

ls: symbol lookup error: /customer/libc/libc.so.6: undefined symbol: __nptl_set_robust_list_avail, version GLIBC_PRIVATE

哎。。

那么哪里能查到rust标准库对应的glibc版本呢,我该更换rust版本来解决这个问题吗?


找到解决办法了: 设置linker 为板子用的编译器就好了,不用升级glibc

[target.armv7-unknown-linux-gnueabihf]
linker = "arm-linux-gnueabihf-gcc"

评论区

写评论

还没有评论

1 共 0 条评论, 1 页