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

@LLT21

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions