You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
[NativeAOT] ObjectWriter for MacOS should be built and published from the Main branch #87644
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:
EXEC : warning : DWARF unit from offset 0x00000000 incl. to offset 0x00133e38 excl. tries to read DIEs at offset 0x00133e38 [/Users/vs/aot01/runtime/src/tests/nativeaot/SmokeTests/UnitTests/UnitTests.csproj] [/Users/vs/aot01/runtime/src/tests/build.proj]
EXEC : warning : DWARF unit from offset 0x00000000 incl. to offset 0x001ce1c2 excl. tries to read DIEs at offset 0x001ce1c2 [/Users/vs/aot01/runtime/src/tests/nativeaot/SmokeTests/Reflection/Reflection_FromUsage.csproj] [/Users/vs/aot01/runtime/src/tests/build.proj]
EXEC : warning : DWARF unit from offset 0x00000000 incl. to offset 0x00129592 excl. tries to read DIEs at offset 0x00129592 [/Users/vs/aot01/runtime/src/tests/nativeaot/SmokeTests/Reflection/Reflection.csproj] [/Users/vs/aot01/runtime/src/tests/build.proj]
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.
Activity
filipnavara commentedon Jun 15, 2023
I plan to look into it.
filipnavara commentedon Jun 16, 2023
I can reproduce it. The DWARF info in the .o file has unbalanced nesting and ends with missing
NULLterminator.filipnavara commentedon Jun 16, 2023
The unbalanced nesting happens here:
filipnavara commentedon Jun 16, 2023
I submitted the ObjWriter fix. Someone else will have to fix up DARC once that is merged.
VSadov commentedon Jun 19, 2023
I just want to confirm the ObjWriter fix. I am able to build it on MacOS and then build/run tests with that ObjWriter.
directhex commentedon Jun 19, 2023
@filipnavara you're a hero. This has been a problem for me.
filipnavara commentedon Jun 19, 2023
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?
directhex commentedon Jun 19, 2023
Yeah, I already made the DARC changes in my LLVM 16 branch, hence running into this
akoeplinger commentedon Jun 22, 2023
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.
agocke commentedon Jul 10, 2023
This should be done.