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

scotch installation fails in Mac 10.14.2 with homebrew #46

Closed
aqeelahmed168 opened this issue Dec 16, 2018 · 14 comments
Closed

scotch installation fails in Mac 10.14.2 with homebrew #46

aqeelahmed168 opened this issue Dec 16, 2018 · 14 comments

Comments

@aqeelahmed168
Copy link

mpicc -O3 -fPIC -Drestrict=__restrict -DCOMMON_PTHREAD_BARRIER -DCOMMON_PTHREAD -DSCOTCH_CHECK_AUTO -DCOMMON_RANDOM_FIXED_SEED -DCOMMON_TIMING_OLD -DSCOTCH_RENAME -DCOMMON_FILE_COMPRESS_BZ2 -DCOMMON_FILE_COMPRESS_GZ -DSCOTCH_PTSCOTCH -I../../include -L../../lib test_scotch_dgraph_redist.c -o test_scotch_dgraph_redist -lptscotch -lscotch -lptscotcherrexit -lm -lz -lpthread -lbz2
make[1]: *** [check] Error 2
make: *** [check] Error 2
make: *** Waiting for unfinished jobs....
./test_strat_par
dyld: __dyld section not supported in /usr/local/Cellar/scotch/6.0.4_1/lib/libptscotch.dylib
make[2]: *** [check_strat_par] Abort trap: 6
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [ptcheck] Error 2
make: *** [ptcheck] Error 2

@mrklein
Copy link
Owner

mrklein commented Dec 18, 2018

Hi,

Thanks for the report. I do not have access to macOS Mojave, so I won't be able to reproduce the error and fix it. Maybe one day Homebrew will include Scotch in core, right now, you can skip the library installation (it you do not plan to use Scotch decomposition.)

@aqeelahmed168
Copy link
Author

Hi,
Thanks for the response.
How can I install this library manually, is there any other option?
I have tried a couple of times to install version 5.0 and 4.1 but the compilation stopped at some point. Not same location in both cases. Mixing scotch has to do anything with that ?
I followed the instructions as mentioned for here
https://github.com/mrklein/openfoam-os-x/wiki/OpenFOAM(R)-release-&-Homebrew
Also, the version numbering needs to be updated in your guide. The 5.0 is 5-0 on OpenFOAM server if the new download is required.

@michaelaye
Copy link

just wondering, do you have a reason to go through the painful self compilation instead of using the docker containers? They should have all libraries required. I am using the docker containers successfully on macOS 10.13.6 (High Sierra), but don't see a reason why they shouldn't work on Mojave, as that's the idea of container-ization.

@aqeelahmed168
Copy link
Author

I am already using docker. I though direct compilation would create an environment like we get in Linux. Able to directly run through terminal and use multi presserros.

@mrklein
Copy link
Owner

mrklein commented Dec 19, 2018

@aqeelahmed168 I need more details. Theoretically missing Scotch should not interfere with compilation (as build scripts check library availability and skip corresponding part if library is not installed). Could you post the error message?

Concerning initial error, since in fact it is not a problem of compilation, but a problem of running tests, maybe you can remove tests from scotch formula (comment out everything between test do and corresponding end in scotch.rb).

@AleksZhuravlyov
Copy link

brew install scotch --without-check

@matteoicardi
Copy link

same problem here, everything compiles, including scotch with this link [https://raw.githubusercontent.com/jslee02/homebrew-core/3ec5109c8d7bddb6631e9b76f3c540d66f61357f/Formula/scotch.rb],
but then decomposePar and all other parallel utilities give me "section not supported" on the scotch dylib

@mrklein
Copy link
Owner

mrklein commented Jun 12, 2019

I have pushed 13ee435 to address the issue. Could you test formula file?

@AleksZhuravlyov
Copy link

AleksZhuravlyov commented Jun 13, 2019

@mrklein, I had scotch, which was installed as "brew install scotch --without-check". I've made "brew remove scotch" and "brew install scotch.rb" using 13ee435 and scotch was installed without errors.

@mrklein
Copy link
Owner

mrklein commented Jun 13, 2019

@AleksZhuravljov, Thank you. Did you have problems with scotch decomposition, described by @matteoicardi ?

@AleksZhuravlyov
Copy link

@mrklein I didn't. I guess it can depend on the solver which is used. And I actually don't use parallel utilities. I can test a project where can be such a problem if you pick up one.

@mrklein
Copy link
Owner

mrklein commented Jun 13, 2019

@AleksZhuravljov: well, if you do not decompose a case, you should not encounter the error. Let's wait for someone, who does decompose their cases.

@matteoicardi
Copy link

Thanks @AleksZhuravljov , it works now!

@mrklein
Copy link
Owner

mrklein commented Jul 15, 2019

Since, it seems, formula works now, closing the issue.

@mrklein mrklein closed this as completed Jul 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants