CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Installation

[OpenFOAM.com] OpenFOAM v2112 CGAL build fails - how to specify GMP library

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 1 Post By asims
  • 1 Post By asims

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   June 2, 2022, 05:14
Default OpenFOAM v2112 CGAL build fails - how to specify GMP library
  #1
New Member
 
Join Date: Jan 2015
Posts: 5
Rep Power: 11
asims is on a distinguished road
Hi

I am installing OFv2112 on RH8.3. I am Using the system compiler (gcc 8.5.0) and cmake (3.20.2). GMP, MPFR and MPC packages were also installed.

The bashrc file specified the system compiler be used.

Compilation generally went well (Allwmake), except issues were reported with CGAL as follows.

Code:
-offsetof -Wno-attributes -Wno-unknown-pragmas -O3 -DNoRepository -ftemplate-depth-100 -fPIC -O3 -DNDEBUG'
-- USING LDFLAGS = '-m64 '
-- Configuring incomplete, errors occurred!
See also "/fsx/apps/OpenFOAM/ThirdParty-v2112/build/linux64Gcc/CGAL-4.14.3/CMakeFiles/CMakeOutput.log".

    ---------------------------------------------------
    Optional component (CGAL) had build issues
    OpenFOAM will nonetheless remain largely functional
    ---------------------------------------------------
I could not see an obvious error in the referred log. There was an additional message:

Code:
== Setting paths ==
== Setting paths (DONE) ==

== Generate version files ==
== Generate version files (DONE) ==

== Detect external libraries ==
== Detect external libraries (DONE) ==

== Generating build files ==
Configuring libCGAL
CMake Error at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
  Could NOT find GMP (missing: GMP_LIBRARIES GMP_INCLUDE_DIR)
Call Stack (most recent call first):
  /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:594 (_FPHSA_FAILURE_MESSAGE)
  cmake/modules/FindGMP.cmake:53 (find_package_handle_standard_args)
  cmake/modules/CGAL_SetupGMP.cmake:24 (find_package)
  cmake/modules/CGAL_SetupCGALDependencies.cmake:41 (include)
  src/CGAL/CMakeLists.txt:5 (include)
I have tried downloading and manually extracting, configure, make, make install of the latest version of the gmp library, and manually setting and exporting the variables mentioned, but no change.

How can I configure OF to build CGAL correctly and refer to the GMP libraries installed?

The CGAL configure script appeared to only specify the GMP, MPC and MPFR version if the compiler variable is set to ThirdParty, mine is set to system.

Thank you for any comments and advice.
asims is offline   Reply With Quote

 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
[OpenFOAM.org] Openfoam 2112 build fails with aocc and clang NainaPatil OpenFOAM Installation 2 April 22, 2022 13:59
How to develop OpenFOAM with CMake and popular IDEs cosscholar OpenFOAM Programming & Development 0 March 16, 2022 15:17
New OpenFOAM Forum Structure jola OpenFOAM 2 October 19, 2011 06:55
Cross-compiling OpenFOAM 1.7.0 on Linux for Windows 32 and 64bits with Mingw-w64 wyldckat OpenFOAM Announcements from Other Sources 3 September 8, 2010 06:25
Adventure of fisrst openfoam installation on Ubuntu 710 jussi OpenFOAM Installation 0 April 24, 2008 14:25


All times are GMT -4. The time now is 04:44.