Project

General

Profile

Bug #1995

Fortran linking test fails with iccstatic

Added by Sam White 9 months ago. Updated 9 months ago.

Status:
Merged
Priority:
Normal
Assignee:
Category:
-
Target version:
Start date:
10/17/2018
Due date:
% Done:

0%


Description

icpc fails to link Fortran code in our configure test, so when trying to link a Fortran AMPI program we get:

Error: Configure testing was unable to link a Fortran program.

From charmconfig.out:

### whether the C++ linker succeeds with a Fortran entry point
      PROGRAM empty
      END PROGRAM
ifort -auto -fpic -c conftest.f90 -o test.o
icpc -static-intel -o testlink test.o -L/opt/intel/impi/2017.0.098/intel64//lib /opt/intel/compilers_and_libraries_2017.0.098/linux/bin/intel64/../../compiler/lib/intel64/libifcore.a /opt/intel/compilers_and_libraries_2017.0.098/linux/bin/intel64/../../compiler/lib/intel64/libifport.a /opt/intel/compilers_and_libraries_2017.0.098/linux/bin/intel64/../../compiler/lib/intel64/libifcore.a /opt/intel/compilers_and_libraries_2017.0.098/linux/bin/intel64/../../compiler/lib/intel64/for_main.o
icpc: warning #10237: -lcilkrts linked in dynamically, static library not available
/opt/intel/compilers_and_libraries_2017.0.098/linux/bin/intel64/../../compiler/lib/intel64/for_main.o: In function `main':
for_main.c:(.text+0x0): multiple definition of `main'

History

#1 Updated by Evan Ramos 9 months ago

  • Subject changed from ifort support is broken for AMPI to Fortran linking test fails with iccstatic

I am able to reproduce this with ./build LIBS verbs-linux-x86_64-smp iccstatic after applying https://charm.cs.illinois.edu/gerrit/c/charm/+/4709.

#2 Updated by Sam White 9 months ago

  • Status changed from New to Implemented

#3 Updated by Evan Ramos 9 months ago

  • Status changed from Implemented to Merged

Also available in: Atom PDF