casacore / casarest

The remainder of the AIPS++ libraries that did not end up on casacore
GNU General Public License v3.0
4 stars 12 forks source link

casarest fails on lwimager #18

Closed oonkjbr closed 7 years ago

oonkjbr commented 7 years ago

Upon compiling (for centos7) casarest (v1.3.1) directly after casacore (v2.3.0) in a standard LOFAR compilation I get an error regarding lwimager and hdf5 in the make. Is there a solution? I have now also tried casarest v1.4.2 and adding the HDF5 root dir, include dir and lib to the cmake with -D, but this did not help either...

[ 95%] Building CXX object synthesis/CMakeFiles/casa_synthesis.dir/Parallel/Applicator.cc.o
[ 95%] Building CXX object synthesis/CMakeFiles/casa_synthesis.dir/Parallel/MPIError.cc.o
[ 96%] Building CXX object synthesis/CMakeFiles/casa_synthesis.dir/Parallel/MPITransport.cc.o
[ 96%] Building CXX object synthesis/CMakeFiles/casa_synthesis.dir/Parallel/PabloIO.cc.o
[ 96%] Building CXX object synthesis/CMakeFiles/casa_synthesis.dir/Parallel/SerialTransport.cc.o
[ 97%] Building CXX object synthesis/CMakeFiles/casa_synthesis.dir/Utilities/FixVis.cc.o
[ 97%] Building CXX object synthesis/CMakeFiles/casa_synthesis.dir/Utilities/ThreadCoordinator.cc.o
[ 97%] Building Fortran object synthesis/CMakeFiles/casa_synthesis.dir/fortran/fgridft.f.o
[ 98%] Building Fortran object synthesis/CMakeFiles/casa_synthesis.dir/fortran/fmosaic.f.o
[ 98%] Building Fortran object synthesis/CMakeFiles/casa_synthesis.dir/fortran/fpbmos.f.o
[ 98%] Building Fortran object synthesis/CMakeFiles/casa_synthesis.dir/fortran/fpbwproj.f.o
[ 99%] Building Fortran object synthesis/CMakeFiles/casa_synthesis.dir/fortran/leakantso.f.o
[ 99%] Building Fortran object synthesis/CMakeFiles/casa_synthesis.dir/fortran/wprojgrid.f.o
Linking CXX shared library libcasa_synthesis.so
[ 99%] Built target casa_synthesis
Scanning dependencies of target lwimager
[100%] Building CXX object synthesis/CMakeFiles/lwimager.dir/apps/lwimager.cc.o
Linking CXX executable lwimager
CMakeFiles/lwimager.dir/apps/lwimager.cc.o: In function `casa::HDF5Group::HDF5Group(casa::HDF5Object const&, casa::String const&, bool, bool)':
lwimager.cc:(.text._ZN4casa9HDF5GroupC2ERKNS_10HDF5ObjectERKNS_6StringEbb[_ZN4casa9HDF5GroupC5ERKNS_10HDF5ObjectERKNS_6StringEbb]+0x7a): undefined reference to `casa::HDF5Group::init(int, casa::String const&, casa::String const&, bool, bool)'
collect2: error: ld returned 1 exit status
make[2]: *** [synthesis/lwimager] Error 1
make[1]: *** [synthesis/CMakeFiles/lwimager.dir/all] Error 2
make: *** [all] Error 2
The command '/bin/sh -c cd ${INSTALLDIR}/casarest/build && make -j ${J}' returned a non-zero code: 2
oonkjbr commented 7 years ago

A possible solution for centos(7) is to remove the HDF5 install where hdf5 is obtained via wget from support.hdfgroup.org and instead install hdf5-devel via: (epel is needed for centos as the ubuntu libhdf5-dev does not have a a libhdf5-devel counterpart in centos)

sudo yum install –y epel-release
sudo yum-config-manager --enable epel
sudo yum install hdf5-devel
tammojan commented 7 years ago

Should be fixed by f1d73d044676bb2a0c41bc28e3b07611748d8abc using a sufficiently recent casacore (2.4.0 should do).