hi, I'm trying to build musl target on centos 7. but seems the cargo
on musl toolchain is invalid.. which says libgcc_s.so.1
is invalid, I hava no idea why this error happending.
[root@localhost bin]# pwd
/root/.rustup/toolchains/nightly-2023-06-20-x86_64-unknown-linux-musl/bin
[root@localhost bin]# ./cargo
Error loading shared library libgcc_s.so.1: Exec format error (needed by ./cargo)
Error relocating ./cargo: _Unwind_Resume: symbol not found
Error relocating ./cargo: _Unwind_GetIPInfo: symbol not found
Error relocating ./cargo: _Unwind_GetDataRelBase: symbol not found
Error relocating ./cargo: _Unwind_GetRegionStart: symbol not found
Error relocating ./cargo: _Unwind_SetGR: symbol not found
Error relocating ./cargo: _Unwind_FindEnclosingFunction: symbol not found
Error relocating ./cargo: _Unwind_GetTextRelBase: symbol not found
Error relocating ./cargo: _Unwind_DeleteException: symbol not found
Error relocating ./cargo: _Unwind_RaiseException: symbol not found
Error relocating ./cargo: _Unwind_GetIP: symbol not found
Error relocating ./cargo: _Unwind_Backtrace: symbol not found
Error relocating ./cargo: _Unwind_GetCFA: symbol not found
Error relocating ./cargo: _Unwind_GetLanguageSpecificData: symbol not found
Error relocating ./cargo: _Unwind_SetIP: symbol not found
[root@localhost bin]# file /usr/lib64/libgcc_s.so.1
/usr/lib64/libgcc_s.so.1: symbolic link to `libgcc_s-4.8.5-20150702.so.1'
[root@localhost bin]# file /usr/lib64/libgcc_s-4.8.5-20150702.so.1
/usr/lib64/libgcc_s-4.8.5-20150702.so.1: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, BuildID[sha1]=edf51350c7f71496149d064aa8b1441f786df88a, stripped