MRS Linux_x64_V1.60 携带的libtinfo.so.5导致公版arm-none-eabi-gdb报错

在 Ubuntu22.04下, 安装 MRS Linux_x64_V1.60 需要将 libtinfo.so.5 复制到 /usr/lib, 但是这样会导致公版的 arm-none-eabi-gdb无法使用, 具体错误为


s:~$ ldd /opt/gcc-arm/arm-gnu-toolchain-12.2.mpacbti-bet1-x86_64-arm-none-eabi/bin/arm-none-eabi-gdb

/opt/gcc-arm/arm-gnu-toolchain-12.2.mpacbti-bet1-x86_64-arm-none-eabi/bin/arm-none-eabi-gdb: /usr/lib/wch/libtinfo.so.5: version `NCURSES_TINFO_6.2.20211010' not found (required by /lib/x86_64-linux-gnu/libncursesw.so.5)

linux-vdso.so.1 (0x00007ffd53148000)

libncursesw.so.5 => /lib/x86_64-linux-gnu/libncursesw.so.5 (0x00007f3a176d9000)

libtinfo.so.5 => /usr/lib/wch/libtinfo.so.5 (0x00007f3a17400000)

libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007f3a176d4000)

libcrypt.so.1 => /lib/x86_64-linux-gnu/libcrypt.so.1 (0x00007f3a1769a000)

libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f3a17695000)

libutil.so.1 => /lib/x86_64-linux-gnu/libutil.so.1 (0x00007f3a1768e000)

libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007f3a17319000)

libstdc++.so.6 => /lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007f3a170ef000)

libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007f3a1766e000)

libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f3a16ec7000)

/lib64/ld-linux-x86-64.so.2 (0x00007f3a17720000)

s:~$ /opt/gcc-arm/arm-gnu-toolchain-12.2.mpacbti-bet1-x86_64-arm-none-eabi/bin/arm-none-eabi-gdb --version

/opt/gcc-arm/arm-gnu-toolchain-12.2.mpacbti-bet1-x86_64-arm-none-eabi/bin/arm-none-eabi-gdb: /usr/lib/wch/libtinfo.so.5: version `NCURSES_TINFO_6.2.20211010' not found (required by /lib/x86_64-linux-gnu/libncursesw.so.5)


s:~$ ldd /opt/gcc-arm/arm-gnu-toolchain-11.3.rel1-x86_64-arm-none-eabi/bin/arm-none-eabi-gdb

/opt/gcc-arm/arm-gnu-toolchain-11.3.rel1-x86_64-arm-none-eabi/bin/arm-none-eabi-gdb: /usr/lib/wch/libtinfo.so.5: version `NCURSES_TINFO_6.2.20211010' not found (required by /lib/x86_64-linux-gnu/libncursesw.so.5)

linux-vdso.so.1 (0x00007ffc313f2000)

libncursesw.so.5 => /lib/x86_64-linux-gnu/libncursesw.so.5 (0x00007fcfcbff1000)

libtinfo.so.5 => /usr/lib/wch/libtinfo.so.5 (0x00007fcfcbc00000)

libdl.so.2 => /lib/x86_64-linux-gnu/libdl.so.2 (0x00007fcfcbfec000)

libcrypt.so.1 => /lib/x86_64-linux-gnu/libcrypt.so.1 (0x00007fcfcbfb2000)

libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007fcfcbfad000)

libutil.so.1 => /lib/x86_64-linux-gnu/libutil.so.1 (0x00007fcfcbfa6000)

libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007fcfcbebf000)

libstdc++.so.6 => /lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007fcfcb9d6000)

libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007fcfcbe9f000)

libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007fcfcb7ae000)

/lib64/ld-linux-x86-64.so.2 (0x00007fcfcc038000)

s:~$ /opt/gcc-arm/arm-gnu-toolchain-11.3.rel1-x86_64-arm-none-eabi/bin/arm-none-eabi-gdb --version

/opt/gcc-arm/arm-gnu-toolchain-11.3.rel1-x86_64-arm-none-eabi/bin/arm-none-eabi-gdb: /usr/lib/wch/libtinfo.so.5: version `NCURSES_TINFO_6.2.20211010' not found (required by /lib/x86_64-linux-gnu/libncursesw.so.5)


删除 /usr/lib/wch/libtinfo.so.5 后则工作正常 


s$ /opt/gcc-arm/arm-gnu-toolchain-11.3.rel1-x86_64-arm-none-eabi/bin/arm-none-eabi-gdb --version

GNU gdb (Arm GNU Toolchain 11.3.Rel1) 12.1.90.20220802-git

Copyright (C) 2022 Free Software Foundation, Inc.

License GPLv3+: GNU GPL version 3 or later

This is free software: you are free to change and redistribute it.

There is NO WARRANTY, to the extent permitted by law.


s$ /opt/gcc-arm/arm-gnu-toolchain-12.2.mpacbti-bet1-x86_64-arm-none-eabi/bin/arm-none-eabi-gdb --version

GNU gdb (Arm GNU Toolchain 12.2.MPACBTI-Bet1 (Build arm-12-mpacbti.16)) 13.0.50.20220406-git

Copyright (C) 2022 Free Software Foundation, Inc.

License GPLv3+: GNU GPL version 3 or later

This is free software: you are free to change and redistribute it.

There is NO WARRANTY, to the extent permitted by law.


感谢您的使用与反馈,我们这边会验证并跟进该现象。


只有登录才能回复,可以选择微信账号登录