Fails to build from yade-daily sources

Bug #1267164 reported by Václav Šmilauer
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Yade
Invalid
Undecided
Unassigned

Bug Description

I am using the yade-daily ppa with Ubuntu 13.10. When I run

$ apt-get source --build yade-daily

the build process continues normally but it fails towards the end:

[ 96%] Building CXX object py/CMakeFiles/_customConverters.dir/wrapper/customConverters.cpp.o
cd "/home/eudoxos/build/yade-daily-8+3772+64~ubuntu13.10.1/debian/build/py" && /usr/bin/c++ -D_customConverters_EXPORTS -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -ftrack-macro-expansion=0 -save-temps -fPIC -DYADE_VTK -DYADE_OPENMP -fopenmp -DYADE_GTS -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include -DQGLVIEWER_FOUND -DYADE_OPENGL -frounding-math -DYADE_CGAL -DFLOW_ENGINE -frounding-math -DLINSOLV -DFLOW_ENGINE -DYADE_GL2PS -O3 -DNDEBUG -fPIC -I/usr/lib/python2.7/dist-packages/numpy/core/include -I/usr/include/eigen3 -I/usr/include/vtk-5.8 -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/qt4/QtDesigner -I/usr/include/qt4/QtDeclarative -I/usr/include/qt4/QtScriptTools -I/usr/include/qt4/QtDBus -I/usr/include/qt4/QtXml -I/usr/include/qt4/QtSql -I/usr/include/qt4/QtOpenGL -I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtXmlPatterns -I/usr/include/qt4/QtHelp -I/usr/include/qt4/QtUiTools -I/usr/include/qt4/QtTest -I/usr/include/qt4/QtScript -I/usr/include/qt4/QtSvg -I/usr/include/qt4/Qt3Support -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtCore -I/usr/share/qt4/mkspecs/default -I/usr/include/qt4 -I/usr/include/suitesparse -I/usr/include/python3.3m -I/usr/include/x86_64-linux-gnu/python3.3m -I"/home/eudoxos/build/yade-daily-8+3772+64~ubuntu13.10.1/extra/floating_point_utilities_v3" -I"/home/eudoxos/build/yade-daily-8+3772+64~ubuntu13.10.1/debian/build" -DYADE_PTR_CAST=static_pointer_cast -DYADE_CAST=static_cast -o CMakeFiles/_customConverters.dir/wrapper/customConverters.cpp.o -c "/home/eudoxos/build/yade-daily-8+3772+64~ubuntu13.10.1/py/wrapper/customConverters.cpp"
/home/eudoxos/build/yade-daily-8+3772+64~ubuntu13.10.1/py/wrapper/customConverters.cpp: In static member function ‘static PyObject* custom_OpenMPAccumulator_to_int::convert(const OpenMPAccumulator<int>&)’:
/home/eudoxos/build/yade-daily-8+3772+64~ubuntu13.10.1/py/wrapper/customConverters.cpp:93:147: error: ‘PyInt_FromLong’ was not declared in this scope
 struct custom_OpenMPAccumulator_to_int { static PyObject* convert(const OpenMPAccumulator<int>& acc){ return incref(PyInt_FromLong((long)acc.get())); } };
                                                                                                                                                   ^
/home/eudoxos/build/yade-daily-8+3772+64~ubuntu13.10.1/py/wrapper/customConverters.cpp: In static member function ‘static void* custom_OpenMPAccumulator_from_int::convertible(PyObject*)’:
/home/eudoxos/build/yade-daily-8+3772+64~ubuntu13.10.1/py/wrapper/customConverters.cpp:96:73: error: ‘PyInt_Check’ was not declared in this scope
  static void* convertible(PyObject* obj_ptr){ return PyInt_Check(obj_ptr) ? obj_ptr : 0; }
                                                                         ^
make[3]: *** [py/CMakeFiles/_customConverters.dir/wrapper/customConverters.cpp.o] Error 1
make[3]: Leaving directory `/home/eudoxos/build/yade-daily-8+3772+64~ubuntu13.10.1/debian/build'
make[2]: *** [py/CMakeFiles/_customConverters.dir/all] Error 2
make[2]: Leaving directory `/home/eudoxos/build/yade-daily-8+3772+64~ubuntu13.10.1/debian/build'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/eudoxos/build/yade-daily-8+3772+64~ubuntu13.10.1/debian/build'

description: updated
Revision history for this message
Anton Gladky (gladky-anton) wrote :

Hi Vaclav,

I have just built yade-daily for Ubuntu 13.10 in a clean
environment. You can download package from here [1].
Instructions [2].

We stopped building yade-daily on Launchpad's build-servers
due to failures because of RAM-shortage.

[1] http://yade-dem.org/packages/
[2] https://yade-dem.org/doc/installation.html#packages

Anton

Revision history for this message
Václav Šmilauer (eudoxos) wrote :

Thanks, I tried this (changing the distribution to saucy in the sources.list) but it fails with

The following packages have unmet dependencies:
 yadedaily : Depends: python-yadedaily (= 8+3750+64~ubuntu13.10.1)

-- when investigate further, I need libyade, which is unavailable. I try with apt-get source --build yadedaily and let you know.

Revision history for this message
Anton Gladky (gladky-anton) wrote : Re: [Bug 1267164] Re: Fails to build from yade-daily sources

Yes, we ship yade libs in a separate package. You can find
it here [1].

[1] http://yade-dem.org/packages/saucy/

Anton

2014/1/9 Václav Šmilauer <email address hidden>:
> Thanks, I tried this (changing the distribution to saucy in the
> sources.list) but it fails with
>
> The following packages have unmet dependencies:
> yadedaily : Depends: python-yadedaily (= 8+3750+64~ubuntu13.10.1)
>
> -- when investigate further, I need libyade, which is unavailable. I try
> with apt-get source --build yadedaily and let you know.

Revision history for this message
Václav Šmilauer (eudoxos) wrote :

Source package from the repo fails to build locally just the same as git:

$ apt-get source --build yadedaily

/home/eudoxos/build/yade-daily-8+3772+64~ubuntu13.10.1/py/wrapper/customConverters.cpp: In static member function ‘static PyObject* custom_OpenMPAccumulator_to_int::convert(const OpenMPAccumulator<int>&)’:
/home/eudoxos/build/yade-daily-8+3772+64~ubuntu13.10.1/py/wrapper/customConverters.cpp:93:147: error: ‘PyInt_FromLong’ was not declared in this scope
 struct custom_OpenMPAccumulator_to_int { static PyObject* convert(const OpenMPAccumulator<int>& acc){ return incref(PyInt_FromLong((long)acc.get())); } };
                                                                                                                                                   ^
/home/eudoxos/build/yade-daily-8+3772+64~ubuntu13.10.1/py/wrapper/customConverters.cpp: In static member function ‘static void* custom_OpenMPAccumulator_from_int::convertible(PyObject*)’:
/home/eudoxos/build/yade-daily-8+3772+64~ubuntu13.10.1/py/wrapper/customConverters.cpp:96:73: error: ‘PyInt_Check’ was not declared in this scope
  static void* convertible(PyObject* obj_ptr){ return PyInt_Check(obj_ptr) ? obj_ptr : 0; }
                                                                         ^
make[3]: *** [py/CMakeFiles/_customConverters.dir/wrapper/customConverters.cpp.o] Error 1

PS the packages from the repo install fine, the problem was that I still had the launchpad PPA in sources which messed up dependencies somehow.

Revision history for this message
Anton Gladky (gladky-anton) wrote :

2014/1/9 Václav Šmilauer <email address hidden>:
> /home/eudoxos/build/yade-daily-8+3772+64~ubuntu13.10.1/py/wrapper/customConverters.cpp: In static member function ‘static PyObject* custom_OpenMPAccumulator_to_int::convert(const OpenMPAccumulator<int>&)’:
> /home/eudoxos/build/yade-daily-8+3772+64~ubuntu13.10.1/py/wrapper/customConverters.cpp:93:147: error: ‘PyInt_FromLong’ was not declared in this scope
> struct custom_OpenMPAccumulator_to_int { static PyObject* convert(const OpenMPAccumulator<int>& acc){ return incref(PyInt_FromLong((long)acc.get())); } };
> ^
> /home/eudoxos/build/yade-daily-8+3772+64~ubuntu13.10.1/py/wrapper/customConverters.cpp: In static member function ‘static void* custom_OpenMPAccumulator_from_int::convertible(PyObject*)’:
> /home/eudoxos/build/yade-daily-8+3772+64~ubuntu13.10.1/py/wrapper/customConverters.cpp:96:73: error: ‘PyInt_Check’ was not declared in this scope
> static void* convertible(PyObject* obj_ptr){ return PyInt_Check(obj_ptr) ? obj_ptr : 0; }

It seems, some wrong python-headers are used. Please, show CmakeCache.txt

Anton

Revision history for this message
Bruno Chareyre (bruno-chareyre) wrote :

No longer a bug, closing.

Changed in yade:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.