Trouble building from source on MacOS

79 views
Skip to first unread message

mrjonm...@gmail.com

unread,
Nov 5, 2018, 12:14:20 AM11/5/18
to deal.II User Group
Hi,
I'm trying to build version 9.0.1 from source on my Mac. I tried to build using the deal.ii terminal from the dealii-9.0.0.dmg, figuring it would be easier to configure using all the spack libraries, etc. It builds, but fails several tests when I run make test, and I can't install it. 

The following tests FAILED:
 7 - step-petsc.debug (Failed)
 9 - lapack.debug (Failed)
10 - umfpack.debug (Failed)
13 - arpack.debug (Failed)
Errors while running CTest

I need PETSc, P4EST and MPI, but not any of the other included packages given in the .dmg distribution, so I could shut off many of those, but I will need to get it to pass the PETSC tests I assume.

I'll attach my detailed.log and quicktests.log. If anyone can suggest a next step toward diagnosing this, I would appreciate it.

Thanks,
Jonathan
detailed.log
quicktests.log

Uwe Köcher

unread,
Nov 5, 2018, 4:28:18 AM11/5/18
to deal.II User Group
you may try out candi; for your selected needs this should be fine
kind regards
  Uwe

Daniel Arndt

unread,
Nov 5, 2018, 4:28:32 AM11/5/18
to deal.II User Group
Jonathan,


I'm trying to build version 9.0.1 from source on my Mac. I tried to build using the deal.ii terminal from the dealii-9.0.0.dmg, figuring it would be easier to configure using all the spack libraries, etc. It builds, but fails several tests when I run make test, and I can't install it. 
Probably, you macOS version is older than the one the "dmg" file was build with. There is not all that much that you can do about that.
I would recommend to use directly from source or use spack or candi.

Best,
Daniel

mrjonm...@gmail.com

unread,
Nov 5, 2018, 4:20:21 PM11/5/18
to deal.II User Group
Thanks for the suggestion. I tried building with candi today, but it failed somewhere during the p4est-2.0/FAST build from the look of it. I've been using macports instead of homebrew, and I'm wondering if some of the ports are causing issues. I might try removing all the ports and macports this evening to see if that fixes it. 

Also, I didn't install any of the packages listed as optional in the candi instructions. Those were: wget, gnuplot, bash and modules. 

I just upgraded to macOS 10.13.6, so I don't think that's the problem. 

Denis Davydov

unread,
Nov 6, 2018, 4:07:55 AM11/6/18
to deal.II User Group


On Monday, November 5, 2018 at 9:20:21 PM UTC, mrjonm...@gmail.com wrote:
Thanks for the suggestion. I tried building with candi today, but it failed somewhere during the p4est-2.0/FAST build from the look of it. I've been using macports instead of homebrew, and I'm wondering if some of the ports are causing issues. I might try removing all the ports and macports this evening to see if that fixes it. 

that is what we use to deliver macOS binaries.
It won't assume that you have anything installed (won't use macports or homebrew).
It will also allow to you keep around multiple versions of Software without conflicts.

The only thing is that you shall either have `gfortran` installed (can also do via Spack) or it being in path and then tell spack to use clang + gfortran,

I use Spack for build deal.II for several years, probably sins Sierra. Now I am on Mojave.
 

Also, I didn't install any of the packages listed as optional in the candi instructions. Those were: wget, gnuplot, bash and modules. 

those (any many more) can also be installed via Spack.

Regards,
Denis.

Jonathan Matthews

unread,
Nov 7, 2018, 1:37:41 PM11/7/18
to dea...@googlegroups.com
Thanks Denis,
I'll give spack a try too. 

--
The deal.II project is located at http://www.dealii.org/
For mailing list/forum options, see https://groups.google.com/d/forum/dealii?hl=en
---
You received this message because you are subscribed to the Google Groups "deal.II User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dealii+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

mrjonm...@gmail.com

unread,
Nov 15, 2018, 4:41:26 PM11/15/18
to deal.II User Group
It turns out my DYLD_LIBRARY_PATH variable was set to search in the macports directory tree, and, as I understand it, it overrides the paths for the shared libraries I specified through cmake. I was having a heck of a time figuring out why my code was having runtime problems with libraries from the wrong directories. 

I just thought I would mention that here in case someone else is having a similar problem in the future.

Praveen C

unread,
Nov 15, 2018, 9:47:38 PM11/15/18
to Deal. II Googlegroup
I have been building deal.II on mac for many years and never found the need to set DYLD_LIBRARY_PATH.

My preferred way to install deal.II on mac/linux is

Install gcc using homebrew (to get gfortran)
Install spack and deal.II dependencies http://cpraveen.github.io/comp/spack.html
Create a spack view of the dependencies
Compile deal.II myself using spack view

Best
praveen
Reply all
Reply to author
Forward
0 new messages