Bug#822469: asl: FTBFS: error: expected unqualified-id before 'sizeof'

Martin Michlmayr tbm at hpe.com
Sun Apr 24 20:04:12 UTC 2016


Package: asl
Version: 0.1.6-1
Severity: serious

This package fails to build in unstable:

> sbuild (Debian sbuild) 0.68.0 (15 Jan 2016) on dl580gen9-02.hlinux
...
> [ 27%] Building CXX object src/acl/CMakeFiles/aslacl.dir/Operators/aclGenericAtomicFunction.cxx.o
> cd /<<PKGBUILDDIR>>/obj-x86_64-linux-gnu/src/acl && /usr/bin/c++   -Daslacl_EXPORTS -DvtkRenderingCore_AUTOINIT="2(vtkInteractionStyle,vtkRenderingFreeType)" -I/usr/include/vtk-6.2 -I/usr/include/jsoncpp -I/usr/include/x86_64-linux-gnu -I/usr/include/hdf5/openmpi -I/usr/lib/openmpi/include/openmpi/opal/mca/event/libevent2021/libevent -I/usr/lib/openmpi/include/openmpi/opal/mca/event/libevent2021/libevent/include -I/usr/lib/openmpi/include -I/usr/lib/openmpi/include/openmpi -I/usr/include/freetype2 -I/<<PKGBUILDDIR>>/src -I/<<PKGBUILDDIR>>/src/acl  -g -O2 -fPIE -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2  -fpermissive  -O2 -g -DNDEBUG -fPIC   -std=gnu++11 -o CMakeFiles/aslacl.dir/Operators/aclGenericAtomicFunction.cxx.o -c /<<PKGBUILDDIR>>/src/acl/Operators/aclGenericAtomicFunction.cxx
> In file included from /<<PKGBUILDDIR>>/src/aslUtilities.h:32:0,
>                  from /<<PKGBUILDDIR>>/src/acl/Operators/aclElementConvert.cxx:25:
> /<<PKGBUILDDIR>>/src/acl/cl.hpp: In constructor 'cl::Sampler::Sampler(const cl::Context&, cl_bool, cl_addressing_mode, cl_filter_mode, cl_int*)':
> /<<PKGBUILDDIR>>/src/acl/cl.hpp:4522:21: warning: '_cl_sampler* clCreateSampler(cl_context, cl_bool, cl_addressing_mode, cl_filter_mode, cl_int*)' is deprecated [-Wdeprecated-declarations]
>          object_ = ::clCreateSampler(
>                      ^
> In file included from /usr/include/CL/opencl.h:42:0,
>                  from /<<PKGBUILDDIR>>/src/acl/cl.hpp:75,
>                  from /<<PKGBUILDDIR>>/src/aslUtilities.h:32,
>                  from /<<PKGBUILDDIR>>/src/acl/Operators/aclElementConvert.cxx:25:
> /usr/include/CL/cl.h:1366:1: note: declared here
>  clCreateSampler(cl_context          /* context */,
>  ^
> In file included from /<<PKGBUILDDIR>>/src/aslUtilities.h:32:0,
>                  from /<<PKGBUILDDIR>>/src/acl/Operators/aclElementConvert.cxx:25:
> /<<PKGBUILDDIR>>/src/acl/cl.hpp:4522:21: warning: '_cl_sampler* clCreateSampler(cl_context, cl_bool, cl_addressing_mode, cl_filter_mode, cl_int*)' is deprecated [-Wdeprecated-declarations]
>          object_ = ::clCreateSampler(
>                      ^
> In file included from /usr/include/CL/opencl.h:42:0,
>                  from /<<PKGBUILDDIR>>/src/acl/cl.hpp:75,
>                  from /<<PKGBUILDDIR>>/src/aslUtilities.h:32,
>                  from /<<PKGBUILDDIR>>/src/acl/Operators/aclElementConvert.cxx:25:
> /usr/include/CL/cl.h:1366:1: note: declared here
>  clCreateSampler(cl_context          /* context */,
>  ^
> In file included from /<<PKGBUILDDIR>>/src/aslUtilities.h:32:0,
>                  from /<<PKGBUILDDIR>>/src/acl/Operators/aclElementConvert.cxx:25:
> /<<PKGBUILDDIR>>/src/acl/cl.hpp:4527:19: warning: '_cl_sampler* clCreateSampler(cl_context, cl_bool, cl_addressing_mode, cl_filter_mode, cl_int*)' is deprecated [-Wdeprecated-declarations]
>              &error);
>                    ^
> In file included from /usr/include/CL/opencl.h:42:0,
>                  from /<<PKGBUILDDIR>>/src/acl/cl.hpp:75,
>                  from /<<PKGBUILDDIR>>/src/aslUtilities.h:32,
>                  from /<<PKGBUILDDIR>>/src/acl/Operators/aclElementConvert.cxx:25:
> /usr/include/CL/cl.h:1366:1: note: declared here
>  clCreateSampler(cl_context          /* context */,
>  ^
> In file included from /<<PKGBUILDDIR>>/src/aslUtilities.h:32:0,
>                  from /<<PKGBUILDDIR>>/src/acl/Operators/aclElementConvert.cxx:25:
> /<<PKGBUILDDIR>>/src/acl/cl.hpp: In constructor 'cl::CommandQueue::CommandQueue(cl_command_queue_properties, cl_int*)':
> /<<PKGBUILDDIR>>/src/acl/cl.hpp:5382:25: warning: '_cl_command_queue* clCreateCommandQueue(cl_context, cl_device_id, cl_command_queue_properties, cl_int*)' is deprecated [-Wdeprecated-declarations]
>              object_ = ::clCreateCommandQueue(
>                          ^
> In file included from /usr/include/CL/opencl.h:42:0,
>                  from /<<PKGBUILDDIR>>/src/acl/cl.hpp:75,
>                  from /<<PKGBUILDDIR>>/src/aslUtilities.h:32,
>                  from /<<PKGBUILDDIR>>/src/acl/Operators/aclElementConvert.cxx:25:
> /usr/include/CL/cl.h:1359:1: note: declared here
>  clCreateCommandQueue(cl_context                     /* context */,
>  ^
> In file included from /<<PKGBUILDDIR>>/src/aslUtilities.h:32:0,
>                  from /<<PKGBUILDDIR>>/src/acl/Operators/aclElementConvert.cxx:25:
> /<<PKGBUILDDIR>>/src/acl/cl.hpp:5382:25: warning: '_cl_command_queue* clCreateCommandQueue(cl_context, cl_device_id, cl_command_queue_properties, cl_int*)' is deprecated [-Wdeprecated-declarations]
>              object_ = ::clCreateCommandQueue(
>                          ^
> In file included from /usr/include/CL/opencl.h:42:0,
>                  from /<<PKGBUILDDIR>>/src/acl/cl.hpp:75,
>                  from /<<PKGBUILDDIR>>/src/aslUtilities.h:32,
>                  from /<<PKGBUILDDIR>>/src/acl/Operators/aclElementConvert.cxx:25:
> /usr/include/CL/cl.h:1359:1: note: declared here
>  clCreateCommandQueue(cl_context                     /* context */,
>  ^
> In file included from /<<PKGBUILDDIR>>/src/aslUtilities.h:32:0,
>                  from /<<PKGBUILDDIR>>/src/acl/Operators/aclElementConvert.cxx:25:
> /<<PKGBUILDDIR>>/src/acl/cl.hpp:5383:56: warning: '_cl_command_queue* clCreateCommandQueue(cl_context, cl_device_id, cl_command_queue_properties, cl_int*)' is deprecated [-Wdeprecated-declarations]
>                  context(), device(), properties, &error);
>                                                         ^
> In file included from /usr/include/CL/opencl.h:42:0,
>                  from /<<PKGBUILDDIR>>/src/acl/cl.hpp:75,
>                  from /<<PKGBUILDDIR>>/src/aslUtilities.h:32,
>                  from /<<PKGBUILDDIR>>/src/acl/Operators/aclElementConvert.cxx:25:
> /usr/include/CL/cl.h:1359:1: note: declared here
>  clCreateCommandQueue(cl_context                     /* context */,
>  ^
> In file included from /<<PKGBUILDDIR>>/src/aslUtilities.h:32:0,
>                  from /<<PKGBUILDDIR>>/src/acl/Operators/../aclUtilities.h:27,
>                  from /<<PKGBUILDDIR>>/src/acl/Operators/aclElementFor.cxx:25:
> /<<PKGBUILDDIR>>/src/acl/cl.hpp: In constructor 'cl::Sampler::Sampler(const cl::Context&, cl_bool, cl_addressing_mode, cl_filter_mode, cl_int*)':
> /<<PKGBUILDDIR>>/src/acl/cl.hpp:4522:21: warning: '_cl_sampler* clCreateSampler(cl_context, cl_bool, cl_addressing_mode, cl_filter_mode, cl_int*)' is deprecated [-Wdeprecated-declarations]
>          object_ = ::clCreateSampler(
>                      ^
> In file included from /<<PKGBUILDDIR>>/src/aslUtilities.h:32:0,
>                  from /<<PKGBUILDDIR>>/src/acl/Operators/aclElementConvert.cxx:25:
> /<<PKGBUILDDIR>>/src/acl/cl.hpp: In constructor 'cl::CommandQueue::CommandQueue(const cl::Context&, cl_command_queue_properties, cl_int*)':
> /<<PKGBUILDDIR>>/src/acl/cl.hpp:5413:21: warning: '_cl_command_queue* clCreateCommandQueue(cl_context, cl_device_id, cl_command_queue_properties, cl_int*)' is deprecated [-Wdeprecated-declarations]
>          object_ = ::clCreateCommandQueue(context(), devices[0](), properties, &error);
>                      ^
> In file included from /usr/include/CL/opencl.h:42:0,
>                  from /<<PKGBUILDDIR>>/src/acl/cl.hpp:75,
>                  from /<<PKGBUILDDIR>>/src/aslUtilities.h:32,
>                  from /<<PKGBUILDDIR>>/src/acl/Operators/aclElementConvert.cxx:25:
> /usr/include/CL/cl.h:1359:1: note: declared here
>  clCreateCommandQueue(cl_context                     /* context */,
>  ^
> In file included from /<<PKGBUILDDIR>>/src/aslUtilities.h:32:0,
>                  from /<<PKGBUILDDIR>>/src/acl/Operators/aclElementConvert.cxx:25:
> /<<PKGBUILDDIR>>/src/acl/cl.hpp:5413:21: warning: '_cl_command_queue* clCreateCommandQueue(cl_context, cl_device_id, cl_command_queue_properties, cl_int*)' is deprecated [-Wdeprecated-declarations]
>          object_ = ::clCreateCommandQueue(context(), devices[0](), properties, &error);
>                      ^
> In file included from /usr/include/CL/opencl.h:42:0,
>                  from /<<PKGBUILDDIR>>/src/acl/cl.hpp:75,
>                  from /<<PKGBUILDDIR>>/src/aslUtilities.h:32,
>                  from /<<PKGBUILDDIR>>/src/acl/Operators/aclElementConvert.cxx:25:
> /usr/include/CL/cl.h:1359:1: note: declared here
>  clCreateCommandQueue(cl_context                     /* context */,
>  ^
> In file included from /<<PKGBUILDDIR>>/src/aslUtilities.h:32:0,
>                  from /<<PKGBUILDDIR>>/src/acl/Operators/aclElementConvert.cxx:25:
> /<<PKGBUILDDIR>>/src/acl/cl.hpp:5413:85: warning: '_cl_command_queue* clCreateCommandQueue(cl_context, cl_device_id, cl_command_queue_properties, cl_int*)' is deprecated [-Wdeprecated-declarations]
>          object_ = ::clCreateCommandQueue(context(), devices[0](), properties, &error);
>                                                                                      ^
> In file included from /usr/include/CL/opencl.h:42:0,
>                  from /<<PKGBUILDDIR>>/src/acl/cl.hpp:75,
>                  from /<<PKGBUILDDIR>>/src/aslUtilities.h:32,
>                  from /<<PKGBUILDDIR>>/src/acl/Operators/aclElementConvert.cxx:25:
> /usr/include/CL/cl.h:1359:1: note: declared here
>  clCreateCommandQueue(cl_context                     /* context */,
>  ^
> In file included from /usr/include/CL/opencl.h:42:0,
>                  from /<<PKGBUILDDIR>>/src/acl/cl.hpp:75,
>                  from /<<PKGBUILDDIR>>/src/aslUtilities.h:32,
>                  from /<<PKGBUILDDIR>>/src/acl/Operators/../aclUtilities.h:27,
>                  from /<<PKGBUILDDIR>>/src/acl/Operators/aclElementFor.cxx:25:
> /usr/include/CL/cl.h:1366:1: note: declared here
>  clCreateSampler(cl_context          /* context */,
>  ^
> In file included from /<<PKGBUILDDIR>>/src/aslUtilities.h:32:0,
>                  from /<<PKGBUILDDIR>>/src/acl/Operators/../aclUtilities.h:27,
>                  from /<<PKGBUILDDIR>>/src/acl/Operators/aclElementFor.cxx:25:
> /<<PKGBUILDDIR>>/src/acl/cl.hpp:4522:21: warning: '_cl_sampler* clCreateSampler(cl_context, cl_bool, cl_addressing_mode, cl_filter_mode, cl_int*)' is deprecated [-Wdeprecated-declarations]
>          object_ = ::clCreateSampler(
>                      ^
> In file included from /usr/include/CL/opencl.h:42:0,
>                  from /<<PKGBUILDDIR>>/src/acl/cl.hpp:75,
>                  from /<<PKGBUILDDIR>>/src/aslUtilities.h:32,
>                  from /<<PKGBUILDDIR>>/src/acl/Operators/../aclUtilities.h:27,
>                  from /<<PKGBUILDDIR>>/src/acl/Operators/aclElementFor.cxx:25:
> /usr/include/CL/cl.h:1366:1: note: declared here
>  clCreateSampler(cl_context          /* context */,
>  ^
> In file included from /<<PKGBUILDDIR>>/src/aslUtilities.h:32:0,
>                  from /<<PKGBUILDDIR>>/src/acl/Operators/../aclUtilities.h:27,
>                  from /<<PKGBUILDDIR>>/src/acl/Operators/aclElementFor.cxx:25:
> /<<PKGBUILDDIR>>/src/acl/cl.hpp:4527:19: warning: '_cl_sampler* clCreateSampler(cl_context, cl_bool, cl_addressing_mode, cl_filter_mode, cl_int*)' is deprecated [-Wdeprecated-declarations]
>              &error);
>                    ^
...

> In file included from /<<PKGBUILDDIR>>/src/aslUtilities.h:34:0,
>                  from /<<PKGBUILDDIR>>/src/acl/aclUtilities.h:27,
>                  from /<<PKGBUILDDIR>>/src/acl/aclMath/aclVectorOfElementsOperations.cxx:25:
> /<<PKGBUILDDIR>>/src/acl/acl.h: At global scope:
> /<<PKGBUILDDIR>>/src/acl/acl.h:239:11: error: expected unqualified-id before 'sizeof'
>    Element isnan(Element a);
>            ^
> /<<PKGBUILDDIR>>/src/acl/acl.h:239:11: error: expected ')' before 'sizeof'
> In file included from /<<PKGBUILDDIR>>/src/math/../aslUtilities.h:32:0,
>   inline const AVec<int> floor(const AVec<> & a)

...

>                          ^
> /<<PKGBUILDDIR>>/src/math/aslVectorsDynamicLengthOperations.h: In function 'const asl::AVec<int> asl::round(const asl::AVec<>&)':
> /<<PKGBUILDDIR>>/src/math/aslVectorsDynamicLengthOperations.h:381:13: error: 'round' is not a member of 'std'
>     res[i] = std::round(a[i]);
>              ^
> /<<PKGBUILDDIR>>/src/math/aslVectorsDynamicLengthOperations.h:381:13: note: suggested alternatives:
> In file included from /usr/include/features.h:361:0,
>                  from /usr/include/x86_64-linux-gnu/c++/5/bits/os_defines.h:39,
>                  from /usr/include/x86_64-linux-gnu/c++/5/bits/c++config.h:482,

-- 
Martin Michlmayr
Linux for HPE Helion, Hewlett Packard Enterprise



More information about the debian-science-maintainers mailing list