Dear all,
I am using Oracle Developer Studio Compilers version 12.6 to compile HDF5 1.10.1. With the option "--disable-shared" HDF5 compiles and installs successfully, however, when shared library support enabled, "make" results with errors. Do you have an idea about what could possibly be wrong? Below is the error from "make":
libtool: compile: f90 -I. -I../../src -I../../src -I../../fortran/src -c HDF5.F90 -o .libs/HDF5.o
libtool: compile: f90 -I. -I../../src -I../../src -I../../fortran/src -c HDF5.F90 -o HDF5.o >/dev/null 2>&1
FCLD libhdf5_fortran.la
f90: Warning: Option -shared passed to ld, if ld is invoked, ignored otherwise
f90: Warning: Option -path passed to ld, if ld is invoked, ignored otherwise
f90: Warning: Option -soname passed to ld, if ld is invoked, ignored otherwise
/usr/bin/ld: -r and -shared may not be used together
postopt: error: ld failed to link the binary
Makefile:950: recipe for target 'libhdf5_fortran.la' failed
make[3]: *** [libhdf5_fortran.la] Error 2
make[3]: Leaving directory '/home/eakoglu/Toolkit/oracle/hdf5-1.10.1/fortran/src'
Makefile:864: recipe for target 'all' failed
make[2]: *** [all] Error 2
make[2]: Leaving directory '/home/eakoglu/Toolkit/oracle/hdf5-1.10.1/fortran/src'
Makefile:811: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/eakoglu/Toolkit/oracle/hdf5-1.10.1/fortran'
Makefile:650: recipe for target 'all-recursive' failed
make: *** [all-recursive] Error 1
I think the offending line is this: "/usr/bin/ld: -r and -shared may not be used together". How can I workaround this?
Thanks,
ยทยทยท
--
Ekin Akoglu, PhD
Assistant Professor
Institute of Marine Sciences
Middle East Technical University
P.O. Box 28, 33731
Erdemli, Turkey
Email: ekin@ims.metu.edu.tr / eakoglu@metu.edu.tr
Phone: +90 324 521 24 06 / Ext. 1328
GSM: +90 506 554 03 90
Skype: ekinakoglu