I am trying to get my IPQ8065 based device to run .Net Core 5.0 binaries. It should be possible because core5 can compile to 32bit musl-arm.
Specifically, the device im using is this;
Hello-world was built for linux-musl-arm using dotnet publish --configuration Release --runtime linux-musl-arm --self-contained
Attempting to run it on my device, a bunch of missing symbols related to stdstring
root@OpenWrt:~/test3# ldd EmbeddedTestApp2
/lib/ld-musl-armhf.so.1 (0xb6f38000)
libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0xb6e15000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0xb6df9000)
libc.musl-armv7.so.1 => /lib/ld-musl-armhf.so.1 (0xb6f38000)
Error relocating EmbeddedTestApp2: _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE14_M_replace_auxEjjjc: symbol not found
Error relocating EmbeddedTestApp2: _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_appendEPKcj: symbol not found
Error relocating EmbeddedTestApp2: _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5rfindEPKcjj: symbol not found
Error relocating EmbeddedTestApp2: _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12find_last_ofEPKcjj: symbol not found
Error relocating EmbeddedTestApp2: _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEjjPKc: symbol not found
Error relocating EmbeddedTestApp2: _ZSt7getlineIcSt11char_traitsIcESaIcEERSt13basic_istreamIT_T0_ES7_RNSt7__cxx1112basic_stringIS4_S5_T1_EES4_: symbol not found
Error relocating EmbeddedTestApp2: _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7compareEjjRKS4_: symbol not found
Error relocating EmbeddedTestApp2: _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_assignERKS4_: symbol not found
Error relocating EmbeddedTestApp2: _ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEC1ERKNS_12basic_stringIcS2_S3_EESt13_Ios_Openmode: symbol not found
Error relocating EmbeddedTestApp2: _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE8_M_eraseEjj: symbol not found
Error relocating EmbeddedTestApp2: _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE7reserveEj: symbol not found
Error relocating EmbeddedTestApp2: _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_createERjj: symbol not found
Error relocating EmbeddedTestApp2: _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev: symbol not found
Error relocating EmbeddedTestApp2: _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE10_M_replaceEjjPKcj: symbol not found
Error relocating EmbeddedTestApp2: _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE5rfindEcj: symbol not found
Error relocating EmbeddedTestApp2: _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE6resizeEjc: symbol not found
Error relocating EmbeddedTestApp2: _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findEcj: symbol not found
Error relocating EmbeddedTestApp2: _ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE9_M_mutateEjjPKcj: symbol not found
Error relocating EmbeddedTestApp2: _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE17find_first_not_ofEPKcjj: symbol not found
Error relocating EmbeddedTestApp2: _ZNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEC1Ev: symbol not found
Error relocating EmbeddedTestApp2: _ZNKSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE4findEPKcjj: symbol not found
Error relocating EmbeddedTestApp2: _ZTTNSt7__cxx1118basic_stringstreamIcSt11char_traitsIcESaIcEEE: symbol not found
Error relocating EmbeddedTestApp2: _ZTVNSt7__cxx1115basic_stringbufIcSt11char_traitsIcESaIcEEE: symbol not found
root@OpenWrt:~/test3#
Im using a generic openwrt build
openwrt-22.03.3-ipq806x-generic-askey_rt4230w-rev6-initramfs-uImage
No, the system libc is musl - everything is built against that (musl), including everything else (libraries) mono depends on. The system libc (musl | glibc) is a build-time choice (defaulting to musl), it can't be changed at runtime (via opkg).
I've just cherry-picked that fix into 22.03 branch, so if nothing breaks, then it should be fixed with the next snapshot build of the release branch and in next 22.03.4 release.
Thanks, just installed latest stable OpenWRT v23.05 and dotnet sdk 7.0.401 and seems still have this same problem. However latest SNAPSHOT works fine.
Check REPO and they all seem to have this fix already.
Ive been chasing this issue for 2ytrs, confused now what the actual issue is... Any clues
Thankyou for your time!