-
Notifications
You must be signed in to change notification settings - Fork 188
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
ILC.exe issues #2412
Comments
This error means that the build is using a CoreCLR CoreLib, which is not compatible with the NativeAOT one. The build scripts use heuristics to decide which one to build, one of them is whether the subsets supplied are "NativeAOT-related". So, long story short, it is recommended to build the whole thing: Note as well that if you want to target WASM, you'll need to build the WASM-targeting libraries (certain parts of them are architecture-specific) with Edit: also, to get rid of the CoreCLR CoreLib, a Another edit: also, the error messages are somewhat suspicious due to the inclusion of pointer types - did you build LLVM 15 and not some earlier version? |
Thank you, I had built llvm-15.0.6.src. |
It requires some custom configuration for it to be correct. The usual way to get a good baseline command line is to take one of the runtime smoke tests, compile it and then use the resulting response file (I believe the building document has some information about this too). |
It seems it is necessary to specify multiple references, I got a little further this way, but still get this error:
|
What are the reproduction steps for the above? It could be a compiler bug. |
Hello,
I wanted to experiment using ILC onwindows, I followed the instructions in docs/workflow/building/coreclt/nativeaot.md and built llvm,
then used:
build.cmd -s clr.tools -arch x64 -os windows
when running ilc.exe on a c# dll, I go get the following (if using a string in main):
if only using floats and ints, the above error doesnt occur, but I get the following in the output:
though, the emitted ildump seems correct but incomplete.
any hints are greatly appreciated.
The text was updated successfully, but these errors were encountered: