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

ipo warning during linking: unresolved flushqq

Marcus_A_S_
Beginner
962 Views

Hi all,

I am trying to compile some fortran code with -ipo using ifort 15.0.0 on Mac OS X provoking the following warning:

ifort -132 -ipo -c *.f
ifort -o foo *.o
ipo: warning #11021: unresolved flushqq
        Referenced in /tmp/ipo_ifort2immSw.o

The problem does not occur when I use -ipo-c instead (although this creates a new warning that I do not understand):

ifort -132 -ipo-c -o foo *.f
ifort: warning #10015: multi-file optimization .o file produced; no link
ifort: warning #10021: add "--sort-section name" to link/lib stage

ifort -o foo foo*

The executable seems to at least run in both cases.
I found similar questions regarding ipo: warning #11021 on the forum, and it was suggested that there is a problem with the linking to a library.
But how would I go about fixing the link?

Any help would be greatly appreciated.
Thank you,
Marcus
 



 

0 Kudos
1 Reply
Martyn_C_Intel
Employee
962 Views

I thought the entry point to the portability library was FLUSH(lunit), not FLUSHQQ ?  The compiler also supports a FLUSH statement, and a somewhat similar RTL routine COMMITQQ(lunit)  - this latter is part of the core RTL, so USE IFCORE.

Does your code have USE IFPORT to pick up the corresponding interface? (You can then compile with -warn interfaces). Does it link if you build without -ipo, or in a single (compile and link) step using -ipo?

Finally, if this doesn't help, do you have a small test case?

0 Kudos
Reply