New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remarks for Debian #17
Comments
@gabrieldevillers Thanks for reporting this issue. I will admit I didn't do a lot of linux validation. I focused on Windows and macOS because that is what I had easily available. I did run a simple sanity check on Ubuntu 16.04 initially but nothing since then.
Good to know. I will check that out and see what I am missing in this scenario.
The link time failure is the issue here. The Based on the command line the following library should be included: |
@gabrieldevillers Boo. This was my issue. I don't recall how I validated this on Linux. It is properly documented here and here. I will see about validating this using |
I misremembered, I do not get a link time failure but a runtime failure:
Also I forgot to tell you that I also had to add this to
|
Thanks for this project, very useful demo.
I had trouble building the file
DNNE/test/ExportingAssembly/obj/Debug/net5.0/dnne/ExportingAssembly.g.c
The error were:
The command was:
Building native export: "clang" -g -O0 -shared -fpic -D DNNE_ASSEMBLY_NAME=ExportingAssembly -I "/home/gabriel/.nuget/packages/dnne/1.0.3/tools/platform" -I "/home/gabriel/dev/dotnet-sdk/dotnet-sdk-5.0.100-preview.6.20309.18-linux-x64/packs/Microsoft.NETCore.App.Host.linux-x64/5.0.0-preview.6.20305.6/runtimes/linux-x64/native" -lstdc++ -o "/home/gabriel/dev/DNNE/test/ExportingAssembly/obj/Debug/net5.0/dnne/bin/ExportingAssemblyNE.so" "/home/gabriel/dev/dotnet-sdk/dotnet-sdk-5.0.100-preview.6.20309.18-linux-x64/packs/Microsoft.NETCore.App.Host.linux-x64/5.0.0-preview.6.20305.6/runtimes/linux-x64/native/libnethost.a" "/home/gabriel/dev/DNNE/test/ExportingAssembly/obj/Debug/net5.0/dnne/ExportingAssembly.g.c" "/home/gabriel/.nuget/packages/dnne/1.0.3/tools/platform/platform.c"
The solution I found was to add
#define __USE_GNU 1
before#include <dlfcn.h>
in platform.c (I modified/home/gabriel/.nuget/packages/dnne/1.0.3/tools/platform/platform.c
because I failed to find the good commands to regen/override/bypass the server the current nuget package).Also I failed to understand what should provide the function
get_hostfxr_path
in platform.c (link time problem) so I changed:into:
and then I added the directory containing
libhostfxr.so
toLD_LIBRARY_PATH
.The text was updated successfully, but these errors were encountered: