Skip to content

Investigate cross-build issues with MacOS arm64 #122420

@agocke

Description

@agocke

As per @am11 in #122085 (comment)

As explained above, with -cross, the build uses cached cmake check and assumes "I can't treat this build machine as target". We can potentially break build for native machine (people using osx-arm64 are not passing -cross for native arch build) while CI will always appear green.

The real error was:

[ 17%] Building CXX object md/datasource/CMakeFiles/mddatasource_dbi.dir/targettypes.cpp.o
/Users/runner/work/1/s/src/coreclr/pal/src/synchmgr/synchmanager.cpp:3573:6: error: "Don't know how to get hi-res current time on this platform"
[ 17%] Building CXX object Corehost.Static/hostmisc/CMakeFiles/hostmisc_public.dir/trace.cpp.o
3573 | #error "Don't know how to get hi-res current time on this platform"
| ^
[ 17%] Building CXX object md/enc/CMakeFiles/mdruntimerw-dbi.dir/peparse.cpp.o
1 error generated.

and it is failing because the cmake detection was failing; something in osx-arm64 machine is not "normal" which we needed to figure out and fix before merging. To do that, we get the cmake log file and investigate.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    No status

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions