Skip to Content.
Sympa Menu

cgal-discuss - [cgal-discuss] [OS X] sth. wrong with mpfr.h

Subject: CGAL users discussion list

List archive

[cgal-discuss] [OS X] sth. wrong with mpfr.h


Chronological Thread 
  • From: "Shengye.JIN" <>
  • To:
  • Subject: [cgal-discuss] [OS X] sth. wrong with mpfr.h
  • Date: Tue, 6 May 2014 17:13:58 -0700 (PDT)

Dear all,
I have installed CGAL 4.4 it seems to be installed successfully.
but I met some problem about mpfr.h. when I compile the examples, and I have
no idea about this.

I m working with XOS version 10.9.2,

clang --version
Apple LLVM version 5.1 (clang-503.0.40) (based on LLVM 3.4svn)
Target: x86_64-apple-darwin13.1.0
Thread model: posix

xcode version 5.1.1

would you please give me any hint? thank you very much!

p.s. when I compile the 'Core' example, it works, only faild when it calls
mpfr.h.

here is what compiler showed :

cd Convex_hull_3
h41:Convex_hull_3 apple$ cmake .
-- The C compiler identification is Clang 5.1.0
-- The CXX compiler identification is Clang 5.1.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Build type: Release
-- USING CXXFLAGS = ' -O3 -DNDEBUG'
-- USING EXEFLAGS = '
-Wl,-dylib_file,/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib
'
-- Targetting Unix Makefiles
-- Using /usr/bin/c++ compiler.
-- DARWIN_VERSION=13
-- Mac Leopard detected
-- Requested component: Core
-- Requested component: MPFR
-- Requested component: GMP
-- Configuring done
-- Generating done
-- Build files have been written to:
/Users/apple/Downloads/CGAL-4.4.tar/CGAL-4.4/examples/Convex_hull_3
h41:Convex_hull_3 apple$ make
Scanning dependencies of target dynamic_hull_3
[ 25%] Building CXX object
CMakeFiles/dynamic_hull_3.dir/dynamic_hull_3.cpp.o
In file included from
/Users/apple/Downloads/CGAL-4.4.tar/CGAL-4.4/examples/Convex_hull_3/dynamic_hull_3.cpp:1:
In file included from
/Users/apple/Downloads/CGAL-4.4.tar/CGAL-4.4/examples/Convex_hull_3/../../include/CGAL/Exact_predicates_inexact_constructions_kernel.h:29:
In file included from
/Users/apple/Downloads/CGAL-4.4.tar/CGAL-4.4/examples/Convex_hull_3/../../include/CGAL/Filtered_kernel.h:35:
In file included from
/Users/apple/Downloads/CGAL-4.4.tar/CGAL-4.4/examples/Convex_hull_3/../../include/CGAL/internal/Exact_type_selector.h:36:
In file included from
/Users/apple/Downloads/CGAL-4.4.tar/CGAL-4.4/examples/Convex_hull_3/../../include/CGAL/Gmpz.h:33:
In file included from
/Users/apple/Downloads/CGAL-4.4.tar/CGAL-4.4/examples/Convex_hull_3/../../include/CGAL/Gmp_coercion_traits.h:30:
In file included from
/Users/apple/Downloads/CGAL-4.4.tar/CGAL-4.4/examples/Convex_hull_3/../../include/CGAL/GMP/Gmpz_type.h:31:
/usr/local/include/mpfr.h:125:9: error: unknown type name '__gmp_const'
typedef __gmp_const __mpfr_struct *mpfr_srcptr;
^
/usr/local/include/mpfr.h:125:34: error: expected ';' after top level
declarator
typedef __gmp_const __mpfr_struct *mpfr_srcptr;
^
/usr/local/include/mpfr.h:185:17: error: unknown type name '__gmp_const'
__MPFR_DECLSPEC __gmp_const char * mpfr_get_version _MPFR_PROTO ((void));
^
/usr/local/include/mpfr.h:185:29: error: expected unqualified-id
__MPFR_DECLSPEC __gmp_const char * mpfr_get_version _MPFR_PROTO ((void));
^
/usr/local/include/mpfr.h:186:17: error: unknown type name '__gmp_const'
__MPFR_DECLSPEC __gmp_const char * mpfr_get_patches _MPFR_PROTO ((void));
^
/usr/local/include/mpfr.h:186:29: error: expected unqualified-id
__MPFR_DECLSPEC __gmp_const char * mpfr_get_patches _MPFR_PROTO ((void));
^
/usr/local/include/mpfr.h:199:17: error: unknown type name '__gmp_const'
__MPFR_DECLSPEC __gmp_const char *
^
/usr/local/include/mpfr.h:199:29: error: expected unqualified-id
__MPFR_DECLSPEC __gmp_const char *
^
/usr/local/include/mpfr.h:238:32: error: unknown type name 'mpfr_srcptr';
did you mean 'mpf_srcptr'?
mpfr_can_round _MPFR_PROTO ((mpfr_srcptr, mp_exp_t, mpfr_rnd_t,
mpfr_rnd_t,
^
/usr/local/include/mpfr.h:163:25: note: expanded from macro '_MPFR_PROTO'
# define _MPFR_PROTO(x) x
^
/usr/local/include/gmp.h:228:29: note: 'mpf_srcptr' declared here
typedef const __mpf_struct *mpf_srcptr;
^
In file included from
/Users/apple/Downloads/CGAL-4.4.tar/CGAL-4.4/examples/Convex_hull_3/dynamic_hull_3.cpp:1:
In file included from
/Users/apple/Downloads/CGAL-4.4.tar/CGAL-4.4/examples/Convex_hull_3/../../include/CGAL/Exact_predicates_inexact_constructions_kernel.h:29:
In file included from
/Users/apple/Downloads/CGAL-4.4.tar/CGAL-4.4/examples/Convex_hull_3/../../include/CGAL/Filtered_kernel.h:35:
In file included from
/Users/apple/Downloads/CGAL-4.4.tar/CGAL-4.4/examples/Convex_hull_3/../../include/CGAL/internal/Exact_type_selector.h:36:
In file included from
/Users/apple/Downloads/CGAL-4.4.tar/CGAL-4.4/examples/Convex_hull_3/../../include/CGAL/Gmpz.h:33:
In file included from
/Users/apple/Downloads/CGAL-4.4.tar/CGAL-4.4/examples/Convex_hull_3/../../include/CGAL/Gmp_coercion_traits.h:30:
In file included from
/Users/apple/Downloads/CGAL-4.4.tar/CGAL-4.4/examples/Convex_hull_3/../../include/CGAL/GMP/Gmpz_type.h:31:
/usr/local/include/mpfr.h:241:53: error: unknown type name 'mpfr_srcptr';
did you mean 'mpf_srcptr'?
__MPFR_DECLSPEC mp_exp_t mpfr_get_exp _MPFR_PROTO ((mpfr_srcptr));
^
/usr/local/include/mpfr.h:163:25: note: expanded from macro '_MPFR_PROTO'
# define _MPFR_PROTO(x) x
^
/usr/local/include/gmp.h:228:29: note: 'mpf_srcptr' declared here
typedef const __mpf_struct *mpf_srcptr;
^
In file included from
/Users/apple/Downloads/CGAL-4.4.tar/CGAL-4.4/examples/Convex_hull_3/dynamic_hull_3.cpp:1:
In file included from
/Users/apple/Downloads/CGAL-4.4.tar/CGAL-4.4/examples/Convex_hull_3/../../include/CGAL/Exact_predicates_inexact_constructions_kernel.h:29:
In file included from
/Users/apple/Downloads/CGAL-4.4.tar/CGAL-4.4/examples/Convex_hull_3/../../include/CGAL/Filtered_kernel.h:35:
In file included from
/Users/apple/Downloads/CGAL-4.4.tar/CGAL-4.4/examples/Convex_hull_3/../../include/CGAL/internal/Exact_type_selector.h:36:
In file included from
/Users/apple/Downloads/CGAL-4.4.tar/CGAL-4.4/examples/Convex_hull_3/../../include/CGAL/Gmpz.h:33:
In file included from
/Users/apple/Downloads/CGAL-4.4.tar/CGAL-4.4/examples/Convex_hull_3/../../include/CGAL/Gmp_coercion_traits.h:30:
In file included from
/Users/apple/Downloads/CGAL-4.4.tar/CGAL-4.4/examples/Convex_hull_3/../../include/CGAL/GMP/Gmpz_type.h:31:
/usr/local/include/mpfr.h:243:54: error: unknown type name 'mpfr_srcptr';
did you mean 'mpf_srcptr'?
__MPFR_DECLSPEC mp_prec_t mpfr_get_prec _MPFR_PROTO((mpfr_srcptr));
^
/usr/local/include/mpfr.h:163:25: note: expanded from macro '_MPFR_PROTO'
# define _MPFR_PROTO(x) x
^
/usr/local/include/gmp.h:228:29: note: 'mpf_srcptr' declared here
typedef const __mpf_struct *mpf_srcptr;
^
In file included from
/Users/apple/Downloads/CGAL-4.4.tar/CGAL-4.4/examples/Convex_hull_3/dynamic_hull_3.cpp:1:
In file included from
/Users/apple/Downloads/CGAL-4.4.tar/CGAL-4.4/examples/Convex_hull_3/../../include/CGAL/Exact_predicates_inexact_constructions_kernel.h:29:
In file included from
/Users/apple/Downloads/CGAL-4.4.tar/CGAL-4.4/examples/Convex_hull_3/../../include/CGAL/Filtered_kernel.h:35:
In file included from
/Users/apple/Downloads/CGAL-4.4.tar/CGAL-4.4/examples/Convex_hull_3/../../include/CGAL/internal/Exact_type_selector.h:36:
In file included from
/Users/apple/Downloads/CGAL-4.4.tar/CGAL-4.4/examples/Convex_hull_3/../../include/CGAL/Gmpz.h:33:
In file included from
/Users/apple/Downloads/CGAL-4.4.tar/CGAL-4.4/examples/Convex_hull_3/../../include/CGAL/Gmp_coercion_traits.h:30:
In file included from
/Users/apple/Downloads/CGAL-4.4.tar/CGAL-4.4/examples/Convex_hull_3/../../include/CGAL/GMP/Gmpz_type.h:31:
/usr/local/include/mpfr.h:263:37: error: C++ requires a type specifier for
all declarations
mpfr_get_f _MPFR_PROTO ((mpf_ptr, mpfr_srcptr, mpfr_rnd_t));
^~~~~~~~~~~
/usr/local/include/mpfr.h:163:25: note: expanded from macro '_MPFR_PROTO'
# define _MPFR_PROTO(x) x
^
/usr/local/include/mpfr.h:274:40: error: unknown type name '__gmp_const'
mpfr_set_str _MPFR_PROTO ((mpfr_ptr, __gmp_const char *, int,
mpfr_rnd_t));
^
/usr/local/include/mpfr.h:163:25: note: expanded from macro '_MPFR_PROTO'
# define _MPFR_PROTO(x) x
^
/usr/local/include/mpfr.h:274:52: error: expected ')'
mpfr_set_str _MPFR_PROTO ((mpfr_ptr, __gmp_const char *, int,
mpfr_rnd_t));
^
/usr/local/include/mpfr.h:163:25: note: expanded from macro '_MPFR_PROTO'
# define _MPFR_PROTO(x) x
^
/usr/local/include/mpfr.h:274:29: note: to match this '('
mpfr_set_str _MPFR_PROTO ((mpfr_ptr, __gmp_const char *, int,
mpfr_rnd_t));
^
/usr/local/include/mpfr.h:163:25: note: expanded from macro '_MPFR_PROTO'
# define _MPFR_PROTO(x) x
^
/usr/local/include/mpfr.h:276:45: error: unknown type name '__gmp_const'
mpfr_init_set_str _MPFR_PROTO ((mpfr_ptr, __gmp_const char *, int,
^
/usr/local/include/mpfr.h:163:25: note: expanded from macro '_MPFR_PROTO'
# define _MPFR_PROTO(x) x
^
/usr/local/include/mpfr.h:276:57: error: expected ')'
mpfr_init_set_str _MPFR_PROTO ((mpfr_ptr, __gmp_const char *, int,
^
/usr/local/include/mpfr.h:163:25: note: expanded from macro '_MPFR_PROTO'
# define _MPFR_PROTO(x) x
^
/usr/local/include/mpfr.h:276:34: note: to match this '('
mpfr_init_set_str _MPFR_PROTO ((mpfr_ptr, __gmp_const char *, int,
^
/usr/local/include/mpfr.h:163:25: note: expanded from macro '_MPFR_PROTO'
# define _MPFR_PROTO(x) x
^
/usr/local/include/mpfr.h:279:37: error: C++ requires a type specifier for
all declarations
mpfr_set4 _MPFR_PROTO ((mpfr_ptr, mpfr_srcptr, mpfr_rnd_t, int));
^~~~~~~~~~~
/usr/local/include/mpfr.h:163:25: note: expanded from macro '_MPFR_PROTO'
# define _MPFR_PROTO(x) x
^
/usr/local/include/mpfr.h:281:36: error: C++ requires a type specifier for
all declarations
mpfr_abs _MPFR_PROTO ((mpfr_ptr, mpfr_srcptr, mpfr_rnd_t));
^~~~~~~~~~~
/usr/local/include/mpfr.h:163:25: note: expanded from macro '_MPFR_PROTO'
# define _MPFR_PROTO(x) x
^
/usr/local/include/mpfr.h:283:36: error: C++ requires a type specifier for
all declarations
mpfr_set _MPFR_PROTO ((mpfr_ptr, mpfr_srcptr, mpfr_rnd_t));
^~~~~~~~~~~
/usr/local/include/mpfr.h:163:25: note: expanded from macro '_MPFR_PROTO'
# define _MPFR_PROTO(x) x
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make[2]: *** [CMakeFiles/dynamic_hull_3.dir/dynamic_hull_3.cpp.o] Error 1
make[1]: *** [CMakeFiles/dynamic_hull_3.dir/all] Error 2
make: *** [all] Error 2







--
View this message in context:
http://cgal-discuss.949826.n4.nabble.com/OS-X-sth-wrong-with-mpfr-h-tp4659252.html
Sent from the cgal-discuss mailing list archive at Nabble.com.



Archive powered by MHonArc 2.6.18.

Top of Page