-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
[NativeAOT] ObjectWriter for MacOS should be built and published from the Main branch #87644
Comments
Tagging subscribers to this area: @agocke, @MichalStrehovsky, @jkotas Issue DetailsWhile working on adding TLS support it was discovered that we may be omitting building/publishing ObjectWriter for MacOS. Also there could be that we accumulated a few issues/bugs in the main branch as a part of the merge or since then.
This might be happening only on some scenarios and hopefully due to some simple issue, but it prevents using Main branch for further development/testing on MacOS.
|
I plan to look into it. |
I can reproduce it. The DWARF info in the .o file has unbalanced nesting and ends with missing |
The unbalanced nesting happens here: -0x00001e06: DW_TAG_enumeration_type
- DW_AT_name ("Reflection_ReflectionTest_TestAttributeExpressions_MyEnum")
- DW_AT_type (0x000000c0 "int")
- DW_AT_byte_size (0x04)
-
-0x00001e10: NULL
+0x00001e01: DW_TAG_enumeration_type
+ DW_AT_name ("Reflection_ReflectionTest_TestAttributeExpressions_MyEnum")
+ DW_AT_type (0x000000bb "int")
+ DW_AT_byte_size (0x04) |
I submitted the ObjWriter fix. Someone else will have to fix up DARC once that is merged. |
I just want to confirm the ObjWriter fix. I am able to build it on MacOS and then build/run tests with that ObjWriter. |
@filipnavara you're a hero. This has been a problem for me. |
Happy to help! Are you going to take care of the DARC changes as part of the LLVM 16 retargeting? Should I open PR against the LLVM 16 branch as well? |
Yeah, I already made the DARC changes in my LLVM 16 branch, hence running into this |
We might want to make the DARC changes separately so we don't depend on the LLVM 16 work in case that one gets delayed. |
This should be done. |
While working on adding TLS support it was discovered that we may be omitting building/publishing ObjectWriter for MacOS.
The
libobjwriter.dylib
in the nuget that is used by the runtime build is old - from February 6.That is before merging ObjectWriter into
dotnet/llvm-project/main
Also there could be that we accumulated a few issues/bugs in the main branch as a part of the merge or since then.
The binary that is built from main causes
dsymutil
to OOM which breaks the smoketests build. There are also warnings like:This might be happening only on some scenarios and hopefully due to some simple issue, but it prevents using Main branch for further development/testing on MacOS.
Re: dotnet/llvm-project#425
The text was updated successfully, but these errors were encountered: