dotnet / runtime

.NET is a cross-platform runtime for cloud, mobile, desktop, and IoT apps.
https://docs.microsoft.com/dotnet/core/
MIT License
15.37k stars 4.75k forks source link

"/lib64/libstdc++.so.6: no version information available" running on custom linux with kernel 5.4.3 on ARM64 #54267

Open chrfin opened 3 years ago

chrfin commented 3 years ago

We have an embedded system (Variscite DART-MX8M-MINI) running our own Linux-build based on a kernel from Debian Bullseye (5.4.3-g0267163-dirty SMP PREEMPT aarch64).

.NET Core and the SDK run fine on that system, BUT whenever we start any .NET program (including e.g. dotnet --info) we get the following output at the beginning:

dotnet: /lib64/libstdc++.so.6: no version information available (required by dotnet)
dotnet: /lib64/libstdc++.so.6: no version information available (required by dotnet)
dotnet: /lib64/libstdc++.so.6: no version information available (required by dotnet)
dotnet: /lib64/libstdc++.so.6: no version information available (required by dotnet)
dotnet: /lib64/libstdc++.so.6: no version information available (required by dotnet)
dotnet: /lib64/libstdc++.so.6: no version information available (required by dotnet)

All programs work fine afterwards.

Searching for this error we think this is related to different library-versions in the toolchains (cross-)compiling dotnet and our image.

Is there a way to get rid of these warnings without using the same toolchain (as this is not possible in our case)?

dotnet-issue-labeler[bot] commented 3 years ago

I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label.