LOFARimagerecipies issueshttps://git.astron.nl/astron-sdc/lofarimagerecipies/-/issues2021-06-18T12:15:48Zhttps://git.astron.nl/astron-sdc/lofarimagerecipies/-/issues/1Error building Dockerfile.py32021-06-18T12:15:48ZManuel ParraError building Dockerfile.py3Hi! with Dockerfile.py3
We were building this Dockerfile, but it was impossible due to the next problems:
```
=> ERROR [19/22] RUN cd / && git clone https://github.com/lofar-astron/DP3.git && cd DP3 && mkdir build && cd build ...Hi! with Dockerfile.py3
We were building this Dockerfile, but it was impossible due to the next problems:
```
=> ERROR [19/22] RUN cd / && git clone https://github.com/lofar-astron/DP3.git && cd DP3 && mkdir build && cd build 8.7s
------
> [19/22] RUN cd / && git clone https://github.com/lofar-astron/DP3.git && cd DP3 && mkdir build && cd build && cmake -DCASACORE_ROOT_DIR=/opt/lofarsoft/ -DAOFLAGGER_ROOT=/opt/lofarsoft/ -DIDGAPI_LIBRARIES=/opt/lofarsoft/lib/libidg-api.so -DIDGAPI_INCLUDE_DIRS=/opt/lofarsoft/include -DCMAKE_INSTALL_PREFIX=/opt/lofarsoft/ ../ && make -j8 && make install && ln -s /opt/lofarsoft/bin/DPPP /opt/lofarsoft/bin/NDPPP && cd / && rm -rf DP3:
#22 0.394 Cloning into 'DP3'...
#22 5.773 -- The C compiler identification is GNU 9.3.0
#22 5.834 -- The CXX compiler identification is GNU 9.3.0
#22 5.840 -- Check for working C compiler: /usr/bin/cc
#22 5.923 -- Check for working C compiler: /usr/bin/cc -- works
#22 5.924 -- Detecting C compiler ABI info
#22 6.012 -- Detecting C compiler ABI info - done
#22 6.026 -- Detecting C compile features
#22 6.027 -- Detecting C compile features - done
#22 6.031 -- Check for working CXX compiler: /usr/bin/c++
#22 6.125 -- Check for working CXX compiler: /usr/bin/c++ -- works
#22 6.127 -- Detecting CXX compiler ABI info
#22 6.225 -- Detecting CXX compiler ABI info - done
#22 6.240 -- Detecting CXX compile features
#22 6.241 -- Detecting CXX compile features - done
#22 6.251 -- Found Armadillo: /usr/lib/libarmadillo.so (found version "9.800.4")
#22 6.304 -- HDF5: Using hdf5 compiler wrapper to determine C configuration
#22 6.358 -- HDF5: Using hdf5 compiler wrapper to determine CXX configuration
#22 6.362 -- Found HDF5: /usr/lib/x86_64-linux-gnu/hdf5/serial/libhdf5_cpp.so;/usr/lib/x86_64-linux-gnu/hdf5/serial/libhdf5.so;/usr/lib/x86_64-linux-gnu/libpthread.so;/usr/lib/x86_64-linux-gnu/libsz.so;/usr/lib/x86_64-linux-gnu/libz.so;/usr/lib/x86_64-linux-gnu/libdl.so;/usr/lib/x86_64-linux-gnu/libm.so (found version "1.10.4") found components: C CXX
#22 6.368 -- Found CFITSIO: /usr/lib/x86_64-linux-gnu/libcfitsio.so
#22 6.372 -- Looking for sgemm_
#22 6.459 -- Looking for sgemm_ - not found
#22 6.461 -- Looking for pthread.h
#22 6.548 -- Looking for pthread.h - found
#22 6.548 -- Performing Test CMAKE_HAVE_LIBC_PTHREAD
#22 6.634 -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
#22 6.635 -- Looking for pthread_create in pthreads
#22 6.709 -- Looking for pthread_create in pthreads - not found
#22 6.710 -- Looking for pthread_create in pthread
#22 6.794 -- Looking for pthread_create in pthread - found
#22 6.796 -- Found Threads: TRUE
#22 6.814 -- Looking for sgemm_
#22 6.899 -- Looking for sgemm_ - found
#22 6.899 -- Found BLAS: /usr/lib/x86_64-linux-gnu/libblas.so
#22 6.922 -- Looking for cheev_
#22 7.008 -- Looking for cheev_ - not found
#22 7.012 -- Looking for cheev_
#22 7.116 -- Looking for cheev_ - found
#22 7.116 -- A library with LAPACK API found.
#22 7.120 -- Found HDF5: /usr/lib/x86_64-linux-gnu/hdf5/serial/libhdf5_cpp.so;/usr/lib/x86_64-linux-gnu/hdf5/serial/libhdf5.so;/usr/lib/x86_64-linux-gnu/libpthread.so;/usr/lib/x86_64-linux-gnu/libsz.so;/usr/lib/x86_64-linux-gnu/libz.so;/usr/lib/x86_64-linux-gnu/libdl.so;/usr/lib/x86_64-linux-gnu/libm.so (found version "1.10.4")
#22 7.120 -- Found the following Casacore components:
#22 7.121 -- ms: /opt/lofarsoft/lib/libcasa_ms.so
#22 7.121 -- fits: /opt/lofarsoft/lib/libcasa_fits.so
#22 7.121 -- scimath: /opt/lofarsoft/lib/libcasa_scimath.so
#22 7.121 -- measures: /opt/lofarsoft/lib/libcasa_measures.so
#22 7.121 -- scimath_f: /opt/lofarsoft/lib/libcasa_scimath_f.so
#22 7.121 -- tables: /opt/lofarsoft/lib/libcasa_tables.so
#22 7.121 -- casa: /opt/lofarsoft/lib/libcasa_casa.so
#22 7.358 -- Found Python3: /usr/bin/python3.8 (found version "3.8.5") found components: Interpreter Development
#22 7.742 -- Found Python3: /usr/local/lib/python3.8/dist-packages/numpy/core/include (found version "3.8.5") found components: NumPy Interpreter Development
#22 7.743 -- Using python version 3.8.5
#22 7.777 -- Found Boost: /usr/include (found version "1.71.0") found components: filesystem program_options system unit_test_framework
#22 7.786 -- Found an incompatible version of AOFlagger: found 3.0.0, need 3.0.1
#22 7.787 CMake Error at CMakeLists.txt:138 (find_package):
#22 7.787 Could not find a configuration file for package "AOFlagger" that is
#22 7.787 compatible with requested version "3.0.1".
#22 7.787
#22 7.787 The following configuration files were considered but not accepted:
#22 7.787
#22 7.787 /opt/lofarsoft/share/aoflagger/cmake/aoflagger-config.cmake, version: 3.0.0
#22 7.787
#22 7.787
#22 7.787
#22 7.788 -- Configuring incomplete, errors occurred!
#22 7.788 See also "/DP3/build/CMakeFiles/CMakeOutput.log".
#22 7.788 See also "/DP3/build/CMakeFiles/CMakeError.log".
------
executor failed running [/bin/sh -c cd / && git clone https://github.com/lofar-astron/DP3.git && cd DP3 && mkdir build && cd build && cmake -DCASACORE_ROOT_DIR=/opt/lofarsoft/ -DAOFLAGGER_ROOT=/opt/lofarsoft/ -DIDGAPI_LIBRARIES=/opt/lofarsoft/lib/libidg-api.so -DIDGAPI_INCLUDE_DIRS=/opt/lofarsoft/include -DCMAKE_INSTALL_PREFIX=/opt/lofarsoft/ ../ && make -j8 && make install && ln -s /opt/lofarsoft/bin/DPPP /opt/lofarsoft/bin/NDPPP && cd / && rm -rf DP3]: exit code: 1
```
We tried to change/find to this lib (AOFlagger), but the version 3.0.1 is not published and the latest existing is 3.1.0.
Again we tried 3.1.0 (adding a-flagged 3.1.0), but now the error is the following:
```
> #12 4.152 -- GSL found.
> #12 4.153 -- GTKMM found.
> #12 4.153 -- SIGCXX found.
> #12 4.157 CMake Error at python/CMakeLists.txt:1 (pybind11_add_module):
> #12 4.157 Unknown CMake command "pybind11_add_module".
> #12 4.157
> #12 4.157
> #12 4.159 -- Configuring incomplete, errors occurred!
> #12 4.159 See also "/aoflagger-v3.1.0/build/CMakeFiles/CMakeOutput.log".
> #12 4.159 See also "/aoflagger-v3.1.0/build/CMakeFiles/CMakeError.log".
> ------
> executor failed running [/bin/sh -c wget https://gitlab.com/aroffringa/aoflagger/-/archive/v3.1.0/aoflagger-v3.1.0.tar.bz2 && tar xvf aoflagger-v3.1.0.tar.bz2 && cd aoflagger-v3.1.0 && mkdir build && cd build && export PYTHONPATH=/opt/lofarsoft//lib/python3.8/site-packages/ && cmake -DCASACORE_ROOT_DIR=/opt/lofarsoft/ -DPYTHON_EXECUTABLE=/usr/bin/python3 -DCMAKE_INSTALL_PREFIX=/opt/lofarsoft ../ && make -j8 && make install && cd / && rm -rf aoflagger-v3.1.0.tar.bz2 aoflagger-v3.1.0]: exit code: 1
```
Any ideas to build it correctly? Regards.