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

ifx, -gen-dep generates incorrect dependencies if -fpp is used

Miguel_V_
Novice
3,180 Views

The following minimum example code (example.f):

      program example
      write (*,*) 'Hello world'
      end

When compiled with:

ifx -c example.f -gen-dep=example.d

generates a correct dependency file:

example.o : \
example.f

But, when compiled with -fpp:

ifx -fpp -c example.f -gen-dep=example.d

Then, the dependency file is incorrect:

example.o : \
/tmp/ifx00788182170K24b3/ifxOJO6SA.i

The version used:

$ ifx --version
ifx (IFX) 2025.1.0 20250317
Copyright (C) 1985-2025 Intel Corporation. All rights reserved.

This error was not present with ifort.

Thanks in advance.

Labels (2)
0 Kudos
1 Solution
Igor_V_Intel
Moderator
935 Views

The bug is fixed in the latest 2025.3 compiler release.


View solution in original post

0 Kudos
4 Replies
Ron_Green
Moderator
3,131 Views

Bug ID is CMPLRLLVM-68142. thank you for sending this to us.


0 Kudos
Miguel_V_
Novice
2,277 Views

This issue still exists in 2025.2.1. Do you have a time estimation on when this is going to be fix?

0 Kudos
JohnNichols
Honored Contributor I
2,101 Views

The lead cylce time on OneAPI releases appears to be in the order of a year, so like all of use you just wait and see what you get.   Just use IFORT and do not throw it away. 

0 Kudos
Igor_V_Intel
Moderator
936 Views

The bug is fixed in the latest 2025.3 compiler release.


0 Kudos
Reply