problem using -ipo linking with ICC object files

problem using -ipo linking with ICC object files

I've been using ICC to build seti@home for a while and think I know -ipo with ICC well.

Now I'm building scilab (available with Intel Fortran and C++ compilers. I can build it with -ip flag with IFORT/ICC, but when I change -ip flag(s) to -ipo, linking fails with

ld: /tmp/ipo_ifortUx2MaC.o: No such file: No such file or directory

error. Does it mean IPO with mixed environment of IFORT/ICC is impossible? My options for ICC/IFORT are almost the same

FC_OPTIONS = -O3 -xN -ipo -parallel -cm -w90 -w95 -mp -pc64 -ffnalias -falias

and I use xiar instead of ar. During linking, I can see 5 assembler source files are created in /tmp, but no object files are found.

In /tmp/ifort*arg file in another session, I see

maverick:~% cat /tmp/ifort*arg
-mGLOB_options_string=-O3 -xN -ipo -parallel -cm -w90 -w95 -mp -pc64 -ffnalias -falias -o bin/scilex -lieee -ldl -i-static -L/usr/lib -ltk8.4 -L/usr/lib -ltcl8.4 -ldl -lXaw3d -lXmu -lXt -lXext -lSM -lICE -lX11 -lncurses

I have no idea what to do... Is it too large? I don't think so.

BTW I found -xP flag for Intel Fortran seemed to generate faulty code with scilab (while -xP with ICC has no problem) and reported to Premier Support, but it's another story.

1 post / 0 new
For more complete information about compiler optimizations, see our Optimization Notice.