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

**URL:** https://discourse.cmake.org/t/intelllvm-warning-during-the-build-of-a-fortran-intel-ifx-static-library/11258
**Category:** Development
**Tags:** os:windows
**Created:** [July 16, 2024, 8:51am UTC](https://discourse.cmake.org/t/intelllvm-warning-during-the-build-of-a-fortran-intel-ifx-static-library/11258 "2024-07-16T08:51:19Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![tmishima](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/t/da6949/32.png) [@tmishima](https://discourse.cmake.org/u/tmishima)
#### Post date: [July 16, 2024, 8:51am UTC](https://discourse.cmake.org/t/intelllvm-warning-during-the-build-of-a-fortran-intel-ifx-static-library/11258/1 "2024-07-16T08:51:19Z")

</div>

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

```auto
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

---

<div class="post-metadata">

### Author: ![scivision](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/s/a87d85/32.png) [@scivision](https://discourse.cmake.org/u/scivision)
#### Post date: [July 16, 2024, 8:16pm UTC](https://discourse.cmake.org/t/intelllvm-warning-during-the-build-of-a-fortran-intel-ifx-static-library/11258/2 "2024-07-16T20:16:12Z")

</div>

What Cmake Generator is this? I assume this is [MUMPS](https://github.com/scivision/mumps). I don’t see these build/link warnings with:

- CMake 3.29.6
- IntelLLVM 2024.2.0 with MSVC-like command-line

```sh
cmake -Bbuild -G Ninja

#or

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

# then
cmake --build build

```

---

<div class="post-metadata">

### Author: ![tmishima](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/t/da6949/32.png) [@tmishima](https://discourse.cmake.org/u/tmishima)
#### Post date: [July 17, 2024, 12:03am UTC](https://discourse.cmake.org/t/intelllvm-warning-during-the-build-of-a-fortran-intel-ifx-static-library/11258/3 "2024-07-17T00:03:58Z")

</div>

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

---

<div class="post-metadata">

### Author: ![scivision](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/s/a87d85/32.png) [@scivision](https://discourse.cmake.org/u/scivision)
#### Post date: [July 19, 2024, 2:52am UTC](https://discourse.cmake.org/t/intelllvm-warning-during-the-build-of-a-fortran-intel-ifx-static-library/11258/4 "2024-07-19T02:52:31Z")

</div>

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

```sh
cmake -G "NMake Makefiles" -Bbuild

cmake --build build --verbose -t mumps_common

```

---

<div class="post-metadata">

### Author: ![ben.boeckel](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.cmake.org/u/ben.boeckel)
#### Post date: [July 24, 2024, 1:53pm UTC](https://discourse.cmake.org/t/intelllvm-warning-during-the-build-of-a-fortran-intel-ifx-static-library/11258/5 "2024-07-24T13:53:34Z")

</div>

Can you please [file an issue](https://gitlab.kitware.com/cmake/cmake/-/issues)?

---

<div class="post-metadata">

### Author: ![tmishima](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/t/da6949/32.png) [@tmishima](https://discourse.cmake.org/u/tmishima)
#### Post date: [July 25, 2024, 6:25am UTC](https://discourse.cmake.org/t/intelllvm-warning-during-the-build-of-a-fortran-intel-ifx-static-library/11258/6 "2024-07-25T06:25:20Z")

</div>

Yes, I filed.

Regards,

Tetsuya Mishima

---

<div class="post-metadata">

### Author: ![ben.boeckel](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.cmake.org/u/ben.boeckel)
#### Post date: [July 25, 2024, 3:24pm UTC](https://discourse.cmake.org/t/intelllvm-warning-during-the-build-of-a-fortran-intel-ifx-static-library/11258/7 "2024-07-25T15:24:12Z")

</div>

Link: [https://gitlab.kitware.com/cmake/cmake/-/issues/26161](https://gitlab.kitware.com/cmake/cmake/-/issues/26161)
