First time here? Checkout the FAQ!
x
0 votes
by (260 points)

Hi all,

I am having an installation error with opencarp where when I try to build using cmake I get the following error: 

p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #000000} p.p2 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #5620f4} p.p3 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #000000; min-height: 13.0px} span.s1 {font-variant-ligatures: no-common-ligatures} span.s2 {font-variant-ligatures: no-common-ligatures; color: #000000} span.s3 {font-variant-ligatures: no-common-ligatures; color: #ca3323}

macbook-pro-82:openCARP sushruthmanchineella$ cmake --build _build

[ 10%] Built target param

[ 12%] Built target param-bin

[ 13%] Built target carp

[ 17%] Built target numerics

[ 19%] Built target fem

[ 68%] Built target limpet

[ 70%] Built target physics

[ 71%] Built target simulator

[ 71%] Built target opencarp-bin

[ 75%] Built target bench-bin

[ 76%] Built target igbutils_common

[ 78%] Built target igbapd-bin

[ 80%] Built target igbextract-bin

[ 82%] Built target muparser

[ 85%] Built target igbops-bin

[ 86%] Built target igbhead-bin

[ 87%] Built target mesher

[ 89%] Built target mesher-bin

[ 90%] Performing update step for 'meshtool'

[ 90%] No patch step for 'meshtool'

[ 90%] No configure step for 'meshtool'

[ 91%] Performing build step for 'meshtool'

* compiling: modes/clean_mode.cpp

* compiling: modes/convert_mode.cpp

* compiling: modes/collect_mode.cpp

* compiling: modes/extract_mode.cpp

* compiling: modes/generate_mode.cpp

* compiling: modes/interpolate_mode.cpp

* compiling: modes/insert_mode.cpp

* compiling: modes/itk_mode.cpp

clangclangclangclangclang: clangclang: : : : clang: : : errorerror: errorerror: : error: : error: error: error: unsupported option '-fopenmp'

unsupported option '-fopenmp'unsupported option '-fopenmp'unsupported option '-fopenmp'

unsupported option '-fopenmp'

unsupported option '-fopenmp'

unsupported option '-fopenmp'

unsupported option '-fopenmp'

make[4]: *** [modes/clean_mode.o] Error 1

make[4]: *** Waiting for unfinished jobs....

make[4]: *** [modes/collect_mode.o] Error 1

make[4]: *** [modes/extract_mode.o] Error 1

make[4]: *** [modes/generate_mode.o] Error 1

make[4]: *** [modes/insert_mode.o] Error 1

make[4]: *** [modes/interpolate_mode.o] Error 1

make[4]: *** [modes/itk_mode.o] Error 1

make[4]: *** [modes/convert_mode.o] Error 1

make[3]: *** [parbuild] Error 2

gmake[2]: *** [external/CMakeFiles/meshtool.dir/build.make:86: external/meshtool/src/meshtool-stamp/meshtool-build] Error 2

gmake[1]: *** [CMakeFiles/Makefile2:825: external/CMakeFiles/meshtool.dir/all] Error 2

gmake: *** [Makefile:156: all] Error 2

 

I am running python 3.8 and have also run brew install llvm as well as installed and linked g++. Please let me know if anyone knows how to correct this error.

1 Answer

0 votes
by (8.1k points)
Hi!

Your compiler lacks OpenMP support. While OpenMP can be disabled in meshtool, I strongly suggest that you upgrade your compiler to support OpenMP. MacOS is a bit awkward when it comes to OpenMP support, I found the following thread:

https://stackoverflow.com/questions/35134681/installing-openmp-on-mac-os-x-10-11

Best, Aurel
by (260 points)
Hi Aurel,

I followed the steps in the tutorial, but I am still having the same error. Do you have any other ideas on how to progress?

Best, Sushruth
by (19.1k points)
For me, compiling with -fopenmp works when clang was installed via homebrew.
by (8.1k points)
Hi!

The best option would be to get openmp support working for your build setup. Other  options are: 1) deaktivating openmp for meshtool in the file meshtool/my_switched.def 2) not building meshtool at all. it is not required for running openCARP experiments.

Best, Aurel
Welcome to openCARP Q&A. Ask questions and receive answers from other members of the community. For best support, please use appropriate TAGS!
architecture, carputils, documentation, experiments, installation-containers-packages, limpet, slimfem, website, governance
MathJax.Hub.Config({ tex2jax: { inlineMath: [ ['$','$'], ["\\(","\\)"] ], config: ["MMLorHTML.js"], jax: ["input/TeX"], processEscapes: true } }); MathJax.Hub.Config({ "HTML-CSS": { linebreaks: { automatic: true } } });
...