[Debian-med-packaging] Bug#811795: sitplus: FTBFS with GCC 6: error: reference is ambiguous

Martin Michlmayr tbm at hpe.com
Wed Jan 20 02:05:20 UTC 2016


Package: sitplus
Version: 1.0.3-4.1
Severity: important
User: debian-gcc at lists.debian.org
Usertags: ftbfs-gcc-6 gcc-6-reference-ambiguous

This package fails to build with GCC 6.  GCC 6 has not been released
yet, but it's expected that GCC 6 will become the default compiler for
stretch.

Note that only the first error is reported; there might be more.  You
can find a snapshot of GCC 6 in experimental.  To build with GCC 6,
you can set CC=gcc-6 CXX=g++-6 explicitly.

You may be able to find out more about this issue at
https://gcc.gnu.org/gcc-6/changes.html

> sbuild (Debian sbuild) 0.67.0 (26 Dec 2015) on dl580gen9-02.hlinux
...
> [ 49%] Building CXX object src/mod_collage/Kernel/CMakeFiles/mod_Kernel.dir/kernel.cpp.o
> In file included from /<<PKGBUILDDIR>>/src/mod_collage/Kernel/kernel.cpp:36:0:
> /<<PKGBUILDDIR>>/src/mod_collage/Kernel/delay.h:27:4: error: reference to 'shared_ptr' is ambiguous
>     shared_ptr<PictureNode> m_img;
>     ^~~~~~~~~~
> 
> In file included from /usr/include/boost/throw_exception.hpp:42:0,
>                  from /usr/include/boost/thread/pthread/mutex.hpp:12,
>                  from /usr/include/boost/thread/mutex.hpp:16,
>                  from /usr/include/boost/thread/pthread/shared_mutex.hpp:13,
>                  from /usr/include/boost/thread/shared_mutex.hpp:22,
>                  from /<<PKGBUILDDIR>>/include/spcore/pinimpl.h:33,
>                  from /<<PKGBUILDDIR>>/include/mod_sdl/sdlsurfacetype.h:23,
>                  from /<<PKGBUILDDIR>>/src/mod_collage/Kernel/kernel.h:24,
>                  from /<<PKGBUILDDIR>>/src/mod_collage/Kernel/kernel.cpp:20:
> /usr/include/boost/exception/exception.hpp:148:11: note: candidates are: template<class T> class boost::shared_ptr
>      class shared_ptr;
>            ^~~~~~~~~~
> 
> In file included from /usr/include/c++/6/bits/shared_ptr.h:52:0,
>                  from /usr/include/c++/6/memory:82,
>                  from /usr/include/boost/config/no_tr1/memory.hpp:21,
>                  from /usr/include/boost/smart_ptr/shared_ptr.hpp:23,
>                  from /usr/include/boost/shared_ptr.hpp:17,
>                  from /usr/include/boost/date_time/time_clock.hpp:17,
>                  from /usr/include/boost/thread/thread_time.hpp:9,
>                  from /usr/include/boost/thread/lock_types.hpp:18,
>                  from /usr/include/boost/thread/pthread/mutex.hpp:16,
>                  from /usr/include/boost/thread/mutex.hpp:16,
>                  from /usr/include/boost/thread/pthread/shared_mutex.hpp:13,
>                  from /usr/include/boost/thread/shared_mutex.hpp:22,
>                  from /<<PKGBUILDDIR>>/include/spcore/pinimpl.h:33,
>                  from /<<PKGBUILDDIR>>/include/mod_sdl/sdlsurfacetype.h:23,
>                  from /<<PKGBUILDDIR>>/src/mod_collage/Kernel/kernel.h:24,
>                  from /<<PKGBUILDDIR>>/src/mod_collage/Kernel/kernel.cpp:20:
> /usr/include/c++/6/bits/shared_ptr_base.h:343:11: note:                 template<class _Tp> class std::shared_ptr
>      class shared_ptr;
>            ^~~~~~~~~~
> 
> In file included from /<<PKGBUILDDIR>>/src/mod_collage/Kernel/kernel.cpp:36:0:
> /<<PKGBUILDDIR>>/src/mod_collage/Kernel/delay.h:32:32: error: expected ')' before '<' token
>     AbstractDelayNode(shared_ptr<PictureNode> img){
>                                 ^
> 
> /<<PKGBUILDDIR>>/src/mod_collage/Kernel/delay.h:47:4: error: reference to 'shared_ptr' is ambiguous
>     shared_ptr<PictureNode> getPicture(){
>     ^~~~~~~~~~
> 
> /<<PKGBUILDDIR>>/src/mod_collage/Kernel/kernel.cpp: At global scope:
> /<<PKGBUILDDIR>>/src/mod_collage/Kernel/kernel.cpp:40:32: error: expected constructor, destructor, or type conversion before '(' token
>   AbstractKernel::AbstractKernel(shared_ptr<XMLImplementation::Module> module)
>                                 ^
> 
> /<<PKGBUILDDIR>>/src/mod_collage/Kernel/kernel.cpp:382:1: error: expected '}' at end of input
>  }
>  ^

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



More information about the Debian-med-packaging mailing list