Bug#816571: libwx-scintilla-perl: FTBFS with GCC 6: call overloaded is ambiguous

Martin Michlmayr tbm at hpe.com
Thu Mar 3 03:06:27 UTC 2016


Package: libwx-scintilla-perl
Version: 0.39-2
Severity: normal
User: debian-gcc at lists.debian.org
Usertags: ftbfs-gcc-6 gcc-6-overloaded-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.

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.68.0 (15 Jan 2016) on dl580gen9-02.hlinux
...
> g++ -c -I/usr/lib/x86_64-linux-gnu/wx/include/gtk2-unicode-3.0 -I/usr/include/wx-3.0 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__ -pthread -pthread  -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__  -DWXBUILDING -DSCI_LEXER -DLINK_LEXERS -DWXUSINGDLL -DWXMAKINGDLL_STC -D__WX__ -c -fPIC -o wx-scintilla/src/scintilla/src/scintilladll_Editor.o -O2 -Wall -Wno-missing-braces -Wno-char-subscripts -MTwx-scintilla/src/scintilla/src/scintilladll_Editor.o -MFwx-scintilla/src/scintilla/src/scintilladll_Editor.o.d -MD -MP -Iwx-scintilla/include -Iwx-scintilla/src/scintilla/include -Iwx-scintilla/src/scintilla/src -Iwx-scintilla/src -I/usr/lib/x86_64-linux-gnu/wx/include/gtk2-unicode-3.0 -I/usr/include/wx-3.0  wx-scintilla/src/scintilla/src/Editor.cxx
> wx-scintilla/src/scintilla/src/Editor.cxx: In member function 'long int Editor::FindText(uptr_t, sptr_t)':
> wx-scintilla/src/scintilla/src/Editor.cxx:5748:7: warning: 'template<class> class std::auto_ptr' is deprecated [-Wdeprecated-declarations]
>   std::auto_ptr<CaseFolder> pcf(CaseFolderForEncoding());
>        ^~~~~~~~
> In file included from /usr/include/c++/6/memory:81:0,
>                  from wx-scintilla/src/scintilla/src/Editor.cxx:18:
> /usr/include/c++/6/bits/unique_ptr.h:49:28: note: declared here
>    template<typename> class auto_ptr;
>                             ^~~~~~~~
> wx-scintilla/src/scintilla/src/Editor.cxx: In member function 'long int Editor::SearchText(unsigned int, uptr_t, sptr_t)':
> wx-scintilla/src/scintilla/src/Editor.cxx:5793:7: warning: 'template<class> class std::auto_ptr' is deprecated [-Wdeprecated-declarations]
>   std::auto_ptr<CaseFolder> pcf(CaseFolderForEncoding());
>        ^~~~~~~~
> In file included from /usr/include/c++/6/memory:81:0,
>                  from wx-scintilla/src/scintilla/src/Editor.cxx:18:
> /usr/include/c++/6/bits/unique_ptr.h:49:28: note: declared here
>    template<typename> class auto_ptr;
>                             ^~~~~~~~
> wx-scintilla/src/scintilla/src/Editor.cxx: In member function 'long int Editor::SearchInTarget(const char*, int)':
> wx-scintilla/src/scintilla/src/Editor.cxx:5844:7: warning: 'template<class> class std::auto_ptr' is deprecated [-Wdeprecated-declarations]
>   std::auto_ptr<CaseFolder> pcf(CaseFolderForEncoding());
>        ^~~~~~~~
> In file included from /usr/include/c++/6/memory:81:0,
>                  from wx-scintilla/src/scintilla/src/Editor.cxx:18:
> /usr/include/c++/6/bits/unique_ptr.h:49:28: note: declared here
>    template<typename> class auto_ptr;
>                             ^~~~~~~~
> wx-scintilla/src/scintilla/src/Editor.cxx: In function 'bool Close(Point, Point)':
> wx-scintilla/src/scintilla/src/Editor.cxx:5871:23: error: call of overloaded 'abs(XYPOSITION)' is ambiguous
>   if (abs(pt1.x - pt2.x) > 3)
>                        ^
> In file included from /usr/include/c++/6/cstdlib:75:0,
>                  from /usr/include/c++/6/stdlib.h:36,
>                  from wx-scintilla/src/scintilla/src/Editor.cxx:8:
> /usr/include/stdlib.h:774:12: note: candidate: int abs(int)
>  extern int abs (int __x) __THROW __attribute__ ((__const__)) __wur;
>             ^~~
> In file included from /usr/include/c++/6/stdlib.h:36:0,
>                  from wx-scintilla/src/scintilla/src/Editor.cxx:8:
> /usr/include/c++/6/cstdlib:185:3: note: candidate: __int128 std::abs(__int128)
>    abs(__GLIBCXX_TYPE_INT_N_0 __x) { return __x >= 0 ? __x : -__x; }
>    ^~~
> /usr/include/c++/6/cstdlib:180:3: note: candidate: long long int std::abs(long long int)
>    abs(long long __x) { return __builtin_llabs (__x); }
>    ^~~
> /usr/include/c++/6/cstdlib:172:3: note: candidate: long int std::abs(long int)
>    abs(long __i) { return __builtin_labs(__i); }
>    ^~~
> wx-scintilla/src/scintilla/src/Editor.cxx:5873:23: error: call of overloaded 'abs(XYPOSITION)' is ambiguous
>   if (abs(pt1.y - pt2.y) > 3)


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



More information about the pkg-perl-maintainers mailing list