Skip to content

docker build --rm -f test.dockerfile . -t img-test : native aot compilation fails on Mac M1 in version 9, ok in version 8 #104325

Closed

Description

@LLT21

Description

While packaging the project in https://github.com/LLT21/dotnet9.git with the command docker build --rm -f test.dockerfile . -t img-test, the following error occurs with .NET 9 preview:

image

Reproduction Steps

  1. Clone the project in https://github.com/LLT21/dotnet9.git on a Mac M1 (ARM)
  2. Build the docker file with: docker build --rm -f test.dockerfile . -t img-test

Expected behavior

With dotnet version 8 this compiles well in aot; would like this also to work in dotnet 9

Actual behavior

In dotnet 9 there is this error: 12.32 /usr/bin/ld.bfd:obj/Release/net9.0/linux-arm64/native/test.exports:3: syntax error in VERSION script

Regression?

No response

Known Workarounds

No response

Configuration

No response

Other information

No response

Activity

  1. added
    untriaged
    on Jul 2, 2024
  2. LLT21 commented on Jul 2, 2024

    @LLT21
    Author

    Apparently this is due the this line in the .csproj file:
    <DebuggerSupport>false</DebuggerSupport>
    Was probably supported in .NET 8, not anymore in .NET 9 ?

  3. dotnet-policy-service commented on Jul 2, 2024

    @dotnet-policy-service
    Contributor

    Tagging subscribers to this area: @agocke, @MichalStrehovsky, @jkotas
    See info in area-owners.md if you want to be subscribed.

  4. added a commit that references this issue on Jul 3, 2024
    c6c2a53
  5. jkotas commented on Jul 3, 2024

    @jkotas
    Member

    Thank you for the report! #104339 has the fix.

  6. added a commit that references this issue on Jul 3, 2024
    0596df3
  7. removed
    untriaged
    on Jul 9, 2024
  8. added a commit that references this issue on Jul 9, 2024
    e125386
  9. locked and limited conversation to collaborators on Aug 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    • Status
      No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions