Heya,

Looking at feel++, I've applied the attached patch things progress
further, however later clang trips up on what it looks like variadic
macros.

[ 91%] Building CXX object
doc/manual/tutorial/CMakeFiles/feelpp_tut_geotool.dir/geotool.cpp.o
cd 
/build/feel++-vEnfJn/feel++-0.99.0-final.1/obj-x86_64-linux-gnu/doc/manual/tutorial
&& /usr/bin/clang++-3.5   -DBOOST_FILESYSTEM_VERSION=3
-DBOOST_NO_CXX11_SCOPED_ENUMS -DBOOST_NO_CXX11_VARIADIC_TEMPLATES
-DBOOST_NO_SCOPED_ENUMS -DBOOST_PARAMETER_MAX_ARITY=24
-DBOOST_RESULT_OF_USE_TR1 -DBOOST_TEST_DYN_LINK -DFEELPP_HAS_DLFCN_H
-DFEELPP_HAS_DLOPEN -DFEELPP_HAS_GMSH=1 -DFEELPP_HAS_MPI=1
-DFEELPP_HAS_MPI_H=1 -DFEELPP_HAS_PETSC -DFEELPP_HAS_PETSC_H
-DGMSH_EXECUTABLE=/usr/bin/gmsh -DHAVE_LIBDL -DIN_GINAC
-D_FEELPP_HAS_GMSH_ -g -O2 -fstack-protector-strong -Wformat
-Werror=format-security -Wall -D_FORTIFY_SOURCE=2 -std=c++0x
-std=c++11 -ftemplate-depth=1024 -stdlib=libstdc++ -O2 -DNDEBUG -g0
-I/build/feel++-vEnfJn/feel++-0.99.0-final.1/contrib
-I/usr/lib/openmpi/include -I/usr/lib/openmpi/include/openmpi
-I/usr/include/hdf5/openmpi
-I/build/feel++-vEnfJn/feel++-0.99.0-final.1/obj-x86_64-linux-gnu/contrib/cln/include
-I/build/feel++-vEnfJn/feel++-0.99.0-final.1/contrib/ginac
-I/build/feel++-vEnfJn/feel++-0.99.0-final.1/obj-x86_64-linux-gnu/contrib/ginac
-I/build/feel++-vEnfJn/feel++-0.99.0-final.1/contrib/ginac/ginac
-I/build/feel++-vEnfJn/feel++-0.99.0-final.1/obj-x86_64-linux-gnu/contrib/ginac/ginac
-I/build/feel++-vEnfJn/feel++-0.99.0-final.1/contrib/nlopt/api
-I/build/feel++-vEnfJn/feel++-0.99.0-final.1/contrib/eigen
-I/usr/include/ANN
-I/build/feel++-vEnfJn/feel++-0.99.0-final.1/obj-x86_64-linux-gnu/contrib/gflags/include
-I/build/feel++-vEnfJn/feel++-0.99.0-final.1/obj-x86_64-linux-gnu/contrib/glog/include
-I/usr/include/python2.7 -I/usr/lib/petscdir/3.4.2/include
-I/usr/lib/petscdir/3.4.2/linux-gnu-c-opt/include
-I/usr/include/suitesparse -I/usr/include/scotch
-I/usr/lib/x86_64-linux-gnu/hdf5/openmpi/include
-I/usr/lib/petsc/include -I/usr/lib/petsc/linux-gnu-c-opt/include
-I/usr/lib/slepc/linux-gnu-c-opt/include -I/usr/lib/slepc/include
-I/usr/include/gmsh
-I/build/feel++-vEnfJn/feel++-0.99.0-final.1/contrib/gmsh
-I/build/feel++-vEnfJn/feel++-0.99.0-final.1/obj-x86_64-linux-gnu
-I/build/feel++-vEnfJn/feel++-0.99.0-final.1
-I/build/feel++-vEnfJn/feel++-0.99.0-final.1/contrib/gmm/include
-I/build/feel++-vEnfJn/feel++-0.99.0-final.1/doc/manual     -Wall
-Wno-unused -Wno-sign-compare  -Wno-deprecated-register
-fmacro-backtrace-limit=0 -ftemplate-backtrace-limit=0
-UBOOST_UBLAS_TYPE_CHECK -o
CMakeFiles/feelpp_tut_geotool.dir/geotool.cpp.o -c
/build/feel++-vEnfJn/feel++-0.99.0-final.1/doc/manual/tutorial/geotool.cpp
error: unknown type name
'BOOST_PP_IIF_BOOST_PP_BOOL_BOOST_PP_COMPL_BOOST_PP_NOT_EQUAL_CHECK_BOOST_PP_NOT_EQUAL_'
note: expanded from here
note: expanded from here
error: expected member name or ';' after declaration specifiers
<built-in>:116:34: note: expanded from here
#define __FLT_EPSILON__ 1.19209290e-7F
                                 ^
^CE: ABORT: Received INT signal (requesting cleanup and shutdown)


-- 
Regards,

Dimitri.
From af05618293331c646b3ca2fbb625c2d118ad0fdd Mon Sep 17 00:00:00 2001
From: Pierre Jolivet <joli...@ann.jussieu.fr>
Date: Thu, 27 Nov 2014 14:04:14 +0100
Subject: [PATCH] Fixes #478.

---
 cmake/modules/FindFeel++.cmake | 13 ++++++-------
 1 file changed, 6 insertions(+), 7 deletions(-)

Index: feel++-0.99.0-final.1/cmake/modules/FindFeel++.cmake
===================================================================
--- feel++-0.99.0-final.1.orig/cmake/modules/FindFeel++.cmake
+++ feel++-0.99.0-final.1/cmake/modules/FindFeel++.cmake
@@ -101,13 +101,8 @@ if ( FEELPP_DISABLE_EIGEN_ALIGNMENT )
   message(STATUS "[feelpp] Disabling alignment and vectorisation in Feel++/Eigen")
 endif()
 
-
 # enable move semantics
 MARK_AS_ADVANCED(FEELPP_ENABLE_MOVE_SEMANTICS)
-IF ( FEELPP_ENABLE_MOVE_SEMANTICS )
-  SET( BOOST_UBLAS_MOVE_SEMANTICS 1 CACHE STRING "Enable Boost Ublas move semantics" FORCE )
-  ADD_DEFINITIONS( -DBOOST_UBLAS_MOVE_SEMANTICS )
-ENDIF( FEELPP_ENABLE_MOVE_SEMANTICS )
 
 # enable instantiation
 MARK_AS_ADVANCED(FEELPP_ENABLE_INSTANTIATION_MODE)
@@ -351,6 +346,11 @@ else()
   message(STATUS "[feelpp] Please check your boost version - Should be at least ${BOOST_MIN_VERSION}")
 endif()
 
+IF ( FEELPP_ENABLE_MOVE_SEMANTICS AND Boost_MAJOR_VERSION EQUAL "1" AND Boost_MINOR_VERSION LESS "57" )
+  SET( BOOST_UBLAS_MOVE_SEMANTICS 1 CACHE STRING "Enable Boost Ublas move semantics" FORCE )
+  ADD_DEFINITIONS( -DBOOST_UBLAS_MOVE_SEMANTICS )
+ENDIF( FEELPP_ENABLE_MOVE_SEMANTICS )
+
 OPTION(BOOST_ENABLE_TEST_DYN_LINK "enable boost test with dynamic lib" ON)
 MARK_AS_ADVANCED(BOOST_ENABLE_TEST_DYN_LINK)
 
-- 
debian-science-maintainers mailing list
debian-science-maintainers@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/debian-science-maintainers

Reply via email to