← Back to team overview

yade-users team mailing list archive

Re: [Question #295563]: compile error about isinf(double&)

 

Question #295563 on Yade changed:
https://answers.launchpad.net/yade/+question/295563

    Status: Open => Answered

Anton Gladky proposed the following answer:
Hi,

that is not Yade issue [1]. What is the reason of compile such an old
1.14.0 Yade version?

[1] http://www.mail-archive.com/yade-
dev@xxxxxxxxxxxxxxxxxxx/msg12014.html

Anton


2016-06-22 15:22 GMT+02:00 liukeqi <question295563@xxxxxxxxxxxxxxxxxxxxx>:
> New question #295563 on Yade:
> https://answers.launchpad.net/yade/+question/295563
>
> Hi, everyone
>   I used kdevelop to compile the yade-1.14.0.tar.gz, but I suffered an error. The information is following. Can you give me some suggestions? Thank you.
>
>
> ***************************************************************
> /home/liu/projects/trunk-1.14.0/build> make -j2 install
> [  1%] Generating qt4/moc_OpenGLManager.cxx
> Scanning dependencies of target WeightedAverage2d
> [  1%] Building CXX object py/CMakeFiles/WeightedAverage2d.dir/WeightedAverage2d.cpp.o
> [  2%] Generating qt4/moc_GLViewer.cxx
> Scanning dependencies of target _GLViewer
> [  2%] Building CXX object gui/CMakeFiles/_GLViewer.dir/qt4/GLViewer.cpp.o
> Linking CXX shared library lib/x86_64-linux-gnu/WeightedAverage2d.so
> [  2%] Built target WeightedAverage2d
> Scanning dependencies of target _packObb
> [  3%] Building CXX object py/CMakeFiles/_packObb.dir/pack/_packObb.cpp.o
> Linking CXX shared library lib/x86_64-linux-gnu/_packObb.so
> [  3%] Built target _packObb
> Scanning dependencies of target _polyhedra_utils
> [  3%] Building CXX object py/CMakeFiles/_polyhedra_utils.dir/_polyhedra_utils.cpp.o
> In file included from /usr/lib/python2.7/dist-packages/numpy/core/include/numpy/ndarraytypes.h:1761:0,
>                  from /usr/lib/python2.7/dist-packages/numpy/core/include/numpy/ndarrayobject.h:17,
>                  from /home/liu/projects/trunk-1.14.0/py/_polyhedra_utils.cpp:15:
> /usr/lib/python2.7/dist-packages/numpy/core/include/numpy/npy_1_7_deprecated_api.h:15:2: warning: #warning "Using deprecated NumPy API, disable it by " "#defining NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
>  #warning "Using deprecated NumPy API, disable it by " \
>   ^
> [  4%] Building CXX object gui/CMakeFiles/_GLViewer.dir/qt4/_GLViewer.cpp.o
> Linking CXX shared library lib/x86_64-linux-gnu/_polyhedra_utils.so
> [  4%] Built target _polyhedra_utils
> [  5%] Building CXX object gui/CMakeFiles/_GLViewer.dir/qt4/OpenGLManager.cpp.o
> [  6%] Building CXX object gui/CMakeFiles/_GLViewer.dir/qt4/GLViewerDisplay.cpp.o
> [  6%] Building CXX object gui/CMakeFiles/_GLViewer.dir/qt4/GLViewerMouse.cpp.o
> [  7%] Building CXX object gui/CMakeFiles/_GLViewer.dir/qt4/moc_GLViewer.cxx.o
> [  8%] Building CXX object gui/CMakeFiles/_GLViewer.dir/qt4/moc_OpenGLManager.cxx.o
> Linking CXX shared library lib/x86_64-linux-gnu/_GLViewer.so
> [  8%] Built target _GLViewer
> Scanning dependencies of target yade
> [ 10%] [ 10%] Building CXX object CMakeFiles/yade.dir/core/SimulationFlow.cpp.o
> Building CXX object CMakeFiles/yade.dir/core/Cell.cpp.o
> [ 11%] Building CXX object CMakeFiles/yade.dir/core/Body.cpp.o
> [ 11%] Building CXX object CMakeFiles/yade.dir/core/Interaction.cpp.o
> [ 12%] Building CXX object CMakeFiles/yade.dir/core/ThreadRunner.cpp.o
> [ 13%] Building CXX object CMakeFiles/yade.dir/core/Omega.cpp.o
> [ 13%] Building CXX object CMakeFiles/yade.dir/core/BodyContainer.cpp.o
> [ 14%] Building CXX object CMakeFiles/yade.dir/core/ThreadWorker.cpp.o
> [ 15%] Building CXX object CMakeFiles/yade.dir/core/State.cpp.o
> [ 16%] Building CXX object CMakeFiles/yade.dir/core/corePlugins.cpp.o
> [ 16%] Building CXX object CMakeFiles/yade.dir/core/Clump.cpp.o
> [ 17%] Building CXX object CMakeFiles/yade.dir/core/Material.cpp.o
> [ 18%] Building CXX object CMakeFiles/yade.dir/core/Scene.cpp.o
> [ 19%] Building CXX object CMakeFiles/yade.dir/core/InteractionContainer.cpp.o
> [ 19%] Building CXX object CMakeFiles/yade.dir/core/FileGenerator.cpp.o
> [ 20%] Building CXX object CMakeFiles/yade.dir/pkg/lbm/LBMnode.cpp.o
> [ 21%] Building CXX object CMakeFiles/yade.dir/pkg/lbm/HydrodynamicsLawLBM.cpp.o
> [ 21%] Building CXX object CMakeFiles/yade.dir/pkg/dem/L3Geom.cpp.o
> [ 22%] Building CXX object CMakeFiles/yade.dir/pkg/dem/Tetra.cpp.o
> [ 23%] Building CXX object CMakeFiles/yade.dir/pkg/dem/DomainLimiter.cpp.o
> [ 24%] Building CXX object CMakeFiles/yade.dir/pkg/dem/LudingPM.cpp.o
> [ 24%] Building CXX object CMakeFiles/yade.dir/pkg/dem/STLImporter.cpp.o
> In file included from /home/liu/projects/trunk-1.14.0/pkg/dem/STLImporter.cpp:10:0:
> /home/liu/projects/trunk-1.14.0/lib/import/STLReader.hpp: In member function ‘bool STLReader::open_ascii(const char*, OutV, OutE, OutF, OutN) [with OutV = std::back_insert_iterator<std::vector<double> >; OutE = std::back_insert_iterator<std::vector<int> >; OutF = std::back_insert_iterator<std::vector<int> >; OutN = std::back_insert_iterator<std::vector<double> >]’:
> /home/liu/projects/trunk-1.14.0/lib/import/STLReader.hpp:118:2: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
>   fscanf(fp, "%*s %*s %f %f %f\n", &n[0], &n[1], &n[2]);
>   ^
> /home/liu/projects/trunk-1.14.0/lib/import/STLReader.hpp:119:2: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
>   fscanf(fp, "%*s %*s");
>   ^
> /home/liu/projects/trunk-1.14.0/lib/import/STLReader.hpp:120:2: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
>   fscanf(fp, "%*s %f %f %f\n", &v[0][0],  &v[0][1],  &v[0][2]);
>   ^
> /home/liu/projects/trunk-1.14.0/lib/import/STLReader.hpp:121:2: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
>   fscanf(fp, "%*s %f %f %f\n", &v[1][0],  &v[1][1],  &v[1][2]);
>   ^
> /home/liu/projects/trunk-1.14.0/lib/import/STLReader.hpp:122:2: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
>   fscanf(fp, "%*s %f %f %f\n", &v[2][0],  &v[2][1],  &v[2][2]);
>   ^
> /home/liu/projects/trunk-1.14.0/lib/import/STLReader.hpp:123:2: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
>   fscanf(fp, "%*s"); // end loop
>   ^
> /home/liu/projects/trunk-1.14.0/lib/import/STLReader.hpp:124:2: warning: ignoring return value of ‘int fscanf(FILE*, const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result]
>   fscanf(fp, "%*s"); // end facet
>   ^
> [ 25%] Building CXX object CMakeFiles/yade.dir/pkg/dem/GeneralIntegratorInsertionSortCollider.cpp.o
> [ 26%] Building CXX object CMakeFiles/yade.dir/pkg/dem/BubbleMat.cpp.o
> [ 26%] Building CXX object CMakeFiles/yade.dir/pkg/dem/VTKRecorder.cpp.o
> In file included from /usr/include/vtk-6.0/vtkTriangle.h:26:0,
>                  from /home/liu/projects/trunk-1.14.0/pkg/dem/VTKRecorder.cpp:16:
> /usr/include/vtk-6.0/vtkMath.h: In static member function ‘static int vtkMath::IsInf(double)’:
> /usr/include/vtk-6.0/vtkMath.h:1249:18: error: call of overloaded ‘isinf(double&)’ is ambiguous
>    return (isinf(x) != 0); // Force conversion to bool
>                   ^
> /usr/include/vtk-6.0/vtkMath.h:1249:18: note: candidates are:
> In file included from /usr/include/math.h:69:0,
>                  from /usr/include/c++/4.8/cmath:44,
>                  from /usr/include/c++/4.8/random:38,
>                  from /usr/include/c++/4.8/bits/stl_algo.h:65,
>                  from /usr/include/c++/4.8/algorithm:62,
>                  from /home/liu/projects/trunk-1.14.0/lib/base/Math.hpp:11,
>                  from /home/liu/projects/trunk-1.14.0/lib/serialization/Serializable.hpp:15,
>                  from /home/liu/projects/trunk-1.14.0/core/Engine.hpp:13,
>                  from /home/liu/projects/trunk-1.14.0/core/GlobalEngine.hpp:11,
>                  from /home/liu/projects/trunk-1.14.0/pkg/common/PeriodicEngines.hpp:5,
>                  from /home/liu/projects/trunk-1.14.0/pkg/dem/VTKRecorder.hpp:2,
>                  from /home/liu/projects/trunk-1.14.0/pkg/dem/VTKRecorder.cpp:3:
> /usr/include/x86_64-linux-gnu/bits/mathcalls.h:201:12: note: int isinf(double)
>  __MATHDECL_1 (int,isinf,, (_Mdouble_ __value)) __attribute__ ((__const__));
>             ^
> In file included from /usr/include/c++/4.8/random:38:0,
>                  from /usr/include/c++/4.8/bits/stl_algo.h:65,
>                  from /usr/include/c++/4.8/algorithm:62,
>                  from /home/liu/projects/trunk-1.14.0/lib/base/Math.hpp:11,
>                  from /home/liu/projects/trunk-1.14.0/lib/serialization/Serializable.hpp:15,
>                  from /home/liu/projects/trunk-1.14.0/core/Engine.hpp:13,
>                  from /home/liu/projects/trunk-1.14.0/core/GlobalEngine.hpp:11,
>                  from /home/liu/projects/trunk-1.14.0/pkg/common/PeriodicEngines.hpp:5,
>                  from /home/liu/projects/trunk-1.14.0/pkg/dem/VTKRecorder.hpp:2,
>                  from /home/liu/projects/trunk-1.14.0/pkg/dem/VTKRecorder.cpp:3:
> /usr/include/c++/4.8/cmath:608:3: note: constexpr bool std::isinf(long double)
>    isinf(long double __x)
>    ^
> /usr/include/c++/4.8/cmath:604:3: note: constexpr bool std::isinf(double)
>    isinf(double __x)
>    ^
> /usr/include/c++/4.8/cmath:600:3: note: constexpr bool std::isinf(float)
>    isinf(float __x)
>    ^
> In file included from /usr/include/vtk-6.0/vtkTriangle.h:26:0,
>                  from /home/liu/projects/trunk-1.14.0/pkg/dem/VTKRecorder.cpp:16:
> /usr/include/vtk-6.0/vtkMath.h: In static member function ‘static int vtkMath::IsNan(double)’:
> /usr/include/vtk-6.0/vtkMath.h:1259:18: error: call of overloaded ‘isnan(double&)’ is ambiguous
>    return (isnan(x) != 0); // Force conversion to bool
>                   ^
> /usr/include/vtk-6.0/vtkMath.h:1259:18: note: candidates are:
> In file included from /usr/include/math.h:69:0,
>                  from /usr/include/c++/4.8/cmath:44,
>                  from /usr/include/c++/4.8/random:38,
>                  from /usr/include/c++/4.8/bits/stl_algo.h:65,
>                  from /usr/include/c++/4.8/algorithm:62,
>                  from /home/liu/projects/trunk-1.14.0/lib/base/Math.hpp:11,
>                  from /home/liu/projects/trunk-1.14.0/lib/serialization/Serializable.hpp:15,
>                  from /home/liu/projects/trunk-1.14.0/core/Engine.hpp:13,
>                  from /home/liu/projects/trunk-1.14.0/core/GlobalEngine.hpp:11,
>                  from /home/liu/projects/trunk-1.14.0/pkg/common/PeriodicEngines.hpp:5,
>                  from /home/liu/projects/trunk-1.14.0/pkg/dem/VTKRecorder.hpp:2,
>                  from /home/liu/projects/trunk-1.14.0/pkg/dem/VTKRecorder.cpp:3:
> /usr/include/x86_64-linux-gnu/bits/mathcalls.h:234:12: note: int isnan(double)
>  __MATHDECL_1 (int,isnan,, (_Mdouble_ __value)) __attribute__ ((__const__));
>             ^
> In file included from /usr/include/c++/4.8/random:38:0,
>                  from /usr/include/c++/4.8/bits/stl_algo.h:65,
>                  from /usr/include/c++/4.8/algorithm:62,
>                  from /home/liu/projects/trunk-1.14.0/lib/base/Math.hpp:11,
>                  from /home/liu/projects/trunk-1.14.0/lib/serialization/Serializable.hpp:15,
>                  from /home/liu/projects/trunk-1.14.0/core/Engine.hpp:13,
>                  from /home/liu/projects/trunk-1.14.0/core/GlobalEngine.hpp:11,
>                  from /home/liu/projects/trunk-1.14.0/pkg/common/PeriodicEngines.hpp:5,
>                  from /home/liu/projects/trunk-1.14.0/pkg/dem/VTKRecorder.hpp:2,
>                  from /home/liu/projects/trunk-1.14.0/pkg/dem/VTKRecorder.cpp:3:
> /usr/include/c++/4.8/cmath:626:3: note: constexpr bool std::isnan(long double)
>    isnan(long double __x)
>    ^
> /usr/include/c++/4.8/cmath:622:3: note: constexpr bool std::isnan(double)
>    isnan(double __x)
>    ^
> /usr/include/c++/4.8/cmath:618:3: note: constexpr bool std::isnan(float)
>    isnan(float __x)
>    ^
> [ 27%] Building CXX object CMakeFiles/yade.dir/pkg/dem/NewtonIntegrator.cpp.o
> make[2]: *** [CMakeFiles/yade.dir/pkg/dem/VTKRecorder.cpp.o] Error 1
> make[2]: *** Waiting for unfinished jobs....
> make[1]: *** [CMakeFiles/yade.dir/all] Error 2
> make: *** [all] Error 2
> *** Failure: Exit code 2 ***
>
>
> --
> You received this question notification because your team yade-users is
> an answer contact for Yade.
>
> _______________________________________________
> Mailing list: https://launchpad.net/~yade-users
> Post to     : yade-users@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~yade-users
> More help   : https://help.launchpad.net/ListHelp

-- 
You received this question notification because your team yade-users is
an answer contact for Yade.