Bug#667426: yafaray: ftbfs with GCC-4.7

Matthias Klose doko at debian.org
Tue Apr 3 23:13:26 UTC 2012


Package: yafaray
Version: 0.1.2~beta2.1-1
Severity: important
Tags: sid wheezy
User: debian-gcc at lists.debian.org
Usertags: ftbfs-gcc-4.7

The package fails to build in a test rebuild on at least amd64 with
gcc-4.7/g++-4.7, but succeeds to build with gcc-4.6/g++-4.6. The
severity of this report may be raised before the wheezy release.

scene.cc:341:27: error: '_SC_NPROCESSORS_ONLN' was not declared in this scope

The full build log can be found at:
http://people.debian.org/~lucas/logs/2012/03/29-clang-gcc47/unstable-gcc47/yafaray_0.1.2~beta2.1-1_unstable-gcc47.log
The last lines of the build log are at the end of this report.

Some hints on fixing these issues can be found at
http://gcc.gnu.org/gcc-4.7/porting_to.html

To build with GCC 4.7, either set CC=gcc-4.7 CXX=g++-4.7 explicitly,
or install the gcc, g++, gfortran, ... packages from experimental.

[...]
/«PKGBUILDDIR»/include/core_api/object3d.h: In member function 'virtual int yafaray::object3d_t::getPrimitives(const yafaray::primitive_t**) const':
/«PKGBUILDDIR»/include/core_api/object3d.h:28:71: warning: converting to non-pointer type 'int' from NULL [-Wconversion-null]
[ 12%] Building CXX object src/yafraycore/CMakeFiles/yafaraycore.dir/timer.cc.o
[ 13%] Building CXX object src/yafraycore/CMakeFiles/yafaraycore.dir/kdtree.cc.o
In file included from /«PKGBUILDDIR»/include/yafraycore/kdtree.h:10:0,
                 from /«PKGBUILDDIR»/src/yafraycore/kdtree.cc:3:
/«PKGBUILDDIR»/include/core_api/object3d.h: In member function 'virtual int yafaray::object3d_t::getPrimitives(const yafaray::primitive_t**) const':
/«PKGBUILDDIR»/include/core_api/object3d.h:28:71: warning: converting to non-pointer type 'int' from NULL [-Wconversion-null]
[ 15%] Building CXX object src/yafraycore/CMakeFiles/yafaraycore.dir/ray_kdtree.cc.o
In file included from /«PKGBUILDDIR»/include/yafraycore/ray_kdtree.h:10:0,
                 from /«PKGBUILDDIR»/src/yafraycore/ray_kdtree.cc:3:
/«PKGBUILDDIR»/include/core_api/object3d.h: In member function 'virtual int yafaray::object3d_t::getPrimitives(const yafaray::primitive_t**) const':
/«PKGBUILDDIR»/include/core_api/object3d.h:28:71: warning: converting to non-pointer type 'int' from NULL [-Wconversion-null]
[ 16%] Building CXX object src/yafraycore/CMakeFiles/yafaraycore.dir/hashgrid.cc.o
[ 17%] Building CXX object src/yafraycore/CMakeFiles/yafaraycore.dir/tribox3_d.cc.o
[ 18%] Building CXX object src/yafraycore/CMakeFiles/yafaraycore.dir/triclip.cc.o
[ 19%] Building CXX object src/yafraycore/CMakeFiles/yafaraycore.dir/scene.cc.o
In file included from /«PKGBUILDDIR»/src/yafraycore/scene.cc:23:0:
/«PKGBUILDDIR»/include/core_api/object3d.h: In member function 'virtual int yafaray::object3d_t::getPrimitives(const yafaray::primitive_t**) const':
/«PKGBUILDDIR»/include/core_api/object3d.h:28:71: warning: converting to non-pointer type 'int' from NULL [-Wconversion-null]
/«PKGBUILDDIR»/src/yafraycore/scene.cc: In member function 'void yafaray::scene_t::setNumThreads(int)':
/«PKGBUILDDIR»/src/yafraycore/scene.cc:341:27: error: '_SC_NPROCESSORS_ONLN' was not declared in this scope
/«PKGBUILDDIR»/src/yafraycore/scene.cc:341:47: error: 'sysconf' was not declared in this scope
make[3]: *** [src/yafraycore/CMakeFiles/yafaraycore.dir/scene.cc.o] Error 1
make[3]: Leaving directory `/«PKGBUILDDIR»/build'
make[2]: *** [src/yafraycore/CMakeFiles/yafaraycore.dir/all] Error 2
make[1]: *** [all] Error 2
dh_auto_build: make -j1 returned exit code 2
make: *** [build-arch] Error 2
dpkg-buildpackage: error: debian/rules build-arch gave error exit status 2





More information about the pkg-multimedia-maintainers mailing list