IntelLLVM: Warning during the build of a Fortran (Intel ifx) static library

Hi, I saw the warning message below when I built some fortran static library with cmake_3.29.3 and intel ifx 2023.

ifx: command line warning #10006: ignoring unknown option '/machine:x64'

The relevant section in Build.make looks like this:
C:\PROGRA~2\Intel\oneAPI\compiler\latest\windows\bin\ifx.exe /nologo @CMakeFiles\dmumps.dir\objects1.rsp @<<
-fuse-ld=llvm-lib -o dmumps.lib /machine:x64
/machine:x64 is a linker option, so it should be changed to /link /machine:x64.
Could you fix the problem, thanks in advance.

Regards,
Tetsuya Mishima

What Cmake Generator is this? I assume this is MUMPS. I don’t see these build/link warnings with:

  • CMake 3.29.6
  • IntelLLVM 2024.2.0 with MSVC-like command-line
cmake -Bbuild -G Ninja

#or

cmake -Bbuild -G "Visual Studio 17 2022" -T fortran=ifx

# then
cmake --build build

Hi ,

Thank you for your response.

I use “NMake Makefiles” generator.

My command line is:

FC=ifx.exe

cmake -G"NMake Makefiles" -DCMAKE_BUILD_TYPE=Release …

Regards,

Tetsuya Mishima

Yes I see the same warning as you. In this case I used CMake 3.30.0, Intel oneAPI 2024.2 and:

cmake -G "NMake Makefiles" -Bbuild

cmake --build build --verbose -t mumps_common

Can you please file an issue?

Yes, I filed.

Regards,

Tetsuya Mishima

Link: https://gitlab.kitware.com/cmake/cmake/-/issues/26161