Closed RolandLindh closed 4 months ago
Hi, will anyone take care of this, please? This is important for the OpenMOLCAS codes since we rely on GA for out MPI environment.
The issue can be replicated with:
$ git clone https://gitlab.com/Molcas/OpenMolcas.git
$ cd OpenMolcas
$ git checkout e522d0f6f
$ mkdir build
$ cd build
$ FC=mpiifx CC=mpiicx cmake -D LINALG=MKL -D MKLROOT=/opt/intel/mkl -D MPI=ON -D GA=ON -D GA_BUILD=ON ..
$ make
where OpenMolcas compiles GA as a CMake "ExternalProject", currently from commit da7a53ff.
But we have identified the issue on the OpenMolcas side: we have to pass the compilers to the ExternalProject, otherwise GlobalArrays will be compiled with the default (GNU) compilers, and object files are not compatible. Another possible workaround would be using dynamic libraries, I guess (but that's still something on the OpenMolcas side). I don't think there's anything wrong (regarding this issue) with GA, except that it would be nice if it could find a default GCCROOT
instead of requiring to set it explicitly.
I cannot reproduce this. There might be an issue with CMake but I do not use and do not support CMake so you'll have to wait for @ajaypanyala to deal with it.
I had other issues.
GCCROOT
. It is possible this causes your problem, but I doubt it, because the build just fails here. #message(FATAL_ERROR "GCCROOT variable not set when using clang compilers. \
# The GCCROOT path can be found using the command: \"which gcc\" ")
jhammond@nuclear:/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays-build$ rm -rf * ; GCCROOT=/usr FC=mpiifx CC=mpiicx /usr/local/bin/cmake -DCMAKE_INSTALL_PREFIX=/tmp/OpenMolcas/build/External/GlobalArrays_install -DCMAKE_INSTALL_RPATH_USE_LINK_PATH=TRUE -DBUILD_SHARED_LIBS=OFF -DENABLE_FORTRAN=ON -DENABLE_CXX=OFF -DENABLE_TESTS=OFF -DENABLE_BLAS=ON -DLINALG_VENDOR=IntelMKL -DLINALG_PREFIX=/opt/intel/oneapi/mkl/latest -DENABLE_I8=ON -DLINALG_REQUIRED_COMPONENTS=ilp64 -G "Unix Makefiles" ../GlobalArrays/
-- The C compiler identification is IntelLLVM 2023.2.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /opt/intel/oneapi/mpi/2021.10.0/bin/mpiicx - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- CMAKE_MODULE_PATH: /tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays/cmake/linalg-modules;/tmp/OpenMolcas/
build/External/GlobalArrays/src/GlobalArrays/cmake
-- Value of ENABLE_CXX was set by user to : OFF
-- Value of ENABLE_FORTRAN was set by user to : ON
-- Setting value of CMAKE_CXX_EXTENSIONS to default : OFF
-- The Fortran compiler identification is IntelLLVM 2023.2.0
-- Detecting Fortran compiler ABI info
-- Detecting Fortran compiler ABI info - done
-- Check for working Fortran compiler: /opt/intel/oneapi/mpi/2021.10.0/bin/mpiifx - skipped
-- Checking whether /opt/intel/oneapi/mpi/2021.10.0/bin/mpiifx supports Fortran 90
-- Checking whether /opt/intel/oneapi/mpi/2021.10.0/bin/mpiifx supports Fortran 90 - yes
-- Setting value of CMAKE_BUILD_TYPE to default : Release
-- Value of LINALG_VENDOR was set by user to : IntelMKL
-- Value of ENABLE_TESTS was set by user to : OFF
-- Setting value of ENABLE_PROFILING to default : OFF
-- Value of ENABLE_BLAS was set by user to : ON
-- Setting value of ENABLE_SCALAPACK to default : OFF
-- Setting value of ENABLE_EISPACK to default : OFF
-- Setting value of ENABLE_DPCPP to default : OFF
CMake Error at cmake/ga-compiler-options.cmake:22 (message):
GCCROOT variable not set when using clang compilers. The GCCROOT path can
be found using the command: "which gcc"
Call Stack (most recent call first):
CMakeLists.txt:74 (include)
-- Configuring incomplete, errors occurred!
See also "/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays-build/CMakeFiles/CMakeOutput.log".
jhammond@nuclear:/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays-build$ vi cmake/ga-compiler-options.cmake
jhammond@nuclear:/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays-build$ vi ../GlobalArrayscmake/ga-compiler-options.cmake
jhammond@nuclear:/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays-build$ vi ../GlobalArrays/cmake/ga-compiler-options.cmake
jhammond@nuclear:/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays-build$ rm -rf * ; GCCROOT=/usr FC=mpiifx CC=mpiicx /usr/local/bin/cmake -DCMAKE_INSTALL_PREFIX=/tmp/OpenMolcas/build/External/GlobalArrays_install -DCMAKE_INSTALL_RPATH_USE_LINK_PATH=TRUE -DBUILD_SHARED_LIBS=OFF -DENABLE_FORTRAN=ON -DENABLE_CXX=OFF -DENABLE_TESTS=OFF -DENABLE_BLAS=ON -DLINALG_VENDOR=IntelMKL -DLINALG_PREFIX=/opt/intel/oneapi/mkl/latest -DENABLE_I8=ON -DLINALG_REQUIRED_COMPONENTS=ilp64 -G "Unix Makefiles" ../GlobalArrays/
-- The C compiler identification is IntelLLVM 2023.2.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /opt/intel/oneapi/mpi/2021.10.0/bin/mpiicx - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- CMAKE_MODULE_PATH: /tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays/cmake/linalg-modules;/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays/cmake
-- Value of ENABLE_CXX was set by user to : OFF
-- Value of ENABLE_FORTRAN was set by user to : ON
-- Setting value of CMAKE_CXX_EXTENSIONS to default : OFF
-- The Fortran compiler identification is IntelLLVM 2023.2.0
-- Detecting Fortran compiler ABI info
-- Detecting Fortran compiler ABI info - done
-- Check for working Fortran compiler: /opt/intel/oneapi/mpi/2021.10.0/bin/mpiifx - skipped
-- Checking whether /opt/intel/oneapi/mpi/2021.10.0/bin/mpiifx supports Fortran 90
-- Checking whether /opt/intel/oneapi/mpi/2021.10.0/bin/mpiifx supports Fortran 90 - yes
-- Setting value of CMAKE_BUILD_TYPE to default : Release
-- Value of LINALG_VENDOR was set by user to : IntelMKL
-- Value of ENABLE_TESTS was set by user to : OFF
-- Setting value of ENABLE_PROFILING to default : OFF
-- Value of ENABLE_BLAS was set by user to : ON
-- Setting value of ENABLE_SCALAPACK to default : OFF
-- Setting value of ENABLE_EISPACK to default : OFF
-- Setting value of ENABLE_DPCPP to default : OFF
-- GA_GCC_TOOLCHAIN_FLAG:
-- Setting value of GA_RUNTIME to default : MPI_2SIDED
-- Checking MPI ...
-- Found MPI_C: /opt/intel/oneapi/mpi/2021.10.0/bin/mpiicx (found version "3.1")
-- Found MPI_Fortran: /opt/intel/oneapi/mpi/2021.10.0/bin/mpiifx (found version "3.1")
-- Found MPI: TRUE (found version "3.1")
-- Performing Test HAVE_RESTRICT
-- Performing Test HAVE_RESTRICT - Success
-- Performing Test HAVE_INLINE_NATIVE
-- Performing Test HAVE_INLINE_NATIVE - Success
-- Performing Test HAVE_PAUSE
-- Performing Test HAVE_PAUSE - Failed
-- Performing Test HAVE_LONG_DOUBLE
-- Performing Test HAVE_LONG_DOUBLE - Success
-- Performing Test HAVE_SYS_WEAK_ALIAS_PRAGMA
-- Performing Test HAVE_SYS_WEAK_ALIAS_PRAGMA - Failed
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - found
-- Check size of int
-- Check size of int - done
-- Check size of double
-- Check size of double - done
-- Check size of float
-- Check size of float - done
-- Check size of long
-- Check size of long - done
-- Check size of long double
-- Check size of long double - done
-- Check size of long long
-- Check size of long long - done
-- Check size of short
-- Check size of short - done
-- Looking for include file assert.h
-- Looking for include file assert.h - found
-- Looking for include file limits.h
-- Looking for include file limits.h - found
-- Looking for include file linux/limits.h
-- Looking for include file linux/limits.h - found
-- Looking for include file malloc.h
-- Looking for include file malloc.h - found
-- Looking for include file math.h
-- Looking for include file math.h - found
-- Looking for include file stdio.h
-- Looking for include file stdio.h - found
-- Looking for include file stdlib.h
-- Looking for include file stdlib.h - found
-- Looking for include file strings.h
-- Looking for include file strings.h - found
-- Looking for include file string.h
-- Looking for include file string.h - found
-- Looking for include file unistd.h
-- Looking for include file unistd.h - found
-- Looking for include file windows.h
-- Looking for include file windows.h - not found
-- Looking for bzero
-- Looking for bzero - found
-- Detecting Fortran/C Interface
-- Detecting Fortran/C Interface - Found GLOBAL and MODULE mangling
-- void size: 8, USE_I8: ON, ENABLE_I8: ON
-- BLAS_LIBRARIES Not Given: Will Perform Search
-- Found OpenMP_C: -fiopenmp (found version "5.0")
-- Found OpenMP_Fortran: -fiopenmp (found version "5.0")
-- Found OpenMP: TRUE (found version "5.0")
-- Checking if OpenMP is GNU
-- Checking if OpenMP is GNU -- NO
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- Found IntelMKL: -Wl,--start-group;/opt/intel/oneapi/mkl/latest/lib/intel64/libmkl_intel_ilp64.a;/opt/intel/oneapi/mkl/latest/lib/intel64/libmkl_intel_thread.a;/opt/intel/oneapi/mkl/latest/lib/intel64/libmkl_core.a;-Wl,--end-group;OpenMP::OpenMP_C;m;dl;Threads::Threads (found version "2023.0.2") found components: ilp64 ilp64
-- Performing Test BLAS_LOWER_UNDERSCORE
-- Performing Test BLAS_LOWER_UNDERSCORE -- found
-- Found BLAS: TRUE found components: ilp64
-- LAPACK_LIBRARIES Not Given: Checking for LAPACK in BLAS
-- Performing Test LAPACK_LOWER_UNDERSCORE
-- Performing Test LAPACK_LOWER_UNDERSCORE -- found
-- BLAS Has A Full LAPACK Linker
-- Found LAPACK: TRUE
-- Found OpenMP_C: -fiopenmp (found version "5.0")
-- Found OpenMP_Fortran: -fiopenmp (found version "5.0")
-- Performing Test BLAS_LOWER_UNDERSCORE
-- Performing Test BLAS_LOWER_UNDERSCORE -- found
-- Found BLAS: TRUE
-- HAVE_BLAS: 1
-- HAVE_LAPACK: 1
-- HAVE_SCALAPACK:
-- BLAS_LIBRARIES: -Wl,--start-group;/opt/intel/oneapi/mkl/latest/lib/intel64/libmkl_intel_ilp64.a;/opt/intel/oneapi/mkl/latest/lib/intel64/libmkl_intel_thread.a;/opt/intel/oneapi/mkl/latest/lib/intel64/libmkl_core.a;-Wl,--end-group;OpenMP::OpenMP_C;m;dl;Threads::Threads
-- LAPACK_LIBRARIES: -Wl,--start-group;/opt/intel/oneapi/mkl/latest/lib/intel64/libmkl_intel_ilp64.a;/opt/intel/oneapi/mkl/latest/lib/intel64/libmkl_intel_thread.a;/opt/intel/oneapi/mkl/latest/lib/intel64/libmkl_core.a;-Wl,--end-group;OpenMP::OpenMP_C;m;dl;Threads::Threads
-- CMAKE_Fortran_COMPILER: /opt/intel/oneapi/mpi/2021.10.0/bin/mpiifx
-- CMAKE_Fortran_COMPILER_ID: IntelLLVM
-- Using Intel Fortran compiler settings
-- Fortran flags: -i8 -integer-size 64
-- Performing Test BLAS_1_SIGNATURE
-- Performing Test BLAS_1_SIGNATURE - Failed
-- Performing Test BLAS_2_SIGNATURE
-- Performing Test BLAS_2_SIGNATURE - Failed
-- Performing Test BLAS_3_SIGNATURE
-- Performing Test BLAS_3_SIGNATURE - Failed
-- Performing Test BLAS_4_SIGNATURE
-- Performing Test BLAS_4_SIGNATURE - Failed
-- Performing Test BLAS_5_SIGNATURE
-- Performing Test BLAS_5_SIGNATURE - Failed
-- Performing Test BLAS_6_SIGNATURE
-- Performing Test BLAS_6_SIGNATURE - Failed
-- Performing Test FUNCTION_1_SIGNATURE
-- Performing Test FUNCTION_1_SIGNATURE - Success
-- Performing Test FUNCTION_2_SIGNATURE
-- Performing Test FUNCTION_2_SIGNATURE - Success
-- Looking for sched_setaffinity
-- Looking for sched_setaffinity - found
-- Looking for pthread_setaffinity_np
-- Looking for pthread_setaffinity_np - found
-- Configuring done
-- Generating done
-- Build files have been written to: /tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays-build
jhammond@nuclear:/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays-build$ make -j
[ 1%] Generating config.fh
[ 2%] Building C object comex/CMakeFiles/armci_comex.dir/src-armci/armci.c.o
[ 3%] Building C object comex/CMakeFiles/armci_comex.dir/src-armci/capi.c.o
[ 5%] Building C object comex/CMakeFiles/armci.dir/src-armci/armci.c.o
[ 6%] Building C object comex/CMakeFiles/armci_comex.dir/src-armci/groups.c.o
[ 7%] Building C object comex/CMakeFiles/armci_comex.dir/src-armci/iterator.c.o
[ 9%] Building C object comex/CMakeFiles/comex.dir/src-mpi/comex.c.o
[ 10%] Building C object comex/CMakeFiles/armci.dir/src-armci/groups.c.o
[ 11%] Building C object comex/CMakeFiles/armci.dir/src-armci/capi.c.o
[ 12%] Building C object comex/CMakeFiles/comex.dir/src-mpi/groups.c.o
[ 14%] Building C object comex/CMakeFiles/armci.dir/src-armci/iterator.c.o
[ 15%] Building C object comex/CMakeFiles/armci_comex.dir/src-mpi/comex.c.o
[ 16%] Building C object comex/CMakeFiles/armci_comex.dir/src-armci/message.c.o
[ 18%] Building C object comex/CMakeFiles/armci.dir/src-armci/message.c.o
[ 19%] Building C object comex/CMakeFiles/armci.dir/src-mpi/comex.c.o
[ 19%] Built target GenerateConfigFH
[ 20%] Building C object comex/CMakeFiles/armci.dir/src-mpi/groups.c.o
[ 22%] Building C object comex/CMakeFiles/armci_comex.dir/src-mpi/groups.c.o
Scanning dependencies of target gaf2c
[ 23%] Building C object gaf2c/CMakeFiles/gaf2c.dir/gaf2c.c.o
[ 24%] Building C object pario/CMakeFiles/sf.dir/sf/shared.files.c.o
[ 25%] Building C object gaf2c/CMakeFiles/gaf2c.dir/testarg.c.o
[ 27%] Building C object pario/CMakeFiles/dra.dir/dra/capi.c.o
[ 28%] Building C object pario/CMakeFiles/sf.dir/sf/sf_capi.c.o
[ 36%] Building C object pario/CMakeFiles/dra.dir/dra/disk.param.c.o
[ 29%] Building C object pario/CMakeFiles/elio.dir/elio/elio.c.o
[ 31%] Building C object gaf2c/CMakeFiles/gaf2c.dir/drand.c.o
[ 32%] Building C object pario/CMakeFiles/sf.dir/sf/sf_fortran.c.o
[ 33%] Building C object pario/CMakeFiles/elio.dir/elio/stat.c.o
[ 35%] Building C object pario/CMakeFiles/eaf.dir/eaf/eaf.c.o
[ 37%] Building C object pario/CMakeFiles/eaf.dir/eaf/eaf_f2c.c.o
[ 38%] Building C object pario/CMakeFiles/dra.dir/dra/env.c.o
[ 41%] Building Fortran object gaf2c/CMakeFiles/gaf2c.dir/farg.F.o
[ 40%] Building C object pario/CMakeFiles/dra.dir/dra/disk.arrays.c.o
[ 42%] Building C object pario/CMakeFiles/dra.dir/dra/buffers.c.o
[ 44%] Building C object pario/CMakeFiles/dra.dir/dra/fortran.c.o
[ 45%] Building C object pario/CMakeFiles/dra.dir/dra/patch.util.c.o
[ 45%] Built target gaf2c
[ 46%] Generating ga-wapidefs.h
Scanning dependencies of target ma
[ 48%] Generating ga-wapi.h
-- Reading /tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays/global/src/ga-papi.h ...
-- Reading /tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays/global/src/ga-papi.h ...
-- Writing /tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays-build/global/src/ga-wapi.h ...
[ 48%] Built target sf
[ 49%] Building C object ma/CMakeFiles/ma.dir/ma.c.o
[ 50%] Building C object ma/CMakeFiles/ma.dir/error.c.o
[ 51%] Building C object ma/CMakeFiles/ma.dir/string-util.c.o
[ 53%] Building C object ma/CMakeFiles/ma.dir/table.c.o
-- Writing /tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays-build/global/src/ga-wapidefs.h ...
Scanning dependencies of target ga_src
[ 54%] Building Fortran object ma/CMakeFiles/ma.dir/maf.F.o
[ 55%] Building C object ma/CMakeFiles/ma.dir/f2c.c.o
[ 57%] Building C object global/src/CMakeFiles/ga_src.dir/base.c.o
[ 58%] Building C object global/src/CMakeFiles/ga_src.dir/onesided.c.o
[ 58%] Built target elio
[ 59%] Building C object global/src/CMakeFiles/ga_src.dir/collect.c.o
[ 61%] Building C object global/src/CMakeFiles/ga_src.dir/ghosts.c.o
[ 62%] Building C object global/src/CMakeFiles/ga_src.dir/datatypes.c.o
[ 63%] Building C object global/src/CMakeFiles/ga_src.dir/capi.c.o
[ 64%] Building C object global/src/CMakeFiles/ga_src.dir/DP.c.o
[ 66%] Building C object global/src/CMakeFiles/ga_src.dir/decomp.c.o
[ 67%] Building C object global/src/CMakeFiles/ga_src.dir/ga_solve_seq.c.o
[ 68%] Building C object global/src/CMakeFiles/ga_src.dir/fapi.c.o
[ 70%] Building C object global/src/CMakeFiles/ga_src.dir/global.npatch.c.o
[ 71%] Building C object global/src/CMakeFiles/ga_src.dir/elem_alg.c.o
[ 72%] Building C object global/src/CMakeFiles/ga_src.dir/ga_diag_seqc.c.o
[ 74%] Building C object global/src/CMakeFiles/ga_src.dir/ga_symmetr.c.o
[ 75%] Building C object global/src/CMakeFiles/ga_src.dir/ga_malloc.c.o
[ 76%] Building C object global/src/CMakeFiles/ga_src.dir/ga_profile.c.o
[ 76%] Built target eaf
/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays/ma/f2c.c:17:21: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype][ 77%] Building C object global/src/CMakeFiles/ga_src.dir/ga_trace.c.o
public Boolean FATR f2c_alloc_get_(datatype, nelem, name, memhandle, index, namesize)
^
/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays/ma/ma.h:19:41: note: expanded from macro 'f2c_alloc_get_'
#define f2c_alloc_get_ F77_FUNC_(f2c_alloc_get,F2C_ALLOC_GET)
^
/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays-build/config.h:73:30:[ 79%] Building C object global/src/CMakeFiles/ga_src.dir/global.nalg.c.o
note: expanded from macro 'F77_FUNC_'
#define F77_FUNC_(name,NAME) name ## _
^
<scratch space>:4:1: note: expanded from here
f2c_alloc_get_
^
/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays/ma/f2c.c:50:21: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
public Boolean FATR f2c_allocate_heap_(datatype, nelem, name, memhandle, namesize)
^
/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays/ma/ma.h:20:41: note: expanded from macro 'f2c_allocate_heap_'
#define f2c_allocate_heap_ F77_FUNC_(f2c_allocate_heap,F2C_ALLOCATE_HEAP)
^
/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays-build/config.h:73:30: note: expanded from macro 'F77_FUNC_'
#define F77_FUNC_(name,NAME) name ## _
^
<scratch space>:5:1: note: expanded from here
f2c_allocate_heap_
^
/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays/ma/f2c.c:74:21: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
public Boolean FATR f2c_chop_stack_(memhandle)
^
/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays/ma/ma.h:21:41: note: expanded from macro 'f2c_chop_stack_'
#define f2c_chop_stack_ F77_FUNC_(f2c_chop_stack,F2C_CHOP_STACK)
^
/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays-build/config.h:73:30: note: expanded from macro 'F77_FUNC_'
#define F77_FUNC_(name,NAME) name ## _
^
<scratch space>:6:1: note: expanded from here
f2c_chop_stack_
^
/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays/ma/f2c.c:81:21: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
public Boolean FATR f2c_free_heap_(memhandle)
^
/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays/ma/ma.h:22:41: note: expanded from macro 'f2c_free_heap_'
#define f2c_free_heap_ F77_FUNC_(f2c_free_heap,F2C_FREE_HEAP)
^
/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays-build/config.h:73:30: note: expanded from macro 'F77_FUNC_'
#define F77_FUNC_(name,NAME) name ## _
^
<scratch space>:7:1: note: expanded from here
f2c_free_heap_
^
/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays/ma/f2c.c:/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays/ma/table.c:81:16: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]88
public Integer ma_table_allocate(data):21
^
: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
public Boolean FATR f2c_free_heap_piece_(memhandle, nelem)
^
/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays/ma/ma.h:23:41: note: expanded from macro 'f2c_free_heap_piece_'
#define f2c_free_heap_piece_ F77_FUNC_(f2c_free_heap_piece,F2C_FREE_HEAP_PIECE)
^
/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays-build/config.h:73:30: note: expanded from macro 'F77_FUNC_'
#define F77_FUNC_(name,NAME) name ## _
^
<scratch space>:8:1: note: expanded from here
f2c_free_heap_piece_
^
/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays/ma/f2c.c:96:21: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
public Boolean FATR f2c_get_index_(memhandle, index)
^
/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays/ma/ma.h:24:41: note: expanded from macro 'f2c_get_index_'
#define f2c_get_index_ F77_FUNC_(f2c_get_index,F2C_GET_INDEX)
^
/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays-build/config.h:73:30: note: expanded from macro 'F77_FUNC_'
#define F77_FUNC_(name,NAME) name ## _
^
<scratch space>:9:1: note: expanded from here
f2c_get_index_
^
/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays/ma/f2c.c:109:21: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
public Boolean FATR f2c_get_next_memhandle_(ithandle, memhandle)
^
/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays/ma/ma.h:25:41: note: expanded from macro 'f2c_get_next_memhandle_'
#define f2c_get_next_memhandle_ F77_FUNC_(f2c_get_next_memhandle,F2C_GET_NEXT_MEMHANDLE)
^
/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays-build/config.h:73:30: note: expanded from macro 'F77_FUNC_'
#define F77_FUNC_(name,NAME) name ## _
^
<scratch space>:10:1: note: expanded from here
f2c_get_next_memhandle_
^
/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays/ma/f2c.c:117:21: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
public Boolean FATR f2c_get_numalign_(value)
^
/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays/ma/ma.h:26:41: note: expanded from macro 'f2c_get_numalign_'
#define f2c_get_numalign_ F77_FUNC_(f2c_get_numalign,F2C_GET_NUMALIGN)
^
/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays-build/config.h:73:30: note: expanded from macro 'F77_FUNC_'
#define F77_FUNC_(name,NAME) name ## _
^
<scratch space>:11:1: note: expanded from here
f2c_get_numalign_
^
/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays/ma/f2c.c:124:21: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
public Boolean FATR f2c_inform_base_(datatype, address1, address2)
^
/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays/ma/ma.h:27:41: note: expanded from macro 'f2c_inform_base_'
#define f2c_inform_base_ F77_FUNC_(f2c_inform_base,F2C_INFORM_BASE)
^
/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays-build/config.h:73:30: note: expanded from macro 'F77_FUNC_'
#define F77_FUNC_(name,NAME) name ## _
^
<scratch space>:12:1: note: expanded from here
f2c_inform_base_
^
/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays/ma/f2c.c:133/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays/ma/ma.c:503:17: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
private Boolean ad_big_enough(ad, ar)
^
:21: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
public Boolean FATR f2c_init_(datatype, nominal_stack, nominal_heap)
^
/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays/ma/ma.h:29:41: note: expanded from macro 'f2c_init_'/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays/ma/ma.c:535:17: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
private Boolean ad_eq(ad, ad_target)
^
#define f2c_init_ F77_FUNC_(f2c_init,F2C_INIT)
^
/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays/ma/ma.c:548/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays-build/config.h:17: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
private Boolean ad_gt(ad, ad_target)
^
:73:/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays/ma/ma.c:561:17: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
private Boolean ad_le(ad, ad_target)
^
30: note: expanded from macro 'F77_FUNC_'/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays/ma/ma.c:574:
17: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
private Boolean ad_lt(ad, ad_target)
^
#define F77_FUNC_(name,NAME) name ## _
^
/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays/ma/ma.c:587:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
private void ad_print(ad, block_type)
^
<scratch space>:13:1: note: expanded from here
f2c_init_
^
/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays/ma/f2c.c:148:21: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
public Boolean FATR f2c_init_memhandle_iterator_(ithandle)
^
/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays/ma/ma.h:30:41: note: expanded from macro 'f2c_init_memhandle_iterator_'
#define f2c_init_memhandle_iterator_ F77_FUNC_(f2c_init_memhandle_iterator,F2C_INIT_MEMHANDLE_ITERATOR)
^
/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays-build/config.h:73:30: note: expanded from macro 'F77_FUNC_'
#define F77_FUNC_(name,NAME) name ## _
^
<scratch space>:15:1: note: expanded from here
f2c_init_memhandle_iterator_
^
/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays/ma/f2c.c:155:21: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
public Integer FATR f2c_inquire_avail_(datatype)
^
/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays/ma/ma.h:32:41: note: expanded from macro 'f2c_inquire_avail_'
#define f2c_inquire_avail_ F77_FUNC_(f2c_inquire_avail,F2C_INQUIRE_AVAIL)
^
/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays-build/config.h:73:30: note: expanded from macro 'F77_FUNC_'
#define F77_FUNC_(name,NAME) name ## _
^
<scratch space>:16:1: note: expanded from here
f2c_inquire_avail_
^
/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays/ma/f2c.c:162:21: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays/ma/table.c:167public Integer FATR f2c_inquire_heap_(datatype)
^
:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
public void ma_table_deallocate(handle)
/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays/ma/ma.h:33:41: note: ^
expanded from macro 'f2c_inquire_heap_'
#define f2c_inquire_heap_ F77_FUNC_(f2c_inquire_heap,F2C_INQUIRE_HEAP)
^
/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays-build/config.h:73:30: note: expanded from macro 'F77_FUNC_'
#define F77_FUNC_(name,NAME) name ## _
^
<scratch space>:17:1: note: expanded from here
f2c_inquire_heap_
^
/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays/ma/f2c.c:169/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays/ma/table.c:188:18: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
public TableData ma_table_lookup(handle):
^
21: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
public Integer FATR f2c_inquire_heap_check_stack_(datatype)
^
/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays/ma/ma.h:35:41: note: expanded from macro 'f2c_inquire_heap_check_stack_'
#define f2c_inquire_heap_check_stack_ F77_FUNC_(f2c_inquire_heap_check_stack,F2C_INQUIRE_HEAP_CHECK_STACK)
^
/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays-build/config.h:73:30: note: expanded from macro 'F77_FUNC_'
#define F77_FUNC_(name,NAME) name ## _
^
<scratch space>:18:1: note: expanded from here
f2c_inquire_heap_check_stack_
^
/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays/ma/f2c.c:176/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays/ma/table.c:210:16: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
public Integer ma_table_lookup_assoc(data)
^
/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays/ma/ma.c:21: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]:616:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
private void balloc_after(ar, address, client_space, nbytes)
^
public Integer FATR f2c_inquire_heap_no_partition_(datatype)
^
/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays/ma/ma.h:36:41: note: expanded from macro 'f2c_inquire_heap_no_partition_'
#define f2c_inquire_heap_no_partition_ F77_FUNC_(f2c_inquire_heap_no_partition,F2C_INQUIRE_HEAP_NO_PARTITION)
^
/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays-build/config.h:73:30: /tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays/ma/string-util.c:50:14: note: warning: expanded from macro 'F77_FUNC_'
#define F77_FUNC_(name,NAME) name ## _/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays/ma/table.c
^:233:16: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
public Boolean ma_table_verify(handle, caller)
^
a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
unsigned int str_len(s)
^/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays/ma/ma.c:732:14
In file included from /tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays/ma/string-util.c:38:
/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays/ma/string-util.h:21:21: warning: <scratch space>:19:1: note: expanded from here
f2c_inquire_heap_no_partition_
^
a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype]
extern unsigned int str_len();
^
/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays/ma/f2c.c:183:21: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
public Integer FATR f2c_inquire_stack_(datatype)
^
/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays/ma/ma.h:34:41: note: :expanded from macro 'f2c_inquire_stack_'
#define f2c_inquire_stack_ F77_FUNC_(f2c_inquire_stack,F2C_INQUIRE_STACK)warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
private void balloc_before(ar, address, client_space, nbytes) ^
/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays-build/config.h
:73 ^:
30: note: expanded from macro 'F77_FUNC_'
#define F77_FUNC_(name,NAME) name ## _
^
<scratch space>:20:1: note: expanded from here
f2c_inquire_stack_
^
/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays/ma/string-util.c:83:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
int str_match(s, slist, n)
^
/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays/ma/f2c.cIn file included from :190:21:/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays/ma/string-util.c :38:
warning: /tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays/ma/string-util.ha function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]:22
:public Integer FATR f2c_inquire_stack_check_heap_(datatype)12: warning:
a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype] ^
extern int str_match();
^/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays/ma/ma.h
:37:41: note: expanded from macro 'f2c_inquire_stack_check_heap_'
#define f2c_inquire_stack_check_heap_ F77_FUNC_(f2c_inquire_stack_check_heap,F2C_INQUIRE_STACK_CHECK_HEAP)
^
/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays-build/config.h:73:30: note: expanded from macro 'F77_FUNC_'
#define F77_FUNC_(name,NAME) name ## _
^
/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays/ma/ma.c<scratch space>::21841::114:: note: warning: expanded from herea function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
f2c_inquire_stack_check_heap_
private void block_free_heap(ad)
^
^
/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays/ma/f2c.c:197:21: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
public Integer FATR f2c_inquire_stack_no_partition_(datatype)
^
/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays/ma/ma.h:38:41:/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays/ma/ma.c :note: 897:expanded from macro 'f2c_inquire_stack_no_partition_'13:
#define f2c_inquire_stack_no_partition_ F77_FUNC_(f2c_inquire_stack_no_partition,F2C_INQUIRE_STACK_NO_PARTITION)warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
private AD *block_split(ad, bytes_needed, insert_free) ^
/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays-build/config.h:73 ^:
30: note: expanded from macro 'F77_FUNC_'
#define F77_FUNC_(name,NAME) name ## _
^
<scratch space>:22:1: note: expanded from here
f2c_inquire_stack_no_partition_
^
/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays/ma/ma.c:949:16: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
private ulongi checksum(ad)
^
/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays/ma/f2c.c:204:21: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
public Boolean FATR f2c_pop_stack_(memhandle)
^
/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays/ma/ma.h:39:41: note: expanded from macro 'f2c_pop_stack_'
#define f2c_pop_stack_ F77_FUNC_(f2c_pop_stack,F2C_POP_STACK)/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays/ma/ma.c:1037
:17 ^:
warning: /tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays-build/config.h:73a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]:30
:private Boolean guard_check(ad) note: expanded from macro 'F77_FUNC_'
^#define F77_FUNC_(name,NAME) name ## _
^
<scratch space>:23:1: note: expanded from here
f2c_pop_stack_
^
/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays/ma/f2c.c:211:18: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
public void FATR f2c_print_stats_(printroutines)/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays/ma/ma.c:1063
:14 ^:
warning: /tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays/ma/ma.h:40a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]:41
:private void guard_set(ad)
note: ^expanded from macro 'f2c_print_stats_'
#define f2c_print_stats_ F77_FUNC_(f2c_print_stats,F2C_PRINT_STATS)
^
/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays-build/config.h:73:30: note: expanded from macro 'F77_FUNC_'
#define F77_FUNC_(name,NAME) name ## _
^
<scratch space>:24:1: note: expanded from here
f2c_print_stats_
^
/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays/ma/ma.c:1086:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
private void list_coalesce(list)
^
/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays/ma/f2c.c:219:21:/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays/ma/ma.c :1119warning: :13:a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
warning: public Boolean FATR f2c_push_get_(datatype, nelem, name, memhandle, index, namesize)a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
private AD *list_delete(ad, list)
^
^
/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays/ma/ma.h:41:41: note: expanded from macro 'f2c_push_get_'
#define f2c_push_get_ F77_FUNC_(f2c_push_get,F2C_PUSH_GET)
^
/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays-build/config.h:73:30: note: expanded from macro 'F77_FUNC_'
#define F77_FUNC_(name,NAME) name ## _
^
<scratch space>:25:/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays/ma/ma.c1:: 1134:13note: : expanded from here
warning: f2c_push_get_a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
private int list_delete_many(list, pred, closure, action)
^
^
/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays/ma/ma.c:1147:20: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
if ((*pred)(ad1, closure))
^
/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays/ma/ma.c:1151:26: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
(*action)(ad1);
^
/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays/ma/ma.c:1184:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
private AD *list_delete_one(list, pred, closure)
/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays/ma/f2c.c ^:
252:21: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
public Boolean FATR f2c_push_stack_(datatype, nelem, name, memhandle, namesize)
^
/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays/ma/ma.h:42:41: note: expanded from macro 'f2c_push_stack_'
#define f2c_push_stack_ F77_FUNC_(f2c_push_stack,F2C_PUSH_STACK)
^
/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays/ma/ma.c:1195/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays-build/config.h::2073:: 30: warning: note: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]expanded from macro 'F77_FUNC_'
if ((*pred)(ad1, closure))#define F77_FUNC_(name,NAME) name ## _
^ ^
<scratch space>:26:1: note: expanded from here
f2c_push_stack_
^
/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays/ma/ma.c:1224:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
private void list_insert(ad, list)
^
/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays/ma/ma.c:1241:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
private void list_insert_ordered(ad, list, pred)
^
/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays/ma/f2c.c:276:21: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
public Boolean FATR f2c_set_auto_verify_(value)
^
/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays/ma/ma.h:43:41: note: /tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays/ma/ma.cexpanded from macro 'f2c_set_auto_verify_':
1261#define f2c_set_auto_verify_ F77_FUNC_(f2c_set_auto_verify,F2C_SET_AUTO_VERIFY):20:
warning: ^
passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
if ((*pred)(ad, ad1))/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays-build/config.h:73:
30: ^
note: expanded from macro 'F77_FUNC_'
#define F77_FUNC_(name,NAME) name ## _
^
<scratch space>:27:1: note: expanded from here
f2c_set_auto_verify_
^
/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays/ma/ma.c:1292:17: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
private Boolean list_member(ad, list)
^
/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays/ma/ma.c:1314:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
private int list_print(list, block_type, index_base)/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays/ma/f2c.c:283
: ^21
: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
public Boolean FATR f2c_set_error_print_(value)
^
/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays/ma/ma.h:44:41: note: expanded from macro 'f2c_set_error_print_'
#define f2c_set_error_print_ F77_FUNC_(f2c_set_error_print,F2C_SET_ERROR_PRINT)
^
/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays-build/config.h:73:30: note: expanded from macro 'F77_FUNC_'
#define F77_FUNC_(name,NAME) name ## _
^
<scratch space>:28:1: note: expanded from here
f2c_set_error_print_
^
/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays/ma/ma.c:1352:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
private void list_verify(list, block_type, preamble, blocks,
^
/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays/ma/f2c.c:290:21: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
public Boolean FATR f2c_set_hard_fail_(value)
^
/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays/ma/ma.h:45:41: note: expanded from macro 'f2c_set_hard_fail_'
#define f2c_set_hard_fail_ F77_FUNC_(f2c_set_hard_fail,F2C_SET_HARD_FAIL)
^
/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays-build/config.h:73:30: note: expanded from macro 'F77_FUNC_'
#define F77_FUNC_(name,NAME) name ## _
^
<scratch space>:29:1: [ 80%] Building C object global/src/CMakeFiles/ga_src.dir/global.periodic.c.o
note: expanded from here
f2c_set_hard_fail_
^
/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays/ma/f2c.c:297:21: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
public Boolean FATR f2c_set_numalign_(value)
^
/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays/ma/ma.h:46:41: note: expanded from macro 'f2c_set_numalign_'
#define f2c_set_numalign_ F77_FUNC_(f2c_set_numalign,F2C_SET_NUMALIGN)
^
/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays-build/config.h:73:30: note: expanded from macro 'F77_FUNC_'
#define F77_FUNC_(name,NAME) name ## _
^
<scratch space>:30:1: /tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays/ma/ma.c:note: 1469:expanded from here17:
f2c_set_numalign_warning:
a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]^
private Integer ma_max_heap_frag_nelem(datatype, min_nelem)
^
/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays/ma/f2c.c:304:21: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
public Integer FATR f2c_sizeof_(datatype1, nelem1, datatype2)
^
/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays/ma/ma.h:47:41: note: expanded from macro 'f2c_sizeof_'
#define f2c_sizeof_ F77_FUNC_(f2c_sizeof,F2C_SIZEOF)
^
/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays-build/config.h:73:30: note: /tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays/ma/ma.cexpanded from macro 'F77_FUNC_':1528
:#define F77_FUNC_(name,NAME) name ## _17:
warning: ^
a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
private Integer ma_nelem(address, length, datatype)<scratch space>:31:1:
^note:
expanded from here
f2c_sizeof_
^
/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays/ma/ma.c:1570:/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays/ma/f2c.c14::313 :21warning: : a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]warning:
private void ma_preinitialize(caller)a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
public Integer FATR f2c_sizeof_overhead_(datatype)
^
^
/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays/ma/ma.h:48:41: note: expanded from macro 'f2c_sizeof_overhead_'
#define f2c_sizeof_overhead_ F77_FUNC_(f2c_sizeof_overhead,F2C_SIZEOF_OVERHEAD)
^
/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays-build/config.h:73:30: note: expanded from macro 'F77_FUNC_'
#define F77_FUNC_(name,NAME) name ## _
^
<scratch space>/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays/ma/ma.c:32::15971::17 : note: warning: expanded from herea function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
f2c_sizeof_overhead_
private Boolean mh2ad(memhandle, adout, location, caller)
^
^
/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays/ma/f2c.c:327:18: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
public void FATR f2c_trace_(value)
^
/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays/ma/ma.h:50:41: note: expanded from macro 'f2c_trace_'
#define f2c_trace_ F77_FUNC_(f2c_trace,F2C_TRACE)
^
/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays-build/config.h:73:30: note: expanded from macro 'F77_FUNC_'
#define F77_FUNC_(name,NAME) name ## _
^
<scratch space>:34:1: note: expanded from here
f2c_trace_
^
/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays/ma/ma.c:1740:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
private void mh_free(ad)
^
/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays/ma/ma.c:1764:16: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
private size_t mai_round(value, unit)
^
/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays/ma/ma.c:1781:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
private void str_ncopy(to, from, maxchars)
^
/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays/ma/ma.c:1809:16: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
public Boolean MAi_inform_base(datatype, address1, address2)
^
/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays/ma/ma.c:1867:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
public void MAi_summarize_allocated_blocks(index_base)
^
/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays/ma/error.c:79:30: warning: passing arguments to a function without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
ma_func_terminate("MA aborting",0);
^
[ 83%] Building C object global/src/CMakeFiles/ga_src.dir/iterator.c.o
[ 83%] Building C object global/src/CMakeFiles/ga_src.dir/global.util.c.o
[ 84%] Building C object global/src/CMakeFiles/ga_src.dir/hsort.scat.c.o
[ 85%] Building C object global/src/CMakeFiles/ga_src.dir/matmul.c.o
[ 87%] Building C object global/src/CMakeFiles/ga_src.dir/matrix.c.o
[ 88%] Building C object global/src/CMakeFiles/ga_src.dir/peigstubs.c.o
[ 89%] Building C object global/src/CMakeFiles/ga_src.dir/nbutil.c.o
1 warning generated.
4 warnings generated.
[ 90%] Building C object global/src/CMakeFiles/ga_src.dir/sclstubs.c.o
[ 92%] Building C object global/src/CMakeFiles/ga_src.dir/select.c.o
[ 93%] Building C object global/src/CMakeFiles/ga_src.dir/sparse.c.o
[ 94%] Building Fortran object global/src/CMakeFiles/ga_src.dir/complex.F.o
[ 96%] Building Fortran object global/src/CMakeFiles/ga_src.dir/ga_diag_seq.F.o
/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays/global/src/DP.c:15:16: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
static logical own_patch(g_a, ilo, ihi, jlo, jhi)
^
/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays/global/src/DP.c:30:16: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
static logical patch_intersect(ilo, ihi, jlo, jhi, ilop, ihip, jlop, jhip)
^
/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays/global/src/DP.c:58:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
void pnga_copy_patch_dp(t_a, g_a, ailo, aihi, ajlo, ajhi,
^
29 warnings generated.
/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays/global/src/DP.c:162:17: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
DoublePrecision pnga_ddot_patch_dp(g_a, t_a, ailo, aihi, ajlo, ajhi,
^
5 warnings generated.
/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays/global/src/global.util.c:63:6: warning: /tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays/global/src/global.npatch.c:2636:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
void pnga_add_patch(alpha, g_a, alo, ahi, beta, g_b, blo, bhi,
^
/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays/global/src/hsort.scat.c:62:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
static void ga_sort_scat_dcpl_(pn, v, i, j, base)
^
/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays/global/src/hsort.scat.c:86:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
static void ga_sort_scat_scpl_(pn, v, i, j, base)
^
/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays/global/src/hsort.scat.c:110:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
void ga_sort_permutation(pn, index, base)
^
/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays/global/src/fapi.c:66:14: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
logical FATR ga_create_(
^
/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays/global/src/cnames.h:27:21: note: expanded from macro 'ga_create_'
#define ga_create_ F77_FUNC_(ga_create, GA_CREATE)
^
/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays-build/config.h:73:30: note: expanded from macro 'F77_FUNC_'
#define F77_FUNC_(name,NAME) name ## _
^
<scratch space>:139:1: note: expanded from here
ga_create_
^
a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
void pnga_print_patch_file2d(file, g_a, ilo, ihi, jlo, jhi, pretty)
^
/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays/global/src/hsort.scat.c:131:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
static void ga_sort_scat_dbl_(pn, v, i, j, base)
^
/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays/global/src/hsort.scat.c:156:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
static void ga_sort_scat_int_(pn, v, i, j, base)
^
/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays/global/src/hsort.scat.c:183:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
static void ga_sort_scat_long_(pn, v, i, j, base)
^
/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays/global/src/global.util.c:264:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
void pnga_print_patch2d(g_a, ilo, ihi, jlo, jhi, pretty)
^
/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays/global/src/hsort.scat.c:207:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
static void ga_sort_scat_flt_(pn, v, i, j, base)
^
/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays/global/src/hsort.scat.c:231:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
void ga_sort_scat(pn, v, i, j, base, type)
^
/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays/global/src/hsort.scat.c:251:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
void ga_sort_gath(pn, i, j, base)
^
/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays/global/src/global.util.c:603:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
void pnga_print_patch_file(file, g_a, lo, hi, pretty)
^
/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays/global/src/elem_alg.c:1823:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
static void ngai_elem2_patch_(g_a, alo, ahi, g_b, blo, bhi,
^
/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays/global/src/ga_solve_seq.c:25:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
void LP_daxpy(n,da,dx,incx,dy,incy)
^
/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays/global/src/ga_solve_seq.c:81:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
REAL LP_ddot(n,dx,incx,dy,incy)
^
/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays/global/src/ga_solve_seq.c:138:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
void LP_dscal(n,da,dx,incx)
^
/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays/global/src/ga_solve_seq.c:185:5: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
int LP_idamax(n,dx,incx)
^
/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays/global/src/ga_solve_seq.c:234:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
void LP_dgefa(a,lda,n,ipvt,info)
^
/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays/global/src/onesided.c:2680:6: /tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays/global/src/ga_solve_seq.c:344:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
void LP_dgesl(a,lda,n,ipvt,b,job)
^
warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
void pnga_scatter_acc2d(g_a, v, i, j, nv, alpha)
^
/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays/global/src/elem_alg.c:2835:16: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
static Integer has_negative_elem(g_a, alo, ahi)
^
/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays/global/src/elem_alg.c:3487:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
void pnga_step_max_patch(g_a, alo, ahi, g_b, blo, bhi, result)
^
/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays/global/src/matrix.c:293:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
void pnga_median_patch(
^
/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays/global/src/matmul.c:345:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
static void gai_matmul_shmem(transa, transb, alpha, beta, atype,
^
/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays/global/src/matmul.c:569:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
static void gai_matmul_regular(transa, transb, alpha, beta, atype,
^
/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays/global/src/matmul.c:821:13: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
static void gai_matmul_irreg(transa, transb, alpha, beta, atype,
^
/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays/global/src/matmul.c:1290:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
void pnga_matmul(transa, transb, alpha, beta,
^
/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays/global/src/matmul.c:1585:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
void pnga_matmul_mirrored(transa, transb, alpha, beta,
^
/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays/global/src/fapi.c:3372:11: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
void FATR ga_matmul_mirrored_(
^
/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays/global/src/cnames.h:2922:30: note: expanded from macro 'ga_matmul_mirrored_'
#define ga_matmul_mirrored_ F77_FUNC_(ga_matmul_mirrored, GA_MATMUL_MIRRORED)
^
/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays-build/config.h:73:30: note: expanded from macro 'F77_FUNC_'
#define F77_FUNC_(name,NAME) name ## _
^
<scratch space>:170:1: note: expanded from here
ga_matmul_mirrored_
^
/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays/global/src/fapi.c:3445:11: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
void FATR ga_matmul_(
^
/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays/global/src/cnames.h:2910:21: note: expanded from macro 'ga_matmul_'
#define ga_matmul_ F77_FUNC_(ga_matmul, GA_MATMUL)
^
/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays-build/config.h:73:30: note: expanded from macro 'F77_FUNC_'
#define F77_FUNC_(name,NAME) name ## _
^
<scratch space>:173:1: note: expanded from here4
warnings generated.
ga_matmul_
^
/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays/global/src/fapi.c:3648:11: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
void FATR ga_copy_patch_dp_(
^
/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays/global/src/cnames.h:3066:28: note: expanded from macro 'ga_copy_patch_dp_'
#define ga_copy_patch_dp_ F77_FUNC_(ga_copy_patch_dp, GA_COPY_PATCH_DP)
^
/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays-build/config.h:73:30: note: expanded from macro 'F77_FUNC_'
#define F77_FUNC_(name,NAME) name ## _
^
<scratch space>:191:1: note: expanded from here
ga_copy_patch_dp_
^
/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays/global/src/fapi.c:3663:22: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
DoublePrecision FATR ga_ddot_patch_dp_(
^
/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays/global/src/cnames.h:3078:28: note: expanded from macro 'ga_ddot_patch_dp_'
#define ga_ddot_patch_dp_ F77_FUNC_(ga_ddot_patch_dp, GA_DDOT_PATCH_DP)
^
/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays-build/config.h:73:30: note: expanded from macro 'F77_FUNC_'
#define F77_FUNC_(name,NAME) name ## _
^
<scratch space>:192:1: note: expanded from here
ga_ddot_patch_dp_
^
/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays/global/src/base.c:4208:79: warning: implicit conversion from 'int' to 'float' changes value from 2147483647 to 2147483648 [-Wimplicit-const-int-float-conversion]
for(i=0; i<elems;i++)((float*)ptr)[i]=*(float*) val * ((float)rand())/RAND_MAX;
~^~~~~~~~
/usr/include/stdlib.h:87:18: note: expanded from macro 'RAND_MAX'
#define RAND_MAX 2147483647
^~~~~~~~~~
/tmp/OpenMolcas/build/External/GlobalArrays/src/GlobalArrays/global/src/base.c:4239:78: warning: implicit conversion from 'int' to 'float' changes value from 2147483647 to 2147483648 [-Wimplicit-const-int-float-conversion]
for(i=0; i<elems;i++)((float*)ptr)[i]=*(float*)val * ((float)rand())/RAND_MAX;
~^~~~~~~~
/usr/include/stdlib.h:87:18: note: expanded from macro 'RAND_MAX'
#define RAND_MAX 2147483647
^~~~~~~~~~
6 warnings generated.
9 warnings generated.
35 warnings generated.
[ 96%] Built target ma
[ 97%] Linking C static library libcomex.a
[ 97%] Built target armci_comex
[ 98%] Linking C static library libarmci.a
[ 98%] Built target comex
[ 98%] Built target armci
3 warnings generated.
5 warnings generated.
5 warnings generated.
1 warning generated.
3 warnings generated.
[ 98%] Built target dra
2 warnings generated.
1 warning generated.
1 warning generated.
[ 98%] Built target ga_src
[100%] Linking Fortran static library libga.a
[100%] Built target ga
@Jellby @RolandLindh This is not a GA issue. The problem is that the OpenMolcas cmake configuration builds GA using CMake's ExternalProject
and then tries to point the build to the GA libraries installed in the provided CMAKE_INSTALL_PREFIX
. This approach is not robust since GA conditionally depends on additional libraries (depending on the BLAS flavor specified) such as the C Math Library (libm), standard fortran runtime library (libgfortran), etc which are not captured by the logic here. The robust way to do this is to use FetchContent to handle the GA build and then find the GA installed/exported package configuration files via find_package
to discover the complete set of GA targets and their dependencies as shown in this modified CMakeLists
CMakeLists_modified.txt
If you wish to preserve the complex ExternalProject
logic that currently exists for the GA build, you would have to replicate the logic in the GA cmake setup to handle the LinAlg libraries which will only make this more complicated.
Closing due to inactivity. Feel free to re-open if needed!
Hi, I just installed the new intel compiler and got the following error while linking the alaska module in OpenMolcas
fort: remark #10448: Intel(R) Fortran Compiler Classic (ifort) is now deprecated and will be discontinued late 2024. Intel recommends that customers transition now to using the LLVM-based Intel(R) Fortran Compiler (ifx) for continued Windows and Linux support, new language support, new language features, and optimizations. Use '-diag-disable=10448' to disable this message. ld: ../../External/GlobalArrays_install/lib/libga.a(farg.F.o): in function
f2c_iargc_': farg.F:(.text+0x5): undefined reference to
_gfortran_iargc' ld: ../../External/GlobalArrays_install/lib/libga.a(farg.F.o): in functionf2c_getarg_': farg.F:(.text+0x23): undefined reference to
_gfortran_getarg_i8'The version of the compiler is ifort --version ifort: remark #10448: Intel(R) Fortran Compiler Classic (ifort) is now deprecated and will be discontinued late 2024. Intel recommends that customers transition now to using the LLVM-based Intel(R) Fortran Compiler (ifx) for continued Windows and Linux support, new language support, new language features, and optimizations. Use '-diag-disable=10448' to disable this message. ifort (IFORT) 2021.11.1 20231117 Copyright (C) 1985-2023 Intel Corporation. All rights reserved.