D213 SDK 编译报GLIBC_2.27找不到错误,已经按文档用Ubuntu 18.04.

就是这样报错:

/home/hhh/d211/output/d211_d213_devkitf/host/opt/ext-toolchain/bin/../lib/gcc/riscv64-unknown-linux-gnu/10.2.0/../../../../riscv64-unknown-linux-gnu/bin/ld: /home/hhh/d211/output/d211_d213_devkitf/host/riscv64-linux-gnu/sysroot/usr/lib64xthead/lp64d/../lib64xthead/lp64d/libasound.so: undefined reference to `pthread_create@GLIBC_2.27'
/home/hhh/d211/output/d211_d213_devkitf/host/opt/ext-toolchain/bin/../lib/gcc/riscv64-unknown-linux-gnu/10.2.0/../../../../riscv64-unknown-linux-gnu/bin/ld: /home/hhh/d211/output/d211_d213_devkitf/host/riscv64-linux-gnu/sysroot/usr/lib64xthead/lp64d/../lib64xthead/lp64d/libasound.so: undefined reference to `pthread_cond_destroy@GLIBC_2.27'
/home/hhh/d211/output/d211_d213_devkitf/host/opt/ext-toolchain/bin/../lib/gcc/riscv64-unknown-linux-gnu/10.2.0/../../../../riscv64-unknown-linux-gnu/bin/ld: /home/hhh/d211/output/d211_d213_devkitf/host/riscv64-linux-gnu/sysroot/usr/lib64xthead/lp64d/../lib64xthead/lp64d/libasound.so: undefined reference to `dlinfo@GLIBC_2.27'
/home/hhh/d211/output/d211_d213_devkitf/host/opt/ext-toolchain/bin/../lib/gcc/riscv64-unknown-linux-gnu/10.2.0/../../../../riscv64-unknown-linux-gnu/bin/ld: /home/hhh/d211/output/d211_d213_devkitf/host/riscv64-linux-gnu/sysroot/usr/lib64xthead/lp64d/../lib64xthead/lp64d/libasound.so: undefined reference to `getc@GLIBC_2.27'
/home/hhh/d211/output/d211_d213_devkitf/host/opt/ext-toolchain/bin/../lib/gcc/riscv64-unknown-linux-gnu/10.2.0/../../../../riscv64-unknown-linux-gnu/bin/ld: /home/hhh/d211/output/d211_d213_devkitf/host/riscv64-linux-gnu/sysroot/usr/lib64xthead/lp64d/../lib64xthead/lp64d/libasound.so: undefined reference to `readlink@GLIBC_2.27'
/home/hhh/d211/output/d211_d213_devkitf/host/opt/ext-toolchain/bin/../lib/gcc/riscv64-unknown-linux-gnu/10.2.0/../../../../riscv64-unknown-linux-gnu/bin/ld: /home/hhh/d211/output/d211_d213_devkitf/host/riscv64-linux-gnu/sysroot/usr/lib64xthead/lp64d/../lib64xthead/lp64d/libasound.so: undefined reference to `pthread_mutex_destroy@GLIBC_2.27'
/home/hhh/d211/output/d211_d213_devkitf/host/opt/ext-toolchain/bin/../lib/gcc/riscv64-unknown-linux-gnu/10.2.0/../../../../riscv64-unknown-linux-gnu/bin/ld: /home/hhh/d211/output/d211_d213_devkitf/host/riscv64-linux-gnu/sysroot/usr/lib64xthead/lp64d/../lib64xthead/lp64d/libasound.so: undefined reference to `closedir@GLIBC_2.27'
/home/hhh/d211/output/d211_d213_devkitf/host/opt/ext-toolchain/bin/../lib/gcc/riscv64-unknown-linux-gnu/10.2.0/../../../../riscv64-unknown-linux-gnu/bin/ld: /home/hhh/d211/output/d211_d213_devkitf/host/riscv64-linux-gnu/sysroot/usr/lib64xthead/lp64d/../lib64xthead/lp64d/libasound.so: undefined reference to `setpgid@GLIBC_2.27'

如果构建的是其他目标则不会错误,只有构建d211_d213_devkitf_defconfig会发生错误.也用过Ubuntu 16/18/20/22都不行.

我对照的文档是这个.

有点菜不知道怎么解决.

GLIBC版本确认.

strings /usr/lib/x86_64-linux-gnu/libstdc++.so.6 | grep GLIBC

GLIBCXX_3.4

GLIBCXX_3.4.1

GLIBCXX_3.4.2

GLIBCXX_3.4.3

GLIBCXX_3.4.4

GLIBCXX_3.4.5

GLIBCXX_3.4.6

GLIBCXX_3.4.7

GLIBCXX_3.4.8

GLIBCXX_3.4.9

GLIBCXX_3.4.10

GLIBCXX_3.4.11

GLIBCXX_3.4.12

GLIBCXX_3.4.13

GLIBCXX_3.4.14

GLIBCXX_3.4.15

GLIBCXX_3.4.16

GLIBCXX_3.4.17

GLIBCXX_3.4.18

GLIBCXX_3.4.19

GLIBCXX_3.4.20

GLIBCXX_3.4.21

GLIBCXX_3.4.22

GLIBCXX_3.4.23

GLIBCXX_3.4.24

GLIBCXX_3.4.25

GLIBCXX_3.4.26

GLIBCXX_3.4.27

GLIBCXX_3.4.28

GLIBCXX_3.4.29

GLIBCXX_3.4.30

GLIBC_2.2.5

GLIBC_2.3

GLIBC_2.14

GLIBC_2.6

GLIBC_2.33

GLIBC_2.25

GLIBC_2.18

GLIBC_2.16

GLIBC_2.32

GLIBC_2.7

GLIBC_2.3.4

GLIBC_2.17

GLIBC_2.3.2

GLIBC_2.34

GLIBC_2.4

GLIBCXX_DEBUG_MESSAGE_LENGTH

make menuconfig 删除一大堆包勉强编译通过… 但不能启动

询问客服加群,获取SDK文件

兄弟,你这问题最后咋解决的,能不能告知一下,谢谢