Skip to Content.
Sympa Menu

cgal-discuss - [cgal-discuss] CGAL - 4.7 build issues with mpfr 4.1.3 & gmp 10.3.0

Subject: CGAL users discussion list

List archive

[cgal-discuss] CGAL - 4.7 build issues with mpfr 4.1.3 & gmp 10.3.0


Chronological Thread 
  • From: Puneet Singh <>
  • To:
  • Subject: [cgal-discuss] CGAL - 4.7 build issues with mpfr 4.1.3 & gmp 10.3.0
  • Date: Mon, 23 Nov 2015 12:36:34 +0530
  • Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None ; spf=Pass ; spf=None
  • Ironport-phdr: 9a23:EA1aXxKa6kukXlAzH9mcpTZWNBhigK39O0sv0rFitYgULvvxwZ3uMQTl6Ol3ixeRBMOAu68C1bud6vi+EUU7or+/81k6OKRWUBEEjchE1ycBO+WiTXPBEfjxciYhF95DXlI2t1uyMExSBdqsLwaK+i760zceF13FOBZvIaytQ8iJ35nxibH5osWNKyxzxxODIppKZC2sqgvQssREyaBDEY0WjiXzn31TZu5NznlpL1/A1zz158O34YIxu38I46FppIZ8VvDxcK08CLBZFz87KHsd5cvxtBCFQxHcyGEbVzAujxxFDhSN1xD8UZe55jD7sOV9njGHO8zqFOFlARyt6q5qTFnjjyJRZG1xy33elsEl1PETmxmmvREqm4M=

i am trying to build cgal-4.7 using 

cmake -DCMAKE_INSTALL_PREFIX:PATH=/home/cc/vfaculty/puneets.vfaculty/OpenFOAM/ThirdParty-3.0.0/platforms/linux64Icc/CGAL-4.7/ -DBoost_INCLUDE_DIR=/home/cc/vfaculty/puneets.vfaculty/OpenFOAM/OpenFOAMDependencies/include -DBoost_LIBRARY_DIRS=/home/cc/vfaculty/puneets.vfaculty/OpenFOAM/OpenFOAMDependencies/lib  -DBoost_THREAD_LIBRARY=/home/cc/vfaculty/puneets.vfaculty/OpenFOAM/OpenFOAMDependencies/lib/libboost_thread.so -DBoost_THREAD_LIBRARY_RELEASE=/home/cc/vfaculty/puneets.vfaculty/OpenFOAM/OpenFOAMDependencies/lib/libboost_thread.so -DBoost_SYSTEM_LIBRARY=/home/cc/vfaculty/puneets.vfaculty/OpenFOAM/OpenFOAMDependencies/lib/libboost_system.so -DBoost_SYSTEM_LIBRARY_RELEASE=/home/cc/vfaculty/puneets.vfaculty/OpenFOAM/OpenFOAMDependencies/lib/libboost_system.so -DBoost_VERSION=1.57.0 -DGMP_INCLUDE_DIR=/home/cc/vfaculty/puneets.vfaculty/OpenFOAM/OpenFOAMDependencies/include -DGMP_LIBRARIES_DIR=/home/cc/vfaculty/puneets.vfaculty/OpenFOAM/OpenFOAMDependencies/lib -DGMP_LIBRARIES=/home/cc/vfaculty/puneets.vfaculty/OpenFOAM/OpenFOAMDependencies/lib/libgmp.so -DGMPXX_INCLUDE_DIR=/home/cc/vfaculty/puneets.vfaculty/OpenFOAM/OpenFOAMDependencies/include -DGMPXX_LIBRARIES=/home/cc/vfaculty/puneets.vfaculty/OpenFOAM/OpenFOAMDependencies/lib/libgmpxx.so -DMPFR_INCLUDE_DIR=/home/cc/vfaculty/puneets.vfaculty/OpenFOAM/OpenFOAMDependencies/include -DMPFR_LIBRARIES_DIR=/home/cc/vfaculty/puneets.vfaculty/OpenFOAM/OpenFOAMDependencies/lib -DMPFR_LIBRARIES=/home/cc/vfaculty/puneets.vfaculty/OpenFOAM/OpenFOAMDependencies/lib/libmpfr.so ..

cmakelog:
== Detect external libraries ==
-- External libraries supported: GMP;GMPXX;MPFR;ZLIB;OpenGL;LEDA;MPFI;RS;RS3;OpenNL;Eigen3;BLAS;LAPACK;QGLViewer;ESBTL;Coin3D;NTL;IPE
-- Preconfiguring library: GMP ...
-- GMP has been preconfigured:
--   UseGMP-file:     
--   GMP include:      /home/cc/vfaculty/puneets.vfaculty/OpenFOAM/OpenFOAMDependencies/include
--   GMP libraries:    /home/cc/vfaculty/puneets.vfaculty/OpenFOAM/OpenFOAMDependencies/lib/libgmp.so
--   GMP definitions: 
-- USING GMP_VERSION = '6.1.0'
-- Preconfiguring library: MPFR ...
-- MPFR has been preconfigured:
--   UseMPFR-file:     
--   MPFR include:      /home/cc/vfaculty/puneets.vfaculty/OpenFOAM/OpenFOAMDependencies/include
--   MPFR libraries:    /home/cc/vfaculty/puneets.vfaculty/OpenFOAM/OpenFOAMDependencies/lib/libmpfr.so
--   MPFR definitions: 
-- USING MPFR_VERSION = '3.1.3'
-- Boost version: 1.59.0
-- Found the following Boost libraries:
--   thread
--   system
-- Boost include:     /home/cc/vfaculty/puneets.vfaculty/OpenFOAM/OpenFOAMDependencies/include
-- Boost libraries:   /home/cc/vfaculty/puneets.vfaculty/OpenFOAM/OpenFOAMDependencies/lib/libboost_thread.so;/home/cc/vfaculty/puneets.vfaculty/OpenFOAM/OpenFOAMDependencies/lib/libboost_system.so
-- Boost definitions:
-- USING BOOST_VERSION = '1.59.0'
== Detect external libraries (DONE) ==



but doing  ldd CGAL-4.7/lib/libCGAL.so gives
    linux-vdso.so.1 =>  (0x00007fffca9ff000)
    libmpfr.so.1 => /usr/lib64/libmpfr.so.1 (0x00007f3f29ecc000)
    libgmp.so.3 => /usr/lib64/libgmp.so.3 (0x00007f3f29c71000)

    libboost_thread.so.1.59.0 => /home/cc/vfaculty/puneets.vfaculty/OpenFOAM/OpenFOAMDependencies/lib/libboost_thread.so.1.59.0 (0x00007f3f29a4e000)
    libboost_system.so.5 => /usr/lib64/libboost_system.so.5 (0x00007f3f2984b000)
    libstdc++.so.6 => /usr/lib64/libstdc++.so.6 (0x00007f3f29545000)
    libm.so.6 => /lib64/libm.so.6 (0x00007f3f292c0000)
    libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007f3f290aa000)
    libc.so.6 => /lib64/libc.so.6 (0x00007f3f28d16000)
    libboost_system.so.1.59.0 => /home/cc/vfaculty/puneets.vfaculty/OpenFOAM/OpenFOAMDependencies/lib/libboost_system.so.1.59.0 (0x00007f3f28b12000)
    librt.so.1 => /lib64/librt.so.1 (0x00007f3f2890a000)
    libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f3f286ed000)
    /lib64/ld-linux-x86-64.so.2 (0x00000036cbc00000)

clearly the cmake is unable to pick up the newer libraries!
i am getting openfoam build error because of this:

ld: warning: libmpfr.so.1, needed by /home/cc/vfaculty/puneets.vfaculty/OpenFOAM/ThirdParty-3.0.0/platforms/linux64Icc/CGAL-4.7/lib/libCGAL.so, may conflict with libmpfr.so.4
ld: __gmpfr_cache_const_euler: TLS definition in /home/cc/vfaculty/puneets.vfaculty/OpenFOAM/OpenFOAMDependencies/lib//libmpfr.so section .tdata mismatches non-TLS definition in /usr/lib64/libmpfr.so.1 section .data
/usr/lib64/libmpfr.so.1: could not read symbols: Bad value
make[2]: *** [/home/cc/vfaculty/puneets.vfaculty/OpenFOAM/OpenFOAM-3.0.0/platforms/linux64IccDPInt32Opt/bin/foamyHexMesh] Error 1
make[1]: *** [generation] Error 2


any help/hint will be very useful  !!

Regards
Puneet SIngh


  • [cgal-discuss] CGAL - 4.7 build issues with mpfr 4.1.3 & gmp 10.3.0, Puneet Singh, 11/23/2015

Archive powered by MHonArc 2.6.18.

Top of Page