Skip to content

[NativeAOT] ObjectWriter for MacOS should be built and published from the Main branch #87644

@VSadov

Description

@VSadov

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.

Re: dotnet/llvm-project#425

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    No status

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions