Skip to content

Runtime build fails for Mono ARM32 Alpine #100772

Closed
@directhex

Description

@directhex

Description

Runtime build fails for Mono ARM32 Alpine

Reproduction Steps

docker run --rm -v $(pwd):/vmr -w /vmr -e ROOTFS_DIR=/crossrootfs/arm mcr.microsoft.com/dotnet-buildtools/prereqs:cbl-mariner-2.0-cross-arm-alpine ./build.sh --restore --build --pack --publish --ci --configuration Release /p:CrossBuild=true --arch arm --os linux-musl /p:TargetRid=linux-musl-arm

Expected behavior

Build should complete (Mono ARM32 glibc and Mono ARM64 Alpine work, so this is a weird gap)

Actual behavior

    [100%] Building C object mono/mini/CMakeFiles/mono-sgen.dir/main.c.o
    [100%] Linking C executable mono-sgen
    Stripping symbols from libcoreclr.so into libcoreclr.so.dbg
    [100%] Built target monosgen-shared
    ld.lld: error: undefined symbol: _Unwind_GetIP
    >>> referenced by mini-exceptions.c:390 (/vmr/src/mono/mono/mini/mini-exceptions.c:390)
    >>>               mini-exceptions.c.o:(build_stack_trace) in archive libmonosgen-2.0.a
    clang-16: error: linker command failed with exit code 1 (use -v to see invocation)
    make[2]: *** [mono/mini/CMakeFiles/mono-sgen.dir/build.make:218: mono/mini/mono-sgen] Error 1
    make[1]: *** [CMakeFiles/Makefile2:696: mono/mini/CMakeFiles/mono-sgen.dir/all] Error 2
    make: *** [Makefile:136: all] Error 2
  /vmr/src/mono/mono.proj(639,5): error MSB3073: The command "TARGET_BUILD_ARCH=arm cmake --build . --target install --config Release --parallel 16" exited with code 2.

Regression?

No response

Known Workarounds

No response

Configuration

No response

Other information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-Infrastructure-monoin-prThere is an active PR which will close this issue when it is merged

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions