Bug#765187: blender: FTBFS on s390x, ppc64el, arm64: error: cast from 'ccl::uchar* {aka unsigned char*}' to 'CUdeviceptr {aka unsigned int}' loses precision [-fpermissive]

Sebastian Ramacher sramacher at debian.org
Mon Oct 13 20:58:07 UTC 2014


Source: blender
Version: 2.72+dfsg1-1
Severity: serious
Justification: fails to build from source (but built successfully in the past)

blender failed to build on s390x, ppc64el and arm64 with:
| [  7%] Building CXX object intern/cycles/bvh/CMakeFiles/cycles_bvh.dir/bvh_node.cpp.o
| cd /«BUILDDIR»/blender-2.72+dfsg1/obj-s390x-linux-gnu/intern/cycles/bvh && /usr/bin/c++   -DBOOST_ALL_NO_LIB -DCCL_NAMESPACE_BEGIN="namespace ccl {" -DCCL_NAMESPACE_END=} -DHAVE_STDBOOL_H -DWITH_CUDA -DWITH_MULTI -DWITH_OPENCL -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE -D__BIG_ENDIAN__ -Wredundant-decls -Wall -Wno-invalid-offsetof -Wno-sign-compare -Wlogical-op -Winit-self -Wmissing-include-dirs -Wno-div-by-zero -Wtype-limits -Wuninitialized -Wundef -Wmissing-declarations -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2  -D__STDC_CONSTANT_MACROS -fopenmp -pipe -fPIC -funsigned-char -fno-strict-aliasing -ffast-math -Werror=float-conversion -isystem /usr/include/OpenImageIO -isystem /usr/include/OpenEXR -I/«BUILDDIR»/blender-2.72+dfsg1/intern/cycles/bvh/. -I/«BUILDDIR»/blender-2.72+dfsg1/intern/cycles/bvh/../kernel -I/«BUILDDIR»/blender-2.72+dfsg1/intern/cycles/bvh/../kernel/svm -I/«BUILDDIR»/blender-2.72+dfsg1/intern/cycles/bvh/../render -I/«BUILDDIR»/blender-2.72+dfsg1/intern/cycles/bvh/../util -I/«BUILDDIR»/blender-2.72+dfsg1/intern/cycles/bvh/../device    -o CMakeFiles/cycles_bvh.dir/bvh_node.cpp.o -c /«BUILDDIR»/blender-2.72+dfsg1/intern/cycles/bvh/bvh_node.cpp
| /«BUILDDIR»/blender-2.72+dfsg1/intern/cycles/device/device_cuda.cpp: In member function 'virtual void ccl::CUDADevice::mem_copy_from(ccl::device_memory&, int, int, int, int)':
| /«BUILDDIR»/blender-2.72+dfsg1/intern/cycles/device/device_cuda.cpp:358:78: error: cast from 'ccl::uchar* {aka unsigned char*}' to 'CUdeviceptr {aka unsigned int}' loses precision [-fpermissive]
|                              (CUdeviceptr)((uchar*)mem.device_pointer + offset), size));
|                                                                               ^
| /«BUILDDIR»/blender-2.72+dfsg1/intern/cycles/device/device_cuda.cpp:86:21: note: in definition of macro 'cuda_assert'
|    CUresult result = stmt; \
|                      ^
| make[3]: *** [intern/cycles/device/CMakeFiles/cycles_device.dir/device_cuda.cpp.o] Error 1
| intern/cycles/device/CMakeFiles/cycles_device.dir/build.make:103: recipe for target 'intern/cycles/device/CMakeFiles/cycles_device.dir/device_cuda.cpp.o' failed
| make[3]: Leaving directory '/«BUILDDIR»/blender-2.72+dfsg1/obj-s390x-linux-gnu'
| make[2]: *** [intern/cycles/device/CMakeFiles/cycles_device.dir/all] Error 2

See
https://buildd.debian.org/status/fetch.php?pkg=blender&arch=s390x&ver=2.72+dfsg1-1&stamp=1412753922
for the build log.

Cheers
-- 
Sebastian Ramacher
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-multimedia-maintainers/attachments/20141013/3a544397/attachment.sig>


More information about the pkg-multimedia-maintainers mailing list