-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't build on Ubuntu 21.04 #14
Comments
builds fine on Ubuntu 20.04 in WSL.
CMake Deprecation Warning at CMakeLists.txt:20 (cmake_policy):
The OLD behavior for policy CMP0048 will be removed from a future version
of CMake.
The cmake-policies(7) manual explains that the OLD behaviors of all
policies are deprecated and that a policy should be set to OLD only under
specific short-term circumstances. Projects should be ported to the NEW
behavior and not rely on setting a policy to OLD.
-- Searching for ccache.
-- Using namespace casacore.
-- Could NOT find SOFA (missing: SOFA_LIBRARY)
-- A library with LAPACK API found.
CMake Warning (dev) at imageanalysis/CMakeLists.txt:389:
Syntax Warning in cmake code at column 43
Argument not separated from preceding token by whitespace.
This warning is for project developers. Use -Wno-dev to suppress it.
-- CMAKE_SYSTEM .......... = Linux-5.4.72-microsoft-standard-WSL2
-- CMAKE_BUILD_TYPE ...... = Release
-- Modules to be built ... = casa;tables;scimath_f;scimath;measures;meas;fits;ms;msfits;derivedmscal;lattices;mirlib;coordinates;images
-- BUILD_SHARED_LIBS ..... = ON
-- ENABLE_RPATH .......... = ON
-- CMAKE_INSTALL_NAME_DIR = /opt/carta-casacore/lib
-- ENABLE_TABLELOCKING ... = ON
-- USE_THREADS ........... = YES
-- USE_OPENMP ............ = ON
-- USE_MPI ............... = OFF
-- USE_STACKTRACE ........ = OFF
-- HAVE_O_DIRECT ......... = 1
-- CMAKE_CXX_COMPILER .... = /usr/bin/c++
-- CMAKE_CXX_FLAGS ....... = -fcx-fortran-rules -std=c++11 -fsigned-char -std=c++11 -fopenmp -pthread
-- DATA directory ........ = /var/lib/casacore/data
-- DL library? ........... = /usr/lib/x86_64-linux-gnu/libdl.so
-- Pthreads library? ..... = /usr/lib/x86_64-linux-gnu/libpthread.so
-- Readline library? ..... = /usr/lib/x86_64-linux-gnu/libreadline.so;/usr/lib/x86_64-linux-gnu/libncurses.so
-- BLAS library? ......... = /usr/lib/x86_64-linux-gnu/libopenblas.so
-- LAPACK library? ....... = /usr/lib/x86_64-linux-gnu/libopenblas.so
-- WCS library? .......... = /usr/lib/x86_64-linux-gnu/libwcs.so;/usr/lib/x86_64-linux-gnu/libm.so
-- SOFA library? ......... = SOFA_LIBRARY-NOTFOUND
-- CFitsio library? ...... = /usr/local/lib/libcfitsio.so;/usr/lib/x86_64-linux-gnu/libm.so
-- ADIOS2 library? ....... =
-- HDF5 library? ......... = optimized;/usr/lib/x86_64-linux-gnu/hdf5/serial/lib/libhdf5.so;debug;/usr/lib/x86_64-linux-gnu/hdf5/serial/lib/libhdf5.so
-- FFTW3 library? ........ = /usr/lib/x86_64-linux-gnu/libfftw3f_threads.so;/usr/lib/x86_64-linux-gnu/libfftw3_threads.so;/usr/lib/x86_64-linux-gnu/libfftw3f.so;/usr/lib/x86_64-linux-gnu/libfftw3.so
-- GSL library? .......... = -L/usr/lib/x86_64-linux-gnu -lgsl -lgslcblas -lm
-- GSL CXXFLAGS? ......... =
-- BUILD_DEPRECATED ...... = OFF
-- BUILD_PYTHON .......... = OFF
-- BUILD_PYTHON3 ......... = OFF
-- Configuring done
-- Generating done
-- Build files have been written to: /home/derwent/CIRA/Code/carta-casacore/build |
According to the gfortran documentation you can get around this using The issue is listed at casacore/casacore#1017. |
Hey there! Unfortunately my drivers aren't supported on Ubuntu 20.04, so I have no option but to use Ubuntu 21.04.
I'm able to build regular casacore just fine with
mkdir build cd build cmake .. -DDATA_DIR=/var/lib/casacore/data -DUSE_FFTW3=ON -DUSE_HDF5=ON -DUSE_THREADS=ON -DUSE_OPENMP=ON -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=OFF -DBUILD_PYTHON=OFF -DUseCcache=1 -DHAS_CXX11=1 make -j
However, when running the same commands in carta casacore, I get a bunch of fortran errors.
cmake .. -DUSE_FFTW3=ON -DUSE_HDF5=ON -DUSE_THREADS=ON -DUSE_OPENMP=ON -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=OFF -DBUILD_PYTHON=OFF -DUseCcache=1 -DHAS_CXX11=1 -DCMAKE_INSTALL_PREFIX=/opt/carta-casacore
make -j
The text was updated successfully, but these errors were encountered: