Skip to content
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

OSX support #25

Closed
3 tasks
tjhei opened this issue May 3, 2017 · 12 comments
Closed
3 tasks

OSX support #25

tjhei opened this issue May 3, 2017 · 12 comments

Comments

@tjhei
Copy link
Member

tjhei commented May 3, 2017

current workflow:
compile gcc and openmpi using default compilers of homebrew, then set the wrapper to use gcc (I couldn't compile openmpi successfully with gcc):

git clone https://github.com/Homebrew/brew.git $BREWDIR
export PATH=$BREWDIR/bin:$PATH
export HOMEBREW_BUILD_FROM_SOURCE=1
brew tap homebrew/science
brew install --build-bottle ninja cmake gcc openmpi
export OMPI_CXX=g++-6
export OMPI_CC=gcc-6

git clone https://github.com/dealii/candi.git
cd candi
./candi.sh -j 2 --packages="p4est trilinos" -p $BREWDIR/

Current problems:

  • opencascade 0.17 and 0.18 don't work, only master
  • trilinos can not find parmetis (so disable)
  • ...
@tjhei tjhei changed the title OSX support` OSX support May 3, 2017
@koecher
Copy link
Contributor

koecher commented May 3, 2017

for superlu_dist, and parmetis with trilions I think I have a patch - but compilation still runs

@tjhei
Copy link
Member Author

tjhei commented May 3, 2017

Everything else runs through when disabling parmetis, so that is pretty good.

@tjhei
Copy link
Member Author

tjhei commented May 3, 2017

except that I am getting:

step-3(68848,0x7fffcd5fc3c0) malloc: *** error for object 0x7f96fa020c00: pointer being freed was not allocated
*** set a breakpoint in malloc_error_break to debug
Abort trap: 6

when any program exits. Let me know if you also see this.

@tjhei
Copy link
Member Author

tjhei commented May 3, 2017

Oh, and I am getting

step.debug: RUN failed. Output:
dyld: Library not loaded: libz.so.1.2.8
  Referenced from: /Users/heister/deal.ii-candi/tmp/build/deal.II-v8.5.0/tests/quick_tests/./step.debug
  Reason: image not found

when I do make test inside the deal.II build directory.

@koecher
Copy link
Contributor

koecher commented May 3, 2017

Well, we need to update the DYLD_LIBRARY_PATH in several places to get rid of this runtime errors.
My solution for parmetis and superlu_dist is working, I prepare a PR for this.

@koecher
Copy link
Contributor

koecher commented May 3, 2017

as compiler I used only brew install open-mpi --c++11 --with-mpi-threads-enable and let candi to pick up. Your alloc error might be from swiching the underlying c++ compiler.

@tjhei
Copy link
Member Author

tjhei commented May 3, 2017

Your alloc error might be from swiching the underlying c++ compiler.

Yes, I would like to switch to gcc for packing deal.II as an app, so that we are not relying on the exact same clang version installed on the machine.

@koecher
Copy link
Contributor

koecher commented May 3, 2017

I have an older candi version, which allows me to install gcc (5) and a mpi compiler on top of it, I think I will update this for the mac version. Then we could install gcc/open-mpi and with that compiler the candi-dealii installation should be fine
The project is located under github.com/koecher/cli but needs several updates for the current state of candi

@tjhei
Copy link
Member Author

tjhei commented May 3, 2017

I have an older candi version, which allows me to install gcc

I don't think requiring an installation using homebrew is too much of a problem, certainly not for me when packaging. So don't spend time on that unless you need it.

@koecher
Copy link
Contributor

koecher commented May 11, 2017

this issue will be resolved by PR #26

@koecher koecher closed this as completed May 11, 2017
@jppelteret
Copy link
Member

@koecher FYI: If you write something like

closes #25

in the commit message to #26 then this issue would be closed automatically when the PR is merged :-) More magic words for github are listed here.

@koecher
Copy link
Contributor

koecher commented May 11, 2017

ah okay, good to know

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants