Compilation fails at CRSMatrix.F90
Posted: 18 May 2018, 03:43
Hi,
I'm having trouble to install elmer on my computer as the compilation fails at CRSMatrix.F90.
The script I run for the install is:
I am having the same issue when I try installing with homebrew with the command:
brew install elmercsc/elmerfem/elmer --without-mumps
(There is also a problem with installing mumps with homebrew, so I trying to work around that.)
I'm using a mac mini with a quad core i7 processor and mac os high sierra (10.13.4) installed.
Any help would be greatly appreciated,
Thanks,
Flavien
I'm having trouble to install elmer on my computer as the compilation fails at CRSMatrix.F90.
Code: Select all
[ 66%] Building Fortran object fem/src/CMakeFiles/elmersolver.dir/Lists.F90.o
[ 66%] Building Fortran object fem/src/CMakeFiles/elmersolver.dir/ListMatrixArray.F90.o
[ 66%] Building Fortran object fem/src/CMakeFiles/elmersolver.dir/BandMatrix.F90.o
[ 66%] Building Fortran object fem/src/CMakeFiles/elmersolver.dir/SParIterComm.F90.o
[ 66%] Building Fortran object fem/src/CMakeFiles/elmersolver.dir/CRSMatrix.F90.o
[ 66%] Building Fortran object fem/src/CMakeFiles/elmersolver.dir/HashTable.F90.o
[ 66%] Building Fortran object fem/src/CMakeFiles/elmersolver.dir/ElementDescription.F90.o
[ 66%] Building Fortran object fem/src/CMakeFiles/elmersolver.dir/TimeIntegrate.F90.o
/Users/geomorph/Documents/Flavien/Projects/modelling/ice_quarrying/elmerice/fem/src/CRSMatrix.F90:4090:24:
A % ILUCols => ILUCols
1
Error: Assignment to contiguous pointer from non-contiguous target at (1)
/Users/geomorph/Documents/Flavien/Projects/modelling/ice_quarrying/elmerice/fem/src/CRSMatrix.F90:3881:23:
A % ILUCols => ILUCols
1
Error: Assignment to contiguous pointer from non-contiguous target at (1)
/Users/geomorph/Documents/Flavien/Projects/modelling/ice_quarrying/elmerice/fem/src/CRSMatrix.F90:3882:23:
A % ILUValues => ILUValues
1
Error: Assignment to contiguous pointer from non-contiguous target at (1)
/Users/geomorph/Documents/Flavien/Projects/modelling/ice_quarrying/elmerice/fem/src/CRSMatrix.F90:2160:18:
A % Values => Values
1
Error: Assignment to contiguous pointer from non-contiguous target at (1)
/Users/geomorph/Documents/Flavien/Projects/modelling/ice_quarrying/elmerice/fem/src/CRSMatrix.F90:2161:16:
A % Cols => Cols
1
Error: Assignment to contiguous pointer from non-contiguous target at (1)
make[2]: *** [fem/src/CMakeFiles/elmersolver.dir/CRSMatrix.F90.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [fem/src/CMakeFiles/elmersolver.dir/all] Error 2
make: *** [all] Error 2
Code: Select all
#!/bin/bash
CMAKE=cmake
# Installation directory (set these!)
TIMESTAMP=$(date +"%m-%d-%y")
ELMER_REV="Elmer_devel_${TIMESTAMP}"
ELMERSRC="/Users/geomorph/Documents/Flavien/Projects/modelling/ice_quarrying/elmerice"
BUILDDIR="$ELMERSRC/builddir"
IDIR="/usr/local/$ELMER_REV"
# next line is optional
#TOOLCHAIN="/path/to/your/own/toolchainfile/yourtoolchainfile.cmake"
echo "Building Elmer from within " ${BUILDDIR}
echo "using following toolchain file " ${TOOLCHAIN}
echo "installation into " ${IDIR}
cd ${BUILDDIR}
pwd
ls -ltr
echo $CMAKE $ELMERSRC
# you can add a -DCMAKE_TOOLCHAIN_FILE=$TOOLCHAIN,
# if you have a toolchain file declared
$CMAKE $ELMERSRC \
-DCMAKE_INSTALL_PREFIX=$IDIR \
-DCMAKE_C_COMPILER=/usr/local/bin/gcc-8 \
-DCMAKE_Fortran_COMPILER=/usr/local/bin/gfortran-8 \
-DCMAKE_CXX_COMPILER=/usr/local/bin/c++-8 \
-DWITH_MPI:BOOL=TRUE \
-DWITH_Mumps:BOOL=TRUE \
-DWITH_Hypre:BOOL=FALSE \
-DWITH_Trilinos:BOOL=FALSE \
-DWITH_ELMERGUI:BOOL=FALSE \
-DWITH_ElmerIce:BOOL=TRUE
# change the -j4 to the number of available cores on your system
#make -j4 && sudo make install
sudo make -j4 install
# this automatically links /usr/local/Elmer-devel to your new built
sudo rm /usr/local/Elmer-devel
sudo ln -s $IDIR /usr/local/Elmer-devel
# Running the elmer tests
ctest -j4
brew install elmercsc/elmerfem/elmer --without-mumps
(There is also a problem with installing mumps with homebrew, so I trying to work around that.)
Code: Select all
==> Installing elmercsc/elmerfem/elmer --without-mumps
==> Downloading https://github.com/ElmerCSC/elmerfem/archive/release-8.2.tar.gz
==> Downloading from https://codeload.github.com/ElmerCSC/elmerfem/tar.gz/release-8.2
######################################################################## 100.0%
==> cmake ../ -DCMAKE_INSTALL_PREFIX=/usr/local/Cellar/elmer/8.2 -DWITH_Hypre:BOOL=TRUE -DWITH_MPI:BOOL=TRUE -DBLAS_LIBRARIES:STRING=/usr/local/opt/openblas/li
==> make
Last 15 lines from /Users/geomorph/Library/Logs/Homebrew/elmer/02.make:
Error: Assignment to contiguous pointer from non-contiguous target at (1)
/tmp/elmer-20180517-16181-h05ew8/elmerfem-release-8.2/fem/src/CRSMatrix.F90:1620:18:
A % Values => Values
1
Error: Assignment to contiguous pointer from non-contiguous target at (1)
/tmp/elmer-20180517-16181-h05ew8/elmerfem-release-8.2/fem/src/CRSMatrix.F90:1621:16:
A % Cols => Cols
1
Error: Assignment to contiguous pointer from non-contiguous target at (1)
make[2]: *** [fem/src/CMakeFiles/elmersolver.dir/CRSMatrix.F90.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [fem/src/CMakeFiles/elmersolver.dir/all] Error 2
make: *** [all] Error 2
Any help would be greatly appreciated,
Thanks,
Flavien