-
Notifications
You must be signed in to change notification settings - Fork 202
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
Missing Symbols Despite SelfContained flag #2296
Comments
Native AOT project moved to https://github.com/dotnet/runtime. Could you please open questions like this in dotnet/runtime repo next time. When linking the static libraries, it is important to also include additional dependencies. Some documentation about it is at https://github.com/dotnet/samples/tree/main/core/nativeaot/NativeLibrary#building-static-libraries . The most reliable way to find the complete list of additional dependencies is by publishing a shared library with detailed verbosity ( The dotnet/runtime#70277 tracks improving the static linking scenario. Resolving as duplicate of dotnet/runtime#70277 . |
Thank you so much for getting back to me! I have the full logs, but I am still a bit confused as I dont seem to have any libraries in my output folder besides the one being built. Do I have to manually publish each of these dlls with NativeAOT and link accordingly? https://gist.github.com/DrewRidley/52657436ccb3a347b94240f19eafe9e9 this output leaves no mention of any specific static libraries or symbols as far as I am aware. |
These additional dependencies are not dropped into the output folder. They are in the native AOT package and need to be referenced via a full path. Here is the relevant command link from your log:
You should include all |
I found the files, |
Hey all, hope everyone is doing well. I am currently trying to compile a very popular C# physics engine, bepu, and am trying to write bindings to rust with bindgen.
Unfortunately, I managed to get as far as some linker errors, but I am unsure as how to proceed as the documentation is not clear why the CoreLibs might not be in the final binary.
Thats just a snippet of the full output, but a lot of the C# core dll references seem to be totally missing from the output. This still occurs even if I use
<SelfContained>true</SelfContained>
.I am using the .net 8 preview publicly available, and am currently on an arm based M1 mac.
Please do let me know if it is a lack of complete support for my platform.
Thank you.
The text was updated successfully, but these errors were encountered: