Skip to content

coreclr fails to compile on Musl #1882

@PureTryOut

Description

@PureTryOut

Splitting off from #1868, please read there for more context.

On an Alpine Linux edge system using Musl, dotnet currently fails to compile coreclr.

  In file included from /home/bart/Documents/Git/alpine/aports/testing/dotnet/src/source-build-b4d00c370e0a592c26040c74349273c0389509d4/artifacts/src/coreclr.d989459717cbce34262060c4b8b949185033e379/src/pal/src/misc/tracepointprovider.cpp:19:
  In file included from /home/bart/Documents/Git/alpine/aports/testing/dotnet/src/source-build-b4d00c370e0a592c26040c74349273c0389509d4/artifacts/src/coreclr.d989459717cbce34262060c4b8b949185033e379/src/pal/src/include/pal/palinternal.h:620:
  In file included from /usr/bin/../lib/gcc/x86_64-alpine-linux-musl/10.2.1/../../../../include/c++/10.2.1/stdlib.h:30:
  /usr/include/stdlib.h:23:11: error: 'atoll' is missing exception specification 'throw()'
  long long atoll (const char *);
            ^
  /home/bart/Documents/Git/alpine/aports/testing/dotnet/src/source-build-b4d00c370e0a592c26040c74349273c0389509d4/artifacts/src/coreclr.d989459717cbce34262060c4b8b949185033e379/src/pal/inc/pal.h:4224:33: note: previous declaration is here
  PALIMPORT long long int __cdecl atoll(const char *) THROW_DECL;
                                  ^
  1 error generated.
  make[2]: *** [src/pal/src/CMakeFiles/tracepointprovider.dir/build.make:82: src/pal/src/CMakeFiles/tracepointprovider.dir/misc/tracepointprovider.cpp.o] Error 1
  make[1]: *** [CMakeFiles/Makefile2:2362: src/pal/src/CMakeFiles/tracepointprovider.dir/all] Error 2
  make: *** [Makefile:149: all] Error 2
  Failed to build CoreCLR component.
  
  'coreclr-portable' failed during build.
  See '/home/bart/Documents/Git/alpine/aports/testing/dotnet/src/source-build-b4d00c370e0a592c26040c74349273c0389509d4/artifacts/logs/coreclr-portable.log' for more information.
  'coreclr' failed during build.
  'corefx' failed during build.
  'msbuild' failed during build.
  'known-good' failed during build.

Build FAILED.

This is using Clang 10.0.1 and Musl 1.2.2.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions