-
Notifications
You must be signed in to change notification settings - Fork 292
Support for arm64 msvc #2608
Copy link
Copy link
Open
Labels
Description
From our conversion here:
#2607 (comment)
This is ongoing issue.
I posting here a compilation errors and warning while compile flint with arm64 msvc.
Warning:
/FoCMakeFiles\flint.dir\src\generic_files\profiler.c.obj /FdCMakeFiles\flint.dir\ /FS -c D:\b\flint\src\flint-3-44df058a70.clean\src\generic_files\profiler.c
D:\b\flint\src\flint-3-44df058a70.clean\src\profiler.h(20): warning C4163: '__rdtsc': not available as an intrinsic function
Error:
C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Tools\MSVC\14.44.35207\include\immintrin.h(15): fatal error C1189: #error: This header is specific to X86, X64, ARM64, and ARM64EC targets
This error occur after I patch flint that it will not include immintrin.h in arm64 msvc:
[175/5070] C:\PROGRA~1\MICROS~1\2022\ENTERP~1\VC\Tools\MSVC\1444~1.352\bin\Hostx64\arm64\cl.exe -DFLINT_BUILD_DLL -Dflint_EXPORTS -ID:\b\flint\src\flint-3-88d753b0f5.clean\src -ID:\b\flint\arm64-windows-dbg -external:ID:\installed\arm64-windows\include -external:W0 /nologo /DWIN32 /D_WINDOWS /utf-8 /MP /MDd /Z7 /Ob0 /Od /RTC1 -std:c11 -MDd /experimental:c11atomics /showIncludes /FoCMakeFiles\flint.dir\src\mpn_extras\mul.c.obj /FdCMakeFiles\flint.dir\ /FS -c D:\b\flint\src\flint-3-88d753b0f5.clean\src\mpn_extras\mul.c
FAILED: [code=2] CMakeFiles/flint.dir/src/mpn_extras/mul.c.obj
C:\PROGRA~1\MICROS~1\2022\ENTERP~1\VC\Tools\MSVC\1444~1.352\bin\Hostx64\arm64\cl.exe -DFLINT_BUILD_DLL -Dflint_EXPORTS -ID:\b\flint\src\flint-3-88d753b0f5.clean\src -ID:\b\flint\arm64-windows-dbg -external:ID:\installed\arm64-windows\include -external:W0 /nologo /DWIN32 /D_WINDOWS /utf-8 /MP /MDd /Z7 /Ob0 /Od /RTC1 -std:c11 -MDd /experimental:c11atomics /showIncludes /FoCMakeFiles\flint.dir\src\mpn_extras\mul.c.obj /FdCMakeFiles\flint.dir\ /FS -c D:\b\flint\src\flint-3-88d753b0f5.clean\src\mpn_extras\mul.c
D:\b\flint\src\flint-3-88d753b0f5.clean\src\machine_vectors.h(988): error C2088: built-in operator '[' cannot be applied to an operand of type 'vec2d'
D:\b\flint\src\flint-3-88d753b0f5.clean\src\machine_vectors.h(988): warning C4033: 'vec2d_get_index' must return a value
D:\b\flint\src\flint-3-88d753b0f5.clean\src\machine_vectors.h(1104): error C2088: built-in operator '-' cannot be applied to an operand of type '__n128'
D:\b\flint\src\flint-3-88d753b0f5.clean\src\machine_vectors.h(1104): warning C4033: 'vec2d_fmsub' must return a value
D:\b\flint\src\flint-3-88d753b0f5.clean\src\machine_vectors.h(1108): error C2088: built-in operator '-' cannot be applied to an operand of type '__n128'
D:\b\flint\src\flint-3-88d753b0f5.clean\src\machine_vectors.h(1108): warning C4033: 'vec2d_fnmsub' must return a value
D:\b\flint\src\flint-3-88d753b0f5.clean\src\machine_vectors.h(1434): error C2088: built-in operator '[' cannot be applied to an operand of type 'vec2d'
D:\b\flint\src\flint-3-88d753b0f5.clean\src\machine_vectors.h(1434): error C2088: built-in operator '[' cannot be applied to an operand of type 'vec2d'
D:\b\flint\src\flint-3-88d753b0f5.clean\src\machine_vectors.h(1434): error C2088: built-in operator '[' cannot be applied to an operand of type 'vec2d'
D:\b\flint\src\flint-3-88d753b0f5.clean\src\machine_vectors.h(1434): error C2088: built-in operator '[' cannot be applied to an operand of type 'vec2d'
D:\b\flint\src\flint-3-88d753b0f5.clean\src\machine_vectors.h(1434): warning C4033: 'vec2d_same' must return a value
Reactions are currently unavailable