Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MCT configuration errors on Frontier with amdclanggpu when OMP_NUM_THREADS > 1 #6755

Closed
dqwu opened this issue Nov 18, 2024 · 12 comments · Fixed by #6771
Closed

MCT configuration errors on Frontier with amdclanggpu when OMP_NUM_THREADS > 1 #6755

dqwu opened this issue Nov 18, 2024 · 12 comments · Fixed by #6771
Assignees
Labels
AMD-compiler Issues related to AMD Compiler Frontier MCT

Comments

@dqwu
Copy link
Contributor

dqwu commented Nov 18, 2024

This issue is reproducible with AMD compiler amdclanggpu (compiler amdclang works).
Not reproducible when OMP_NUM_THREADS = 1.

Steps to Reproduce on Frontier

git clone https://github.com/E3SM-Project/E3SM.git
cd E3SM

git submodule update --init --recursive

cd cime/scripts

./create_newcase --machine=frontier --compiler=amdclanggpu --case X_f19_g16 --compset X --res f19_g16
cd X_f19_g16

./xmlchange LND_NTHRDS=2

./case.setup

./case.build

MCT Configuration Errors

...
configure: WARNING: cannot determine how to obtain version information from ftn
configure: error: in `bld/amdclanggpu/mpich/nodebug/threads/mct':
configure: error: linking to Fortran libraries from C fails
See `config.log' for more details
@dqwu dqwu added MCT AMD-compiler Issues related to AMD Compiler Frontier labels Nov 18, 2024
@dqwu
Copy link
Contributor Author

dqwu commented Nov 18, 2024

@trey-ornl Is this a known issue to you?

@rljacob
Copy link
Member

rljacob commented Nov 18, 2024

Why would threading impact how autoconf queries the ftn compiler?

@abbotts
Copy link

abbotts commented Nov 19, 2024

@dqwu can you upload the config.log from the failed configure? That should give more detail on why it errored out.

@dqwu
Copy link
Contributor Author

dqwu commented Nov 19, 2024

@abbotts

This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by MCT configure 2.10, which was
generated by GNU Autoconf 2.70.  Invocation command line was

  $ /lustre/orion/cli115/scratch/wuda/E3SM/externals/mct/configure CC=cc FC=ftn MPICC=cc MPIFC=ftn 'FCFLAGS=-fopenmp  -I/lustre/orion/cli115/proj-shared/wuda/e3sm_scratch/X_f19_g16/bld/amdclanggpu/mpich/nodebug/threads/include' 'CPPDEFS=-DNO_R16 -DCPRAMD -DFORTRANUNDERSCORE -DLINUX' 'CFLAGS=-fopenmp -I/lustre/orion/cli115/proj-shared/wuda/e3sm_scratch/X_f19_g16/bld/amdclanggpu/mpich/nodebug/threads/include' 'LDFLAGS=-fopenmp -L/opt/cray/pe/mpich/8.1.28/gtl/lib -lmpi_gtl_hsa -L/opt/cray/pe/gcc/12.2.0/snos/lib64 -lgfortran -lstdc++' NETCDF_PATH=/opt/cray/pe/netcdf-hdf5parallel/4.9.0.1/amd/4.3 --srcdir /lustre/orion/cli115/scratch/wuda/E3SM/externals/mct

## --------- ##
## Platform. ##
## --------- ##

hostname = login13
uname -m = x86_64
uname -r = 5.14.21-150500.55.49_13.0.57-cray_shasta_c
uname -s = Linux
uname -v = #1 SMP Sun May 12 13:35:37 UTC 2024 (33add2b)

/usr/bin/uname -p = x86_64
/bin/uname -X     = unknown

/bin/arch              = x86_64
/usr/bin/arch -k       = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo      = unknown
/bin/machine           = unknown
/usr/bin/oslevel       = unknown
/bin/universe          = unknown

PATH: /sw/frontier/lfs-wrapper/0.0.1/bin/lfs/
PATH: /opt/cray/pe/parallel-netcdf/1.12.3.1/bin/
PATH: /opt/cray/pe/netcdf-hdf5parallel/4.9.0.1/bin/
PATH: /opt/cray/pe/hdf5-parallel/1.12.2.1/bin/
PATH: /opt/cray/pe/hdf5/1.12.2.1/bin/
PATH: /opt/cray/libfabric/1.15.2.0/bin/
PATH: /sw/frontier/spack-envs/core-24.07/opt/gcc-7.5.0/git-2.45.1-gi57plzwxhttln3zysj2dbhuvgtnkis4/bin/
PATH: /sw/frontier/spack-envs/core-24.07/opt/gcc-7.5.0/subversion-1.14.2-6bax2u6ybwayxbmiz7wshj4yo57ecqhg/bin/
PATH: /sw/frontier/spack-envs/core-24.07/opt/gcc-7.5.0/cmake-3.27.9-pyxnvhiskwepbw5itqyipzyhhfw3yitk/bin/
PATH: /opt/cray/pe/python/3.11.5/bin/
PATH: /opt/cray/pe/mpich/8.1.28/ofi/amd/5.0/bin/
PATH: /opt/cray/pe/mpich/8.1.28/bin/
PATH: /opt/rocm-5.4.0/bin/
PATH: /opt/cray/pe/craype/2.7.31.11/bin/
PATH: /sw/frontier/spack-envs/core-24.07/opt/gcc-7.5.0/tmux-3.4-bzjz3b5mbroyrlyjv3qyc3lkb3hkiy7o/bin/
PATH: /sw/sources/hpss/bin/
PATH: /opt/cray/pe/perftools/23.12.0/bin/
PATH: /opt/cray/pe/papi/7.0.1.2/bin/
PATH: /sw/summit/python/3.8/anaconda3/2020.07-rhel8/condabin/
PATH: /opt/clmgr/sbin/
PATH: /opt/clmgr/bin/
PATH: /opt/sgi/sbin/
PATH: /opt/sgi/bin/
PATH: /sw/frontier/bin/
PATH: /usr/local/bin/
PATH: /usr/bin/
PATH: /bin/
PATH: /opt/bin/
PATH: /opt/c3/bin/
PATH: /usr/lib/mit/bin/
PATH: /opt/puppetlabs/bin/
PATH: /sbin/
PATH: /opt/cray/pe/bin/


## ----------- ##
## Core tests. ##
## ----------- ##

configure:2392: looking for aux files: config.guess config.sub
configure:2405:  trying /lustre/orion/cli115/scratch/wuda/E3SM/externals/mct/
configure:2434:   /lustre/orion/cli115/scratch/wuda/E3SM/externals/mct/config.guess found
configure:2434:   /lustre/orion/cli115/scratch/wuda/E3SM/externals/mct/config.sub found
configure:2765: checking for C compiler version
configure:2774: cc --version >&5
AMD clang version 15.0.0 (https://github.com/RadeonOpenCompute/llvm-project roc-5.4.0 22465 d6f0fe8b22e3d8ce0f2cbd657ea14b16043018a5)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /opt/rocm-5.4.0/llvm/bin
configure:2785: $? = 0
configure:2774: cc -v >&5
AMD clang version 15.0.0 (https://github.com/RadeonOpenCompute/llvm-project roc-5.4.0 22465 d6f0fe8b22e3d8ce0f2cbd657ea14b16043018a5)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /opt/rocm-5.4.0/llvm/bin
Found candidate GCC installation: /usr/lib64/gcc/x86_64-suse-linux/12
Found candidate GCC installation: /usr/lib64/gcc/x86_64-suse-linux/13
Found candidate GCC installation: /usr/lib64/gcc/x86_64-suse-linux/7
Selected GCC installation: /usr/lib64/gcc/x86_64-suse-linux/13
Candidate multilib: .;@m64
Selected multilib: .;@m64
... rest of stderr output deleted ...
configure:2785: $? = 0
configure:2774: cc -V >&5
clang-15: error: argument to '-V' is missing (expected 1 value)
clang-15: error: no input files
configure:2785: $? = 1
configure:2774: cc -qversion >&5
clang-15: error: unknown argument '-qversion'; did you mean '--version'?
clang-15: error: no input files
configure:2785: $? = 1
configure:2774: cc -version >&5
clang-15: error: unknown argument '-version'; did you mean '--version'?
clang-15: error: no input files
configure:2785: $? = 1
configure:2805: checking whether the C compiler works
configure:2827: cc -fopenmp -I/lustre/orion/cli115/proj-shared/wuda/e3sm_scratch/X_f19_g16/bld/amdclanggpu/mpich/nodebug/threads/include  -fopenmp -L/opt/cray/pe/mpich/8.1.28/gtl/lib -lmpi_gtl_hsa -L/opt/cray/pe/gcc/12.2.0/snos/lib64 -lgfortran -lstdc++ conftest.c  >&5
configure:2831: $? = 0
configure:2881: result: yes
configure:2884: checking for C compiler default output file name
configure:2886: result: a.out
configure:2892: checking for suffix of executables
configure:2899: cc -o conftest -fopenmp -I/lustre/orion/cli115/proj-shared/wuda/e3sm_scratch/X_f19_g16/bld/amdclanggpu/mpich/nodebug/threads/include  -fopenmp -L/opt/cray/pe/mpich/8.1.28/gtl/lib -lmpi_gtl_hsa -L/opt/cray/pe/gcc/12.2.0/snos/lib64 -lgfortran -lstdc++ conftest.c  >&5
configure:2903: $? = 0
configure:2926: result: 
configure:2948: checking whether we are cross compiling
configure:2956: cc -o conftest -fopenmp -I/lustre/orion/cli115/proj-shared/wuda/e3sm_scratch/X_f19_g16/bld/amdclanggpu/mpich/nodebug/threads/include  -fopenmp -L/opt/cray/pe/mpich/8.1.28/gtl/lib -lmpi_gtl_hsa -L/opt/cray/pe/gcc/12.2.0/snos/lib64 -lgfortran -lstdc++ conftest.c  >&5
configure:2960: $? = 0
configure:2967: ./conftest
configure:2971: $? = 0
configure:2986: result: no
configure:2991: checking for suffix of object files
configure:3014: cc -c -fopenmp -I/lustre/orion/cli115/proj-shared/wuda/e3sm_scratch/X_f19_g16/bld/amdclanggpu/mpich/nodebug/threads/include  conftest.c >&5
configure:3018: $? = 0
configure:3040: result: o
configure:3044: checking whether the compiler supports GNU C
configure:3064: cc -c -fopenmp -I/lustre/orion/cli115/proj-shared/wuda/e3sm_scratch/X_f19_g16/bld/amdclanggpu/mpich/nodebug/threads/include  conftest.c >&5
configure:3064: $? = 0
configure:3074: result: yes
configure:3085: checking whether cc accepts -g
configure:3106: cc -c -g  conftest.c >&5
configure:3106: $? = 0
configure:3150: result: yes
configure:3167: checking for cc option to enable C11 features
configure:3182: cc  -c -fopenmp -I/lustre/orion/cli115/proj-shared/wuda/e3sm_scratch/X_f19_g16/bld/amdclanggpu/mpich/nodebug/threads/include  conftest.c >&5
conftest.c:23:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
static char *e (p, i)
             ^
1 warning generated.
conftest.c:23:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
static char *e (p, i)
             ^
1 warning generated.
configure:3182: $? = 0
configure:3197: result: none needed
configure:3327: checking for stdio.h
configure:3327: cc -c -fopenmp -I/lustre/orion/cli115/proj-shared/wuda/e3sm_scratch/X_f19_g16/bld/amdclanggpu/mpich/nodebug/threads/include  conftest.c >&5
configure:3327: $? = 0
configure:3327: result: yes
configure:3327: checking for stdlib.h
configure:3327: cc -c -fopenmp -I/lustre/orion/cli115/proj-shared/wuda/e3sm_scratch/X_f19_g16/bld/amdclanggpu/mpich/nodebug/threads/include  conftest.c >&5
configure:3327: $? = 0
configure:3327: result: yes
configure:3327: checking for string.h
configure:3327: cc -c -fopenmp -I/lustre/orion/cli115/proj-shared/wuda/e3sm_scratch/X_f19_g16/bld/amdclanggpu/mpich/nodebug/threads/include  conftest.c >&5
configure:3327: $? = 0
configure:3327: result: yes
configure:3327: checking for inttypes.h
configure:3327: cc -c -fopenmp -I/lustre/orion/cli115/proj-shared/wuda/e3sm_scratch/X_f19_g16/bld/amdclanggpu/mpich/nodebug/threads/include  conftest.c >&5
configure:3327: $? = 0
configure:3327: result: yes
configure:3327: checking for stdint.h
configure:3327: cc -c -fopenmp -I/lustre/orion/cli115/proj-shared/wuda/e3sm_scratch/X_f19_g16/bld/amdclanggpu/mpich/nodebug/threads/include  conftest.c >&5
configure:3327: $? = 0
configure:3327: result: yes
configure:3327: checking for strings.h
configure:3327: cc -c -fopenmp -I/lustre/orion/cli115/proj-shared/wuda/e3sm_scratch/X_f19_g16/bld/amdclanggpu/mpich/nodebug/threads/include  conftest.c >&5
configure:3327: $? = 0
configure:3327: result: yes
configure:3327: checking for sys/stat.h
configure:3327: cc -c -fopenmp -I/lustre/orion/cli115/proj-shared/wuda/e3sm_scratch/X_f19_g16/bld/amdclanggpu/mpich/nodebug/threads/include  conftest.c >&5
configure:3327: $? = 0
configure:3327: result: yes
configure:3327: checking for sys/types.h
configure:3327: cc -c -fopenmp -I/lustre/orion/cli115/proj-shared/wuda/e3sm_scratch/X_f19_g16/bld/amdclanggpu/mpich/nodebug/threads/include  conftest.c >&5
configure:3327: $? = 0
configure:3327: result: yes
configure:3327: checking for unistd.h
configure:3327: cc -c -fopenmp -I/lustre/orion/cli115/proj-shared/wuda/e3sm_scratch/X_f19_g16/bld/amdclanggpu/mpich/nodebug/threads/include  conftest.c >&5
configure:3327: $? = 0
configure:3327: result: yes
configure:3352: checking whether byte ordering is bigendian
configure:3368: cc -c -fopenmp -I/lustre/orion/cli115/proj-shared/wuda/e3sm_scratch/X_f19_g16/bld/amdclanggpu/mpich/nodebug/threads/include  conftest.c >&5
conftest.c:20:9: error: unknown type name 'not'
               not a universal capable compiler
               ^
conftest.c:20:14: error: expected ';' after top level declarator
               not a universal capable compiler
                    ^
                    ;
2 errors generated.
configure:3368: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "MCT"
| #define PACKAGE_TARNAME "mct"
| #define PACKAGE_VERSION "2.10"
| #define PACKAGE_STRING "MCT 2.10"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define HAVE_STDIO_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_UNISTD_H 1
| #define STDC_HEADERS 1
| /* end confdefs.h.  */
| #ifndef __APPLE_CC__
| 	       not a universal capable compiler
| 	     #endif
| 	     typedef int dummy;
| 
configure:3414: cc -c -fopenmp -I/lustre/orion/cli115/proj-shared/wuda/e3sm_scratch/X_f19_g16/bld/amdclanggpu/mpich/nodebug/threads/include  conftest.c >&5
configure:3414: $? = 0
configure:3433: cc -c -fopenmp -I/lustre/orion/cli115/proj-shared/wuda/e3sm_scratch/X_f19_g16/bld/amdclanggpu/mpich/nodebug/threads/include  conftest.c >&5
conftest.c:26:4: error: use of undeclared identifier 'not'
                 not big endian
                 ^
1 error generated.
configure:3433: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "MCT"
| #define PACKAGE_TARNAME "mct"
| #define PACKAGE_VERSION "2.10"
| #define PACKAGE_STRING "MCT 2.10"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define HAVE_STDIO_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_UNISTD_H 1
| #define STDC_HEADERS 1
| /* end confdefs.h.  */
| #include <sys/types.h>
| 		#include <sys/param.h>
| 
| int
| main (void)
| {
| #if BYTE_ORDER != BIG_ENDIAN
| 		 not big endian
| 		#endif
| 
|   ;
|   return 0;
| }
configure:3567: result: no
configure:3704: checking for Fortran compiler version
configure:3713: ftn --version >&5
AMD flang-new version 15.0.0 (https://github.com/RadeonOpenCompute/llvm-project roc-5.4.0 22465 d6f0fe8b22e3d8ce0f2cbd657ea14b16043018a5)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /opt/rocm-5.4.0/llvm/bin
configure:3724: $? = 0
configure:3713: ftn -v >&5
AMD flang-new version 15.0.0 (https://github.com/RadeonOpenCompute/llvm-project roc-5.4.0 22465 d6f0fe8b22e3d8ce0f2cbd657ea14b16043018a5)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /opt/rocm-5.4.0/llvm/bin
Found candidate GCC installation: /usr/lib64/gcc/x86_64-suse-linux/12
Found candidate GCC installation: /usr/lib64/gcc/x86_64-suse-linux/13
Found candidate GCC installation: /usr/lib64/gcc/x86_64-suse-linux/7
Selected GCC installation: /usr/lib64/gcc/x86_64-suse-linux/13
Candidate multilib: .;@m64
Selected multilib: .;@m64
... rest of stderr output deleted ...
configure:3724: $? = 0
configure:3713: ftn -V >&5
clang-15: error: argument to '-V' is missing (expected 1 value)
clang-15: error: no input files
configure:3724: $? = 1
configure:3713: ftn -qversion >&5
clang-15: error: unknown argument '-qversion'; did you mean '--version'?
clang-15: error: no input files
configure:3724: $? = 1
configure:3733: checking whether the compiler supports GNU Fortran
configure:3747: ftn -c -fopenmp  -I/lustre/orion/cli115/proj-shared/wuda/e3sm_scratch/X_f19_g16/bld/amdclanggpu/mpich/nodebug/threads/include  conftest.F >&5
F90-S-0034-Syntax error at or near end of line (conftest.F: 3)
  0 inform,   0 warnings,   1 severes, 0 fatal for main
F90-S-0034-Syntax error at or near end of line (conftest.F: 3)
  0 inform,   0 warnings,   1 severes, 0 fatal for main
configure:3747: $? = 1
configure: failed program was:
|       program main
| #ifndef __GNUC__
|        choke me
| #endif
| 
|       end
configure:3757: result: no
configure:3765: checking whether ftn accepts -g
configure:3777: ftn -c -g  conftest.f >&5
configure:3777: $? = 0
configure:3786: result: yes
configure:3834: checking for Fortran flag to compile .F90 files
configure:3855: ftn -c -fopenmp  -I/lustre/orion/cli115/proj-shared/wuda/e3sm_scratch/X_f19_g16/bld/amdclanggpu/mpich/nodebug/threads/include  conftest.F90 >&5
configure:3855: $? = 0
configure:3865: result: none
configure:3904: checking for mpif90
configure:3936: result: ftn
configure:3954: checking for MPI_Init
configure:3961: ftn -o conftest -fopenmp  -I/lustre/orion/cli115/proj-shared/wuda/e3sm_scratch/X_f19_g16/bld/amdclanggpu/mpich/nodebug/threads/include -fopenmp -L/opt/cray/pe/mpich/8.1.28/gtl/lib -lmpi_gtl_hsa -L/opt/cray/pe/gcc/12.2.0/snos/lib64 -lgfortran -lstdc++  conftest.F90  >&5
configure:3961: $? = 0
configure:3964: result: yes
configure:4105: checking for mpif.h
configure:4112: ftn -c -fopenmp  -I/lustre/orion/cli115/proj-shared/wuda/e3sm_scratch/X_f19_g16/bld/amdclanggpu/mpich/nodebug/threads/include  conftest.F90 >&5
configure:4112: $? = 0
configure:4114: result: yes
configure:4184: ftn -c -fopenmp  -I/lustre/orion/cli115/proj-shared/wuda/e3sm_scratch/X_f19_g16/bld/amdclanggpu/mpich/nodebug/threads/include  conftest.F90 >&5
configure:4184: $? = 0
configure:4200: checking how to get the version output from ftn
configure:4212: ftn -c -fopenmp  -I/lustre/orion/cli115/proj-shared/wuda/e3sm_scratch/X_f19_g16/bld/amdclanggpu/mpich/nodebug/threads/include  conftest.F90 >&5
configure:4212: $? = 0
configure:4232: ftn -o conftest -fopenmp  -I/lustre/orion/cli115/proj-shared/wuda/e3sm_scratch/X_f19_g16/bld/amdclanggpu/mpich/nodebug/threads/include -V -fopenmp -L/opt/cray/pe/mpich/8.1.28/gtl/lib -lmpi_gtl_hsa -L/opt/cray/pe/gcc/12.2.0/snos/lib64 -lgfortran -lstdc++  conftest.F90  >&5
clang-15: error: unsupported option '-V -fopenmp'
configure:4232: ftn -o conftest -fopenmp  -I/lustre/orion/cli115/proj-shared/wuda/e3sm_scratch/X_f19_g16/bld/amdclanggpu/mpich/nodebug/threads/include -version -fopenmp -L/opt/cray/pe/mpich/8.1.28/gtl/lib -lmpi_gtl_hsa -L/opt/cray/pe/gcc/12.2.0/snos/lib64 -lgfortran -lstdc++  conftest.F90  >&5
clang-15: error: unknown argument '-version'; did you mean '--version'?
configure:4232: ftn -o conftest -fopenmp  -I/lustre/orion/cli115/proj-shared/wuda/e3sm_scratch/X_f19_g16/bld/amdclanggpu/mpich/nodebug/threads/include --version -fopenmp -L/opt/cray/pe/mpich/8.1.28/gtl/lib -lmpi_gtl_hsa -L/opt/cray/pe/gcc/12.2.0/snos/lib64 -lgfortran -lstdc++  conftest.F90  >&5
AMD flang-new version 15.0.0 (https://github.com/RadeonOpenCompute/llvm-project roc-5.4.0 22465 d6f0fe8b22e3d8ce0f2cbd657ea14b16043018a5)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /opt/rocm-5.4.0/llvm/bin
configure:4232: ftn -o conftest -fopenmp  -I/lustre/orion/cli115/proj-shared/wuda/e3sm_scratch/X_f19_g16/bld/amdclanggpu/mpich/nodebug/threads/include +version -fopenmp -L/opt/cray/pe/mpich/8.1.28/gtl/lib -lmpi_gtl_hsa -L/opt/cray/pe/gcc/12.2.0/snos/lib64 -lgfortran -lstdc++  conftest.F90  >&5
clang-15: error: no such file or directory: '+version'
configure:4232: ftn -o conftest -fopenmp  -I/lustre/orion/cli115/proj-shared/wuda/e3sm_scratch/X_f19_g16/bld/amdclanggpu/mpich/nodebug/threads/include -qversion -fopenmp -L/opt/cray/pe/mpich/8.1.28/gtl/lib -lmpi_gtl_hsa -L/opt/cray/pe/gcc/12.2.0/snos/lib64 -lgfortran -lstdc++  conftest.F90  >&5
clang-15: error: unknown argument '-qversion'; did you mean '--version'?
configure:4254: WARNING: cannot determine how to obtain version information from ftn
configure:4264: result: 
configure:4285: checking for Fortran flag to compile preprocessed .F files
configure:4311: ftn -c -fopenmp  -I/lustre/orion/cli115/proj-shared/wuda/e3sm_scratch/X_f19_g16/bld/amdclanggpu/mpich/nodebug/threads/include  conftest.F >&5
configure:4311: $? = 0
configure:4322: ftn -c -fopenmp  -I/lustre/orion/cli115/proj-shared/wuda/e3sm_scratch/X_f19_g16/bld/amdclanggpu/mpich/nodebug/threads/include  conftest.F >&5
F90-F-0906-Can't find include file ac_nonexistent.h (conftest.F: 4)
F90/x86-64 Linux Flang - 1.5 2017-05-01: compilation aborted
F90-F-0906-Can't find include file ac_nonexistent.h (conftest.F: 4)
F90/x86-64 Linux Flang - 1.5 2017-05-01: compilation aborted
configure:4322: $? = 1
configure: failed program was:
|       program main
| 
| #if 1
| #include <ac_nonexistent.h>
|       choke me
| #endif
|       end
configure:4336: result: none
configure:4357: checking how to define symbols for preprocessed Fortran
configure:4380: ftn -c -fopenmp  -I/lustre/orion/cli115/proj-shared/wuda/e3sm_scratch/X_f19_g16/bld/amdclanggpu/mpich/nodebug/threads/include -DFOOBAR -DZORK=42  conftest.F >&5
configure:4380: $? = 0
configure:4390: result: -D
configure:4418: checking build system type
configure:4433: result: x86_64-pc-linux-gnu
configure:4453: checking host system type
configure:4467: result: x86_64-pc-linux-gnu
configure:4491: checking how to get verbose linking output from ftn
configure:4502: ftn -c -fopenmp  -I/lustre/orion/cli115/proj-shared/wuda/e3sm_scratch/X_f19_g16/bld/amdclanggpu/mpich/nodebug/threads/include  conftest.F >&5
configure:4502: $? = 0
configure:4521: ftn -o conftest -fopenmp -I/lustre/orion/cli115/proj-shared/wuda/e3sm_scratch/X_f19_g16/bld/amdclanggpu/mpich/nodebug/threads/include -v -fopenmp -L/opt/cray/pe/mpich/8.1.28/gtl/lib -lmpi_gtl_hsa -L/opt/cray/pe/gcc/12.2.0/snos/lib64 -lgfortran -lstdc++ conftest.F
AMD flang-new version 15.0.0 (https://github.com/RadeonOpenCompute/llvm-project roc-5.4.0 22465 d6f0fe8b22e3d8ce0f2cbd657ea14b16043018a5)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /opt/rocm-5.4.0/llvm/bin
Found candidate GCC installation: /usr/lib64/gcc/x86_64-suse-linux/12
Found candidate GCC installation: /usr/lib64/gcc/x86_64-suse-linux/13
Found candidate GCC installation: /usr/lib64/gcc/x86_64-suse-linux/7
Selected GCC installation: /usr/lib64/gcc/x86_64-suse-linux/13
Candidate multilib: .;@m64
Selected multilib: .;@m64
Found HIP installation: /opt/rocm-5.4.0, version 5.4.22801
 "/opt/rocm-5.4.0/llvm/bin/flang1" conftest.F -x 69 0x1000 -opt 0 -terse 1 -inform warn -nohpf -nostatic -cmdline "'+flang -march=znver3 -fopenmp-targets=amdgcn-amd-amdhsa -Xopenmp-target=amdgcn-amd-amdhsa -march=gfx90a -D__CRAY_X86_TRENTO -D__CRAY_AMD_GFX90A -D__CRAYXT_COMPUTE_LINUX_TARGET -o conftest -fopenmp -I/lustre/orion/cli115/proj-shared/wuda/e3sm_scratch/X_f19_g16/bld/amdclanggpu/mpich/nodebug/threads/include -v -fopenmp -L/opt/cray/pe/mpich/8.1.28/gtl/lib -lmpi_gtl_hsa -L/opt/cray/pe/gcc/12.2.0/snos/lib64 -lgfortran -lstdc++ conftest.F -I/opt/cray/pe/mpich/8.1.28/ofi/amd/5.0/include -I/opt/cray/pe/libsci/23.12.5/AMD/5.0/x86_64/include -I/opt/cray/pe/parallel-netcdf/1.12.3.1/amd/4.3/include -I/opt/cray/pe/netcdf-hdf5parallel/4.9.0.1/amd/4.3/include -I/opt/cray/pe/hdf5-parallel/1.12.2.1/amd/4.3/include -I/opt/cray/pe/dsmml/0.2.2/dsmml//include -I/opt/cray/pe/pmi/6.1.13/include -I/opt/cray/xpmem/2.8.4-1.0_7.3__ga37cbd9.shasta/include -L/opt/cray/pe/mpich/8.1.28/ofi/amd/5.0/lib -L/opt/cray/pe/mpich/8.1.28/gtl/lib -L/opt/cray/pe/libsci/23.12.5/AMD/5.0/x86_64/lib -L/opt/cray/pe/parallel-netcdf/1.12.3.1/amd/4.3/lib -L/opt/cray/pe/netcdf-hdf5parallel/4.9.0.1/amd/4.3/lib -L/opt/cray/pe/hdf5-parallel/1.12.2.1/amd/4.3/lib -L/opt/cray/pe/dsmml/0.2.2/dsmml//lib -L/opt/cray/pe/pmi/6.1.13/lib -L/opt/cray/xpmem/2.8.4-1.0_7.3__ga37cbd9.shasta/lib64 -Wl,--as-needed,-lhdf5_hl_parallel,--no-as-needed -Wl,--as-needed,-lhdf5_parallel,--no-as-needed -Wl,--as-needed,-lhdf5hl_fortran_parallel,--no-as-needed -Wl,--as-needed,-lhdf5_fortran_parallel,--no-as-needed -Wl,--as-needed,-lpnetcdf,--no-as-needed -lmpichf90 -Wl,--as-needed,-lnetcdf,--no-as-needed -Wl,--as-needed,-lnetcdff,--no-as-needed -Wl,--as-needed,-lsci_amd_mpi_mp,--no-as-needed -Wl,--as-needed,-lsci_amd_mp,--no-as-needed -ldl -Wl,--as-needed,-lmpifort_amd,--no-as-needed -Wl,--as-needed,-lmpi_amd,--no-as-needed -lmpi_gtl_hsa -Wl,--as-needed,-ldsmml,--no-as-needed -Wl,--as-needed,-lpmi,--no-as-needed -Wl,--as-needed,-lpmi2,--no-as-needed -lxpmem -L/opt/rocm-5.4.0/lib -L/opt/rocm-5.4.0/lib64 -L/opt/rocm-5.4.0/llvm/lib -Wl,--disable-new-dtags'" -inform warn -disable-vectorize-pragmas -mp -x 69 0x200 -x 69 0x400 -y 129 2 -x 19 0x400000 -quad -x 7 0x100000 -x 68 0x1 -x 59 4 -x 15 2 -x 49 0x400004 -x 51 0x20 -x 57 0x4c -x 58 0x10000 -x 124 0x1000 -tp px -x 57 0xfb0000 -x 58 0x78031040 -x 47 0x08 -x 48 4608 -x 49 0x100 -stdinc /opt/rocm-5.4.0/llvm/bin/../include:/usr/local/include:/opt/rocm-5.4.0/llvm/lib/clang/15.0.0/include:/include:/usr/include -def unix -def __unix -def __unix__ -def linux -def __linux -def __linux__ -def __NO_MATH_INLINES -def __LP64__ -def __LONG_MAX__=9223372036854775807L -def "__SIZE_TYPE__=unsigned long int" -def "__PTRDIFF_TYPE__=long int" -def __x86_64 -def __x86_64__ -def __amd_64__amd64__ -def __k8 -def __k8__ -def __THROW= -def __extension__= -def __PGLLVM__ -preprocess -nofreeform -idir /lustre/orion/cli115/proj-shared/wuda/e3sm_scratch/X_f19_g16/bld/amdclanggpu/mpich/nodebug/threads/include -idir /opt/cray/pe/mpich/8.1.28/ofi/amd/5.0/include -idir /opt/cray/pe/libsci/23.12.5/AMD/5.0/x86_64/include -idir /opt/cray/pe/parallel-netcdf/1.12.3.1/amd/4.3/include -idir /opt/cray/pe/netcdf-hdf5parallel/4.9.0.1/amd/4.3/include -idir /opt/cray/pe/hdf5-parallel/1.12.2.1/amd/4.3/include -idir /opt/cray/pe/dsmml/0.2.2/dsmml//include -idir /opt/cray/pe/pmi/6.1.13/include -idir /opt/cray/xpmem/2.8.4-1.0_7.3__ga37cbd9.shasta/include -def __CRAY_X86_TRENTO -def __CRAY_AMD_GFX90A -def __CRAYXT_COMPUTE_LINUX_TARGET -vect 48 -x 54 1 -x 70 0x40000000 -y 163 0xc0000000 -x 189 0x10 -stbfile conftest-6e0304.stb -modexport conftest-6e0304.cmod -modindex conftest-6e0304.cmdx -output conftest-6e0304.ilm -fopenmp-targets amdgcn-amd-amdhsa
 "/opt/rocm-5.4.0/llvm/bin/flang2" conftest-6e0304.ilm -y 129 2 -x 6 0x100 -x 42 0x400000 -y 129 4 -x 129 0x400 -y 216 1 -ieee 1 -fn conftest.F -opt 0 -terse 1 -inform warn -cmdline "'+flang -march=znver3 -fopenmp-targets=amdgcn-amd-amdhsa -Xopenmp-target=amdgcn-amd-amdhsa -march=gfx90a -D__CRAY_X86_TRENTO -D__CRAY_AMD_GFX90A -D__CRAYXT_COMPUTE_LINUX_TARGET -o conftest -fopenmp -I/lustre/orion/cli115/proj-shared/wuda/e3sm_scratch/X_f19_g16/bld/amdclanggpu/mpich/nodebug/threads/include -v -fopenmp -L/opt/cray/pe/mpich/8.1.28/gtl/lib -lmpi_gtl_hsa -L/opt/cray/pe/gcc/12.2.0/snos/lib64 -lgfortran -lstdc++ conftest.F -I/opt/cray/pe/mpich/8.1.28/ofi/amd/5.0/include -I/opt/cray/pe/libsci/23.12.5/AMD/5.0/x86_64/include -I/opt/cray/pe/parallel-netcdf/1.12.3.1/amd/4.3/include -I/opt/cray/pe/netcdf-hdf5parallel/4.9.0.1/amd/4.3/include -I/opt/cray/pe/hdf5-parallel/1.12.2.1/amd/4.3/include -I/opt/cray/pe/dsmml/0.2.2/dsmml//include -I/opt/cray/pe/pmi/6.1.13/include -I/opt/cray/xpmem/2.8.4-1.0_7.3__ga37cbd9.shasta/include -L/opt/cray/pe/mpich/8.1.28/ofi/amd/5.0/lib -L/opt/cray/pe/mpich/8.1.28/gtl/lib -L/opt/cray/pe/libsci/23.12.5/AMD/5.0/x86_64/lib -L/opt/cray/pe/parallel-netcdf/1.12.3.1/amd/4.3/lib -L/opt/cray/pe/netcdf-hdf5parallel/4.9.0.1/amd/4.3/lib -L/opt/cray/pe/hdf5-parallel/1.12.2.1/amd/4.3/lib -L/opt/cray/pe/dsmml/0.2.2/dsmml//lib -L/opt/cray/pe/pmi/6.1.13/lib -L/opt/cray/xpmem/2.8.4-1.0_7.3__ga37cbd9.shasta/lib64 -Wl,--as-needed,-lhdf5_hl_parallel,--no-as-needed -Wl,--as-needed,-lhdf5_parallel,--no-as-needed -Wl,--as-needed,-lhdf5hl_fortran_parallel,--no-as-needed -Wl,--as-needed,-lhdf5_fortran_parallel,--no-as-needed -Wl,--as-needed,-lpnetcdf,--no-as-needed -lmpichf90 -Wl,--as-needed,-lnetcdf,--no-as-needed -Wl,--as-needed,-lnetcdff,--no-as-needed -Wl,--as-needed,-lsci_amd_mpi_mp,--no-as-needed -Wl,--as-needed,-lsci_amd_mp,--no-as-needed -ldl -Wl,--as-needed,-lmpifort_amd,--no-as-needed -Wl,--as-needed,-lmpi_amd,--no-as-needed -lmpi_gtl_hsa -Wl,--as-needed,-ldsmml,--no-as-needed -Wl,--as-needed,-lpmi,--no-as-needed -Wl,--as-needed,-lpmi2,--no-as-needed -lxpmem -L/opt/rocm-5.4.0/lib -L/opt/rocm-5.4.0/lib64 -L/opt/rocm-5.4.0/llvm/lib -Wl,--disable-new-dtags'" -inform warn -disable-vectorize-pragmas -mp -x 69 0x200 -x 69 0x400 -y 129 2 -x 68 0x1 -x 51 0x20 -x 119 0xa10000 -x 122 0x40 -x 123 0x1000 -x 127 4 -x 127 17 -x 19 0x400000 -x 28 0x40000 -x 120 0x10000000 -x 70 0x8000 -x 122 1 -x 125 0x20000 -x 164 0x800000 -quad -x 59 4 -tp px -x 120 0x1000 -x 124 0x1400 -y 15 2 -x 57 0x3b0000 -x 58 0x48000000 -x 49 0x100 -astype 0 -x 183 4 -x 121 0x800 -x 54 0x10 -x 70 0x40000000 -x 249 1023 -x 124 1 -y 163 0xc0000000 -x 189 0x10 -y 189 0x4000000 -x 183 0x10 -stbfile conftest-6e0304.stb -fopenmp-targets amdgcn-amd-amdhsa -fopenmp-targets-asm /tmp/conftest-6e0304-amdgcn-amd-amdhsa.ll -asm /tmp/conftest-6e0304.ll
 "/opt/rocm-5.4.0/llvm/bin/clang-15" -cc1 -triple x86_64-unknown-linux-gnu -emit-llvm-bc -emit-llvm-uselists -disable-free -clear-ast-before-backend -disable-llvm-verifier -discard-value-names -main-file-name conftest.F -mrelocation-model static -mframe-pointer=all -fmath-errno -ffp-contract=on -fno-rounding-math -mconstructor-aliases -funwind-tables=2 -target-cpu znver3 -mllvm -treat-scalable-fixed-error-as-warning -debugger-tuning=gdb -v -fcoverage-compilation-dir=/lustre/orion/cli115/proj-shared/wuda/e3sm_scratch/X_f19_g16/bld/amdclanggpu/mpich/nodebug/threads/mct -resource-dir /opt/rocm-5.4.0/llvm/lib/clang/15.0.0 -fdebug-compilation-dir=/lustre/orion/cli115/proj-shared/wuda/e3sm_scratch/X_f19_g16/bld/amdclanggpu/mpich/nodebug/threads/mct -ferror-limit 19 -fopenmp -fno-openmp-target-fast -fopenmp-target-new-runtime -fno-openmp-target-ignore-env-vars -fno-openmp-assume-no-thread-state -fno-openmp-assume-no-nested-parallelism -fgnuc-version=4.2.1 -no-opaque-pointers -disable-llvm-passes -fopenmp-targets=amdgcn-amd-amdhsa -faddrsig -D__GCC_HAVE_DWARF2_CFI_ASM=1 -o /tmp/conftest-5e6b04.bc -x ir /tmp/conftest-6e0304.ll
clang -cc1 version 15.0.0 based upon LLVM 15.0.0git default target x86_64-unknown-linux-gnu
 "/opt/rocm-5.4.0/llvm/bin/clang-15" -cc1 -triple x86_64-unknown-linux-gnu -emit-obj -mrelax-all --mrelax-relocations -disable-free -clear-ast-before-backend -disable-llvm-verifier -discard-value-names -main-file-name conftest.F -mrelocation-model static -mframe-pointer=all -fmath-errno -ffp-contract=on -fno-rounding-math -mconstructor-aliases -funwind-tables=2 -target-cpu znver3 -mllvm -treat-scalable-fixed-error-as-warning -debugger-tuning=gdb -v -fcoverage-compilation-dir=/lustre/orion/cli115/proj-shared/wuda/e3sm_scratch/X_f19_g16/bld/amdclanggpu/mpich/nodebug/threads/mct -resource-dir /opt/rocm-5.4.0/llvm/lib/clang/15.0.0 -fdebug-compilation-dir=/lustre/orion/cli115/proj-shared/wuda/e3sm_scratch/X_f19_g16/bld/amdclanggpu/mpich/nodebug/threads/mct -ferror-limit 19 -fopenmp -fno-openmp-target-fast -fopenmp-target-new-runtime -fno-openmp-target-ignore-env-vars -fno-openmp-assume-no-thread-state -fno-openmp-assume-no-nested-parallelism -fgnuc-version=4.2.1 -no-opaque-pointers -fopenmp-targets=amdgcn-amd-amdhsa -faddrsig -D__GCC_HAVE_DWARF2_CFI_ASM=1 -o /tmp/conftest-8d5656.o -x ir /tmp/conftest-5e6b04.bc
clang -cc1 version 15.0.0 based upon LLVM 15.0.0git default target x86_64-unknown-linux-gnu
 "/opt/rocm-5.4.0/llvm/bin/flang1" conftest.F -x 69 0x1000 -opt 0 -terse 1 -inform warn -nohpf -nostatic -cmdline "'+flang -march=znver3 -fopenmp-targets=amdgcn-amd-amdhsa -Xopenmp-target=amdgcn-amd-amdhsa -march=gfx90a -D__CRAY_X86_TRENTO -D__CRAY_AMD_GFX90A -D__CRAYXT_COMPUTE_LINUX_TARGET -o conftest -fopenmp -I/lustre/orion/cli115/proj-shared/wuda/e3sm_scratch/X_f19_g16/bld/amdclanggpu/mpich/nodebug/threads/include -v -fopenmp -L/opt/cray/pe/mpich/8.1.28/gtl/lib -lmpi_gtl_hsa -L/opt/cray/pe/gcc/12.2.0/snos/lib64 -lgfortran -lstdc++ conftest.F -I/opt/cray/pe/mpich/8.1.28/ofi/amd/5.0/include -I/opt/cray/pe/libsci/23.12.5/AMD/5.0/x86_64/include -I/opt/cray/pe/parallel-netcdf/1.12.3.1/amd/4.3/include -I/opt/cray/pe/netcdf-hdf5parallel/4.9.0.1/amd/4.3/include -I/opt/cray/pe/hdf5-parallel/1.12.2.1/amd/4.3/include -I/opt/cray/pe/dsmml/0.2.2/dsmml//include -I/opt/cray/pe/pmi/6.1.13/include -I/opt/cray/xpmem/2.8.4-1.0_7.3__ga37cbd9.shasta/include -L/opt/cray/pe/mpich/8.1.28/ofi/amd/5.0/lib -L/opt/cray/pe/mpich/8.1.28/gtl/lib -L/opt/cray/pe/libsci/23.12.5/AMD/5.0/x86_64/lib -L/opt/cray/pe/parallel-netcdf/1.12.3.1/amd/4.3/lib -L/opt/cray/pe/netcdf-hdf5parallel/4.9.0.1/amd/4.3/lib -L/opt/cray/pe/hdf5-parallel/1.12.2.1/amd/4.3/lib -L/opt/cray/pe/dsmml/0.2.2/dsmml//lib -L/opt/cray/pe/pmi/6.1.13/lib -L/opt/cray/xpmem/2.8.4-1.0_7.3__ga37cbd9.shasta/lib64 -Wl,--as-needed,-lhdf5_hl_parallel,--no-as-needed -Wl,--as-needed,-lhdf5_parallel,--no-as-needed -Wl,--as-needed,-lhdf5hl_fortran_parallel,--no-as-needed -Wl,--as-needed,-lhdf5_fortran_parallel,--no-as-needed -Wl,--as-needed,-lpnetcdf,--no-as-needed -lmpichf90 -Wl,--as-needed,-lnetcdf,--no-as-needed -Wl,--as-needed,-lnetcdff,--no-as-needed -Wl,--as-needed,-lsci_amd_mpi_mp,--no-as-needed -Wl,--as-needed,-lsci_amd_mp,--no-as-needed -ldl -Wl,--as-needed,-lmpifort_amd,--no-as-needed -Wl,--as-needed,-lmpi_amd,--no-as-needed -lmpi_gtl_hsa -Wl,--as-needed,-ldsmml,--no-as-needed -Wl,--as-needed,-lpmi,--no-as-needed -Wl,--as-needed,-lpmi2,--no-as-needed -lxpmem -L/opt/rocm-5.4.0/lib -L/opt/rocm-5.4.0/lib64 -L/opt/rocm-5.4.0/llvm/lib -Wl,--disable-new-dtags'" -inform warn -disable-vectorize-pragmas -mp -x 69 0x200 -x 69 0x400 -y 129 2 -x 19 0x400000 -quad -x 7 0x100000 -x 68 0x1 -x 59 4 -x 15 2 -x 49 0x400004 -x 51 0x20 -x 57 0x4c -x 58 0x10000 -x 124 0x1000 -tp px -x 57 0xfb0000 -x 58 0x78031040 -x 47 0x08 -x 48 4608 -x 49 0x100 -stdinc /opt/rocm-5.4.0/llvm/bin/../include -def unix -def __unix -def __unix__ -def linux -def __linux -def __linux__ -def __NO_MATH_INLINES -def __LP64__ -def __LONG_MAX__=9223372036854775807L -def "__SIZE_TYPE__=unsigned long int" -def "__PTRDIFF_TYPE__=long int" -def __THROW= -def __extension__= -def __PGLLVM__ -preprocess -nofreeform -idir /lustre/orion/cli115/proj-shared/wuda/e3sm_scratch/X_f19_g16/bld/amdclanggpu/mpich/nodebug/threads/include -idir /opt/cray/pe/mpich/8.1.28/ofi/amd/5.0/include -idir /opt/cray/pe/libsci/23.12.5/AMD/5.0/x86_64/include -idir /opt/cray/pe/parallel-netcdf/1.12.3.1/amd/4.3/include -idir /opt/cray/pe/netcdf-hdf5parallel/4.9.0.1/amd/4.3/include -idir /opt/cray/pe/hdf5-parallel/1.12.2.1/amd/4.3/include -idir /opt/cray/pe/dsmml/0.2.2/dsmml//include -idir /opt/cray/pe/pmi/6.1.13/include -idir /opt/cray/xpmem/2.8.4-1.0_7.3__ga37cbd9.shasta/include -def __CRAY_X86_TRENTO -def __CRAY_AMD_GFX90A -def __CRAYXT_COMPUTE_LINUX_TARGET -vect 48 -x 54 1 -x 70 0x40000000 -y 163 0xc0000000 -x 189 0x10 -stbfile conftest-05f30a.stb -modexport conftest-05f30a.cmod -modindex conftest-05f30a.cmdx -output conftest-05f30a.ilm -fopenmp-targets amdgcn-amd-amdhsa
 "/opt/rocm-5.4.0/llvm/bin/flang2" conftest-05f30a.ilm -y 129 2 -x 62 8 -x 6 0x100 -x 42 0x400000 -y 129 4 -x 129 0x400 -y 216 1 -ieee 1 -fn conftest.F -opt 0 -terse 1 -inform warn -cmdline "'+flang -march=znver3 -fopenmp-targets=amdgcn-amd-amdhsa -Xopenmp-target=amdgcn-amd-amdhsa -march=gfx90a -D__CRAY_X86_TRENTO -D__CRAY_AMD_GFX90A -D__CRAYXT_COMPUTE_LINUX_TARGET -o conftest -fopenmp -I/lustre/orion/cli115/proj-shared/wuda/e3sm_scratch/X_f19_g16/bld/amdclanggpu/mpich/nodebug/threads/include -v -fopenmp -L/opt/cray/pe/mpich/8.1.28/gtl/lib -lmpi_gtl_hsa -L/opt/cray/pe/gcc/12.2.0/snos/lib64 -lgfortran -lstdc++ conftest.F -I/opt/cray/pe/mpich/8.1.28/ofi/amd/5.0/include -I/opt/cray/pe/libsci/23.12.5/AMD/5.0/x86_64/include -I/opt/cray/pe/parallel-netcdf/1.12.3.1/amd/4.3/include -I/opt/cray/pe/netcdf-hdf5parallel/4.9.0.1/amd/4.3/include -I/opt/cray/pe/hdf5-parallel/1.12.2.1/amd/4.3/include -I/opt/cray/pe/dsmml/0.2.2/dsmml//include -I/opt/cray/pe/pmi/6.1.13/include -I/opt/cray/xpmem/2.8.4-1.0_7.3__ga37cbd9.shasta/include -L/opt/cray/pe/mpich/8.1.28/ofi/amd/5.0/lib -L/opt/cray/pe/mpich/8.1.28/gtl/lib -L/opt/cray/pe/libsci/23.12.5/AMD/5.0/x86_64/lib -L/opt/cray/pe/parallel-netcdf/1.12.3.1/amd/4.3/lib -L/opt/cray/pe/netcdf-hdf5parallel/4.9.0.1/amd/4.3/lib -L/opt/cray/pe/hdf5-parallel/1.12.2.1/amd/4.3/lib -L/opt/cray/pe/dsmml/0.2.2/dsmml//lib -L/opt/cray/pe/pmi/6.1.13/lib -L/opt/cray/xpmem/2.8.4-1.0_7.3__ga37cbd9.shasta/lib64 -Wl,--as-needed,-lhdf5_hl_parallel,--no-as-needed -Wl,--as-needed,-lhdf5_parallel,--no-as-needed -Wl,--as-needed,-lhdf5hl_fortran_parallel,--no-as-needed -Wl,--as-needed,-lhdf5_fortran_parallel,--no-as-needed -Wl,--as-needed,-lpnetcdf,--no-as-needed -lmpichf90 -Wl,--as-needed,-lnetcdf,--no-as-needed -Wl,--as-needed,-lnetcdff,--no-as-needed -Wl,--as-needed,-lsci_amd_mpi_mp,--no-as-needed -Wl,--as-needed,-lsci_amd_mp,--no-as-needed -ldl -Wl,--as-needed,-lmpifort_amd,--no-as-needed -Wl,--as-needed,-lmpi_amd,--no-as-needed -lmpi_gtl_hsa -Wl,--as-needed,-ldsmml,--no-as-needed -Wl,--as-needed,-lpmi,--no-as-needed -Wl,--as-needed,-lpmi2,--no-as-needed -lxpmem -L/opt/rocm-5.4.0/lib -L/opt/rocm-5.4.0/lib64 -L/opt/rocm-5.4.0/llvm/lib -Wl,--disable-new-dtags'" -inform warn -disable-vectorize-pragmas -mp -x 69 0x200 -x 69 0x400 -y 129 2 -x 68 0x1 -x 51 0x20 -x 119 0xa10000 -x 122 0x40 -x 123 0x1000 -x 127 4 -x 127 17 -x 19 0x400000 -x 28 0x40000 -x 120 0x10000000 -x 70 0x8000 -x 122 1 -x 125 0x20000 -x 164 0x800000 -quad -x 59 4 -tp px -x 120 0x1000 -x 124 0x1400 -y 15 2 -x 57 0x3b0000 -x 58 0x48000000 -x 49 0x100 -astype 0 -x 183 4 -x 121 0x800 -x 54 0x10 -x 70 0x40000000 -x 249 1023 -x 124 1 -y 163 0xc0000000 -x 189 0x10 -y 189 0x4000000 -x 183 0x10 -stbfile conftest-05f30a.stb -fopenmp-targets amdgcn-amd-amdhsa -fopenmp-targets-asm /tmp/conftest-05f30a.ll -asm /tmp/conftest-05f30a-amdgcn-amd-amdhsa.ll -warp_size 64 -march gfx90a
 "/opt/rocm-5.4.0/llvm/bin/clang-15" -cc1 -triple amdgcn-amd-amdhsa -aux-triple x86_64-unknown-linux-gnu -emit-llvm-bc -emit-llvm-uselists -disable-free -clear-ast-before-backend -disable-llvm-verifier -discard-value-names -main-file-name conftest.F -mrelocation-model pic -pic-level 2 -fhalf-no-semantic-interposition -mframe-pointer=all -ffp-contract=on -fno-rounding-math -mconstructor-aliases -target-cpu gfx90a -fcuda-is-device -fcuda-allow-variadic-functions -target-cpu gfx90a -mllvm -treat-scalable-fixed-error-as-warning -debugger-tuning=gdb -v -resource-dir /opt/rocm-5.4.0/llvm/lib/clang/15.0.0 -fdebug-compilation-dir=/lustre/orion/cli115/proj-shared/wuda/e3sm_scratch/X_f19_g16/bld/amdclanggpu/mpich/nodebug/threads/mct -ferror-limit 19 -fvisibility protected -fopenmp -fno-openmp-target-fast -fopenmp-target-new-runtime -fno-openmp-target-ignore-env-vars -fno-openmp-assume-no-thread-state -fno-openmp-assume-no-nested-parallelism -fgnuc-version=4.2.1 -no-opaque-pointers -mllvm -disable-promote-alloca-to-vector=true -fopenmp-is-device -fopenmp-host-ir-file-path /tmp/conftest-5e6b04.bc -faddrsig -o /tmp/conftest-306423.bc -x ir /tmp/conftest-05f30a.ll
clang -cc1 version 15.0.0 based upon LLVM 15.0.0git default target x86_64-unknown-linux-gnu
 "/opt/rocm-5.4.0/llvm/bin/clang-offload-bundler" -unbundle -type=a -input=/opt/cray/pe/mpich/8.1.28/gtl/lib/libmpi_gtl_hsa.a -targets=openmp-amdgcn-amd-amdhsa-gfx90a -output=/tmp/libbc-mpi_gtl_hsa-amdgcn-gfx90a-0117c1.a -allow-missing-bundles -hip-openmp-compatible
 "/opt/rocm-5.4.0/llvm/bin/clang-offload-bundler" -unbundle -type=a -input=/opt/cray/pe/gcc/12.2.0/snos/lib64/libgfortran.a -targets=openmp-amdgcn-amd-amdhsa-gfx90a -output=/tmp/libbc-gfortran-amdgcn-gfx90a-b4e0a4.a -allow-missing-bundles -hip-openmp-compatible
 "/opt/rocm-5.4.0/llvm/bin/clang-offload-bundler" -unbundle -type=a -input=/opt/cray/pe/mpich/8.1.28/ofi/amd/5.0/lib/libmpichf90.a -targets=openmp-amdgcn-amd-amdhsa-gfx90a -output=/tmp/libbc-mpichf90-amdgcn-gfx90a-6b96ea.a -allow-missing-bundles -hip-openmp-compatible
 "/opt/rocm-5.4.0/llvm/bin/clang-offload-bundler" -unbundle -type=a -input=/opt/cray/xpmem/2.8.4-1.0_7.3__ga37cbd9.shasta/lib64/libxpmem.a -targets=openmp-amdgcn-amd-amdhsa-gfx90a -output=/tmp/libbc-xpmem-amdgcn-gfx90a-02a66c.a -allow-missing-bundles -hip-openmp-compatible
 "/opt/rocm-5.4.0/llvm/bin/llvm-link" /tmp/libbc-mpi_gtl_hsa-amdgcn-gfx90a-0117c1.a /tmp/libbc-gfortran-amdgcn-gfx90a-b4e0a4.a /tmp/libbc-mpichf90-amdgcn-gfx90a-6b96ea.a /tmp/libbc-xpmem-amdgcn-gfx90a-02a66c.a /tmp/conftest-306423.bc -o /tmp/conftest-306423-gfx90a-prelinked-a35cf0.bc
 "/opt/rocm-5.4.0/llvm/bin/llvm-link" /tmp/conftest-306423-gfx90a-prelinked-a35cf0.bc --internalize --only-needed /opt/rocm-5.4.0/llvm/bin/../lib/libomptarget-new-amdgpu-gfx90a.bc /opt/rocm-5.4.0/amdgcn/bitcode/ocml.bc /opt/rocm-5.4.0/amdgcn/bitcode/ockl.bc /opt/rocm-5.4.0/amdgcn/bitcode/oclc_daz_opt_off.bc /opt/rocm-5.4.0/amdgcn/bitcode/oclc_unsafe_math_off.bc /opt/rocm-5.4.0/amdgcn/bitcode/oclc_finite_only_off.bc /opt/rocm-5.4.0/amdgcn/bitcode/oclc_correctly_rounded_sqrt_on.bc /opt/rocm-5.4.0/amdgcn/bitcode/oclc_wavefrontsize64_on.bc /opt/rocm-5.4.0/amdgcn/bitcode/oclc_isa_version_90a.bc /opt/rocm-5.4.0/amdgcn/bitcode/oclc_abi_version_400.bc -o /tmp/conftest-306423-gfx90a-linked-e01f7e.bc
 "/opt/rocm-5.4.0/llvm/bin/opt" /tmp/conftest-306423-gfx90a-linked-e01f7e.bc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx90a -o /tmp/conftest-306423-gfx90a-optimized-022f2d.bc
 "/opt/rocm-5.4.0/llvm/bin/llc" /tmp/conftest-306423-gfx90a-optimized-022f2d.bc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx90a -filetype=obj -o /tmp/conftest-306423-gfx90a-388ce6.o
 "/opt/rocm-5.4.0/llvm/bin/lld" -flavor gnu --no-undefined -shared -o /tmp/conftest-c82cb2.out /tmp/conftest-306423-gfx90a-388ce6.o -plugin-opt=mcpu=gfx90a
 "/opt/rocm-5.4.0/llvm/bin/clang-offload-wrapper" -target x86_64-unknown-linux-gnu -o /tmp/conftest-wrapper-6e805f.bc --offload-arch=gfx90a /tmp/conftest-c82cb2.out
 "/opt/rocm-5.4.0/llvm/bin/clang-15" -cc1 -triple x86_64-unknown-linux-gnu -emit-obj -mrelax-all --mrelax-relocations -disable-free -clear-ast-before-backend -disable-llvm-verifier -discard-value-names -main-file-name conftest-wrapper -mrelocation-model static -mframe-pointer=all -fmath-errno -ffp-contract=on -fno-rounding-math -mconstructor-aliases -funwind-tables=2 -target-cpu znver3 -mllvm -treat-scalable-fixed-error-as-warning -debugger-tuning=gdb -v -fcoverage-compilation-dir=/lustre/orion/cli115/proj-shared/wuda/e3sm_scratch/X_f19_g16/bld/amdclanggpu/mpich/nodebug/threads/mct -resource-dir /opt/rocm-5.4.0/llvm/lib/clang/15.0.0 -fdebug-compilation-dir=/lustre/orion/cli115/proj-shared/wuda/e3sm_scratch/X_f19_g16/bld/amdclanggpu/mpich/nodebug/threads/mct -ferror-limit 19 -fopenmp -fno-openmp-target-fast -fopenmp-target-new-runtime -fno-openmp-target-ignore-env-vars -fno-openmp-assume-no-thread-state -fno-openmp-assume-no-nested-parallelism -fgnuc-version=4.2.1 -no-opaque-pointers -fopenmp-targets=amdgcn-amd-amdhsa -faddrsig -D__GCC_HAVE_DWARF2_CFI_ASM=1 -o /tmp/conftest-wrapper-df22b1.o -x ir /tmp/conftest-wrapper-6e805f.bc
clang -cc1 version 15.0.0 based upon LLVM 15.0.0git default target x86_64-unknown-linux-gnu
 "/opt/rocm-5.4.0/llvm/bin/ld.lld" --eh-frame-hdr -m elf_x86_64 -dynamic-linker /lib64/ld-linux-x86-64.so.2 -o conftest /usr/lib64/gcc/x86_64-suse-linux/13/../../../../lib64/crt1.o /usr/lib64/gcc/x86_64-suse-linux/13/../../../../lib64/crti.o /usr/lib64/gcc/x86_64-suse-linux/13/crtbegin.o -L/opt/rocm-5.4.0/llvm/bin/../lib -L/opt/cray/pe/mpich/8.1.28/gtl/lib -L/opt/cray/pe/gcc/12.2.0/snos/lib64 -L/opt/cray/pe/mpich/8.1.28/ofi/amd/5.0/lib -L/opt/cray/pe/mpich/8.1.28/gtl/lib -L/opt/cray/pe/libsci/23.12.5/AMD/5.0/x86_64/lib -L/opt/cray/pe/parallel-netcdf/1.12.3.1/amd/4.3/lib -L/opt/cray/pe/netcdf-hdf5parallel/4.9.0.1/amd/4.3/lib -L/opt/cray/pe/hdf5-parallel/1.12.2.1/amd/4.3/lib -L/opt/cray/pe/dsmml/0.2.2/dsmml//lib -L/opt/cray/pe/pmi/6.1.13/lib -L/opt/cray/xpmem/2.8.4-1.0_7.3__ga37cbd9.shasta/lib64 -L/opt/rocm-5.4.0/lib -L/opt/rocm-5.4.0/lib64 -L/opt/rocm-5.4.0/llvm/lib -L/usr/lib64/gcc/x86_64-suse-linux/13 -L/usr/lib64/gcc/x86_64-suse-linux/13/../../../../lib64 -L/lib/../lib64 -L/usr/lib/../lib64 -L/usr/lib64/gcc/x86_64-suse-linux/13/../../../../x86_64-suse-linux/lib -L/lib -L/usr/lib -lmpi_gtl_hsa -lgfortran -lstdc++ /tmp/conftest-8d5656.o --as-needed -lhdf5_hl_parallel --no-as-needed --as-needed -lhdf5_parallel --no-as-needed --as-needed -lhdf5hl_fortran_parallel --no-as-needed --as-needed -lhdf5_fortran_parallel --no-as-needed --as-needed -lpnetcdf --no-as-needed -lmpichf90 --as-needed -lnetcdf --no-as-needed --as-needed -lnetcdff --no-as-needed --as-needed -lsci_amd_mpi_mp --no-as-needed --as-needed -lsci_amd_mp --no-as-needed -ldl --as-needed -lmpifort_amd --no-as-needed --as-needed -lmpi_amd --no-as-needed -lmpi_gtl_hsa --as-needed -ldsmml --no-as-needed --as-needed -lpmi --no-as-needed --as-needed -lpmi2 --no-as-needed -lxpmem --disable-new-dtags /tmp/conftest-wrapper-df22b1.o -lflangmain -L/opt/rocm-5.4.0/llvm/bin/../lib -lpgmath -lflang -lflangrti -lomp -lm -lrt -lpthread -rpath /opt/rocm-5.4.0/llvm/bin/../lib -lm -lomp -lomptarget -rpath /opt/rocm-5.4.0/llvm/bin/../lib -L/opt/rocm-5.4.0/llvm/lib -lgcc --as-needed -lgcc_s --no-as-needed -lpthread -lc -lgcc --as-needed -lgcc_s --no-as-needed /usr/lib64/gcc/x86_64-suse-linux/13/crtend.o /usr/lib64/gcc/x86_64-suse-linux/13/../../../../lib64/crtn.o
configure:4604: result: -v
configure:4606: checking for Fortran libraries of ftn
configure:4630: ftn -o conftest -fopenmp -I/lustre/orion/cli115/proj-shared/wuda/e3sm_scratch/X_f19_g16/bld/amdclanggpu/mpich/nodebug/threads/include -v -fopenmp -L/opt/cray/pe/mpich/8.1.28/gtl/lib -lmpi_gtl_hsa -L/opt/cray/pe/gcc/12.2.0/snos/lib64 -lgfortran -lstdc++ conftest.F
AMD flang-new version 15.0.0 (https://github.com/RadeonOpenCompute/llvm-project roc-5.4.0 22465 d6f0fe8b22e3d8ce0f2cbd657ea14b16043018a5)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /opt/rocm-5.4.0/llvm/bin
Found candidate GCC installation: /usr/lib64/gcc/x86_64-suse-linux/12
Found candidate GCC installation: /usr/lib64/gcc/x86_64-suse-linux/13
Found candidate GCC installation: /usr/lib64/gcc/x86_64-suse-linux/7
Selected GCC installation: /usr/lib64/gcc/x86_64-suse-linux/13
Candidate multilib: .;@m64
Selected multilib: .;@m64
Found HIP installation: /opt/rocm-5.4.0, version 5.4.22801
 "/opt/rocm-5.4.0/llvm/bin/flang1" conftest.F -x 69 0x1000 -opt 0 -terse 1 -inform warn -nohpf -nostatic -cmdline "'+flang -march=znver3 -fopenmp-targets=amdgcn-amd-amdhsa -Xopenmp-target=amdgcn-amd-amdhsa -march=gfx90a -D__CRAY_X86_TRENTO -D__CRAY_AMD_GFX90A -D__CRAYXT_COMPUTE_LINUX_TARGET -o conftest -fopenmp -I/lustre/orion/cli115/proj-shared/wuda/e3sm_scratch/X_f19_g16/bld/amdclanggpu/mpich/nodebug/threads/include -v -fopenmp -L/opt/cray/pe/mpich/8.1.28/gtl/lib -lmpi_gtl_hsa -L/opt/cray/pe/gcc/12.2.0/snos/lib64 -lgfortran -lstdc++ conftest.F -I/opt/cray/pe/mpich/8.1.28/ofi/amd/5.0/include -I/opt/cray/pe/libsci/23.12.5/AMD/5.0/x86_64/include -I/opt/cray/pe/parallel-netcdf/1.12.3.1/amd/4.3/include -I/opt/cray/pe/netcdf-hdf5parallel/4.9.0.1/amd/4.3/include -I/opt/cray/pe/hdf5-parallel/1.12.2.1/amd/4.3/include -I/opt/cray/pe/dsmml/0.2.2/dsmml//include -I/opt/cray/pe/pmi/6.1.13/include -I/opt/cray/xpmem/2.8.4-1.0_7.3__ga37cbd9.shasta/include -L/opt/cray/pe/mpich/8.1.28/ofi/amd/5.0/lib -L/opt/cray/pe/mpich/8.1.28/gtl/lib -L/opt/cray/pe/libsci/23.12.5/AMD/5.0/x86_64/lib -L/opt/cray/pe/parallel-netcdf/1.12.3.1/amd/4.3/lib -L/opt/cray/pe/netcdf-hdf5parallel/4.9.0.1/amd/4.3/lib -L/opt/cray/pe/hdf5-parallel/1.12.2.1/amd/4.3/lib -L/opt/cray/pe/dsmml/0.2.2/dsmml//lib -L/opt/cray/pe/pmi/6.1.13/lib -L/opt/cray/xpmem/2.8.4-1.0_7.3__ga37cbd9.shasta/lib64 -Wl,--as-needed,-lhdf5_hl_parallel,--no-as-needed -Wl,--as-needed,-lhdf5_parallel,--no-as-needed -Wl,--as-needed,-lhdf5hl_fortran_parallel,--no-as-needed -Wl,--as-needed,-lhdf5_fortran_parallel,--no-as-needed -Wl,--as-needed,-lpnetcdf,--no-as-needed -lmpichf90 -Wl,--as-needed,-lnetcdf,--no-as-needed -Wl,--as-needed,-lnetcdff,--no-as-needed -Wl,--as-needed,-lsci_amd_mpi_mp,--no-as-needed -Wl,--as-needed,-lsci_amd_mp,--no-as-needed -ldl -Wl,--as-needed,-lmpifort_amd,--no-as-needed -Wl,--as-needed,-lmpi_amd,--no-as-needed -lmpi_gtl_hsa -Wl,--as-needed,-ldsmml,--no-as-needed -Wl,--as-needed,-lpmi,--no-as-needed -Wl,--as-needed,-lpmi2,--no-as-needed -lxpmem -L/opt/rocm-5.4.0/lib -L/opt/rocm-5.4.0/lib64 -L/opt/rocm-5.4.0/llvm/lib -Wl,--disable-new-dtags'" -inform warn -disable-vectorize-pragmas -mp -x 69 0x200 -x 69 0x400 -y 129 2 -x 19 0x400000 -quad -x 7 0x100000 -x 68 0x1 -x 59 4 -x 15 2 -x 49 0x400004 -x 51 0x20 -x 57 0x4c -x 58 0x10000 -x 124 0x1000 -tp px -x 57 0xfb0000 -x 58 0x78031040 -x 47 0x08 -x 48 4608 -x 49 0x100 -stdinc /opt/rocm-5.4.0/llvm/bin/../include:/usr/local/include:/opt/rocm-5.4.0/llvm/lib/clang/15.0.0/include:/include:/usr/include -def unix -def __unix -def __unix__ -def linux -def __linux -def __linux__ -def __NO_MATH_INLINES -def __LP64__ -def __LONG_MAX__=9223372036854775807L -def "__SIZE_TYPE__=unsigned long int" -def "__PTRDIFF_TYPE__=long int" -def __x86_64 -def __x86_64__ -def __amd_64__amd64__ -def __k8 -def __k8__ -def __THROW= -def __extension__= -def __PGLLVM__ -preprocess -nofreeform -idir /lustre/orion/cli115/proj-shared/wuda/e3sm_scratch/X_f19_g16/bld/amdclanggpu/mpich/nodebug/threads/include -idir /opt/cray/pe/mpich/8.1.28/ofi/amd/5.0/include -idir /opt/cray/pe/libsci/23.12.5/AMD/5.0/x86_64/include -idir /opt/cray/pe/parallel-netcdf/1.12.3.1/amd/4.3/include -idir /opt/cray/pe/netcdf-hdf5parallel/4.9.0.1/amd/4.3/include -idir /opt/cray/pe/hdf5-parallel/1.12.2.1/amd/4.3/include -idir /opt/cray/pe/dsmml/0.2.2/dsmml//include -idir /opt/cray/pe/pmi/6.1.13/include -idir /opt/cray/xpmem/2.8.4-1.0_7.3__ga37cbd9.shasta/include -def __CRAY_X86_TRENTO -def __CRAY_AMD_GFX90A -def __CRAYXT_COMPUTE_LINUX_TARGET -vect 48 -x 54 1 -x 70 0x40000000 -y 163 0xc0000000 -x 189 0x10 -stbfile conftest-6915ee.stb -modexport conftest-6915ee.cmod -modindex conftest-6915ee.cmdx -output conftest-6915ee.ilm -fopenmp-targets amdgcn-amd-amdhsa
 "/opt/rocm-5.4.0/llvm/bin/flang2" conftest-6915ee.ilm -y 129 2 -x 6 0x100 -x 42 0x400000 -y 129 4 -x 129 0x400 -y 216 1 -ieee 1 -fn conftest.F -opt 0 -terse 1 -inform warn -cmdline "'+flang -march=znver3 -fopenmp-targets=amdgcn-amd-amdhsa -Xopenmp-target=amdgcn-amd-amdhsa -march=gfx90a -D__CRAY_X86_TRENTO -D__CRAY_AMD_GFX90A -D__CRAYXT_COMPUTE_LINUX_TARGET -o conftest -fopenmp -I/lustre/orion/cli115/proj-shared/wuda/e3sm_scratch/X_f19_g16/bld/amdclanggpu/mpich/nodebug/threads/include -v -fopenmp -L/opt/cray/pe/mpich/8.1.28/gtl/lib -lmpi_gtl_hsa -L/opt/cray/pe/gcc/12.2.0/snos/lib64 -lgfortran -lstdc++ conftest.F -I/opt/cray/pe/mpich/8.1.28/ofi/amd/5.0/include -I/opt/cray/pe/libsci/23.12.5/AMD/5.0/x86_64/include -I/opt/cray/pe/parallel-netcdf/1.12.3.1/amd/4.3/include -I/opt/cray/pe/netcdf-hdf5parallel/4.9.0.1/amd/4.3/include -I/opt/cray/pe/hdf5-parallel/1.12.2.1/amd/4.3/include -I/opt/cray/pe/dsmml/0.2.2/dsmml//include -I/opt/cray/pe/pmi/6.1.13/include -I/opt/cray/xpmem/2.8.4-1.0_7.3__ga37cbd9.shasta/include -L/opt/cray/pe/mpich/8.1.28/ofi/amd/5.0/lib -L/opt/cray/pe/mpich/8.1.28/gtl/lib -L/opt/cray/pe/libsci/23.12.5/AMD/5.0/x86_64/lib -L/opt/cray/pe/parallel-netcdf/1.12.3.1/amd/4.3/lib -L/opt/cray/pe/netcdf-hdf5parallel/4.9.0.1/amd/4.3/lib -L/opt/cray/pe/hdf5-parallel/1.12.2.1/amd/4.3/lib -L/opt/cray/pe/dsmml/0.2.2/dsmml//lib -L/opt/cray/pe/pmi/6.1.13/lib -L/opt/cray/xpmem/2.8.4-1.0_7.3__ga37cbd9.shasta/lib64 -Wl,--as-needed,-lhdf5_hl_parallel,--no-as-needed -Wl,--as-needed,-lhdf5_parallel,--no-as-needed -Wl,--as-needed,-lhdf5hl_fortran_parallel,--no-as-needed -Wl,--as-needed,-lhdf5_fortran_parallel,--no-as-needed -Wl,--as-needed,-lpnetcdf,--no-as-needed -lmpichf90 -Wl,--as-needed,-lnetcdf,--no-as-needed -Wl,--as-needed,-lnetcdff,--no-as-needed -Wl,--as-needed,-lsci_amd_mpi_mp,--no-as-needed -Wl,--as-needed,-lsci_amd_mp,--no-as-needed -ldl -Wl,--as-needed,-lmpifort_amd,--no-as-needed -Wl,--as-needed,-lmpi_amd,--no-as-needed -lmpi_gtl_hsa -Wl,--as-needed,-ldsmml,--no-as-needed -Wl,--as-needed,-lpmi,--no-as-needed -Wl,--as-needed,-lpmi2,--no-as-needed -lxpmem -L/opt/rocm-5.4.0/lib -L/opt/rocm-5.4.0/lib64 -L/opt/rocm-5.4.0/llvm/lib -Wl,--disable-new-dtags'" -inform warn -disable-vectorize-pragmas -mp -x 69 0x200 -x 69 0x400 -y 129 2 -x 68 0x1 -x 51 0x20 -x 119 0xa10000 -x 122 0x40 -x 123 0x1000 -x 127 4 -x 127 17 -x 19 0x400000 -x 28 0x40000 -x 120 0x10000000 -x 70 0x8000 -x 122 1 -x 125 0x20000 -x 164 0x800000 -quad -x 59 4 -tp px -x 120 0x1000 -x 124 0x1400 -y 15 2 -x 57 0x3b0000 -x 58 0x48000000 -x 49 0x100 -astype 0 -x 183 4 -x 121 0x800 -x 54 0x10 -x 70 0x40000000 -x 249 1023 -x 124 1 -y 163 0xc0000000 -x 189 0x10 -y 189 0x4000000 -x 183 0x10 -stbfile conftest-6915ee.stb -fopenmp-targets amdgcn-amd-amdhsa -fopenmp-targets-asm /tmp/conftest-6915ee-amdgcn-amd-amdhsa.ll -asm /tmp/conftest-6915ee.ll
 "/opt/rocm-5.4.0/llvm/bin/clang-15" -cc1 -triple x86_64-unknown-linux-gnu -emit-llvm-bc -emit-llvm-uselists -disable-free -clear-ast-before-backend -disable-llvm-verifier -discard-value-names -main-file-name conftest.F -mrelocation-model static -mframe-pointer=all -fmath-errno -ffp-contract=on -fno-rounding-math -mconstructor-aliases -funwind-tables=2 -target-cpu znver3 -mllvm -treat-scalable-fixed-error-as-warning -debugger-tuning=gdb -v -fcoverage-compilation-dir=/lustre/orion/cli115/proj-shared/wuda/e3sm_scratch/X_f19_g16/bld/amdclanggpu/mpich/nodebug/threads/mct -resource-dir /opt/rocm-5.4.0/llvm/lib/clang/15.0.0 -fdebug-compilation-dir=/lustre/orion/cli115/proj-shared/wuda/e3sm_scratch/X_f19_g16/bld/amdclanggpu/mpich/nodebug/threads/mct -ferror-limit 19 -fopenmp -fno-openmp-target-fast -fopenmp-target-new-runtime -fno-openmp-target-ignore-env-vars -fno-openmp-assume-no-thread-state -fno-openmp-assume-no-nested-parallelism -fgnuc-version=4.2.1 -no-opaque-pointers -disable-llvm-passes -fopenmp-targets=amdgcn-amd-amdhsa -faddrsig -D__GCC_HAVE_DWARF2_CFI_ASM=1 -o /tmp/conftest-f07d98.bc -x ir /tmp/conftest-6915ee.ll
clang -cc1 version 15.0.0 based upon LLVM 15.0.0git default target x86_64-unknown-linux-gnu
 "/opt/rocm-5.4.0/llvm/bin/clang-15" -cc1 -triple x86_64-unknown-linux-gnu -emit-obj -mrelax-all --mrelax-relocations -disable-free -clear-ast-before-backend -disable-llvm-verifier -discard-value-names -main-file-name conftest.F -mrelocation-model static -mframe-pointer=all -fmath-errno -ffp-contract=on -fno-rounding-math -mconstructor-aliases -funwind-tables=2 -target-cpu znver3 -mllvm -treat-scalable-fixed-error-as-warning -debugger-tuning=gdb -v -fcoverage-compilation-dir=/lustre/orion/cli115/proj-shared/wuda/e3sm_scratch/X_f19_g16/bld/amdclanggpu/mpich/nodebug/threads/mct -resource-dir /opt/rocm-5.4.0/llvm/lib/clang/15.0.0 -fdebug-compilation-dir=/lustre/orion/cli115/proj-shared/wuda/e3sm_scratch/X_f19_g16/bld/amdclanggpu/mpich/nodebug/threads/mct -ferror-limit 19 -fopenmp -fno-openmp-target-fast -fopenmp-target-new-runtime -fno-openmp-target-ignore-env-vars -fno-openmp-assume-no-thread-state -fno-openmp-assume-no-nested-parallelism -fgnuc-version=4.2.1 -no-opaque-pointers -fopenmp-targets=amdgcn-amd-amdhsa -faddrsig -D__GCC_HAVE_DWARF2_CFI_ASM=1 -o /tmp/conftest-9c1d04.o -x ir /tmp/conftest-f07d98.bc
clang -cc1 version 15.0.0 based upon LLVM 15.0.0git default target x86_64-unknown-linux-gnu
 "/opt/rocm-5.4.0/llvm/bin/flang1" conftest.F -x 69 0x1000 -opt 0 -terse 1 -inform warn -nohpf -nostatic -cmdline "'+flang -march=znver3 -fopenmp-targets=amdgcn-amd-amdhsa -Xopenmp-target=amdgcn-amd-amdhsa -march=gfx90a -D__CRAY_X86_TRENTO -D__CRAY_AMD_GFX90A -D__CRAYXT_COMPUTE_LINUX_TARGET -o conftest -fopenmp -I/lustre/orion/cli115/proj-shared/wuda/e3sm_scratch/X_f19_g16/bld/amdclanggpu/mpich/nodebug/threads/include -v -fopenmp -L/opt/cray/pe/mpich/8.1.28/gtl/lib -lmpi_gtl_hsa -L/opt/cray/pe/gcc/12.2.0/snos/lib64 -lgfortran -lstdc++ conftest.F -I/opt/cray/pe/mpich/8.1.28/ofi/amd/5.0/include -I/opt/cray/pe/libsci/23.12.5/AMD/5.0/x86_64/include -I/opt/cray/pe/parallel-netcdf/1.12.3.1/amd/4.3/include -I/opt/cray/pe/netcdf-hdf5parallel/4.9.0.1/amd/4.3/include -I/opt/cray/pe/hdf5-parallel/1.12.2.1/amd/4.3/include -I/opt/cray/pe/dsmml/0.2.2/dsmml//include -I/opt/cray/pe/pmi/6.1.13/include -I/opt/cray/xpmem/2.8.4-1.0_7.3__ga37cbd9.shasta/include -L/opt/cray/pe/mpich/8.1.28/ofi/amd/5.0/lib -L/opt/cray/pe/mpich/8.1.28/gtl/lib -L/opt/cray/pe/libsci/23.12.5/AMD/5.0/x86_64/lib -L/opt/cray/pe/parallel-netcdf/1.12.3.1/amd/4.3/lib -L/opt/cray/pe/netcdf-hdf5parallel/4.9.0.1/amd/4.3/lib -L/opt/cray/pe/hdf5-parallel/1.12.2.1/amd/4.3/lib -L/opt/cray/pe/dsmml/0.2.2/dsmml//lib -L/opt/cray/pe/pmi/6.1.13/lib -L/opt/cray/xpmem/2.8.4-1.0_7.3__ga37cbd9.shasta/lib64 -Wl,--as-needed,-lhdf5_hl_parallel,--no-as-needed -Wl,--as-needed,-lhdf5_parallel,--no-as-needed -Wl,--as-needed,-lhdf5hl_fortran_parallel,--no-as-needed -Wl,--as-needed,-lhdf5_fortran_parallel,--no-as-needed -Wl,--as-needed,-lpnetcdf,--no-as-needed -lmpichf90 -Wl,--as-needed,-lnetcdf,--no-as-needed -Wl,--as-needed,-lnetcdff,--no-as-needed -Wl,--as-needed,-lsci_amd_mpi_mp,--no-as-needed -Wl,--as-needed,-lsci_amd_mp,--no-as-needed -ldl -Wl,--as-needed,-lmpifort_amd,--no-as-needed -Wl,--as-needed,-lmpi_amd,--no-as-needed -lmpi_gtl_hsa -Wl,--as-needed,-ldsmml,--no-as-needed -Wl,--as-needed,-lpmi,--no-as-needed -Wl,--as-needed,-lpmi2,--no-as-needed -lxpmem -L/opt/rocm-5.4.0/lib -L/opt/rocm-5.4.0/lib64 -L/opt/rocm-5.4.0/llvm/lib -Wl,--disable-new-dtags'" -inform warn -disable-vectorize-pragmas -mp -x 69 0x200 -x 69 0x400 -y 129 2 -x 19 0x400000 -quad -x 7 0x100000 -x 68 0x1 -x 59 4 -x 15 2 -x 49 0x400004 -x 51 0x20 -x 57 0x4c -x 58 0x10000 -x 124 0x1000 -tp px -x 57 0xfb0000 -x 58 0x78031040 -x 47 0x08 -x 48 4608 -x 49 0x100 -stdinc /opt/rocm-5.4.0/llvm/bin/../include -def unix -def __unix -def __unix__ -def linux -def __linux -def __linux__ -def __NO_MATH_INLINES -def __LP64__ -def __LONG_MAX__=9223372036854775807L -def "__SIZE_TYPE__=unsigned long int" -def "__PTRDIFF_TYPE__=long int" -def __THROW= -def __extension__= -def __PGLLVM__ -preprocess -nofreeform -idir /lustre/orion/cli115/proj-shared/wuda/e3sm_scratch/X_f19_g16/bld/amdclanggpu/mpich/nodebug/threads/include -idir /opt/cray/pe/mpich/8.1.28/ofi/amd/5.0/include -idir /opt/cray/pe/libsci/23.12.5/AMD/5.0/x86_64/include -idir /opt/cray/pe/parallel-netcdf/1.12.3.1/amd/4.3/include -idir /opt/cray/pe/netcdf-hdf5parallel/4.9.0.1/amd/4.3/include -idir /opt/cray/pe/hdf5-parallel/1.12.2.1/amd/4.3/include -idir /opt/cray/pe/dsmml/0.2.2/dsmml//include -idir /opt/cray/pe/pmi/6.1.13/include -idir /opt/cray/xpmem/2.8.4-1.0_7.3__ga37cbd9.shasta/include -def __CRAY_X86_TRENTO -def __CRAY_AMD_GFX90A -def __CRAYXT_COMPUTE_LINUX_TARGET -vect 48 -x 54 1 -x 70 0x40000000 -y 163 0xc0000000 -x 189 0x10 -stbfile conftest-2989de.stb -modexport conftest-2989de.cmod -modindex conftest-2989de.cmdx -output conftest-2989de.ilm -fopenmp-targets amdgcn-amd-amdhsa
 "/opt/rocm-5.4.0/llvm/bin/flang2" conftest-2989de.ilm -y 129 2 -x 62 8 -x 6 0x100 -x 42 0x400000 -y 129 4 -x 129 0x400 -y 216 1 -ieee 1 -fn conftest.F -opt 0 -terse 1 -inform warn -cmdline "'+flang -march=znver3 -fopenmp-targets=amdgcn-amd-amdhsa -Xopenmp-target=amdgcn-amd-amdhsa -march=gfx90a -D__CRAY_X86_TRENTO -D__CRAY_AMD_GFX90A -D__CRAYXT_COMPUTE_LINUX_TARGET -o conftest -fopenmp -I/lustre/orion/cli115/proj-shared/wuda/e3sm_scratch/X_f19_g16/bld/amdclanggpu/mpich/nodebug/threads/include -v -fopenmp -L/opt/cray/pe/mpich/8.1.28/gtl/lib -lmpi_gtl_hsa -L/opt/cray/pe/gcc/12.2.0/snos/lib64 -lgfortran -lstdc++ conftest.F -I/opt/cray/pe/mpich/8.1.28/ofi/amd/5.0/include -I/opt/cray/pe/libsci/23.12.5/AMD/5.0/x86_64/include -I/opt/cray/pe/parallel-netcdf/1.12.3.1/amd/4.3/include -I/opt/cray/pe/netcdf-hdf5parallel/4.9.0.1/amd/4.3/include -I/opt/cray/pe/hdf5-parallel/1.12.2.1/amd/4.3/include -I/opt/cray/pe/dsmml/0.2.2/dsmml//include -I/opt/cray/pe/pmi/6.1.13/include -I/opt/cray/xpmem/2.8.4-1.0_7.3__ga37cbd9.shasta/include -L/opt/cray/pe/mpich/8.1.28/ofi/amd/5.0/lib -L/opt/cray/pe/mpich/8.1.28/gtl/lib -L/opt/cray/pe/libsci/23.12.5/AMD/5.0/x86_64/lib -L/opt/cray/pe/parallel-netcdf/1.12.3.1/amd/4.3/lib -L/opt/cray/pe/netcdf-hdf5parallel/4.9.0.1/amd/4.3/lib -L/opt/cray/pe/hdf5-parallel/1.12.2.1/amd/4.3/lib -L/opt/cray/pe/dsmml/0.2.2/dsmml//lib -L/opt/cray/pe/pmi/6.1.13/lib -L/opt/cray/xpmem/2.8.4-1.0_7.3__ga37cbd9.shasta/lib64 -Wl,--as-needed,-lhdf5_hl_parallel,--no-as-needed -Wl,--as-needed,-lhdf5_parallel,--no-as-needed -Wl,--as-needed,-lhdf5hl_fortran_parallel,--no-as-needed -Wl,--as-needed,-lhdf5_fortran_parallel,--no-as-needed -Wl,--as-needed,-lpnetcdf,--no-as-needed -lmpichf90 -Wl,--as-needed,-lnetcdf,--no-as-needed -Wl,--as-needed,-lnetcdff,--no-as-needed -Wl,--as-needed,-lsci_amd_mpi_mp,--no-as-needed -Wl,--as-needed,-lsci_amd_mp,--no-as-needed -ldl -Wl,--as-needed,-lmpifort_amd,--no-as-needed -Wl,--as-needed,-lmpi_amd,--no-as-needed -lmpi_gtl_hsa -Wl,--as-needed,-ldsmml,--no-as-needed -Wl,--as-needed,-lpmi,--no-as-needed -Wl,--as-needed,-lpmi2,--no-as-needed -lxpmem -L/opt/rocm-5.4.0/lib -L/opt/rocm-5.4.0/lib64 -L/opt/rocm-5.4.0/llvm/lib -Wl,--disable-new-dtags'" -inform warn -disable-vectorize-pragmas -mp -x 69 0x200 -x 69 0x400 -y 129 2 -x 68 0x1 -x 51 0x20 -x 119 0xa10000 -x 122 0x40 -x 123 0x1000 -x 127 4 -x 127 17 -x 19 0x400000 -x 28 0x40000 -x 120 0x10000000 -x 70 0x8000 -x 122 1 -x 125 0x20000 -x 164 0x800000 -quad -x 59 4 -tp px -x 120 0x1000 -x 124 0x1400 -y 15 2 -x 57 0x3b0000 -x 58 0x48000000 -x 49 0x100 -astype 0 -x 183 4 -x 121 0x800 -x 54 0x10 -x 70 0x40000000 -x 249 1023 -x 124 1 -y 163 0xc0000000 -x 189 0x10 -y 189 0x4000000 -x 183 0x10 -stbfile conftest-2989de.stb -fopenmp-targets amdgcn-amd-amdhsa -fopenmp-targets-asm /tmp/conftest-2989de.ll -asm /tmp/conftest-2989de-amdgcn-amd-amdhsa.ll -warp_size 64 -march gfx90a
 "/opt/rocm-5.4.0/llvm/bin/clang-15" -cc1 -triple amdgcn-amd-amdhsa -aux-triple x86_64-unknown-linux-gnu -emit-llvm-bc -emit-llvm-uselists -disable-free -clear-ast-before-backend -disable-llvm-verifier -discard-value-names -main-file-name conftest.F -mrelocation-model pic -pic-level 2 -fhalf-no-semantic-interposition -mframe-pointer=all -ffp-contract=on -fno-rounding-math -mconstructor-aliases -target-cpu gfx90a -fcuda-is-device -fcuda-allow-variadic-functions -target-cpu gfx90a -mllvm -treat-scalable-fixed-error-as-warning -debugger-tuning=gdb -v -resource-dir /opt/rocm-5.4.0/llvm/lib/clang/15.0.0 -fdebug-compilation-dir=/lustre/orion/cli115/proj-shared/wuda/e3sm_scratch/X_f19_g16/bld/amdclanggpu/mpich/nodebug/threads/mct -ferror-limit 19 -fvisibility protected -fopenmp -fno-openmp-target-fast -fopenmp-target-new-runtime -fno-openmp-target-ignore-env-vars -fno-openmp-assume-no-thread-state -fno-openmp-assume-no-nested-parallelism -fgnuc-version=4.2.1 -no-opaque-pointers -mllvm -disable-promote-alloca-to-vector=true -fopenmp-is-device -fopenmp-host-ir-file-path /tmp/conftest-f07d98.bc -faddrsig -o /tmp/conftest-a366fb.bc -x ir /tmp/conftest-2989de.ll
clang -cc1 version 15.0.0 based upon LLVM 15.0.0git default target x86_64-unknown-linux-gnu
 "/opt/rocm-5.4.0/llvm/bin/clang-offload-bundler" -unbundle -type=a -input=/opt/cray/pe/mpich/8.1.28/gtl/lib/libmpi_gtl_hsa.a -targets=openmp-amdgcn-amd-amdhsa-gfx90a -output=/tmp/libbc-mpi_gtl_hsa-amdgcn-gfx90a-0a477d.a -allow-missing-bundles -hip-openmp-compatible
 "/opt/rocm-5.4.0/llvm/bin/clang-offload-bundler" -unbundle -type=a -input=/opt/cray/pe/gcc/12.2.0/snos/lib64/libgfortran.a -targets=openmp-amdgcn-amd-amdhsa-gfx90a -output=/tmp/libbc-gfortran-amdgcn-gfx90a-f090e9.a -allow-missing-bundles -hip-openmp-compatible
 "/opt/rocm-5.4.0/llvm/bin/clang-offload-bundler" -unbundle -type=a -input=/opt/cray/pe/mpich/8.1.28/ofi/amd/5.0/lib/libmpichf90.a -targets=openmp-amdgcn-amd-amdhsa-gfx90a -output=/tmp/libbc-mpichf90-amdgcn-gfx90a-402da0.a -allow-missing-bundles -hip-openmp-compatible
 "/opt/rocm-5.4.0/llvm/bin/clang-offload-bundler" -unbundle -type=a -input=/opt/cray/xpmem/2.8.4-1.0_7.3__ga37cbd9.shasta/lib64/libxpmem.a -targets=openmp-amdgcn-amd-amdhsa-gfx90a -output=/tmp/libbc-xpmem-amdgcn-gfx90a-b431a3.a -allow-missing-bundles -hip-openmp-compatible
 "/opt/rocm-5.4.0/llvm/bin/llvm-link" /tmp/libbc-mpi_gtl_hsa-amdgcn-gfx90a-0a477d.a /tmp/libbc-gfortran-amdgcn-gfx90a-f090e9.a /tmp/libbc-mpichf90-amdgcn-gfx90a-402da0.a /tmp/libbc-xpmem-amdgcn-gfx90a-b431a3.a /tmp/conftest-a366fb.bc -o /tmp/conftest-a366fb-gfx90a-prelinked-cb91d4.bc
 "/opt/rocm-5.4.0/llvm/bin/llvm-link" /tmp/conftest-a366fb-gfx90a-prelinked-cb91d4.bc --internalize --only-needed /opt/rocm-5.4.0/llvm/bin/../lib/libomptarget-new-amdgpu-gfx90a.bc /opt/rocm-5.4.0/amdgcn/bitcode/ocml.bc /opt/rocm-5.4.0/amdgcn/bitcode/ockl.bc /opt/rocm-5.4.0/amdgcn/bitcode/oclc_daz_opt_off.bc /opt/rocm-5.4.0/amdgcn/bitcode/oclc_unsafe_math_off.bc /opt/rocm-5.4.0/amdgcn/bitcode/oclc_finite_only_off.bc /opt/rocm-5.4.0/amdgcn/bitcode/oclc_correctly_rounded_sqrt_on.bc /opt/rocm-5.4.0/amdgcn/bitcode/oclc_wavefrontsize64_on.bc /opt/rocm-5.4.0/amdgcn/bitcode/oclc_isa_version_90a.bc /opt/rocm-5.4.0/amdgcn/bitcode/oclc_abi_version_400.bc -o /tmp/conftest-a366fb-gfx90a-linked-5df956.bc
 "/opt/rocm-5.4.0/llvm/bin/opt" /tmp/conftest-a366fb-gfx90a-linked-5df956.bc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx90a -o /tmp/conftest-a366fb-gfx90a-optimized-647055.bc
 "/opt/rocm-5.4.0/llvm/bin/llc" /tmp/conftest-a366fb-gfx90a-optimized-647055.bc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx90a -filetype=obj -o /tmp/conftest-a366fb-gfx90a-995c6f.o
 "/opt/rocm-5.4.0/llvm/bin/lld" -flavor gnu --no-undefined -shared -o /tmp/conftest-0652b3.out /tmp/conftest-a366fb-gfx90a-995c6f.o -plugin-opt=mcpu=gfx90a
 "/opt/rocm-5.4.0/llvm/bin/clang-offload-wrapper" -target x86_64-unknown-linux-gnu -o /tmp/conftest-wrapper-c14f2e.bc --offload-arch=gfx90a /tmp/conftest-0652b3.out
 "/opt/rocm-5.4.0/llvm/bin/clang-15" -cc1 -triple x86_64-unknown-linux-gnu -emit-obj -mrelax-all --mrelax-relocations -disable-free -clear-ast-before-backend -disable-llvm-verifier -discard-value-names -main-file-name conftest-wrapper -mrelocation-model static -mframe-pointer=all -fmath-errno -ffp-contract=on -fno-rounding-math -mconstructor-aliases -funwind-tables=2 -target-cpu znver3 -mllvm -treat-scalable-fixed-error-as-warning -debugger-tuning=gdb -v -fcoverage-compilation-dir=/lustre/orion/cli115/proj-shared/wuda/e3sm_scratch/X_f19_g16/bld/amdclanggpu/mpich/nodebug/threads/mct -resource-dir /opt/rocm-5.4.0/llvm/lib/clang/15.0.0 -fdebug-compilation-dir=/lustre/orion/cli115/proj-shared/wuda/e3sm_scratch/X_f19_g16/bld/amdclanggpu/mpich/nodebug/threads/mct -ferror-limit 19 -fopenmp -fno-openmp-target-fast -fopenmp-target-new-runtime -fno-openmp-target-ignore-env-vars -fno-openmp-assume-no-thread-state -fno-openmp-assume-no-nested-parallelism -fgnuc-version=4.2.1 -no-opaque-pointers -fopenmp-targets=amdgcn-amd-amdhsa -faddrsig -D__GCC_HAVE_DWARF2_CFI_ASM=1 -o /tmp/conftest-wrapper-2f9b06.o -x ir /tmp/conftest-wrapper-c14f2e.bc
clang -cc1 version 15.0.0 based upon LLVM 15.0.0git default target x86_64-unknown-linux-gnu
 "/opt/rocm-5.4.0/llvm/bin/ld.lld" --eh-frame-hdr -m elf_x86_64 -dynamic-linker /lib64/ld-linux-x86-64.so.2 -o conftest /usr/lib64/gcc/x86_64-suse-linux/13/../../../../lib64/crt1.o /usr/lib64/gcc/x86_64-suse-linux/13/../../../../lib64/crti.o /usr/lib64/gcc/x86_64-suse-linux/13/crtbegin.o -L/opt/rocm-5.4.0/llvm/bin/../lib -L/opt/cray/pe/mpich/8.1.28/gtl/lib -L/opt/cray/pe/gcc/12.2.0/snos/lib64 -L/opt/cray/pe/mpich/8.1.28/ofi/amd/5.0/lib -L/opt/cray/pe/mpich/8.1.28/gtl/lib -L/opt/cray/pe/libsci/23.12.5/AMD/5.0/x86_64/lib -L/opt/cray/pe/parallel-netcdf/1.12.3.1/amd/4.3/lib -L/opt/cray/pe/netcdf-hdf5parallel/4.9.0.1/amd/4.3/lib -L/opt/cray/pe/hdf5-parallel/1.12.2.1/amd/4.3/lib -L/opt/cray/pe/dsmml/0.2.2/dsmml//lib -L/opt/cray/pe/pmi/6.1.13/lib -L/opt/cray/xpmem/2.8.4-1.0_7.3__ga37cbd9.shasta/lib64 -L/opt/rocm-5.4.0/lib -L/opt/rocm-5.4.0/lib64 -L/opt/rocm-5.4.0/llvm/lib -L/usr/lib64/gcc/x86_64-suse-linux/13 -L/usr/lib64/gcc/x86_64-suse-linux/13/../../../../lib64 -L/lib/../lib64 -L/usr/lib/../lib64 -L/usr/lib64/gcc/x86_64-suse-linux/13/../../../../x86_64-suse-linux/lib -L/lib -L/usr/lib -lmpi_gtl_hsa -lgfortran -lstdc++ /tmp/conftest-9c1d04.o --as-needed -lhdf5_hl_parallel --no-as-needed --as-needed -lhdf5_parallel --no-as-needed --as-needed -lhdf5hl_fortran_parallel --no-as-needed --as-needed -lhdf5_fortran_parallel --no-as-needed --as-needed -lpnetcdf --no-as-needed -lmpichf90 --as-needed -lnetcdf --no-as-needed --as-needed -lnetcdff --no-as-needed --as-needed -lsci_amd_mpi_mp --no-as-needed --as-needed -lsci_amd_mp --no-as-needed -ldl --as-needed -lmpifort_amd --no-as-needed --as-needed -lmpi_amd --no-as-needed -lmpi_gtl_hsa --as-needed -ldsmml --no-as-needed --as-needed -lpmi --no-as-needed --as-needed -lpmi2 --no-as-needed -lxpmem --disable-new-dtags /tmp/conftest-wrapper-2f9b06.o -lflangmain -L/opt/rocm-5.4.0/llvm/bin/../lib -lpgmath -lflang -lflangrti -lomp -lm -lrt -lpthread -rpath /opt/rocm-5.4.0/llvm/bin/../lib -lm -lomp -lomptarget -rpath /opt/rocm-5.4.0/llvm/bin/../lib -L/opt/rocm-5.4.0/llvm/lib -lgcc --as-needed -lgcc_s --no-as-needed -lpthread -lc -lgcc --as-needed -lgcc_s --no-as-needed /usr/lib64/gcc/x86_64-suse-linux/13/crtend.o /usr/lib64/gcc/x86_64-suse-linux/13/../../../../lib64/crtn.o
configure:4846: result:  /tmp/libbc-mpi_gtl_hsa-amdgcn-gfx90a-0a477d.a /tmp/libbc-gfortran-amdgcn-gfx90a-f090e9.a /tmp/libbc-mpichf90-amdgcn-gfx90a-402da0.a /tmp/libbc-xpmem-amdgcn-gfx90a-b431a3.a -L/opt/rocm-5.4.0/llvm/bin/../lib -L/opt/cray/pe/mpich/8.1.28/gtl/lib -L/opt/cray/pe/gcc/12.2.0/snos/lib64 -L/opt/cray/pe/mpich/8.1.28/ofi/amd/5.0/lib -L/opt/cray/pe/libsci/23.12.5/AMD/5.0/x86_64/lib -L/opt/cray/pe/parallel-netcdf/1.12.3.1/amd/4.3/lib -L/opt/cray/pe/netcdf-hdf5parallel/4.9.0.1/amd/4.3/lib -L/opt/cray/pe/hdf5-parallel/1.12.2.1/amd/4.3/lib -L/opt/cray/pe/dsmml/0.2.2/dsmml//lib -L/opt/cray/pe/pmi/6.1.13/lib -L/opt/cray/xpmem/2.8.4-1.0_7.3__ga37cbd9.shasta/lib64 -L/opt/rocm-5.4.0/lib -L/opt/rocm-5.4.0/lib64 -L/opt/rocm-5.4.0/llvm/lib -L/usr/lib64/gcc/x86_64-suse-linux/13 -L/usr/lib64/gcc/x86_64-suse-linux/13/../../../../lib64 -L/lib/../lib64 -L/usr/lib/../lib64 -L/usr/lib64/gcc/x86_64-suse-linux/13/../../../../x86_64-suse-linux/lib -L/lib -L/usr/lib -lmpi_gtl_hsa -lgfortran -lstdc++ -lhdf5_hl_parallel -lhdf5_parallel -lhdf5hl_fortran_parallel -lhdf5_fortran_parallel -lpnetcdf -lmpichf90 -lnetcdf -lnetcdff -lsci_amd_mpi_mp -lsci_amd_mp -ldl -lmpifort_amd -lmpi_amd -ldsmml -lpmi -lpmi2 -lxpmem -lflangmain -lpgmath -lflang -lflangrti -lomp -lm -lrt -lpthread -lomptarget
configure:4862: checking for dummy main to link with Fortran libraries
configure:4897: cc -o conftest -fopenmp -I/lustre/orion/cli115/proj-shared/wuda/e3sm_scratch/X_f19_g16/bld/amdclanggpu/mpich/nodebug/threads/include  -fopenmp -L/opt/cray/pe/mpich/8.1.28/gtl/lib -lmpi_gtl_hsa -L/opt/cray/pe/gcc/12.2.0/snos/lib64 -lgfortran -lstdc++ conftest.c   /tmp/libbc-mpi_gtl_hsa-amdgcn-gfx90a-0a477d.a /tmp/libbc-gfortran-amdgcn-gfx90a-f090e9.a /tmp/libbc-mpichf90-amdgcn-gfx90a-402da0.a /tmp/libbc-xpmem-amdgcn-gfx90a-b431a3.a -L/opt/rocm-5.4.0/llvm/bin/../lib -L/opt/cray/pe/mpich/8.1.28/gtl/lib -L/opt/cray/pe/gcc/12.2.0/snos/lib64 -L/opt/cray/pe/mpich/8.1.28/ofi/amd/5.0/lib -L/opt/cray/pe/libsci/23.12.5/AMD/5.0/x86_64/lib -L/opt/cray/pe/parallel-netcdf/1.12.3.1/amd/4.3/lib -L/opt/cray/pe/netcdf-hdf5parallel/4.9.0.1/amd/4.3/lib -L/opt/cray/pe/hdf5-parallel/1.12.2.1/amd/4.3/lib -L/opt/cray/pe/dsmml/0.2.2/dsmml//lib -L/opt/cray/pe/pmi/6.1.13/lib -L/opt/cray/xpmem/2.8.4-1.0_7.3__ga37cbd9.shasta/lib64 -L/opt/rocm-5.4.0/lib -L/opt/rocm-5.4.0/lib64 -L/opt/rocm-5.4.0/llvm/lib -L/usr/lib64/gcc/x86_64-suse-linux/13 -L/usr/lib64/gcc/x86_64-suse-linux/13/../../../../lib64 -L/lib/../lib64 -L/usr/lib/../lib64 -L/usr/lib64/gcc/x86_64-suse-linux/13/../../../../x86_64-suse-linux/lib -L/lib -L/usr/lib -lmpi_gtl_hsa -lgfortran -lstdc++ -lhdf5_hl_parallel -lhdf5_parallel -lhdf5hl_fortran_parallel -lhdf5_fortran_parallel -lpnetcdf -lmpichf90 -lnetcdf -lnetcdff -lsci_amd_mpi_mp -lsci_amd_mp -ldl -lmpifort_amd -lmpi_amd -ldsmml -lpmi -lpmi2 -lxpmem -lflangmain -lpgmath -lflang -lflangrti -lomp -lm -lrt -lpthread -lomptarget >&5
clang-15: error: no such file or directory: '/tmp/libbc-mpi_gtl_hsa-amdgcn-gfx90a-0a477d.a'
clang-15: error: no such file or directory: '/tmp/libbc-gfortran-amdgcn-gfx90a-f090e9.a'
clang-15: error: no such file or directory: '/tmp/libbc-mpichf90-amdgcn-gfx90a-402da0.a'
clang-15: error: no such file or directory: '/tmp/libbc-xpmem-amdgcn-gfx90a-b431a3.a'
configure:4897: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "MCT"
| #define PACKAGE_TARNAME "mct"
| #define PACKAGE_VERSION "2.10"
| #define PACKAGE_STRING "MCT 2.10"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define HAVE_STDIO_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_UNISTD_H 1
| #define STDC_HEADERS 1
| #define HAVE_MPI 1
| /* end confdefs.h.  */
| 
| #ifdef FC_DUMMY_MAIN
| #ifndef FC_DUMMY_MAIN_EQ_F77
| #  ifdef __cplusplus
|      extern "C"
| #  endif
|    int FC_DUMMY_MAIN() { return 1; }
| #endif
| #endif
| int
| main (void)
| {
| 
|   ;
|   return 0;
| }
configure:4927: cc -o conftest -fopenmp -I/lustre/orion/cli115/proj-shared/wuda/e3sm_scratch/X_f19_g16/bld/amdclanggpu/mpich/nodebug/threads/include  -fopenmp -L/opt/cray/pe/mpich/8.1.28/gtl/lib -lmpi_gtl_hsa -L/opt/cray/pe/gcc/12.2.0/snos/lib64 -lgfortran -lstdc++ conftest.c   /tmp/libbc-mpi_gtl_hsa-amdgcn-gfx90a-0a477d.a /tmp/libbc-gfortran-amdgcn-gfx90a-f090e9.a /tmp/libbc-mpichf90-amdgcn-gfx90a-402da0.a /tmp/libbc-xpmem-amdgcn-gfx90a-b431a3.a -L/opt/rocm-5.4.0/llvm/bin/../lib -L/opt/cray/pe/mpich/8.1.28/gtl/lib -L/opt/cray/pe/gcc/12.2.0/snos/lib64 -L/opt/cray/pe/mpich/8.1.28/ofi/amd/5.0/lib -L/opt/cray/pe/libsci/23.12.5/AMD/5.0/x86_64/lib -L/opt/cray/pe/parallel-netcdf/1.12.3.1/amd/4.3/lib -L/opt/cray/pe/netcdf-hdf5parallel/4.9.0.1/amd/4.3/lib -L/opt/cray/pe/hdf5-parallel/1.12.2.1/amd/4.3/lib -L/opt/cray/pe/dsmml/0.2.2/dsmml//lib -L/opt/cray/pe/pmi/6.1.13/lib -L/opt/cray/xpmem/2.8.4-1.0_7.3__ga37cbd9.shasta/lib64 -L/opt/rocm-5.4.0/lib -L/opt/rocm-5.4.0/lib64 -L/opt/rocm-5.4.0/llvm/lib -L/usr/lib64/gcc/x86_64-suse-linux/13 -L/usr/lib64/gcc/x86_64-suse-linux/13/../../../../lib64 -L/lib/../lib64 -L/usr/lib/../lib64 -L/usr/lib64/gcc/x86_64-suse-linux/13/../../../../x86_64-suse-linux/lib -L/lib -L/usr/lib -lmpi_gtl_hsa -lgfortran -lstdc++ -lhdf5_hl_parallel -lhdf5_parallel -lhdf5hl_fortran_parallel -lhdf5_fortran_parallel -lpnetcdf -lmpichf90 -lnetcdf -lnetcdff -lsci_amd_mpi_mp -lsci_amd_mp -ldl -lmpifort_amd -lmpi_amd -ldsmml -lpmi -lpmi2 -lxpmem -lflangmain -lpgmath -lflang -lflangrti -lomp -lm -lrt -lpthread -lomptarget >&5
clang-15: error: no such file or directory: '/tmp/libbc-mpi_gtl_hsa-amdgcn-gfx90a-0a477d.a'
clang-15: error: no such file or directory: '/tmp/libbc-gfortran-amdgcn-gfx90a-f090e9.a'
clang-15: error: no such file or directory: '/tmp/libbc-mpichf90-amdgcn-gfx90a-402da0.a'
clang-15: error: no such file or directory: '/tmp/libbc-xpmem-amdgcn-gfx90a-b431a3.a'
configure:4927: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "MCT"
| #define PACKAGE_TARNAME "mct"
| #define PACKAGE_VERSION "2.10"
| #define PACKAGE_STRING "MCT 2.10"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define HAVE_STDIO_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_UNISTD_H 1
| #define STDC_HEADERS 1
| #define HAVE_MPI 1
| /* end confdefs.h.  */
| #define FC_DUMMY_MAIN MAIN__
| #ifdef FC_DUMMY_MAIN
| #ifndef FC_DUMMY_MAIN_EQ_F77
| #  ifdef __cplusplus
|      extern "C"
| #  endif
|    int FC_DUMMY_MAIN() { return 1; }
| #endif
| #endif
| int
| main (void)
| {
| 
|   ;
|   return 0;
| }
configure:4927: cc -o conftest -fopenmp -I/lustre/orion/cli115/proj-shared/wuda/e3sm_scratch/X_f19_g16/bld/amdclanggpu/mpich/nodebug/threads/include  -fopenmp -L/opt/cray/pe/mpich/8.1.28/gtl/lib -lmpi_gtl_hsa -L/opt/cray/pe/gcc/12.2.0/snos/lib64 -lgfortran -lstdc++ conftest.c   /tmp/libbc-mpi_gtl_hsa-amdgcn-gfx90a-0a477d.a /tmp/libbc-gfortran-amdgcn-gfx90a-f090e9.a /tmp/libbc-mpichf90-amdgcn-gfx90a-402da0.a /tmp/libbc-xpmem-amdgcn-gfx90a-b431a3.a -L/opt/rocm-5.4.0/llvm/bin/../lib -L/opt/cray/pe/mpich/8.1.28/gtl/lib -L/opt/cray/pe/gcc/12.2.0/snos/lib64 -L/opt/cray/pe/mpich/8.1.28/ofi/amd/5.0/lib -L/opt/cray/pe/libsci/23.12.5/AMD/5.0/x86_64/lib -L/opt/cray/pe/parallel-netcdf/1.12.3.1/amd/4.3/lib -L/opt/cray/pe/netcdf-hdf5parallel/4.9.0.1/amd/4.3/lib -L/opt/cray/pe/hdf5-parallel/1.12.2.1/amd/4.3/lib -L/opt/cray/pe/dsmml/0.2.2/dsmml//lib -L/opt/cray/pe/pmi/6.1.13/lib -L/opt/cray/xpmem/2.8.4-1.0_7.3__ga37cbd9.shasta/lib64 -L/opt/rocm-5.4.0/lib -L/opt/rocm-5.4.0/lib64 -L/opt/rocm-5.4.0/llvm/lib -L/usr/lib64/gcc/x86_64-suse-linux/13 -L/usr/lib64/gcc/x86_64-suse-linux/13/../../../../lib64 -L/lib/../lib64 -L/usr/lib/../lib64 -L/usr/lib64/gcc/x86_64-suse-linux/13/../../../../x86_64-suse-linux/lib -L/lib -L/usr/lib -lmpi_gtl_hsa -lgfortran -lstdc++ -lhdf5_hl_parallel -lhdf5_parallel -lhdf5hl_fortran_parallel -lhdf5_fortran_parallel -lpnetcdf -lmpichf90 -lnetcdf -lnetcdff -lsci_amd_mpi_mp -lsci_amd_mp -ldl -lmpifort_amd -lmpi_amd -ldsmml -lpmi -lpmi2 -lxpmem -lflangmain -lpgmath -lflang -lflangrti -lomp -lm -lrt -lpthread -lomptarget >&5
clang-15: error: no such file or directory: '/tmp/libbc-mpi_gtl_hsa-amdgcn-gfx90a-0a477d.a'
clang-15: error: no such file or directory: '/tmp/libbc-gfortran-amdgcn-gfx90a-f090e9.a'
clang-15: error: no such file or directory: '/tmp/libbc-mpichf90-amdgcn-gfx90a-402da0.a'
clang-15: error: no such file or directory: '/tmp/libbc-xpmem-amdgcn-gfx90a-b431a3.a'
configure:4927: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "MCT"
| #define PACKAGE_TARNAME "mct"
| #define PACKAGE_VERSION "2.10"
| #define PACKAGE_STRING "MCT 2.10"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define HAVE_STDIO_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_UNISTD_H 1
| #define STDC_HEADERS 1
| #define HAVE_MPI 1
| /* end confdefs.h.  */
| #define FC_DUMMY_MAIN MAIN_
| #ifdef FC_DUMMY_MAIN
| #ifndef FC_DUMMY_MAIN_EQ_F77
| #  ifdef __cplusplus
|      extern "C"
| #  endif
|    int FC_DUMMY_MAIN() { return 1; }
| #endif
| #endif
| int
| main (void)
| {
| 
|   ;
|   return 0;
| }
configure:4927: cc -o conftest -fopenmp -I/lustre/orion/cli115/proj-shared/wuda/e3sm_scratch/X_f19_g16/bld/amdclanggpu/mpich/nodebug/threads/include  -fopenmp -L/opt/cray/pe/mpich/8.1.28/gtl/lib -lmpi_gtl_hsa -L/opt/cray/pe/gcc/12.2.0/snos/lib64 -lgfortran -lstdc++ conftest.c   /tmp/libbc-mpi_gtl_hsa-amdgcn-gfx90a-0a477d.a /tmp/libbc-gfortran-amdgcn-gfx90a-f090e9.a /tmp/libbc-mpichf90-amdgcn-gfx90a-402da0.a /tmp/libbc-xpmem-amdgcn-gfx90a-b431a3.a -L/opt/rocm-5.4.0/llvm/bin/../lib -L/opt/cray/pe/mpich/8.1.28/gtl/lib -L/opt/cray/pe/gcc/12.2.0/snos/lib64 -L/opt/cray/pe/mpich/8.1.28/ofi/amd/5.0/lib -L/opt/cray/pe/libsci/23.12.5/AMD/5.0/x86_64/lib -L/opt/cray/pe/parallel-netcdf/1.12.3.1/amd/4.3/lib -L/opt/cray/pe/netcdf-hdf5parallel/4.9.0.1/amd/4.3/lib -L/opt/cray/pe/hdf5-parallel/1.12.2.1/amd/4.3/lib -L/opt/cray/pe/dsmml/0.2.2/dsmml//lib -L/opt/cray/pe/pmi/6.1.13/lib -L/opt/cray/xpmem/2.8.4-1.0_7.3__ga37cbd9.shasta/lib64 -L/opt/rocm-5.4.0/lib -L/opt/rocm-5.4.0/lib64 -L/opt/rocm-5.4.0/llvm/lib -L/usr/lib64/gcc/x86_64-suse-linux/13 -L/usr/lib64/gcc/x86_64-suse-linux/13/../../../../lib64 -L/lib/../lib64 -L/usr/lib/../lib64 -L/usr/lib64/gcc/x86_64-suse-linux/13/../../../../x86_64-suse-linux/lib -L/lib -L/usr/lib -lmpi_gtl_hsa -lgfortran -lstdc++ -lhdf5_hl_parallel -lhdf5_parallel -lhdf5hl_fortran_parallel -lhdf5_fortran_parallel -lpnetcdf -lmpichf90 -lnetcdf -lnetcdff -lsci_amd_mpi_mp -lsci_amd_mp -ldl -lmpifort_amd -lmpi_amd -ldsmml -lpmi -lpmi2 -lxpmem -lflangmain -lpgmath -lflang -lflangrti -lomp -lm -lrt -lpthread -lomptarget >&5
clang-15: error: no such file or directory: '/tmp/libbc-mpi_gtl_hsa-amdgcn-gfx90a-0a477d.a'
clang-15: error: no such file or directory: '/tmp/libbc-gfortran-amdgcn-gfx90a-f090e9.a'
clang-15: error: no such file or directory: '/tmp/libbc-mpichf90-amdgcn-gfx90a-402da0.a'
clang-15: error: no such file or directory: '/tmp/libbc-xpmem-amdgcn-gfx90a-b431a3.a'
configure:4927: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "MCT"
| #define PACKAGE_TARNAME "mct"
| #define PACKAGE_VERSION "2.10"
| #define PACKAGE_STRING "MCT 2.10"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define HAVE_STDIO_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_UNISTD_H 1
| #define STDC_HEADERS 1
| #define HAVE_MPI 1
| /* end confdefs.h.  */
| #define FC_DUMMY_MAIN __main
| #ifdef FC_DUMMY_MAIN
| #ifndef FC_DUMMY_MAIN_EQ_F77
| #  ifdef __cplusplus
|      extern "C"
| #  endif
|    int FC_DUMMY_MAIN() { return 1; }
| #endif
| #endif
| int
| main (void)
| {
| 
|   ;
|   return 0;
| }
configure:4927: cc -o conftest -fopenmp -I/lustre/orion/cli115/proj-shared/wuda/e3sm_scratch/X_f19_g16/bld/amdclanggpu/mpich/nodebug/threads/include  -fopenmp -L/opt/cray/pe/mpich/8.1.28/gtl/lib -lmpi_gtl_hsa -L/opt/cray/pe/gcc/12.2.0/snos/lib64 -lgfortran -lstdc++ conftest.c   /tmp/libbc-mpi_gtl_hsa-amdgcn-gfx90a-0a477d.a /tmp/libbc-gfortran-amdgcn-gfx90a-f090e9.a /tmp/libbc-mpichf90-amdgcn-gfx90a-402da0.a /tmp/libbc-xpmem-amdgcn-gfx90a-b431a3.a -L/opt/rocm-5.4.0/llvm/bin/../lib -L/opt/cray/pe/mpich/8.1.28/gtl/lib -L/opt/cray/pe/gcc/12.2.0/snos/lib64 -L/opt/cray/pe/mpich/8.1.28/ofi/amd/5.0/lib -L/opt/cray/pe/libsci/23.12.5/AMD/5.0/x86_64/lib -L/opt/cray/pe/parallel-netcdf/1.12.3.1/amd/4.3/lib -L/opt/cray/pe/netcdf-hdf5parallel/4.9.0.1/amd/4.3/lib -L/opt/cray/pe/hdf5-parallel/1.12.2.1/amd/4.3/lib -L/opt/cray/pe/dsmml/0.2.2/dsmml//lib -L/opt/cray/pe/pmi/6.1.13/lib -L/opt/cray/xpmem/2.8.4-1.0_7.3__ga37cbd9.shasta/lib64 -L/opt/rocm-5.4.0/lib -L/opt/rocm-5.4.0/lib64 -L/opt/rocm-5.4.0/llvm/lib -L/usr/lib64/gcc/x86_64-suse-linux/13 -L/usr/lib64/gcc/x86_64-suse-linux/13/../../../../lib64 -L/lib/../lib64 -L/usr/lib/../lib64 -L/usr/lib64/gcc/x86_64-suse-linux/13/../../../../x86_64-suse-linux/lib -L/lib -L/usr/lib -lmpi_gtl_hsa -lgfortran -lstdc++ -lhdf5_hl_parallel -lhdf5_parallel -lhdf5hl_fortran_parallel -lhdf5_fortran_parallel -lpnetcdf -lmpichf90 -lnetcdf -lnetcdff -lsci_amd_mpi_mp -lsci_amd_mp -ldl -lmpifort_amd -lmpi_amd -ldsmml -lpmi -lpmi2 -lxpmem -lflangmain -lpgmath -lflang -lflangrti -lomp -lm -lrt -lpthread -lomptarget >&5
clang-15: error: no such file or directory: '/tmp/libbc-mpi_gtl_hsa-amdgcn-gfx90a-0a477d.a'
clang-15: error: no such file or directory: '/tmp/libbc-gfortran-amdgcn-gfx90a-f090e9.a'
clang-15: error: no such file or directory: '/tmp/libbc-mpichf90-amdgcn-gfx90a-402da0.a'
clang-15: error: no such file or directory: '/tmp/libbc-xpmem-amdgcn-gfx90a-b431a3.a'
configure:4927: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "MCT"
| #define PACKAGE_TARNAME "mct"
| #define PACKAGE_VERSION "2.10"
| #define PACKAGE_STRING "MCT 2.10"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define HAVE_STDIO_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_UNISTD_H 1
| #define STDC_HEADERS 1
| #define HAVE_MPI 1
| /* end confdefs.h.  */
| #define FC_DUMMY_MAIN MAIN
| #ifdef FC_DUMMY_MAIN
| #ifndef FC_DUMMY_MAIN_EQ_F77
| #  ifdef __cplusplus
|      extern "C"
| #  endif
|    int FC_DUMMY_MAIN() { return 1; }
| #endif
| #endif
| int
| main (void)
| {
| 
|   ;
|   return 0;
| }
configure:4927: cc -o conftest -fopenmp -I/lustre/orion/cli115/proj-shared/wuda/e3sm_scratch/X_f19_g16/bld/amdclanggpu/mpich/nodebug/threads/include  -fopenmp -L/opt/cray/pe/mpich/8.1.28/gtl/lib -lmpi_gtl_hsa -L/opt/cray/pe/gcc/12.2.0/snos/lib64 -lgfortran -lstdc++ conftest.c   /tmp/libbc-mpi_gtl_hsa-amdgcn-gfx90a-0a477d.a /tmp/libbc-gfortran-amdgcn-gfx90a-f090e9.a /tmp/libbc-mpichf90-amdgcn-gfx90a-402da0.a /tmp/libbc-xpmem-amdgcn-gfx90a-b431a3.a -L/opt/rocm-5.4.0/llvm/bin/../lib -L/opt/cray/pe/mpich/8.1.28/gtl/lib -L/opt/cray/pe/gcc/12.2.0/snos/lib64 -L/opt/cray/pe/mpich/8.1.28/ofi/amd/5.0/lib -L/opt/cray/pe/libsci/23.12.5/AMD/5.0/x86_64/lib -L/opt/cray/pe/parallel-netcdf/1.12.3.1/amd/4.3/lib -L/opt/cray/pe/netcdf-hdf5parallel/4.9.0.1/amd/4.3/lib -L/opt/cray/pe/hdf5-parallel/1.12.2.1/amd/4.3/lib -L/opt/cray/pe/dsmml/0.2.2/dsmml//lib -L/opt/cray/pe/pmi/6.1.13/lib -L/opt/cray/xpmem/2.8.4-1.0_7.3__ga37cbd9.shasta/lib64 -L/opt/rocm-5.4.0/lib -L/opt/rocm-5.4.0/lib64 -L/opt/rocm-5.4.0/llvm/lib -L/usr/lib64/gcc/x86_64-suse-linux/13 -L/usr/lib64/gcc/x86_64-suse-linux/13/../../../../lib64 -L/lib/../lib64 -L/usr/lib/../lib64 -L/usr/lib64/gcc/x86_64-suse-linux/13/../../../../x86_64-suse-linux/lib -L/lib -L/usr/lib -lmpi_gtl_hsa -lgfortran -lstdc++ -lhdf5_hl_parallel -lhdf5_parallel -lhdf5hl_fortran_parallel -lhdf5_fortran_parallel -lpnetcdf -lmpichf90 -lnetcdf -lnetcdff -lsci_amd_mpi_mp -lsci_amd_mp -ldl -lmpifort_amd -lmpi_amd -ldsmml -lpmi -lpmi2 -lxpmem -lflangmain -lpgmath -lflang -lflangrti -lomp -lm -lrt -lpthread -lomptarget >&5
clang-15: error: no such file or directory: '/tmp/libbc-mpi_gtl_hsa-amdgcn-gfx90a-0a477d.a'
clang-15: error: no such file or directory: '/tmp/libbc-gfortran-amdgcn-gfx90a-f090e9.a'
clang-15: error: no such file or directory: '/tmp/libbc-mpichf90-amdgcn-gfx90a-402da0.a'
clang-15: error: no such file or directory: '/tmp/libbc-xpmem-amdgcn-gfx90a-b431a3.a'
configure:4927: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "MCT"
| #define PACKAGE_TARNAME "mct"
| #define PACKAGE_VERSION "2.10"
| #define PACKAGE_STRING "MCT 2.10"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define HAVE_STDIO_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_UNISTD_H 1
| #define STDC_HEADERS 1
| #define HAVE_MPI 1
| /* end confdefs.h.  */
| #define FC_DUMMY_MAIN _MAIN
| #ifdef FC_DUMMY_MAIN
| #ifndef FC_DUMMY_MAIN_EQ_F77
| #  ifdef __cplusplus
|      extern "C"
| #  endif
|    int FC_DUMMY_MAIN() { return 1; }
| #endif
| #endif
| int
| main (void)
| {
| 
|   ;
|   return 0;
| }
configure:4927: cc -o conftest -fopenmp -I/lustre/orion/cli115/proj-shared/wuda/e3sm_scratch/X_f19_g16/bld/amdclanggpu/mpich/nodebug/threads/include  -fopenmp -L/opt/cray/pe/mpich/8.1.28/gtl/lib -lmpi_gtl_hsa -L/opt/cray/pe/gcc/12.2.0/snos/lib64 -lgfortran -lstdc++ conftest.c   /tmp/libbc-mpi_gtl_hsa-amdgcn-gfx90a-0a477d.a /tmp/libbc-gfortran-amdgcn-gfx90a-f090e9.a /tmp/libbc-mpichf90-amdgcn-gfx90a-402da0.a /tmp/libbc-xpmem-amdgcn-gfx90a-b431a3.a -L/opt/rocm-5.4.0/llvm/bin/../lib -L/opt/cray/pe/mpich/8.1.28/gtl/lib -L/opt/cray/pe/gcc/12.2.0/snos/lib64 -L/opt/cray/pe/mpich/8.1.28/ofi/amd/5.0/lib -L/opt/cray/pe/libsci/23.12.5/AMD/5.0/x86_64/lib -L/opt/cray/pe/parallel-netcdf/1.12.3.1/amd/4.3/lib -L/opt/cray/pe/netcdf-hdf5parallel/4.9.0.1/amd/4.3/lib -L/opt/cray/pe/hdf5-parallel/1.12.2.1/amd/4.3/lib -L/opt/cray/pe/dsmml/0.2.2/dsmml//lib -L/opt/cray/pe/pmi/6.1.13/lib -L/opt/cray/xpmem/2.8.4-1.0_7.3__ga37cbd9.shasta/lib64 -L/opt/rocm-5.4.0/lib -L/opt/rocm-5.4.0/lib64 -L/opt/rocm-5.4.0/llvm/lib -L/usr/lib64/gcc/x86_64-suse-linux/13 -L/usr/lib64/gcc/x86_64-suse-linux/13/../../../../lib64 -L/lib/../lib64 -L/usr/lib/../lib64 -L/usr/lib64/gcc/x86_64-suse-linux/13/../../../../x86_64-suse-linux/lib -L/lib -L/usr/lib -lmpi_gtl_hsa -lgfortran -lstdc++ -lhdf5_hl_parallel -lhdf5_parallel -lhdf5hl_fortran_parallel -lhdf5_fortran_parallel -lpnetcdf -lmpichf90 -lnetcdf -lnetcdff -lsci_amd_mpi_mp -lsci_amd_mp -ldl -lmpifort_amd -lmpi_amd -ldsmml -lpmi -lpmi2 -lxpmem -lflangmain -lpgmath -lflang -lflangrti -lomp -lm -lrt -lpthread -lomptarget >&5
clang-15: error: no such file or directory: '/tmp/libbc-mpi_gtl_hsa-amdgcn-gfx90a-0a477d.a'
clang-15: error: no such file or directory: '/tmp/libbc-gfortran-amdgcn-gfx90a-f090e9.a'
clang-15: error: no such file or directory: '/tmp/libbc-mpichf90-amdgcn-gfx90a-402da0.a'
clang-15: error: no such file or directory: '/tmp/libbc-xpmem-amdgcn-gfx90a-b431a3.a'
configure:4927: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "MCT"
| #define PACKAGE_TARNAME "mct"
| #define PACKAGE_VERSION "2.10"
| #define PACKAGE_STRING "MCT 2.10"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define HAVE_STDIO_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_UNISTD_H 1
| #define STDC_HEADERS 1
| #define HAVE_MPI 1
| /* end confdefs.h.  */
| #define FC_DUMMY_MAIN __MAIN
| #ifdef FC_DUMMY_MAIN
| #ifndef FC_DUMMY_MAIN_EQ_F77
| #  ifdef __cplusplus
|      extern "C"
| #  endif
|    int FC_DUMMY_MAIN() { return 1; }
| #endif
| #endif
| int
| main (void)
| {
| 
|   ;
|   return 0;
| }
configure:4927: cc -o conftest -fopenmp -I/lustre/orion/cli115/proj-shared/wuda/e3sm_scratch/X_f19_g16/bld/amdclanggpu/mpich/nodebug/threads/include  -fopenmp -L/opt/cray/pe/mpich/8.1.28/gtl/lib -lmpi_gtl_hsa -L/opt/cray/pe/gcc/12.2.0/snos/lib64 -lgfortran -lstdc++ conftest.c   /tmp/libbc-mpi_gtl_hsa-amdgcn-gfx90a-0a477d.a /tmp/libbc-gfortran-amdgcn-gfx90a-f090e9.a /tmp/libbc-mpichf90-amdgcn-gfx90a-402da0.a /tmp/libbc-xpmem-amdgcn-gfx90a-b431a3.a -L/opt/rocm-5.4.0/llvm/bin/../lib -L/opt/cray/pe/mpich/8.1.28/gtl/lib -L/opt/cray/pe/gcc/12.2.0/snos/lib64 -L/opt/cray/pe/mpich/8.1.28/ofi/amd/5.0/lib -L/opt/cray/pe/libsci/23.12.5/AMD/5.0/x86_64/lib -L/opt/cray/pe/parallel-netcdf/1.12.3.1/amd/4.3/lib -L/opt/cray/pe/netcdf-hdf5parallel/4.9.0.1/amd/4.3/lib -L/opt/cray/pe/hdf5-parallel/1.12.2.1/amd/4.3/lib -L/opt/cray/pe/dsmml/0.2.2/dsmml//lib -L/opt/cray/pe/pmi/6.1.13/lib -L/opt/cray/xpmem/2.8.4-1.0_7.3__ga37cbd9.shasta/lib64 -L/opt/rocm-5.4.0/lib -L/opt/rocm-5.4.0/lib64 -L/opt/rocm-5.4.0/llvm/lib -L/usr/lib64/gcc/x86_64-suse-linux/13 -L/usr/lib64/gcc/x86_64-suse-linux/13/../../../../lib64 -L/lib/../lib64 -L/usr/lib/../lib64 -L/usr/lib64/gcc/x86_64-suse-linux/13/../../../../x86_64-suse-linux/lib -L/lib -L/usr/lib -lmpi_gtl_hsa -lgfortran -lstdc++ -lhdf5_hl_parallel -lhdf5_parallel -lhdf5hl_fortran_parallel -lhdf5_fortran_parallel -lpnetcdf -lmpichf90 -lnetcdf -lnetcdff -lsci_amd_mpi_mp -lsci_amd_mp -ldl -lmpifort_amd -lmpi_amd -ldsmml -lpmi -lpmi2 -lxpmem -lflangmain -lpgmath -lflang -lflangrti -lomp -lm -lrt -lpthread -lomptarget >&5
clang-15: error: no such file or directory: '/tmp/libbc-mpi_gtl_hsa-amdgcn-gfx90a-0a477d.a'
clang-15: error: no such file or directory: '/tmp/libbc-gfortran-amdgcn-gfx90a-f090e9.a'
clang-15: error: no such file or directory: '/tmp/libbc-mpichf90-amdgcn-gfx90a-402da0.a'
clang-15: error: no such file or directory: '/tmp/libbc-xpmem-amdgcn-gfx90a-b431a3.a'
configure:4927: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "MCT"
| #define PACKAGE_TARNAME "mct"
| #define PACKAGE_VERSION "2.10"
| #define PACKAGE_STRING "MCT 2.10"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define HAVE_STDIO_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_UNISTD_H 1
| #define STDC_HEADERS 1
| #define HAVE_MPI 1
| /* end confdefs.h.  */
| #define FC_DUMMY_MAIN main_
| #ifdef FC_DUMMY_MAIN
| #ifndef FC_DUMMY_MAIN_EQ_F77
| #  ifdef __cplusplus
|      extern "C"
| #  endif
|    int FC_DUMMY_MAIN() { return 1; }
| #endif
| #endif
| int
| main (void)
| {
| 
|   ;
|   return 0;
| }
configure:4927: cc -o conftest -fopenmp -I/lustre/orion/cli115/proj-shared/wuda/e3sm_scratch/X_f19_g16/bld/amdclanggpu/mpich/nodebug/threads/include  -fopenmp -L/opt/cray/pe/mpich/8.1.28/gtl/lib -lmpi_gtl_hsa -L/opt/cray/pe/gcc/12.2.0/snos/lib64 -lgfortran -lstdc++ conftest.c   /tmp/libbc-mpi_gtl_hsa-amdgcn-gfx90a-0a477d.a /tmp/libbc-gfortran-amdgcn-gfx90a-f090e9.a /tmp/libbc-mpichf90-amdgcn-gfx90a-402da0.a /tmp/libbc-xpmem-amdgcn-gfx90a-b431a3.a -L/opt/rocm-5.4.0/llvm/bin/../lib -L/opt/cray/pe/mpich/8.1.28/gtl/lib -L/opt/cray/pe/gcc/12.2.0/snos/lib64 -L/opt/cray/pe/mpich/8.1.28/ofi/amd/5.0/lib -L/opt/cray/pe/libsci/23.12.5/AMD/5.0/x86_64/lib -L/opt/cray/pe/parallel-netcdf/1.12.3.1/amd/4.3/lib -L/opt/cray/pe/netcdf-hdf5parallel/4.9.0.1/amd/4.3/lib -L/opt/cray/pe/hdf5-parallel/1.12.2.1/amd/4.3/lib -L/opt/cray/pe/dsmml/0.2.2/dsmml//lib -L/opt/cray/pe/pmi/6.1.13/lib -L/opt/cray/xpmem/2.8.4-1.0_7.3__ga37cbd9.shasta/lib64 -L/opt/rocm-5.4.0/lib -L/opt/rocm-5.4.0/lib64 -L/opt/rocm-5.4.0/llvm/lib -L/usr/lib64/gcc/x86_64-suse-linux/13 -L/usr/lib64/gcc/x86_64-suse-linux/13/../../../../lib64 -L/lib/../lib64 -L/usr/lib/../lib64 -L/usr/lib64/gcc/x86_64-suse-linux/13/../../../../x86_64-suse-linux/lib -L/lib -L/usr/lib -lmpi_gtl_hsa -lgfortran -lstdc++ -lhdf5_hl_parallel -lhdf5_parallel -lhdf5hl_fortran_parallel -lhdf5_fortran_parallel -lpnetcdf -lmpichf90 -lnetcdf -lnetcdff -lsci_amd_mpi_mp -lsci_amd_mp -ldl -lmpifort_amd -lmpi_amd -ldsmml -lpmi -lpmi2 -lxpmem -lflangmain -lpgmath -lflang -lflangrti -lomp -lm -lrt -lpthread -lomptarget >&5
clang-15: error: no such file or directory: '/tmp/libbc-mpi_gtl_hsa-amdgcn-gfx90a-0a477d.a'
clang-15: error: no such file or directory: '/tmp/libbc-gfortran-amdgcn-gfx90a-f090e9.a'
clang-15: error: no such file or directory: '/tmp/libbc-mpichf90-amdgcn-gfx90a-402da0.a'
clang-15: error: no such file or directory: '/tmp/libbc-xpmem-amdgcn-gfx90a-b431a3.a'
configure:4927: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "MCT"
| #define PACKAGE_TARNAME "mct"
| #define PACKAGE_VERSION "2.10"
| #define PACKAGE_STRING "MCT 2.10"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define HAVE_STDIO_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_UNISTD_H 1
| #define STDC_HEADERS 1
| #define HAVE_MPI 1
| /* end confdefs.h.  */
| #define FC_DUMMY_MAIN main__
| #ifdef FC_DUMMY_MAIN
| #ifndef FC_DUMMY_MAIN_EQ_F77
| #  ifdef __cplusplus
|      extern "C"
| #  endif
|    int FC_DUMMY_MAIN() { return 1; }
| #endif
| #endif
| int
| main (void)
| {
| 
|   ;
|   return 0;
| }
configure:4927: cc -o conftest -fopenmp -I/lustre/orion/cli115/proj-shared/wuda/e3sm_scratch/X_f19_g16/bld/amdclanggpu/mpich/nodebug/threads/include  -fopenmp -L/opt/cray/pe/mpich/8.1.28/gtl/lib -lmpi_gtl_hsa -L/opt/cray/pe/gcc/12.2.0/snos/lib64 -lgfortran -lstdc++ conftest.c   /tmp/libbc-mpi_gtl_hsa-amdgcn-gfx90a-0a477d.a /tmp/libbc-gfortran-amdgcn-gfx90a-f090e9.a /tmp/libbc-mpichf90-amdgcn-gfx90a-402da0.a /tmp/libbc-xpmem-amdgcn-gfx90a-b431a3.a -L/opt/rocm-5.4.0/llvm/bin/../lib -L/opt/cray/pe/mpich/8.1.28/gtl/lib -L/opt/cray/pe/gcc/12.2.0/snos/lib64 -L/opt/cray/pe/mpich/8.1.28/ofi/amd/5.0/lib -L/opt/cray/pe/libsci/23.12.5/AMD/5.0/x86_64/lib -L/opt/cray/pe/parallel-netcdf/1.12.3.1/amd/4.3/lib -L/opt/cray/pe/netcdf-hdf5parallel/4.9.0.1/amd/4.3/lib -L/opt/cray/pe/hdf5-parallel/1.12.2.1/amd/4.3/lib -L/opt/cray/pe/dsmml/0.2.2/dsmml//lib -L/opt/cray/pe/pmi/6.1.13/lib -L/opt/cray/xpmem/2.8.4-1.0_7.3__ga37cbd9.shasta/lib64 -L/opt/rocm-5.4.0/lib -L/opt/rocm-5.4.0/lib64 -L/opt/rocm-5.4.0/llvm/lib -L/usr/lib64/gcc/x86_64-suse-linux/13 -L/usr/lib64/gcc/x86_64-suse-linux/13/../../../../lib64 -L/lib/../lib64 -L/usr/lib/../lib64 -L/usr/lib64/gcc/x86_64-suse-linux/13/../../../../x86_64-suse-linux/lib -L/lib -L/usr/lib -lmpi_gtl_hsa -lgfortran -lstdc++ -lhdf5_hl_parallel -lhdf5_parallel -lhdf5hl_fortran_parallel -lhdf5_fortran_parallel -lpnetcdf -lmpichf90 -lnetcdf -lnetcdff -lsci_amd_mpi_mp -lsci_amd_mp -ldl -lmpifort_amd -lmpi_amd -ldsmml -lpmi -lpmi2 -lxpmem -lflangmain -lpgmath -lflang -lflangrti -lomp -lm -lrt -lpthread -lomptarget >&5
clang-15: error: no such file or directory: '/tmp/libbc-mpi_gtl_hsa-amdgcn-gfx90a-0a477d.a'
clang-15: error: no such file or directory: '/tmp/libbc-gfortran-amdgcn-gfx90a-f090e9.a'
clang-15: error: no such file or directory: '/tmp/libbc-mpichf90-amdgcn-gfx90a-402da0.a'
clang-15: error: no such file or directory: '/tmp/libbc-xpmem-amdgcn-gfx90a-b431a3.a'
configure:4927: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "MCT"
| #define PACKAGE_TARNAME "mct"
| #define PACKAGE_VERSION "2.10"
| #define PACKAGE_STRING "MCT 2.10"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define HAVE_STDIO_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_UNISTD_H 1
| #define STDC_HEADERS 1
| #define HAVE_MPI 1
| /* end confdefs.h.  */
| #define FC_DUMMY_MAIN _main
| #ifdef FC_DUMMY_MAIN
| #ifndef FC_DUMMY_MAIN_EQ_F77
| #  ifdef __cplusplus
|      extern "C"
| #  endif
|    int FC_DUMMY_MAIN() { return 1; }
| #endif
| #endif
| int
| main (void)
| {
| 
|   ;
|   return 0;
| }
configure:4944: result: unknown
configure:4960: error: in `/lustre/orion/cli115/proj-shared/wuda/e3sm_scratch/X_f19_g16/bld/amdclanggpu/mpich/nodebug/threads/mct':
configure:4962: error: linking to Fortran libraries from C fails
See `config.log' for more details

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_build=x86_64-pc-linux-gnu
ac_cv_c_bigendian=no
ac_cv_c_compiler_gnu=yes
ac_cv_env_AR_set=
ac_cv_env_AR_value=
ac_cv_env_BABELROOT_set=
ac_cv_env_BABELROOT_value=
ac_cv_env_BIT64_set=
ac_cv_env_BIT64_value=
ac_cv_env_CC_set=set
ac_cv_env_CC_value=cc
ac_cv_env_CFLAGS_set=set
ac_cv_env_CFLAGS_value='-fopenmp -I/lustre/orion/cli115/proj-shared/wuda/e3sm_scratch/X_f19_g16/bld/amdclanggpu/mpich/nodebug/threads/include'
ac_cv_env_COMPILER_ROOT_set=
ac_cv_env_COMPILER_ROOT_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_DEBUG_set=
ac_cv_env_DEBUG_value=
ac_cv_env_ENDIAN_set=
ac_cv_env_ENDIAN_value=
ac_cv_env_FCFLAGS_set=set
ac_cv_env_FCFLAGS_value='-fopenmp  -I/lustre/orion/cli115/proj-shared/wuda/e3sm_scratch/X_f19_g16/bld/amdclanggpu/mpich/nodebug/threads/include'
ac_cv_env_FC_set=set
ac_cv_env_FC_value=ftn
ac_cv_env_FORT_SIZE_set=
ac_cv_env_FORT_SIZE_value=
ac_cv_env_FPPFLAGS_set=
ac_cv_env_FPPFLAGS_value=
ac_cv_env_FPP_set=
ac_cv_env_FPP_value=
ac_cv_env_INCLUDEFLAG_set=
ac_cv_env_INCLUDEFLAG_value=
ac_cv_env_INCLUDEPATH_set=
ac_cv_env_INCLUDEPATH_value=
ac_cv_env_LDFLAGS_set=set
ac_cv_env_LDFLAGS_value='-fopenmp -L/opt/cray/pe/mpich/8.1.28/gtl/lib -lmpi_gtl_hsa -L/opt/cray/pe/gcc/12.2.0/snos/lib64 -lgfortran -lstdc++'
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_MPIFC_set=set
ac_cv_env_MPIFC_value=ftn
ac_cv_env_MPIHEADER_set=
ac_cv_env_MPIHEADER_value=
ac_cv_env_MPILIBS_set=
ac_cv_env_MPILIBS_value=
ac_cv_env_OPT_set=
ac_cv_env_OPT_value=
ac_cv_env_PROGFCFLAGS_set=
ac_cv_env_PROGFCFLAGS_value=
ac_cv_env_RANLIB_set=
ac_cv_env_RANLIB_value=
ac_cv_env_REAL8_set=
ac_cv_env_REAL8_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_fc_compiler_gnu=no
ac_cv_fc_dummy_main=unknown
ac_cv_fc_libs=' /tmp/libbc-mpi_gtl_hsa-amdgcn-gfx90a-0a477d.a /tmp/libbc-gfortran-amdgcn-gfx90a-f090e9.a /tmp/libbc-mpichf90-amdgcn-gfx90a-402da0.a /tmp/libbc-xpmem-amdgcn-gfx90a-b431a3.a -L/opt/rocm-5.4.0/llvm/bin/../lib -L/opt/cray/pe/mpich/8.1.28/gtl/lib -L/opt/cray/pe/gcc/12.2.0/snos/lib64 -L/opt/cray/pe/mpich/8.1.28/ofi/amd/5.0/lib -L/opt/cray/pe/libsci/23.12.5/AMD/5.0/x86_64/lib -L/opt/cray/pe/parallel-netcdf/1.12.3.1/amd/4.3/lib -L/opt/cray/pe/netcdf-hdf5parallel/4.9.0.1/amd/4.3/lib -L/opt/cray/pe/hdf5-parallel/1.12.2.1/amd/4.3/lib -L/opt/cray/pe/dsmml/0.2.2/dsmml//lib -L/opt/cray/pe/pmi/6.1.13/lib -L/opt/cray/xpmem/2.8.4-1.0_7.3__ga37cbd9.shasta/lib64 -L/opt/rocm-5.4.0/lib -L/opt/rocm-5.4.0/lib64 -L/opt/rocm-5.4.0/llvm/lib -L/usr/lib64/gcc/x86_64-suse-linux/13 -L/usr/lib64/gcc/x86_64-suse-linux/13/../../../../lib64 -L/lib/../lib64 -L/usr/lib/../lib64 -L/usr/lib64/gcc/x86_64-suse-linux/13/../../../../x86_64-suse-linux/lib -L/lib -L/usr/lib -lmpi_gtl_hsa -lgfortran -lstdc++ -lhdf5_hl_parallel -lhdf5_parallel -lhdf5hl_fortran_parallel -lhdf5_fortran_parallel -lpnetcdf -lmpichf90 -lnetcdf -lnetcdff -lsci_amd_mpi_mp -lsci_amd_mp -ldl -lmpifort_amd -lmpi_amd -ldsmml -lpmi -lpmi2 -lxpmem -lflangmain -lpgmath -lflang -lflangrti -lomp -lm -lrt -lpthread -lomptarget'
ac_cv_fc_pp_define=-D
ac_cv_fc_pp_srcext_F=none
ac_cv_fc_srcext_F90=none
ac_cv_fortran_dummy_main=unknown
ac_cv_header_inttypes_h=yes
ac_cv_header_stdint_h=yes
ac_cv_header_stdio_h=yes
ac_cv_header_stdlib_h=yes
ac_cv_header_string_h=yes
ac_cv_header_strings_h=yes
ac_cv_header_sys_stat_h=yes
ac_cv_header_sys_types_h=yes
ac_cv_header_unistd_h=yes
ac_cv_host=x86_64-pc-linux-gnu
ac_cv_objext=o
ac_cv_prog_MPIFC=ftn
ac_cv_prog_cc_c11=
ac_cv_prog_cc_g=yes
ac_cv_prog_cc_stdc=
ac_cv_prog_fc_g=yes
ac_cv_prog_fc_v=-v
ac_cv_prog_fc_version=

## ----------------- ##
## Output variables. ##
## ----------------- ##

AR=''
BABELROOT=''
BIT64=''
CC='cc'
CFLAGS='-fopenmp -I/lustre/orion/cli115/proj-shared/wuda/e3sm_scratch/X_f19_g16/bld/amdclanggpu/mpich/nodebug/threads/include'
COMPILER_ROOT=''
CPPDEFS='-DNO_R16 -DCPRAMD -DFORTRANUNDERSCORE -DLINUX'
CPPFLAGS=''
CRULE=''
DEBUG=''
DEFS=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
ENDIAN=''
EXEEXT=''
FC='ftn'
FCFLAGS='-fopenmp  -I/lustre/orion/cli115/proj-shared/wuda/e3sm_scratch/X_f19_g16/bld/amdclanggpu/mpich/nodebug/threads/include'
FCFLAGS_F90=''
FCFLAGS_F=''
FCLIBS=' /tmp/libbc-mpi_gtl_hsa-amdgcn-gfx90a-0a477d.a /tmp/libbc-gfortran-amdgcn-gfx90a-f090e9.a /tmp/libbc-mpichf90-amdgcn-gfx90a-402da0.a /tmp/libbc-xpmem-amdgcn-gfx90a-b431a3.a -L/opt/rocm-5.4.0/llvm/bin/../lib -L/opt/cray/pe/mpich/8.1.28/gtl/lib -L/opt/cray/pe/gcc/12.2.0/snos/lib64 -L/opt/cray/pe/mpich/8.1.28/ofi/amd/5.0/lib -L/opt/cray/pe/libsci/23.12.5/AMD/5.0/x86_64/lib -L/opt/cray/pe/parallel-netcdf/1.12.3.1/amd/4.3/lib -L/opt/cray/pe/netcdf-hdf5parallel/4.9.0.1/amd/4.3/lib -L/opt/cray/pe/hdf5-parallel/1.12.2.1/amd/4.3/lib -L/opt/cray/pe/dsmml/0.2.2/dsmml//lib -L/opt/cray/pe/pmi/6.1.13/lib -L/opt/cray/xpmem/2.8.4-1.0_7.3__ga37cbd9.shasta/lib64 -L/opt/rocm-5.4.0/lib -L/opt/rocm-5.4.0/lib64 -L/opt/rocm-5.4.0/llvm/lib -L/usr/lib64/gcc/x86_64-suse-linux/13 -L/usr/lib64/gcc/x86_64-suse-linux/13/../../../../lib64 -L/lib/../lib64 -L/usr/lib/../lib64 -L/usr/lib64/gcc/x86_64-suse-linux/13/../../../../x86_64-suse-linux/lib -L/lib -L/usr/lib -lmpi_gtl_hsa -lgfortran -lstdc++ -lhdf5_hl_parallel -lhdf5_parallel -lhdf5hl_fortran_parallel -lhdf5_fortran_parallel -lpnetcdf -lmpichf90 -lnetcdf -lnetcdff -lsci_amd_mpi_mp -lsci_amd_mp -ldl -lmpifort_amd -lmpi_amd -ldsmml -lpmi -lpmi2 -lxpmem -lflangmain -lpgmath -lflang -lflangrti -lomp -lm -lrt -lpthread -lomptarget'
FC_DEFINE='-D'
FORT_SIZE=''
FPP=''
FPPFLAGS=''
INCLUDEFLAG=''
INCLUDEPATH=''
LDFLAGS='-fopenmp -L/opt/cray/pe/mpich/8.1.28/gtl/lib -lmpi_gtl_hsa -L/opt/cray/pe/gcc/12.2.0/snos/lib64 -lgfortran -lstdc++'
LIBOBJS=''
LIBS=''
LTLIBOBJS=''
MPIFC='ftn'
MPIHEADER=''
MPILIBS=''
MPISERPATH=''
OBJEXT='o'
OPT=''
PACKAGE_BUGREPORT=''
PACKAGE_NAME='MCT'
PACKAGE_STRING='MCT 2.10'
PACKAGE_TARNAME='mct'
PACKAGE_URL=''
PACKAGE_VERSION='2.10'
PATH_SEPARATOR=':'
PROGFCFLAGS=''
PYTHON=''
PYTHONOPTS=''
RANLIB=''
REAL8=''
SHELL='/bin/sh'
ac_ct_CC=''
ac_ct_FC=''
bindir='${exec_prefix}/bin'
build='x86_64-pc-linux-gnu'
build_alias=''
build_cpu='x86_64'
build_os='linux-gnu'
build_vendor='pc'
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='NONE'
host='x86_64-pc-linux-gnu'
host_alias=''
host_cpu='x86_64'
host_os='linux-gnu'
host_vendor='pc'
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='NONE'
program_transform_name='s,x,x,'
psdir='${docdir}'
runstatedir='${localstatedir}/run'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
subdirs=''
sysconfdir='${prefix}/etc'
target_alias=''

## ----------- ##
## confdefs.h. ##
## ----------- ##

/* confdefs.h */
#define PACKAGE_NAME "MCT"
#define PACKAGE_TARNAME "mct"
#define PACKAGE_VERSION "2.10"
#define PACKAGE_STRING "MCT 2.10"
#define PACKAGE_BUGREPORT ""
#define PACKAGE_URL ""
#define HAVE_STDIO_H 1
#define HAVE_STDLIB_H 1
#define HAVE_STRING_H 1
#define HAVE_INTTYPES_H 1
#define HAVE_STDINT_H 1
#define HAVE_STRINGS_H 1
#define HAVE_SYS_STAT_H 1
#define HAVE_SYS_TYPES_H 1
#define HAVE_UNISTD_H 1
#define STDC_HEADERS 1
#define HAVE_MPI 1

configure: exit 1

@abbotts
Copy link

abbotts commented Nov 19, 2024

Okay, the failure here is happening because -fopenmp with module load craype-accel-amd-gfx90a causes ftn to treat the input objects as OpenMP offload, which for AMD's compiler means the compiler will search for a static library version of everything on the link line for device code. The configure scripts is seeing the temporary static archives the compiler is using for device code and thinking they're internal Fortran compiler libraries it needs to link.
This all happens here:

configure:4606: checking for Fortran libraries of ftn
configure:4630: ftn -o conftest -fopenmp -I/lustre/orion/cli115/proj-shared/wuda/e3sm_scratch/X_f19_g16/bld/amdclanggpu/mpich/nodebug/threads/include -v -fopenmp -L/opt/cray/pe/mpich/8.1.28/gtl/lib -lmpi_gtl_hsa -L/opt/cray/pe/gcc/12.2.0/snos/lib64 -lgfortran -lstdc++ conftest.F
AMD flang-new version 15.0.0 (https://github.com/RadeonOpenCompute/llvm-project roc-5.4.0 22465 d6f0fe8b22e3d8ce0f2cbd657ea14b16043018a5)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /opt/rocm-5.4.0/llvm/bin
Found candidate GCC installation: /usr/lib64/gcc/x86_64-suse-linux/12
Found candidate GCC installation: /usr/lib64/gcc/x86_64-suse-linux/13
Found candidate GCC installation: /usr/lib64/gcc/x86_64-suse-linux/7
Selected GCC installation: /usr/lib64/gcc/x86_64-suse-linux/13
Candidate multilib: .;@m64
Selected multilib: .;@m64
Found HIP installation: /opt/rocm-5.4.0, version 5.4.22801
 "/opt/rocm-5.4.0/llvm/bin/flang1" conftest.F -x 69 0x1000 -opt 0 -terse 1 -inform warn -nohpf -nostatic -cmdline "'+flang -march=znver3 -fopenmp-targets=amdgcn-amd-amdhsa -Xopenmp-target=amdgcn-amd-amdhsa -march=gfx90a -D__CRAY_X86_TRENTO -D__CRAY_AMD_GFX90A -D__CRAYXT_COMPUTE_LINUX_TARGET -o conftest -fopenmp -I/lustre/orion/cli115/proj-shared/wuda/e3sm_scratch/X_f19_g16/bld/amdclanggpu/mpich/nodebug/threads/include -v -fopenmp -L/opt/cray/pe/mpich/8.1.28/gtl/lib -lmpi_gtl_hsa -L/opt/cray/pe/gcc/12.2.0/snos/lib64 -lgfortran -lstdc++ conftest.F -I/opt/cray/pe/mpich/8.1.28/ofi/amd/5.0/include -I/opt/cray/pe/libsci/23.12.5/AMD/5.0/x86_64/include -I/opt/cray/pe/parallel-netcdf/1.12.3.1/amd/4.3/include -I/opt/cray/pe/netcdf-hdf5parallel/4.9.0.1/amd/4.3/include -I/opt/cray/pe/hdf5-parallel/1.12.2.1/amd/4.3/include -I/opt/cray/pe/dsmml/0.2.2/dsmml//include -I/opt/cray/pe/pmi/6.1.13/include -I/opt/cray/xpmem/2.8.4-1.0_7.3__ga37cbd9.shasta/include -L/opt/cray/pe/mpich/8.1.28/ofi/amd/5.0/lib -L/opt/cray/pe/mpich/8.1.28/gtl/lib -L/opt/cray/pe/libsci/23.12.5/AMD/5.0/x86_64/lib -L/opt/cray/pe/parallel-netcdf/1.12.3.1/amd/4.3/lib -L/opt/cray/pe/netcdf-hdf5parallel/4.9.0.1/amd/4.3/lib -L/opt/cray/pe/hdf5-parallel/1.12.2.1/amd/4.3/lib -L/opt/cray/pe/dsmml/0.2.2/dsmml//lib -L/opt/cray/pe/pmi/6.1.13/lib -L/opt/cray/xpmem/2.8.4-1.0_7.3__ga37cbd9.shasta/lib64 -Wl,--as-needed,-lhdf5_hl_parallel,--no-as-needed -Wl,--as-needed,-lhdf5_parallel,--no-as-needed -Wl,--as-needed,-lhdf5hl_fortran_parallel,--no-as-needed -Wl,--as-needed,-lhdf5_fortran_parallel,--no-as-needed -Wl,--as-needed,-lpnetcdf,--no-as-needed -lmpichf90 -Wl,--as-needed,-lnetcdf,--no-as-needed -Wl,--as-needed,-lnetcdff,--no-as-needed -Wl,--as-needed,-lsci_amd_mpi_mp,--no-as-needed -Wl,--as-needed,-lsci_amd_mp,--no-as-needed -ldl -Wl,--as-needed,-lmpifort_amd,--no-as-needed -Wl,--as-needed,-lmpi_amd,--no-as-needed -lmpi_gtl_hsa -Wl,--as-needed,-ldsmml,--no-as-needed -Wl,--as-needed,-lpmi,--no-as-needed -Wl,--as-needed,-lpmi2,--no-as-needed -lxpmem -L/opt/rocm-5.4.0/lib -L/opt/rocm-5.4.0/lib64 -L/opt/rocm-5.4.0/llvm/lib -Wl,--disable-new-dtags'" -inform warn -disable-vectorize-pragmas -mp -x 69 0x200 -x 69 0x400 -y 129 2 -x 19 0x400000 -quad -x 7 0x100000 -x 68 0x1 -x 59 4 -x 15 2 -x 49 0x400004 -x 51 0x20 -x 57 0x4c -x 58 0x10000 -x 124 0x1000 -tp px -x 57 0xfb0000 -x 58 0x78031040 -x 47 0x08 -x 48 4608 -x 49 0x100 -stdinc /opt/rocm-5.4.0/llvm/bin/../include:/usr/local/include:/opt/rocm-5.4.0/llvm/lib/clang/15.0.0/include:/include:/usr/include -def unix -def __unix -def __unix__ -def linux -def __linux -def __linux__ -def __NO_MATH_INLINES -def __LP64__ -def __LONG_MAX__=9223372036854775807L -def "__SIZE_TYPE__=unsigned long int" -def "__PTRDIFF_TYPE__=long int" -def __x86_64 -def __x86_64__ -def __amd_64__amd64__ -def __k8 -def __k8__ -def __THROW= -def __extension__= -def __PGLLVM__ -preprocess -nofreeform -idir /lustre/orion/cli115/proj-shared/wuda/e3sm_scratch/X_f19_g16/bld/amdclanggpu/mpich/nodebug/threads/include -idir /opt/cray/pe/mpich/8.1.28/ofi/amd/5.0/include -idir /opt/cray/pe/libsci/23.12.5/AMD/5.0/x86_64/include -idir /opt/cray/pe/parallel-netcdf/1.12.3.1/amd/4.3/include -idir /opt/cray/pe/netcdf-hdf5parallel/4.9.0.1/amd/4.3/include -idir /opt/cray/pe/hdf5-parallel/1.12.2.1/amd/4.3/include -idir /opt/cray/pe/dsmml/0.2.2/dsmml//include -idir /opt/cray/pe/pmi/6.1.13/include -idir /opt/cray/xpmem/2.8.4-1.0_7.3__ga37cbd9.shasta/include -def __CRAY_X86_TRENTO -def __CRAY_AMD_GFX90A -def __CRAYXT_COMPUTE_LINUX_TARGET -vect 48 -x 54 1 -x 70 0x40000000 -y 163 0xc0000000 -x 189 0x10 -stbfile conftest-6915ee.stb -modexport conftest-6915ee.cmod -modindex conftest-6915ee.cmdx -output conftest-6915ee.ilm -fopenmp-targets amdgcn-amd-amdhsa
 "/opt/rocm-5.4.0/llvm/bin/flang2" conftest-6915ee.ilm -y 129 2 -x 6 0x100 -x 42 0x400000 -y 129 4 -x 129 0x400 -y 216 1 -ieee 1 -fn conftest.F -opt 0 -terse 1 -inform warn -cmdline "'+flang -march=znver3 -fopenmp-targets=amdgcn-amd-amdhsa -Xopenmp-target=amdgcn-amd-amdhsa -march=gfx90a -D__CRAY_X86_TRENTO -D__CRAY_AMD_GFX90A -D__CRAYXT_COMPUTE_LINUX_TARGET -o conftest -fopenmp -I/lustre/orion/cli115/proj-shared/wuda/e3sm_scratch/X_f19_g16/bld/amdclanggpu/mpich/nodebug/threads/include -v -fopenmp -L/opt/cray/pe/mpich/8.1.28/gtl/lib -lmpi_gtl_hsa -L/opt/cray/pe/gcc/12.2.0/snos/lib64 -lgfortran -lstdc++ conftest.F -I/opt/cray/pe/mpich/8.1.28/ofi/amd/5.0/include -I/opt/cray/pe/libsci/23.12.5/AMD/5.0/x86_64/include -I/opt/cray/pe/parallel-netcdf/1.12.3.1/amd/4.3/include -I/opt/cray/pe/netcdf-hdf5parallel/4.9.0.1/amd/4.3/include -I/opt/cray/pe/hdf5-parallel/1.12.2.1/amd/4.3/include -I/opt/cray/pe/dsmml/0.2.2/dsmml//include -I/opt/cray/pe/pmi/6.1.13/include -I/opt/cray/xpmem/2.8.4-1.0_7.3__ga37cbd9.shasta/include -L/opt/cray/pe/mpich/8.1.28/ofi/amd/5.0/lib -L/opt/cray/pe/mpich/8.1.28/gtl/lib -L/opt/cray/pe/libsci/23.12.5/AMD/5.0/x86_64/lib -L/opt/cray/pe/parallel-netcdf/1.12.3.1/amd/4.3/lib -L/opt/cray/pe/netcdf-hdf5parallel/4.9.0.1/amd/4.3/lib -L/opt/cray/pe/hdf5-parallel/1.12.2.1/amd/4.3/lib -L/opt/cray/pe/dsmml/0.2.2/dsmml//lib -L/opt/cray/pe/pmi/6.1.13/lib -L/opt/cray/xpmem/2.8.4-1.0_7.3__ga37cbd9.shasta/lib64 -Wl,--as-needed,-lhdf5_hl_parallel,--no-as-needed -Wl,--as-needed,-lhdf5_parallel,--no-as-needed -Wl,--as-needed,-lhdf5hl_fortran_parallel,--no-as-needed -Wl,--as-needed,-lhdf5_fortran_parallel,--no-as-needed -Wl,--as-needed,-lpnetcdf,--no-as-needed -lmpichf90 -Wl,--as-needed,-lnetcdf,--no-as-needed -Wl,--as-needed,-lnetcdff,--no-as-needed -Wl,--as-needed,-lsci_amd_mpi_mp,--no-as-needed -Wl,--as-needed,-lsci_amd_mp,--no-as-needed -ldl -Wl,--as-needed,-lmpifort_amd,--no-as-needed -Wl,--as-needed,-lmpi_amd,--no-as-needed -lmpi_gtl_hsa -Wl,--as-needed,-ldsmml,--no-as-needed -Wl,--as-needed,-lpmi,--no-as-needed -Wl,--as-needed,-lpmi2,--no-as-needed -lxpmem -L/opt/rocm-5.4.0/lib -L/opt/rocm-5.4.0/lib64 -L/opt/rocm-5.4.0/llvm/lib -Wl,--disable-new-dtags'" -inform warn -disable-vectorize-pragmas -mp -x 69 0x200 -x 69 0x400 -y 129 2 -x 68 0x1 -x 51 0x20 -x 119 0xa10000 -x 122 0x40 -x 123 0x1000 -x 127 4 -x 127 17 -x 19 0x400000 -x 28 0x40000 -x 120 0x10000000 -x 70 0x8000 -x 122 1 -x 125 0x20000 -x 164 0x800000 -quad -x 59 4 -tp px -x 120 0x1000 -x 124 0x1400 -y 15 2 -x 57 0x3b0000 -x 58 0x48000000 -x 49 0x100 -astype 0 -x 183 4 -x 121 0x800 -x 54 0x10 -x 70 0x40000000 -x 249 1023 -x 124 1 -y 163 0xc0000000 -x 189 0x10 -y 189 0x4000000 -x 183 0x10 -stbfile conftest-6915ee.stb -fopenmp-targets amdgcn-amd-amdhsa -fopenmp-targets-asm /tmp/conftest-6915ee-amdgcn-amd-amdhsa.ll -asm /tmp/conftest-6915ee.ll
 "/opt/rocm-5.4.0/llvm/bin/clang-15" -cc1 -triple x86_64-unknown-linux-gnu -emit-llvm-bc -emit-llvm-uselists -disable-free -clear-ast-before-backend -disable-llvm-verifier -discard-value-names -main-file-name conftest.F -mrelocation-model static -mframe-pointer=all -fmath-errno -ffp-contract=on -fno-rounding-math -mconstructor-aliases -funwind-tables=2 -target-cpu znver3 -mllvm -treat-scalable-fixed-error-as-warning -debugger-tuning=gdb -v -fcoverage-compilation-dir=/lustre/orion/cli115/proj-shared/wuda/e3sm_scratch/X_f19_g16/bld/amdclanggpu/mpich/nodebug/threads/mct -resource-dir /opt/rocm-5.4.0/llvm/lib/clang/15.0.0 -fdebug-compilation-dir=/lustre/orion/cli115/proj-shared/wuda/e3sm_scratch/X_f19_g16/bld/amdclanggpu/mpich/nodebug/threads/mct -ferror-limit 19 -fopenmp -fno-openmp-target-fast -fopenmp-target-new-runtime -fno-openmp-target-ignore-env-vars -fno-openmp-assume-no-thread-state -fno-openmp-assume-no-nested-parallelism -fgnuc-version=4.2.1 -no-opaque-pointers -disable-llvm-passes -fopenmp-targets=amdgcn-amd-amdhsa -faddrsig -D__GCC_HAVE_DWARF2_CFI_ASM=1 -o /tmp/conftest-f07d98.bc -x ir /tmp/conftest-6915ee.ll
clang -cc1 version 15.0.0 based upon LLVM 15.0.0git default target x86_64-unknown-linux-gnu
 "/opt/rocm-5.4.0/llvm/bin/clang-15" -cc1 -triple x86_64-unknown-linux-gnu -emit-obj -mrelax-all --mrelax-relocations -disable-free -clear-ast-before-backend -disable-llvm-verifier -discard-value-names -main-file-name conftest.F -mrelocation-model static -mframe-pointer=all -fmath-errno -ffp-contract=on -fno-rounding-math -mconstructor-aliases -funwind-tables=2 -target-cpu znver3 -mllvm -treat-scalable-fixed-error-as-warning -debugger-tuning=gdb -v -fcoverage-compilation-dir=/lustre/orion/cli115/proj-shared/wuda/e3sm_scratch/X_f19_g16/bld/amdclanggpu/mpich/nodebug/threads/mct -resource-dir /opt/rocm-5.4.0/llvm/lib/clang/15.0.0 -fdebug-compilation-dir=/lustre/orion/cli115/proj-shared/wuda/e3sm_scratch/X_f19_g16/bld/amdclanggpu/mpich/nodebug/threads/mct -ferror-limit 19 -fopenmp -fno-openmp-target-fast -fopenmp-target-new-runtime -fno-openmp-target-ignore-env-vars -fno-openmp-assume-no-thread-state -fno-openmp-assume-no-nested-parallelism -fgnuc-version=4.2.1 -no-opaque-pointers -fopenmp-targets=amdgcn-amd-amdhsa -faddrsig -D__GCC_HAVE_DWARF2_CFI_ASM=1 -o /tmp/conftest-9c1d04.o -x ir /tmp/conftest-f07d98.bc
clang -cc1 version 15.0.0 based upon LLVM 15.0.0git default target x86_64-unknown-linux-gnu
 "/opt/rocm-5.4.0/llvm/bin/flang1" conftest.F -x 69 0x1000 -opt 0 -terse 1 -inform warn -nohpf -nostatic -cmdline "'+flang -march=znver3 -fopenmp-targets=amdgcn-amd-amdhsa -Xopenmp-target=amdgcn-amd-amdhsa -march=gfx90a -D__CRAY_X86_TRENTO -D__CRAY_AMD_GFX90A -D__CRAYXT_COMPUTE_LINUX_TARGET -o conftest -fopenmp -I/lustre/orion/cli115/proj-shared/wuda/e3sm_scratch/X_f19_g16/bld/amdclanggpu/mpich/nodebug/threads/include -v -fopenmp -L/opt/cray/pe/mpich/8.1.28/gtl/lib -lmpi_gtl_hsa -L/opt/cray/pe/gcc/12.2.0/snos/lib64 -lgfortran -lstdc++ conftest.F -I/opt/cray/pe/mpich/8.1.28/ofi/amd/5.0/include -I/opt/cray/pe/libsci/23.12.5/AMD/5.0/x86_64/include -I/opt/cray/pe/parallel-netcdf/1.12.3.1/amd/4.3/include -I/opt/cray/pe/netcdf-hdf5parallel/4.9.0.1/amd/4.3/include -I/opt/cray/pe/hdf5-parallel/1.12.2.1/amd/4.3/include -I/opt/cray/pe/dsmml/0.2.2/dsmml//include -I/opt/cray/pe/pmi/6.1.13/include -I/opt/cray/xpmem/2.8.4-1.0_7.3__ga37cbd9.shasta/include -L/opt/cray/pe/mpich/8.1.28/ofi/amd/5.0/lib -L/opt/cray/pe/mpich/8.1.28/gtl/lib -L/opt/cray/pe/libsci/23.12.5/AMD/5.0/x86_64/lib -L/opt/cray/pe/parallel-netcdf/1.12.3.1/amd/4.3/lib -L/opt/cray/pe/netcdf-hdf5parallel/4.9.0.1/amd/4.3/lib -L/opt/cray/pe/hdf5-parallel/1.12.2.1/amd/4.3/lib -L/opt/cray/pe/dsmml/0.2.2/dsmml//lib -L/opt/cray/pe/pmi/6.1.13/lib -L/opt/cray/xpmem/2.8.4-1.0_7.3__ga37cbd9.shasta/lib64 -Wl,--as-needed,-lhdf5_hl_parallel,--no-as-needed -Wl,--as-needed,-lhdf5_parallel,--no-as-needed -Wl,--as-needed,-lhdf5hl_fortran_parallel,--no-as-needed -Wl,--as-needed,-lhdf5_fortran_parallel,--no-as-needed -Wl,--as-needed,-lpnetcdf,--no-as-needed -lmpichf90 -Wl,--as-needed,-lnetcdf,--no-as-needed -Wl,--as-needed,-lnetcdff,--no-as-needed -Wl,--as-needed,-lsci_amd_mpi_mp,--no-as-needed -Wl,--as-needed,-lsci_amd_mp,--no-as-needed -ldl -Wl,--as-needed,-lmpifort_amd,--no-as-needed -Wl,--as-needed,-lmpi_amd,--no-as-needed -lmpi_gtl_hsa -Wl,--as-needed,-ldsmml,--no-as-needed -Wl,--as-needed,-lpmi,--no-as-needed -Wl,--as-needed,-lpmi2,--no-as-needed -lxpmem -L/opt/rocm-5.4.0/lib -L/opt/rocm-5.4.0/lib64 -L/opt/rocm-5.4.0/llvm/lib -Wl,--disable-new-dtags'" -inform warn -disable-vectorize-pragmas -mp -x 69 0x200 -x 69 0x400 -y 129 2 -x 19 0x400000 -quad -x 7 0x100000 -x 68 0x1 -x 59 4 -x 15 2 -x 49 0x400004 -x 51 0x20 -x 57 0x4c -x 58 0x10000 -x 124 0x1000 -tp px -x 57 0xfb0000 -x 58 0x78031040 -x 47 0x08 -x 48 4608 -x 49 0x100 -stdinc /opt/rocm-5.4.0/llvm/bin/../include -def unix -def __unix -def __unix__ -def linux -def __linux -def __linux__ -def __NO_MATH_INLINES -def __LP64__ -def __LONG_MAX__=9223372036854775807L -def "__SIZE_TYPE__=unsigned long int" -def "__PTRDIFF_TYPE__=long int" -def __THROW= -def __extension__= -def __PGLLVM__ -preprocess -nofreeform -idir /lustre/orion/cli115/proj-shared/wuda/e3sm_scratch/X_f19_g16/bld/amdclanggpu/mpich/nodebug/threads/include -idir /opt/cray/pe/mpich/8.1.28/ofi/amd/5.0/include -idir /opt/cray/pe/libsci/23.12.5/AMD/5.0/x86_64/include -idir /opt/cray/pe/parallel-netcdf/1.12.3.1/amd/4.3/include -idir /opt/cray/pe/netcdf-hdf5parallel/4.9.0.1/amd/4.3/include -idir /opt/cray/pe/hdf5-parallel/1.12.2.1/amd/4.3/include -idir /opt/cray/pe/dsmml/0.2.2/dsmml//include -idir /opt/cray/pe/pmi/6.1.13/include -idir /opt/cray/xpmem/2.8.4-1.0_7.3__ga37cbd9.shasta/include -def __CRAY_X86_TRENTO -def __CRAY_AMD_GFX90A -def __CRAYXT_COMPUTE_LINUX_TARGET -vect 48 -x 54 1 -x 70 0x40000000 -y 163 0xc0000000 -x 189 0x10 -stbfile conftest-2989de.stb -modexport conftest-2989de.cmod -modindex conftest-2989de.cmdx -output conftest-2989de.ilm -fopenmp-targets amdgcn-amd-amdhsa
 "/opt/rocm-5.4.0/llvm/bin/flang2" conftest-2989de.ilm -y 129 2 -x 62 8 -x 6 0x100 -x 42 0x400000 -y 129 4 -x 129 0x400 -y 216 1 -ieee 1 -fn conftest.F -opt 0 -terse 1 -inform warn -cmdline "'+flang -march=znver3 -fopenmp-targets=amdgcn-amd-amdhsa -Xopenmp-target=amdgcn-amd-amdhsa -march=gfx90a -D__CRAY_X86_TRENTO -D__CRAY_AMD_GFX90A -D__CRAYXT_COMPUTE_LINUX_TARGET -o conftest -fopenmp -I/lustre/orion/cli115/proj-shared/wuda/e3sm_scratch/X_f19_g16/bld/amdclanggpu/mpich/nodebug/threads/include -v -fopenmp -L/opt/cray/pe/mpich/8.1.28/gtl/lib -lmpi_gtl_hsa -L/opt/cray/pe/gcc/12.2.0/snos/lib64 -lgfortran -lstdc++ conftest.F -I/opt/cray/pe/mpich/8.1.28/ofi/amd/5.0/include -I/opt/cray/pe/libsci/23.12.5/AMD/5.0/x86_64/include -I/opt/cray/pe/parallel-netcdf/1.12.3.1/amd/4.3/include -I/opt/cray/pe/netcdf-hdf5parallel/4.9.0.1/amd/4.3/include -I/opt/cray/pe/hdf5-parallel/1.12.2.1/amd/4.3/include -I/opt/cray/pe/dsmml/0.2.2/dsmml//include -I/opt/cray/pe/pmi/6.1.13/include -I/opt/cray/xpmem/2.8.4-1.0_7.3__ga37cbd9.shasta/include -L/opt/cray/pe/mpich/8.1.28/ofi/amd/5.0/lib -L/opt/cray/pe/mpich/8.1.28/gtl/lib -L/opt/cray/pe/libsci/23.12.5/AMD/5.0/x86_64/lib -L/opt/cray/pe/parallel-netcdf/1.12.3.1/amd/4.3/lib -L/opt/cray/pe/netcdf-hdf5parallel/4.9.0.1/amd/4.3/lib -L/opt/cray/pe/hdf5-parallel/1.12.2.1/amd/4.3/lib -L/opt/cray/pe/dsmml/0.2.2/dsmml//lib -L/opt/cray/pe/pmi/6.1.13/lib -L/opt/cray/xpmem/2.8.4-1.0_7.3__ga37cbd9.shasta/lib64 -Wl,--as-needed,-lhdf5_hl_parallel,--no-as-needed -Wl,--as-needed,-lhdf5_parallel,--no-as-needed -Wl,--as-needed,-lhdf5hl_fortran_parallel,--no-as-needed -Wl,--as-needed,-lhdf5_fortran_parallel,--no-as-needed -Wl,--as-needed,-lpnetcdf,--no-as-needed -lmpichf90 -Wl,--as-needed,-lnetcdf,--no-as-needed -Wl,--as-needed,-lnetcdff,--no-as-needed -Wl,--as-needed,-lsci_amd_mpi_mp,--no-as-needed -Wl,--as-needed,-lsci_amd_mp,--no-as-needed -ldl -Wl,--as-needed,-lmpifort_amd,--no-as-needed -Wl,--as-needed,-lmpi_amd,--no-as-needed -lmpi_gtl_hsa -Wl,--as-needed,-ldsmml,--no-as-needed -Wl,--as-needed,-lpmi,--no-as-needed -Wl,--as-needed,-lpmi2,--no-as-needed -lxpmem -L/opt/rocm-5.4.0/lib -L/opt/rocm-5.4.0/lib64 -L/opt/rocm-5.4.0/llvm/lib -Wl,--disable-new-dtags'" -inform warn -disable-vectorize-pragmas -mp -x 69 0x200 -x 69 0x400 -y 129 2 -x 68 0x1 -x 51 0x20 -x 119 0xa10000 -x 122 0x40 -x 123 0x1000 -x 127 4 -x 127 17 -x 19 0x400000 -x 28 0x40000 -x 120 0x10000000 -x 70 0x8000 -x 122 1 -x 125 0x20000 -x 164 0x800000 -quad -x 59 4 -tp px -x 120 0x1000 -x 124 0x1400 -y 15 2 -x 57 0x3b0000 -x 58 0x48000000 -x 49 0x100 -astype 0 -x 183 4 -x 121 0x800 -x 54 0x10 -x 70 0x40000000 -x 249 1023 -x 124 1 -y 163 0xc0000000 -x 189 0x10 -y 189 0x4000000 -x 183 0x10 -stbfile conftest-2989de.stb -fopenmp-targets amdgcn-amd-amdhsa -fopenmp-targets-asm /tmp/conftest-2989de.ll -asm /tmp/conftest-2989de-amdgcn-amd-amdhsa.ll -warp_size 64 -march gfx90a
 "/opt/rocm-5.4.0/llvm/bin/clang-15" -cc1 -triple amdgcn-amd-amdhsa -aux-triple x86_64-unknown-linux-gnu -emit-llvm-bc -emit-llvm-uselists -disable-free -clear-ast-before-backend -disable-llvm-verifier -discard-value-names -main-file-name conftest.F -mrelocation-model pic -pic-level 2 -fhalf-no-semantic-interposition -mframe-pointer=all -ffp-contract=on -fno-rounding-math -mconstructor-aliases -target-cpu gfx90a -fcuda-is-device -fcuda-allow-variadic-functions -target-cpu gfx90a -mllvm -treat-scalable-fixed-error-as-warning -debugger-tuning=gdb -v -resource-dir /opt/rocm-5.4.0/llvm/lib/clang/15.0.0 -fdebug-compilation-dir=/lustre/orion/cli115/proj-shared/wuda/e3sm_scratch/X_f19_g16/bld/amdclanggpu/mpich/nodebug/threads/mct -ferror-limit 19 -fvisibility protected -fopenmp -fno-openmp-target-fast -fopenmp-target-new-runtime -fno-openmp-target-ignore-env-vars -fno-openmp-assume-no-thread-state -fno-openmp-assume-no-nested-parallelism -fgnuc-version=4.2.1 -no-opaque-pointers -mllvm -disable-promote-alloca-to-vector=true -fopenmp-is-device -fopenmp-host-ir-file-path /tmp/conftest-f07d98.bc -faddrsig -o /tmp/conftest-a366fb.bc -x ir /tmp/conftest-2989de.ll
clang -cc1 version 15.0.0 based upon LLVM 15.0.0git default target x86_64-unknown-linux-gnu
 "/opt/rocm-5.4.0/llvm/bin/clang-offload-bundler" -unbundle -type=a -input=/opt/cray/pe/mpich/8.1.28/gtl/lib/libmpi_gtl_hsa.a -targets=openmp-amdgcn-amd-amdhsa-gfx90a -output=/tmp/libbc-mpi_gtl_hsa-amdgcn-gfx90a-0a477d.a -allow-missing-bundles -hip-openmp-compatible
 "/opt/rocm-5.4.0/llvm/bin/clang-offload-bundler" -unbundle -type=a -input=/opt/cray/pe/gcc/12.2.0/snos/lib64/libgfortran.a -targets=openmp-amdgcn-amd-amdhsa-gfx90a -output=/tmp/libbc-gfortran-amdgcn-gfx90a-f090e9.a -allow-missing-bundles -hip-openmp-compatible
 "/opt/rocm-5.4.0/llvm/bin/clang-offload-bundler" -unbundle -type=a -input=/opt/cray/pe/mpich/8.1.28/ofi/amd/5.0/lib/libmpichf90.a -targets=openmp-amdgcn-amd-amdhsa-gfx90a -output=/tmp/libbc-mpichf90-amdgcn-gfx90a-402da0.a -allow-missing-bundles -hip-openmp-compatible
 "/opt/rocm-5.4.0/llvm/bin/clang-offload-bundler" -unbundle -type=a -input=/opt/cray/xpmem/2.8.4-1.0_7.3__ga37cbd9.shasta/lib64/libxpmem.a -targets=openmp-amdgcn-amd-amdhsa-gfx90a -output=/tmp/libbc-xpmem-amdgcn-gfx90a-b431a3.a -allow-missing-bundles -hip-openmp-compatible
 "/opt/rocm-5.4.0/llvm/bin/llvm-link" /tmp/libbc-mpi_gtl_hsa-amdgcn-gfx90a-0a477d.a /tmp/libbc-gfortran-amdgcn-gfx90a-f090e9.a /tmp/libbc-mpichf90-amdgcn-gfx90a-402da0.a /tmp/libbc-xpmem-amdgcn-gfx90a-b431a3.a /tmp/conftest-a366fb.bc -o /tmp/conftest-a366fb-gfx90a-prelinked-cb91d4.bc
 "/opt/rocm-5.4.0/llvm/bin/llvm-link" /tmp/conftest-a366fb-gfx90a-prelinked-cb91d4.bc --internalize --only-needed /opt/rocm-5.4.0/llvm/bin/../lib/libomptarget-new-amdgpu-gfx90a.bc /opt/rocm-5.4.0/amdgcn/bitcode/ocml.bc /opt/rocm-5.4.0/amdgcn/bitcode/ockl.bc /opt/rocm-5.4.0/amdgcn/bitcode/oclc_daz_opt_off.bc /opt/rocm-5.4.0/amdgcn/bitcode/oclc_unsafe_math_off.bc /opt/rocm-5.4.0/amdgcn/bitcode/oclc_finite_only_off.bc /opt/rocm-5.4.0/amdgcn/bitcode/oclc_correctly_rounded_sqrt_on.bc /opt/rocm-5.4.0/amdgcn/bitcode/oclc_wavefrontsize64_on.bc /opt/rocm-5.4.0/amdgcn/bitcode/oclc_isa_version_90a.bc /opt/rocm-5.4.0/amdgcn/bitcode/oclc_abi_version_400.bc -o /tmp/conftest-a366fb-gfx90a-linked-5df956.bc
 "/opt/rocm-5.4.0/llvm/bin/opt" /tmp/conftest-a366fb-gfx90a-linked-5df956.bc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx90a -o /tmp/conftest-a366fb-gfx90a-optimized-647055.bc
 "/opt/rocm-5.4.0/llvm/bin/llc" /tmp/conftest-a366fb-gfx90a-optimized-647055.bc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx90a -filetype=obj -o /tmp/conftest-a366fb-gfx90a-995c6f.o
 "/opt/rocm-5.4.0/llvm/bin/lld" -flavor gnu --no-undefined -shared -o /tmp/conftest-0652b3.out /tmp/conftest-a366fb-gfx90a-995c6f.o -plugin-opt=mcpu=gfx90a

Without -fopenmp the compiler doesn't try to link device code, which is why this problem doesn't appear there.

The mpifort script ignores the craype-accel-amd-gfx90a module, which is why it doesn't hit this problem. It also won't be linking XPMEM or GTL.

The configure test shouldn't be confusing the device code linking step for an internal Fortran library linking step. I'll look to see if this is a custom test or standard one, and if we can steer it away from too aggressively scraping libXX.a

@abbotts
Copy link

abbotts commented Nov 19, 2024

That test is coming from autconf proper, and while I think it probably should be changed it's way out of the scope of what E3SM should do.

Is there OpenMP Offload or OpenACC anywhere in the code that gets built for Frontier? If so, we need to find a way to handle this problem decisively. If not, you can probably just not have amdclang-gpu load craype-accel-amd-gfx90a. Other than enabling offload that just add GTL, which is already present in https://github.com/E3SM-Project/E3SM/blob/master/cime_config/machines/cmake_macros/amdclanggpu_frontier.cmake

@rljacob
Copy link
Member

rljacob commented Nov 19, 2024

There is OpenACC in the code but we aren't currently building cases that use it on Frontier. I will ask around to see what our future plans are for those cases on Frontier.

@sarats
Copy link
Member

sarats commented Nov 20, 2024

I have a broader question. Is anyone really using amdclanggpu for real runs on Frontier?

@rljacob
Copy link
Member

rljacob commented Nov 20, 2024

Doesn't look like it which means we could also just ignore this.

@grnydawn
Copy link
Contributor

That test is coming from autconf proper, and while I think it probably should be changed it's way out of the scope of what E3SM should do.

Is there OpenMP Offload or OpenACC anywhere in the code that gets built for Frontier? If so, we need to find a way to handle this problem decisively. If not, you can probably just not have amdclang-gpu load craype-accel-amd-gfx90a. Other than enabling offload that just add GTL, which is already present in https://github.com/E3SM-Project/E3SM/blob/master/cime_config/machines/cmake_macros/amdclanggpu_frontier.cmake

@abbotts , I am trying to implement what you explained for cases where E3SM does not have OpenMP Offload or OpenACC.

The craype-accel-amd-gfx90a module is specified to be loaded for amdclanggpu in config-machines.xml. Additionally, in amdclanggpu_frontier.cmake, the following lines are relevant:

string(APPEND CMAKE_CXX_FLAGS " --offload-arch=gfx90a")
string(APPEND CMAKE_EXE_LINKER_FLAGS " -L$ENV{CRAY_MPICH_ROOTDIR}/gtl/lib -lmpi_gtl_hsa")
string(APPEND CMAKE_HIP_FLAGS "${CXXFLAGS} -munsafe-fp-atomics -x hip")

Are you suggesting removing only the module load for craype-accel-amd-gfx90a, or should other changes be made as well?

@abbotts
Copy link

abbotts commented Nov 20, 2024

I suggest you only remove the module load. If all the code you want to run on the AMD GPUs on Frontier is contained in HIP or C++ files then the lines you point out in amdclanggpu_frontier.cmake will make sure that code compiles and runs without the module.

The failure is happening specifically in the logic autoconf uses to get Fortran compiler internal libraries that it needs to link, so those flags for the C++ and HIP compilers shouldn't trigger this configure error.

@grnydawn
Copy link
Contributor

@abbotts , After removing the module, this issue no longer occurred, and the model build completed successfully. Thank you!

grnydawn added a commit that referenced this issue Nov 20, 2024
* Removed the module to resolve the issue: #6755
* May or may not need to be restored to support OpenMP Offload or OpenACC
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
AMD-compiler Issues related to AMD Compiler Frontier MCT
Projects
None yet
5 participants