Open NGeorgescu opened 6 years ago
Ok Update for anyone running into this issue: I have installed it with $ brew install elmer --with-elmergui --HEAD --with-elmerice --without-mumps
and it seemed to build ok. I can open it and get a GUI, but I have not tried solving any models with it. I will try to do so and update with the results.
I tried to install elmer with the command,
$ brew install elmer --with-elmergui --HEAD --with-elmerice --without-mumps
but it returned this error,
==> Installing elmer from elmercsc/elmerfem
==> Cloning https://github.com/ElmerCSC/elmerfem.git
Cloning into '/Users/<username>/Library/Caches/Homebrew/elmer--git'...
Checking out files: 100% (9506/9506), done.
==> Checking out branch devel
Already on 'devel'
Your branch is up to date with 'origin/devel'.
Submodule 'contrib/Zoltan_v3.83' (https://github.com/ElmerCSC/Zoltan) registered for path 'contrib/Zoltan_v3.83'
Cloning into '/Users/<username>/Library/Caches/Homebrew/elmer--git/contrib/Zoltan_v3.83'...
Submodule path 'contrib/Zoltan_v3.83': checked out 'ab98b531972b55eb9af6035e06806284cc19be46'
/Users/<username>/Library/Caches/Homebrew/elmer--git/contrib/Zoltan_v3.83
==> cmake ../ -DCMAKE_INSTALL_PREFIX=/usr/local/Cellar/elmer/HEAD-dc0f1be -DWITH_Hypre:BOOL=TRUE -DWITH_ElmerIc
==> make
Last 15 lines from /Users/<username>/Library/Logs/Homebrew/elmer/02.make:
/usr/local/Cellar/cmake/3.13.3/bin/cmake -E touch fem/src/CMakeFiles/elmersolver.dir/SolverUtils.F90.o.provides.build
[ 68%] Building Fortran object fem/src/CMakeFiles/elmersolver.dir/Adaptive.F90.o
cd /tmp/elmer-20190126-35722-ozq6zk/build/fem/src && /usr/local/bin/gfortran -DCONTIG=,CONTIGUOUS -DHAVE_EXECUTECOMMANDLINE -DUSE_ARPACK -DUSE_ISO_C_BINDINGS -Delmersolver_EXPORTS -I/usr/local/Cellar/open-mpi/4.0.0/include -I/usr/local/Cellar/open-mpi/4.0.0/lib -I/usr/local/include -I/tmp/elmer-20190126-35722-ozq6zk/build -I/tmp/elmer-20190126-35722-ozq6zk/build/fem/src -I/tmp/elmer-20190126-35722-ozq6zk/fhutiter/src -I/tmp/elmer-20190126-35722-ozq6zk/build/fem/src/binio -I/tmp/elmer-20190126-35722-ozq6zk/build/fhutiter/src -O3 -DNDEBUG -O3 -J../../fmodules -fPIC -c /tmp/elmer-20190126-35722-ozq6zk/fem/src/Adaptive.F90 -o CMakeFiles/elmersolver.dir/Adaptive.F90.o
/usr/local/Cellar/cmake/3.13.3/bin/cmake -E cmake_copy_f90_mod fmodules/adaptive.mod fem/src/CMakeFiles/elmersolver.dir/adaptive.mod.stamp GNU
/usr/local/Cellar/cmake/3.13.3/bin/cmake -E touch fem/src/CMakeFiles/elmersolver.dir/Adaptive.F90.o.provides.build
[ 68%] Building Fortran object fem/src/CMakeFiles/elmersolver.dir/DefUtils.F90.o
cd /tmp/elmer-20190126-35722-ozq6zk/build/fem/src && /usr/local/bin/gfortran -DCONTIG=,CONTIGUOUS -DHAVE_EXECUTECOMMANDLINE -DUSE_ARPACK -DUSE_ISO_C_BINDINGS -Delmersolver_EXPORTS -I/usr/local/Cellar/open-mpi/4.0.0/include -I/usr/local/Cellar/open-mpi/4.0.0/lib -I/usr/local/include -I/tmp/elmer-20190126-35722-ozq6zk/build -I/tmp/elmer-20190126-35722-ozq6zk/build/fem/src -I/tmp/elmer-20190126-35722-ozq6zk/fhutiter/src -I/tmp/elmer-20190126-35722-ozq6zk/build/fem/src/binio -I/tmp/elmer-20190126-35722-ozq6zk/build/fhutiter/src -O3 -DNDEBUG -O3 -J../../fmodules -fPIC -c /tmp/elmer-20190126-35722-ozq6zk/fem/src/DefUtils.F90 -o CMakeFiles/elmersolver.dir/DefUtils.F90.o
/tmp/elmer-20190126-35722-ozq6zk/fem/src/DefUtils.F90:3221:11:
SOL => x % Values
1
Error: Assignment to contiguous pointer from non-contiguous target at (1)
make[2]: *** [fem/src/CMakeFiles/elmersolver.dir/DefUtils.F90.o] Error 1
make[1]: *** [fem/src/CMakeFiles/elmersolver.dir/all] Error 2
make: *** [all] Error 2
If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
https://github.com/elmercsc/homebrew-elmerfem/issues
These open issues may also help:
Unable to install elmer on Mac by using brew https://github.com/ElmerCSC/homebrew-elmerfem/issues/1
Elmer build error on 10.11.6 https://github.com/ElmerCSC/homebrew-elmerfem/issues/6
Umfpack problem while compiling Elmer with homebrew https://github.com/ElmerCSC/homebrew-elmerfem/issues/2
Elmer Failed To Brew on OSX 10.13.6 https://github.com/ElmerCSC/homebrew-elmerfem/issues/12
Elmer failed to build on OS 10.12.6 https://github.com/ElmerCSC/homebrew-elmerfem/issues/8
Elmer failed to build on OS 10.12.1 https://github.com/ElmerCSC/homebrew-elmerfem/issues/5
How can I fix it?
Hmm I made it work another time with:
brew install dpo/openblas/mumps
brew tap ElmerCSC/elmerfem
brew install elmer --with-elmergui --HEAD --with-elmerice
If that doesn't work make sure mumps and elmer are uninstalled with brew (use --ignore-dependencies
if you're given a hard time at all.
Thank you for replying. I tried that commands with any combination of options, but cmake process does not complete. There's a possibility that my Homebrew environment variables should be change. I'm not sure.
$ brew install elmer --ignore-dependencies
==> Installing elmer from elmercsc/elmerfem
==> 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_Mumps:BOOL=TRUE -DWITH_MPI:BOOL=TRUE -DBLAS_LIBRARIES:STRING=/usr/local/opt/ope
Last 15 lines from /Users/<username>/Library/Logs/Homebrew/elmer/01.cmake:
../
-DCMAKE_INSTALL_PREFIX=/usr/local/Cellar/elmer/8.2
-DWITH_Hypre:BOOL=TRUE
-DWITH_Mumps:BOOL=TRUE
-DWITH_MPI:BOOL=TRUE
-DBLAS_LIBRARIES:STRING=/usr/local/opt/openblas/lib/libopenblas.dylib;-lpthread
-DLAPACK_LIBRARIES:STRING=/usr/local/opt/openblas/lib/libopenblas.dylib;-lpthread
-DCMAKE_C_FLAGS_RELEASE=-DNDEBUG
-DCMAKE_CXX_FLAGS_RELEASE=-DNDEBUG
-DCMAKE_INSTALL_PREFIX=/usr/local/Cellar/elmer/8.2
-DCMAKE_BUILD_TYPE=Release
-DCMAKE_FIND_FRAMEWORK=LAST
-DCMAKE_VERBOSE_MAKEFILE=ON
-Wno-dev
If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
https://github.com/elmercsc/homebrew-elmerfem/issues
These open issues may also help:
Elmer Failed To Brew on OSX 10.13.6 https://github.com/ElmerCSC/homebrew-elmerfem/issues/12
Unable to install elmer on Mac by using brew https://github.com/ElmerCSC/homebrew-elmerfem/issues/1
Elmer build error on 10.11.6 https://github.com/ElmerCSC/homebrew-elmerfem/issues/6
Umfpack problem while compiling Elmer with homebrew https://github.com/ElmerCSC/homebrew-elmerfem/issues/2
Elmer failed to build on OS 10.12.6 https://github.com/ElmerCSC/homebrew-elmerfem/issues/8
Elmer failed to build on OS 10.12.1 https://github.com/ElmerCSC/homebrew-elmerfem/issues/5
See if the dylib exists ls /usr/local/opt/openblas/lib/
If not locate it and run an ln -s ...
command to make a symbolic link and try again.
Hi,
I am having issues installing Elmer via homebrew. Here is the most recent attempt of mine:
Let me know if any more information is pertinent. Any help is appreciated.
Thanks in advance.