View Issue Details

IDProjectCategoryView StatusLast Update
0002243OpenFOAMBugpublic2016-09-12 14:32
Reportersergiykhan Assigned Tohenry  
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionfixed 
PlatformLinuxOSRHELOS Version6.7
Summary0002243: CGAL wmake sets incorrect paths to MPFR and GMP
DescriptionWhen compiling OpenFOAM v1606, the ./makeGcc script gets the MPFR and GMP libraries placed in the lib64/ sub-directory, while $WM_PROJECT_DIR/wmake/rules/General/CGAL sets paths explicitly to /lib.

$ ls -al $WM_THIRD_PARTY_DIR/platforms/linux64/gmp-5.1.2
 include
 lib64
 share

$ ls -al $WM_THIRD_PARTY_DIR/platforms/linux64/mpfr-3.1.2
 include
 lib64
 share

$ cat $WM_PROJECT_DIR/wmake/rules/General/CGAL
CGAL_INC = \
    -I$(CGAL_ARCH_PATH)/include \
    -I$(MPFR_ARCH_PATH)/include \
    -I$(GMP_ARCH_PATH)/include \
    -I$(BOOST_ARCH_PATH)/include

CGAL_LIBS = \
    -L$(MPFR_ARCH_PATH)/lib \
    -L$(GMP_ARCH_PATH)/lib \
    -L$(BOOST_ARCH_PATH)/lib \
    -L$(CGAL_ARCH_PATH)/lib \
    -lCGAL \
    -lmpfr

The simple fix is to create symlinks like so:
$ cd $WM_THIRD_PARTY_DIR
$ (cd platforms/linux64/gmp-5.1.2; ln -s lib64 lib)
$ (cd platforms/linux64/mpfr-3.1.2; ln -s lib64 lib)
TagsNo tags attached.

Activities

henry

2016-09-12 14:31

manager   ~0006857

This is fixed in OpenFOAM-4.x and OpenFOAM-dev.

OpenFOAM+ v1606 is a fork of OpenFOAM not released or maintained by the OpenFOAM Foundation; please upgrade to OpenFOAM-4.x or better OpenFOAM-dev.

Issue History

Date Modified Username Field Change
2016-09-12 14:00 sergiykhan New Issue
2016-09-12 14:31 henry Note Added: 0006857
2016-09-12 14:32 henry Assigned To => henry
2016-09-12 14:32 henry Status new => closed
2016-09-12 14:32 henry Resolution open => fixed
2016-09-12 14:32 henry Fixed in Version => 4.x