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

Linking issue when using 2023.2.1 and mvapich/3.0b

vanderwb
Novice
1,713 Views

I am currently trying to test out the mvapich/3.0b beta version of that MPI library. The MPI library itself builds just fine with OneAPI 2023.2.1, but then when trying to configure the parallel-netcdf/1.12.3 library using this stack, I get the following linker error which I don't know what to do with:

configure:33518: checking if Fortran "integer*1" is
configure:33528: /glade/work/csgteam/spack-deployments/derecho/23.09/envs/build/opt/__spack_path_placeholder__/__spack_path_placeholder__/__spack/mvapich/3.0b/oneapi/2023.2.1/i6ow/bin/mpicc -c -O2 conftest.c
configure:33531: $? = 0
configure:33534: /glade/work/csgteam/spack-deployments/derecho/23.09/envs/build/opt/__spack_path_placeholder__/__spack_path_placeholder__/__spack/mvapich/3.0b/oneapi/2023.2.1/i6ow/bin/mpif90 -g -c conftestf.f
configure:33537: $? = 0
configure:33540: /glade/work/csgteam/spack-deployments/derecho/23.09/envs/build/opt/__spack_path_placeholder__/__spack_path_placeholder__/__spack/mvapich/3.0b/oneapi/2023.2.1/i6ow/bin/mpif90 -o conftest -g conftestf.o conftest.o
ifort: command line warning #10006: ignoring unknown option '-rpath'
ld: error: Failed to get a view of /glade/work/csgteam/spack-deployments/derecho/23.09/envs/build/opt/__spack_path_placeholder__/__spack_path_placeholder__/__spack/mvapich/3.0b/oneapi/2023.2.1/i6ow/lib
ld: /glade/u/apps/common/23.08/spack/opt/spack/intel-oneapi-compilers/2023.2.1/compiler/2023.2.1/linux/bin/intel64/../../bin/intel64/../../lib/icx-lto.so: plugin reported error claiming file
configure:33543: $? = 1
configure:33563: error: Could not link conftestf.o and conftest.o  

All of this is being installed using Spack. Other details relevant:

  1. Building in a SLES 15 environment.
  2. OS has binutils 2.37.
  3. Using icx, icpx, and ifort.
  4. Building on a Lustre file system, though compiler is on GPFS.

Any thoughts on what the issue may be? The only thing I found online was this comment in a RHEL bug thread for LLVM, but not sure how its getting triggered here... https://bugzilla.redhat.com/show_bug.cgi?id=1954375#c5

Thanks in advance!

-Brian

0 Kudos
1 Solution
vanderwb
Novice
1,436 Views

That configure issue was unrelated. That said, I'm happy to report that this issue, whatever it is, has gone away in the 2024.0.0 release.

View solution in original post

5 Replies
Barbara_P_Intel
Employee
1,673 Views

Have you tried compiling with ifx, instead of, ifort?

 

0 Kudos
vanderwb
Novice
1,664 Views

Hi Barbara,

Thanks for the reply. Yes - I have tried that, and it fails on the same configure test for parallel-netcdf. The error message is a bit different, but I assume it's the same fundamental issue.

configure:33789: /glade/derecho/scratch/vanderwb/spack-tests/derecho/23.09/envs/build/opt/__spack_path_placeholder__/__spack_path_placeholder__/_/mvapich/3.0b/oneapi/2023.2.1/i6ow/bin/mpif90
 -o conftest -fPIC  conftestf.o conftest.o
ifx: command line warning #10006: ignoring unknown option '-rpath'
/usr/lib64/gcc/x86_64-suse-linux/7/../../../../x86_64-suse-linux/bin/ld: read in flex scanner failed
configure:33792: $? = 1
configure:33812: error: Could not link conftestf.o and conftest.o

Regards,

Brian

0 Kudos
Barbara_P_Intel
Employee
1,640 Views

I just remembered that there's a known issue with certain versions of configure. See the Fortran Release Notes, search for "Configure Script Reports". 

It's not quite the error you are seeing, but might be worth a shot.

 

0 Kudos
vanderwb
Novice
1,437 Views

That configure issue was unrelated. That said, I'm happy to report that this issue, whatever it is, has gone away in the 2024.0.0 release.

Barbara_P_Intel
Employee
1,434 Views

YAY!  Thanks for letting us know!

0 Kudos
Reply