-
Notifications
You must be signed in to change notification settings - Fork 137
Closed
dotnet/installer
#18915Closed
Copy link
Labels
Description
Describe the Bug
When triggering a building targeting arm64 from a linux or mac x64 host, the VMR build will fail at runtime with the following error:
[ 29%] Building CXX object nativeaot/Runtime/Full/CMakeFiles/Runtime.ServerGC.dir/__/EHHelpers.cpp.o
[ 29%] Building CXX object pal/src/CMakeFiles/coreclrpal.dir/thread/threadsusp.cpp.o
/Users/steve/dev/dotnet-vmr/src/runtime/artifacts/source-build/self/src/src/coreclr/pal/src/synchmgr/synchmanager.cpp:4633:6: error: "Don't know how to get hi-res current time on this platform"
#error "Don't know how to get hi-res current time on this platform"
^
[ 30%] Building CXX object nativeaot/Runtime/Full/CMakeFiles/Runtime.WorkstationGC.dir/__/MethodTable.cpp.o
1 error generated.
make[2]: *** [pal/src/CMakeFiles/coreclrpal.dir/synchmgr/synchmanager.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
Steps to Reproduce
-
Apply the patch @directhex made in [VMR] Add cross build support #3671 (comment)
-
Build the VMR
For Mac:
./prep.sh
./build.sh --online -- /p:OverrideTargetRid=osx-arm64
For Linux:
docker run -e CROSSCOMPILE=1 -e ROOTFS_DIR=/crossrootfs/arm64 -w pwd--platform linux/amd64 -vpwd:pwd -it mcr.microsoft.com/dotnet-buildtools/prereqs:cbl-mariner-2.0-cross-arm64
./build.sh --online -- /p:OverrideTargetRid=linux-arm64
Other Information
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Done