Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cross build on windows 11 arm64 #110424

Closed
am11 opened this issue Dec 4, 2024 · 2 comments
Closed

Cross build on windows 11 arm64 #110424

am11 opened this issue Dec 4, 2024 · 2 comments

Comments

@am11
Copy link
Member

am11 commented Dec 4, 2024

I'm running win arm64 on mac M1 host. It has cmake, git, powershell, python and VS built for arm64 architectures.

The cross build for x86 does not succeed:

> build.cmd -arch x86 -cross
...
  [13/551] Building CXX object minipal\Windows\CMakeFiles\coreclrminipal.dir\doublemapping.cpp.obj
  [14/551] Building CXX object minipal\Windows\CMakeFiles\coreclrminipal.dir\dn-u16.cpp.obj
  [15/551] Building CXX object utilcode\CMakeFiles\utilcodestaticnohost.dir\cmake_pch.cxx.obj
  [16/551] Building CXX object md\compiler\CMakeFiles\mdcompiler-dbi.dir\cmake_pch.cxx.obj
  [17/551] Building CXX object md\runtime\CMakeFiles\mdruntime-dbi.dir\cmake_pch.cxx.obj
  [18/551] Building CXX object debug\di\CMakeFiles\cordbdi.dir\cmake_pch.cxx.obj
  FAILED: debug/di/CMakeFiles/cordbdi.dir/cmake_pch.cxx.obj
  C:\PROGRA~1\MICROS~1\2022\COMMUN~1\VC\Tools\MSVC\1442~1.344\bin\HOSTAR~1\arm64\cl.exe  /nologo /TP -DBUILDENV_DEBUG=1
   -DCROSS_COMPILE -DDBI_COMPILE -DDEBUG -DDEBUGGING_SUPPORTED -DFEATURE_BASICFREEZE -DFEATURE_CODE_VERSIONING -DFEATUR
  E_COLLECTIBLE_TYPES -DFEATURE_COMINTEROP -DFEATURE_COMINTEROP_APARTMENT_SUPPORT -DFEATURE_COMINTEROP_UNMANAGED_ACTIVA
  TION -DFEATURE_COMWRAPPERS -DFEATURE_CORECLR -DFEATURE_DATABREAKPOINT -DFEATURE_DEFAULT_INTERFACES -DFEATURE_EVENT_TR
  ACE -DFEATURE_HIJACK -DFEATURE_IJW -DFEATURE_INTEROP_DEBUGGING -DFEATURE_ISYM_READER -DFEATURE_METADATA_CUSTOM_DATA_S
  OURCE -DFEATURE_METADATA_DEBUGGEE_DATA_SOURCE -DFEATURE_METADATA_LOAD_TRUSTED_IMAGES -DFEATURE_METADATA_UPDATER -DFEA
  TURE_MULTICOREJIT -DFEATURE_NO_HOST -DFEATURE_PERFTRACING -DFEATURE_PGO -DFEATURE_PROFAPI_ATTACH_DETACH -DFEATURE_REA
  DYTORUN -DFEATURE_REJIT -DFEATURE_REMAP_FUNCTION -DFEATURE_STANDALONE_GC -DFEATURE_SVR_GC -DFEATURE_SYMDIFF -DFEATURE
  _TIERED_COMPILATION -DFEATURE_TYPEEQUIVALENCE -DFEATURE_USE_ASM_GC_WRITE_BARRIERS -DHOST_64BIT -DHOST_ARM64 -DHOST_WI
  NDOWS -DNOMINMAX -DPROFILING_SUPPORTED -DTARGET_32BIT -DTARGET_WINDOWS -DTARGET_X86 -DUNICODE -DURTBLDENV_FRIENDLY=De
  bug -DWIN32 -DWIN32_LEAN_AND_MEAN -DWINVER=0x0602 -D_CRT_SECURE_NO_WARNINGS -D_DBG -D_DEBUG -D_FILE_OFFSET_BITS=64 -D
  _SECURE_SCL=0 -D_TIME_BITS=64 -D_UNICODE -D_WIN32 -D_WIN32_WINNT=0x0602 -IC:\Users\am11\Source\Repos\runtime\src\nat
  ive -IC:\Users\am11\Source\Repos\runtime\src\native\inc -IC:\Users\am11\Source\Repos\runtime\src\coreclr\pal\prebui
  lt\inc -IC:\Users\am11\Source\Repos\runtime\artifacts\obj -IC:\Users\am11\Source\Repos\runtime\src\coreclr\inc -IC:
  \Users\am11\Source\Repos\runtime\src\coreclr\debug\inc -IC:\Users\am11\Source\Repos\runtime\src\coreclr\debug\inc\i
  386 -IC:\Users\am11\Source\Repos\runtime\src\coreclr\debug\inc\dump -IC:\Users\am11\Source\Repos\runtime\src\corecl
  r\md\inc -IC:\Users\am11\Source\Repos\runtime\src\coreclr\classlibnative\bcltype -IC:\Users\am11\Source\Repos\runti
  me\src\coreclr\classlibnative\inc -IC:\Users\am11\Source\Repos\runtime\artifacts\obj\coreclr\windows.x86.Debug\arm64
  \inc -IC:\Users\am11\Source\Repos\runtime\src\coreclr\hosts\inc -IC:\Users\am11\Source\Repos\runtime\src\coreclr\mi
  nipal -IC:\Users\am11\Source\Repos\runtime\artifacts\obj\coreclr\windows.x86.Debug\arm64\inc\etw /DWIN32 /D_WINDOWS
   /GR- /Zi /Ob0 /Od /RTC1 -MT /Od /EHa /nologo /W4 /WX /Oi /Oy- /Gm- /Zp8 /Gy /GS /fp:precise /FC /MP /Zm200 /Zc:stric
  tStrings /Zc:wchar_t /Zc:inline /Zc:forScope /wd4065 /wd4100 /wd4127 /wd4131 /wd4189 /wd4200 /wd4201 /wd4206 /wd4239
  /wd4245 /wd4291 /wd4310 /wd4324 /wd4366 /wd4456 /wd4457 /wd4458 /wd4459 /wd4463 /wd4505 /wd4702 /wd4706 /wd4733 /wd48
  15 /wd4838 /wd4918 /wd4960 /wd4961 /wd5105 /wd5205 /we4007 /we4013 /we4102 /we4551 /we4640 /we4806 /we4055 /we4146 /w
  e4242 /we4244 /we4267 /we4302 /we4308 /we4509 /we4510 /we4532 /we4533 /we4610 /we4611 /we4700 /we4701 /we4703 /we4789
   /we4995 /we4996 /w34092 /w34121 /w34125 /w34130 /w34132 /w34212 /w34530 /w35038 /w44177 /Zi /ZH:SHA_256 /source-char
  set:utf-8 /guard:cf /Zl /YcC:/Users/am11/Source/Repos/runtime/artifacts/obj/coreclr/windows.x86.Debug/arm64/debug/di
  /CMakeFiles/cordbdi.dir/cmake_pch.hxx /FpC:/Users/am11/Source/Repos/runtime/artifacts/obj/coreclr/windows.x86.Debug/
  arm64/debug/di/CMakeFiles/cordbdi.dir/./cmake_pch.cxx.pch /FIC:/Users/am11/Source/Repos/runtime/artifacts/obj/corecl
  r/windows.x86.Debug/arm64/debug/di/CMakeFiles/cordbdi.dir/cmake_pch.hxx /showIncludes /Fodebug\di\CMakeFiles\cordbdi.
  dir\cmake_pch.cxx.obj /Fddebug\di\CMakeFiles\cordbdi.dir\cordbdi.pdb /FS -c C:\Users\am11\Source\Repos\runtime\artif
  acts\obj\coreclr\windows.x86.Debug\arm64\debug\di\CMakeFiles\cordbdi.dir\cmake_pch.cxx
  C:\Users\am11\Source\Repos\runtime\src\coreclr\debug\inc\dbgtargetcontext.h(129): error C2338: static_assert failed:
   'DT_CONTEXT size must equal the T_CONTEXT size on X86'
  C:\Users\am11\Source\Repos\runtime\src\coreclr\debug\inc\dbgappdomain.h(57): error C2338: static_assert failed: 'off
  setof(AppDomainInfo, m_pAppDomain) == 0xc'
  C:\Users\am11\Source\Repos\runtime\src\coreclr\debug\inc\dbgappdomain.h(366): error C2338: static_assert failed: 'of
  fsetof(AppDomainEnumerationIPCBlock, m_iTotalSlots) == 0x4'
  C:\Users\am11\Source\Repos\runtime\src\coreclr\debug\inc\dbgappdomain.h(367): error C2338: static_assert failed: 'of
  fsetof(AppDomainEnumerationIPCBlock, m_iNumOfUsedSlots) == 0x8'
  C:\Users\am11\Source\Repos\runtime\src\coreclr\debug\inc\dbgappdomain.h(368): error C2338: static_assert failed: 'of
  fsetof(AppDomainEnumerationIPCBlock, m_iLastFreedSlot) == 0xc'
  C:\Users\am11\Source\Repos\runtime\src\coreclr\debug\inc\dbgappdomain.h(369): error C2338: static_assert failed: 'of
  fsetof(AppDomainEnumerationIPCBlock, m_iSizeInBytes) == 0x10'
  C:\Users\am11\Source\Repos\runtime\src\coreclr\debug\inc\dbgappdomain.h(370): error C2338: static_assert failed: 'of
  fsetof(AppDomainEnumerationIPCBlock, m_iProcessNameLengthInBytes) == 0x14'
  C:\Users\am11\Source\Repos\runtime\src\coreclr\debug\inc\dbgappdomain.h(371): error C2338: static_assert failed: 'of
  fsetof(AppDomainEnumerationIPCBlock, m_szProcessName) == 0x18'
  C:\Users\am11\Source\Repos\runtime\src\coreclr\debug\inc\dbgappdomain.h(372): error C2338: static_assert failed: 'of
  fsetof(AppDomainEnumerationIPCBlock, m_rgListOfAppDomains) == 0x1c'
  C:\Users\am11\Source\Repos\runtime\src\coreclr\debug\inc\dbgappdomain.h(373): error C2338: static_assert failed: 'of
  fsetof(AppDomainEnumerationIPCBlock, m_fLockInvalid) == 0x20'
  [19/551] Building CXX object md\enc\CMakeFiles\mdruntimerw-dbi.dir\cmake_pch.cxx.obj
  [20/551] Building CXX object md\datasource\CMakeFiles\mddatasource_dbi.dir\cmake_pch.cxx.obj
  ninja: build stopped: subcommand failed.
  BUILD: Error: native component build failed. Refer to the build log files for details.
      "C:\Users\am11\Source\Repos\runtime\artifacts\log\Debug\CoreCLR_windows__x86__Debug__arm64.log"
      "C:\Users\am11\Source\Repos\runtime\artifacts\log\Debug\CoreCLR_windows__x86__Debug__arm64.wrn"
      "C:\Users\am11\Source\Repos\runtime\artifacts\log\Debug\CoreCLR_windows__x86__Debug__arm64.err"
C:\Users\am11\Source\Repos\runtime\src\coreclr\runtime.proj(98,5): error MSB3073: The command ""C:\Users\am11\Source\
Repos\runtime\src\coreclr\build-runtime.cmd" -cmakeargs "-DCLR_CROSS_COMPONENTS_BUILD=1" -x86 -debug -os windows -hosta
rch arm64 -hostos windows -outputrid win-x86 -cmakeargs "-DCLR_DOTNET_HOST_PATH=C:\Program Files\dotnet\dotnet.exe" -cm
akeargs "-DCDAC_BUILD_TOOL_BINARY_PATH=C:\Users\am11\Source\Repos\runtime\artifacts\bin\coreclr\windows.x86.Debug\cdac
-build-tool\cdac-build-tool.dll" -component crosscomponents" exited with code 1.

Build FAILED.

C:\Users\am11\Source\Repos\runtime\src\coreclr\runtime.proj(98,5): error MSB3073: The command ""C:\Users\am11\Source\
Repos\runtime\src\coreclr\build-runtime.cmd" -cmakeargs "-DCLR_CROSS_COMPONENTS_BUILD=1" -x86 -debug -os windows -hosta
rch arm64 -hostos windows -outputrid win-x86 -cmakeargs "-DCLR_DOTNET_HOST_PATH=C:\Program Files\dotnet\dotnet.exe" -cm
akeargs "-DCDAC_BUILD_TOOL_BINARY_PATH=C:\Users\am11\Source\Repos\runtime\artifacts\bin\coreclr\windows.x86.Debug\cdac
-build-tool\cdac-build-tool.dll" -component crosscomponents" exited with code 1.
    0 Warning(s)
    1 Error(s)

Time Elapsed 00:13:04.52
Build failed with exit code 1. Check errors above.
Some builds failed:
        Configuration: Debug, Architecture: x86
Copy link
Contributor

Tagging subscribers to this area: @hoyosjs
See info in area-owners.md if you want to be subscribed.

@vcsjones
Copy link
Member

vcsjones commented Dec 5, 2024

Related to / dup of #104788

@am11 am11 closed this as not planned Won't fix, can't repro, duplicate, stale Dec 5, 2024
@dotnet-policy-service dotnet-policy-service bot removed the untriaged New issue has not been triaged by the area owner label Dec 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

No branches or pull requests

2 participants