mars icon indicating copy to clipboard operation
mars copied to clipboard

Mars failed to build with "fatal error C1189: #error: unsupported platform " with MSVC on arm64 windows

Open YangYang129 opened this issue 3 years ago • 0 comments

Mars failed to build with "fatal error C1189: #error: unsupported platform " with MSVC on arm64 windows. It can reproduces on version https://github.com/Tencent/mars/commit/4ac65b74c00184b6d697686df202eb0f4909001f. Could you please help look at this issue? Thank you very much

Environment Compiler version: VS2019 (16.11.9) Operating system: Windows server 2019

Steps to reproduce:

  1. open VS2019 x64 tools command
  2. git clone https://github.com/Tencent/mars F:\mars
  3. cd F:\mars\mars
  4. "C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\Tools\VsDevCmd.bat" -host_arch=amd64 -arch=arm64
  5. mkdir build_arm64 & cd build_arm64
  6. cmake -G "Visual Studio 16 2019" -A arm64 -DCMAKE_SYSTEM_VERSION=10.0.18362.0 -DCMAKE_BUILD_TYPE=Release ..
  7. msbuild /m /p:Platform=arm64 /p:Configuration=Release mars.sln /t:Rebuild >msbuild.log

Build.log: mars_msbuild.log

Error info: F:\mars\mars\openssl\include\openssl/opensslconf.h(15,1): fatal error C1189: #error: unsupported platform (compiling source file F:\mars\mars\log\src\xlogger_interface.cc) [F:\mars\mars\build_arm64\xlog\xlog.vcxproj]

YangYang129 avatar Mar 21 '22 02:03 YangYang129