hdf5
hdf5 copied to clipboard
icx: warning: -Wl,-s: 'linker' input unused [-Wunused-command-line-argument]
Describe the bug Warning pops up when using intel oneapi llvm compilers for linker
Expected behavior no warnings to show up.
note: hdf5 installs fine just has a warning during installation.
Platform (please complete the following information)
- HDF5 version 1.14.3
- OS and version: ubuntu 22.04
- Compiler and version intel oneapi llvm compiler 2024
- Build system (e.g. CMake, Autotools) and version
- Any configure options you specified
- MPI library and version (parallel HDF5)
cd $WRF_FOLDER/Downloads
tar -xvzf hdf5-$HDF5_Version.tar.gz
cd hdf5-hdf5-$HDF5_Version
autoreconf -i -f 2>&1 | tee autoreconf.log
CC=$MPICC FC=$MPIFC CXX=$MPICXX F90=$MPIF90 F77=$MPIF77 CFLAGS=$CFLAGS CFLAGS=$CFLAGS ./configure --prefix=$DIR/grib2 --with-zlib=$DIR/grib2 --enable-hl --enable-fortran --enable-parallel 2>&1 | tee configure.log
automake -a -f 2>&1 | tee automake.log
make -j $CPU_HALF_EVEN 2>&1 | tee make.log
make -j $CPU_HALF_EVEN install 2>&1 | tee make.install.log
# other libraries below need these variables to be set
export HDF5=$DIR/grib2
export LD_LIBRARY_PATH=$DIR/grib2/lib:$LD_LIBRARY_PATH
export PATH=$HDF5/bin:$PATH
export PHDF5=$DIR/grib2
echo " "
export CC=icx
export CXX=icpx
export FC=ifx
export F77=ifx
export F90=ifx
export MPIFC='mpiifort -fc=ifx'
export MPIF77='mpiifort -fc=ifx'
export MPIF90='mpiifort -fc=ifx'
export MPICC='mpiicc -cc=icx'
export MPICXX='mpiicpc -cxx=icpx'
export CFLAGS="-fPIC -fPIE -O3 -Wno-implicit-function-declaration -Wno-incompatible-function-pointer-types"
export HDF5_Version=1_14_3
export Zlib_Version=1.2.13
export Netcdf_C_Version=4.9.0
export Netcdf_Fortran_Version=4.6.1
export Mpich_Version=4.1.2
export Libpng_Version=1.6.39
export Jasper_Version=1.900.1
export Pnetcdf_Version=1.12.3
Relevant log files: make.log config.log automake.log configure.log autoreconf.log make.install.log
Additional context Add any other context about the problem here.
For reader's convenience, the warnings in installation are:
libtool: warning: relinking 'libhdf5_fortran.la' libtool: warning: relinking 'libhdf5_hl.la' libtool: warning: relinking 'libhdf5hl_fortran.la'
@bmribler @derobins
Need any other information from my machine?
@derobins @bmribler
Any updates?
@derobins
Any updates? @lrknox
-Wunused-command-line-argument
using that command in the CFLAGS does let it compile properly but i shouldn't need to supress the warning for it to build