Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
29530 Discussions

Odd handling of compile options - -warn:all

Arjen_Markus
Honored Contributor II
471 Views

I noticed a peculiar problem with ifx: any unknown option specifed after "-warn:all" (or "-warn all" on LInux) gets ignored. Here is a transcript of the phenomenon:

 

c:>ifx hello.f90 -warn:all -abcxyz
Intel(R) Fortran Compiler for applications running on Intel(R) 64, Version 2025.0.0 Build 20241008
Copyright (C) 1985-2024 Intel Corporation. All rights reserved.

Microsoft (R) Incremental Linker Version 14.44.35217.0
Copyright (C) Microsoft Corporation.  All rights reserved.

-out:hello.exe
-subsystem:console
hello.obj

c:>ifx hello.f90 -check:all -abcxyz
Intel(R) Fortran Compiler for applications running on Intel(R) 64, Version 2025.0.0 Build 20241008
Copyright (C) 1985-2024 Intel Corporation. All rights reserved.

ifx: command line warning #10006: ignoring unknown option '/abcxyz'
Microsoft (R) Incremental Linker Version 14.44.35217.0
Copyright (C) Microsoft Corporation.  All rights reserved.

-out:hello.exe
-subsystem:console
hello.obj

No warning or error about the strange option "/abcxyz" after
"-warn:all", but there is one after "-check:all". I noticed this on both Windows and Linux.

0 Kudos
1 Solution
Igor_V_Intel
Moderator
425 Views

I don't see this problem on Linux:

$ ifx main.f90 -warn all -aasfdasdf
ifx: command line warning #10006: ignoring unknown option '-aasfdasdf'

 

$ ifx --version
ifx (IFX) 2025.3.2 20260112

 

But I can see it with older versions, e.g. 2025.2 or the one you are using (2025.0):

$ ifx main.f90 -warn all -aasfdasdf
$ ifx --version
ifx (IFX) 2025.2.1 20250806

 

The bug is fixed, please use the latest version.

View solution in original post

0 Kudos
2 Replies
Igor_V_Intel
Moderator
426 Views

I don't see this problem on Linux:

$ ifx main.f90 -warn all -aasfdasdf
ifx: command line warning #10006: ignoring unknown option '-aasfdasdf'

 

$ ifx --version
ifx (IFX) 2025.3.2 20260112

 

But I can see it with older versions, e.g. 2025.2 or the one you are using (2025.0):

$ ifx main.f90 -warn all -aasfdasdf
$ ifx --version
ifx (IFX) 2025.2.1 20250806

 

The bug is fixed, please use the latest version.

0 Kudos
Arjen_Markus
Honored Contributor II
405 Views

Ah, good to know it has been solved. I will have to see that we can move to the latest version.

0 Kudos
Reply