Bug#812847: coala: FTBFS: scanner.cpp:662:9: error: no match for 'operator='

Chris Lamb lamby at debian.org
Wed Jan 27 08:02:05 UTC 2016


Source: coala
Version: 1.0.1-5
Severity: serious
Justification: fails to build from source
User: reproducible-builds at lists.alioth.debian.org
Usertags: ftbfs
X-Debbugs-Cc: reproducible-builds at lists.alioth.debian.org

Dear Maintainer,

coala fails to build from source in unstable/amd64:

  [..]

   dpkg-buildpackage -rfakeroot -D -us -uc -b
  dpkg-buildpackage: source package coala
  dpkg-buildpackage: source version 1.0.1-5
  dpkg-buildpackage: source distribution unstable
  dpkg-buildpackage: source changed by Thomas Krennwallner <tkren at kr.tuwien.ac.at>
   dpkg-source --before-build coala-1.0.1
  dpkg-buildpackage: host architecture amd64
  dpkg-source: warning: unknown information field 'Dm-Upload-Allowed' in input data in general section of control info file
   fakeroot debian/rules clean
  dh clean
     dh_testdir
     debian/rules override_dh_auto_clean
  make[1]: Entering directory '/home/lamby/temp/cdt.20160127084342.GCxyGOG38W/coala-1.0.1'
  rm -rf bin/coala.bin
  find build -mindepth 1 -type f | grep -v configure | xargs rm -fv
  find build -mindepth 1 -maxdepth 1 -type d -exec rm -rf {} \;
  make[1]: Leaving directory '/home/lamby/temp/cdt.20160127084342.GCxyGOG38W/coala-1.0.1'
     dh_clean
   debian/rules build
  make: 'build' is up to date.
   fakeroot debian/rules binary
  dh binary
     dh_testdir
     dh_update_autotools_config
     debian/rules override_dh_auto_configure
  make[1]: Entering directory '/home/lamby/temp/cdt.20160127084342.GCxyGOG38W/coala-1.0.1'
  cd build && ./configure --prefix=/usr
  /usr/bin/cmake
  -- The C compiler identification is GNU 5.3.1
  -- The CXX compiler identification is GNU 5.3.1
  -- Check for working C compiler: /usr/bin/cc
  -- Check for working C compiler: /usr/bin/cc -- works
  -- Detecting C compiler ABI info
  -- Detecting C compiler ABI info - done
  -- Detecting C compile features
  -- Detecting C compile features - done
  -- Check for working CXX compiler: /usr/bin/c++
  -- Check for working CXX compiler: /usr/bin/c++ -- works
  -- Detecting CXX compiler ABI info
  -- Detecting CXX compiler ABI info - done
  -- Detecting CXX compile features
  -- Detecting CXX compile features - done
  -- Looking for flex
  -- Looking for flex -- /usr/bin/flex
  -- Looking for bison++
  -- Looking for bison++ -- /usr/bin/bison++
  -- Configuring done
  -- Generating done
  -- Build files have been written to: /home/lamby/temp/cdt.20160127084342.GCxyGOG38W/coala-1.0.1/build
  make[1]: Leaving directory '/home/lamby/temp/cdt.20160127084342.GCxyGOG38W/coala-1.0.1'
     debian/rules override_dh_auto_build
  make[1]: Entering directory '/home/lamby/temp/cdt.20160127084342.GCxyGOG38W/coala-1.0.1'
  /usr/bin/make -C build
  make[2]: Entering directory '/home/lamby/temp/cdt.20160127084342.GCxyGOG38W/coala-1.0.1/build'
  make[3]: Entering directory '/home/lamby/temp/cdt.20160127084342.GCxyGOG38W/coala-1.0.1/build'
  make[4]: Entering directory '/home/lamby/temp/cdt.20160127084342.GCxyGOG38W/coala-1.0.1/build'
  Scanning dependencies of target coala-c_taid-lib
  make[4]: Leaving directory '/home/lamby/temp/cdt.20160127084342.GCxyGOG38W/coala-1.0.1/build'
  make[4]: Entering directory '/home/lamby/temp/cdt.20160127084342.GCxyGOG38W/coala-1.0.1/build'
  [  1%] Building CXX object src/lib/c_taid/CMakeFiles/coala-c_taid-lib.dir/scanner.o
  /home/tovok7/svn/potassco/coala/src/lib/c_taid/scanner.cpp: In member function 'virtual int ctaidFlexLexer::yylex()':
  /home/tovok7/svn/potassco/coala/src/lib/c_taid/scanner.cpp:662:9: error: no match for 'operator=' (operand types are 'std::istream {aka std::basic_istream<char>}' and 'std::istream* {aka std::basic_istream<char>*}')
  In file included from /usr/include/c++/5/iostream:40:0,
                   from /home/tovok7/svn/potassco/coala/src/lib/c_taid/scanner.cpp:96:
  /usr/include/c++/5/istream:58:11: note: candidate: std::basic_istream<char>& std::basic_istream<char>::operator=(const std::basic_istream<char>&)
       class basic_istream : virtual public basic_ios<_CharT, _Traits>
             ^
  /usr/include/c++/5/istream:58:11: note:   no known conversion for argument 1 from 'std::istream* {aka std::basic_istream<char>*}' to 'const std::basic_istream<char>&'
  /home/tovok7/svn/potassco/coala/src/lib/c_taid/scanner.cpp:665:10: error: no match for 'operator=' (operand types are 'std::ostream {aka std::basic_ostream<char>}' and 'std::ostream* {aka std::basic_ostream<char>*}')
  In file included from /usr/include/c++/5/iostream:39:0,
                   from /home/tovok7/svn/potassco/coala/src/lib/c_taid/scanner.cpp:96:
  /usr/include/c++/5/ostream:58:11: note: candidate: std::basic_ostream<char>& std::basic_ostream<char>::operator=(const std::basic_ostream<char>&)
       class basic_ostream : virtual public basic_ios<_CharT, _Traits>
             ^
  /usr/include/c++/5/ostream:58:11: note:   no known conversion for argument 1 from 'std::ostream* {aka std::basic_ostream<char>*}' to 'const std::basic_ostream<char>&'
  /home/tovok7/svn/potassco/coala/src/lib/c_taid/scanner.cpp:902:46: error: invalid user-defined conversion from 'std::istream {aka std::basic_istream<char>}' to 'std::istream* {aka std::basic_istream<char>*}' [-fpermissive]
  In file included from /usr/include/c++/5/ios:44:0,
                   from /usr/include/c++/5/ostream:38,
                   from /usr/include/c++/5/iostream:39,
                   from /home/tovok7/svn/potassco/coala/src/lib/c_taid/scanner.cpp:96:
  /usr/include/c++/5/bits/basic_ios.h:120:7: note: candidate is: std::basic_ios<_CharT, _Traits>::operator void*() const [with _CharT = char; _Traits = std::char_traits<char>] <near match>
         operator void*() const
         ^
  /usr/include/c++/5/bits/basic_ios.h:120:7: note:   no known conversion from 'void*' to 'std::istream* {aka std::basic_istream<char>*}'
  In file included from /usr/include/c++/5/iostream:40:0,
                   from /home/tovok7/svn/potassco/coala/src/lib/c_taid/scanner.cpp:96:
  /usr/include/c++/5/istream: In constructor 'ctaidFlexLexer::ctaidFlexLexer(std::istream*, std::ostream*)':
  /usr/include/c++/5/istream:606:7: error: 'std::basic_istream<_CharT, _Traits>::basic_istream() [with _CharT = char; _Traits = std::char_traits<char>]' is protected
         basic_istream()
         ^
  /home/tovok7/svn/potassco/coala/src/lib/c_taid/scanner.cpp:1012:75: error: within this context
  In file included from /usr/include/c++/5/iostream:39:0,
                   from /home/tovok7/svn/potassco/coala/src/lib/c_taid/scanner.cpp:96:
  /usr/include/c++/5/ostream:384:7: error: 'std::basic_ostream<_CharT, _Traits>::basic_ostream() [with _CharT = char; _Traits = std::char_traits<char>]' is protected
         basic_ostream()
         ^
  /home/tovok7/svn/potassco/coala/src/lib/c_taid/scanner.cpp:1012:75: error: within this context
  /home/tovok7/svn/potassco/coala/src/lib/c_taid/scanner.cpp:1014:7: error: no match for 'operator=' (operand types are 'std::istream {aka std::basic_istream<char>}' and 'std::istream* {aka std::basic_istream<char>*}')
  In file included from /usr/include/c++/5/iostream:40:0,
                   from /home/tovok7/svn/potassco/coala/src/lib/c_taid/scanner.cpp:96:
  /usr/include/c++/5/istream:58:11: note: candidate: std::basic_istream<char>& std::basic_istream<char>::operator=(const std::basic_istream<char>&)
       class basic_istream : virtual public basic_ios<_CharT, _Traits>
             ^
  /usr/include/c++/5/istream:58:11: note:   no known conversion for argument 1 from 'std::istream* {aka std::basic_istream<char>*}' to 'const std::basic_istream<char>&'
  /home/tovok7/svn/potassco/coala/src/lib/c_taid/scanner.cpp:1015:8: error: no match for 'operator=' (operand types are 'std::ostream {aka std::basic_ostream<char>}' and 'std::ostream* {aka std::basic_ostream<char>*}')
  In file included from /usr/include/c++/5/iostream:39:0,
                   from /home/tovok7/svn/potassco/coala/src/lib/c_taid/scanner.cpp:96:
  /usr/include/c++/5/ostream:58:11: note: candidate: std::basic_ostream<char>& std::basic_ostream<char>::operator=(const std::basic_ostream<char>&)
       class basic_ostream : virtual public basic_ios<_CharT, _Traits>
             ^
  /usr/include/c++/5/ostream:58:11: note:   no known conversion for argument 1 from 'std::ostream* {aka std::basic_ostream<char>*}' to 'const std::basic_ostream<char>&'
  /home/tovok7/svn/potassco/coala/src/lib/c_taid/scanner.cpp: In member function 'virtual void ctaidFlexLexer::switch_streams(std::istream*, std::ostream*)':
  /home/tovok7/svn/potassco/coala/src/lib/c_taid/scanner.cpp:1061:9: error: no match for 'operator=' (operand types are 'std::ostream {aka std::basic_ostream<char>}' and 'std::ostream* {aka std::basic_ostream<char>*}')
  In file included from /usr/include/c++/5/iostream:39:0,
                   from /home/tovok7/svn/potassco/coala/src/lib/c_taid/scanner.cpp:96:
  /usr/include/c++/5/ostream:58:11: note: candidate: std::basic_ostream<char>& std::basic_ostream<char>::operator=(const std::basic_ostream<char>&)
       class basic_ostream : virtual public basic_ios<_CharT, _Traits>
             ^
  /usr/include/c++/5/ostream:58:11: note:   no known conversion for argument 1 from 'std::ostream* {aka std::basic_ostream<char>*}' to 'const std::basic_ostream<char>&'
  /home/tovok7/svn/potassco/coala/src/lib/c_taid/scanner.cpp: In member function 'virtual int ctaidFlexLexer::LexerInput(char*, int)':
  /home/tovok7/svn/potassco/coala/src/lib/c_taid/scanner.cpp:1070:11: error: base operand of '->' has non-pointer type 'std::istream {aka std::basic_istream<char>}'
  /home/tovok7/svn/potassco/coala/src/lib/c_taid/scanner.cpp:1070:26: error: base operand of '->' has non-pointer type 'std::istream {aka std::basic_istream<char>}'
  /home/tovok7/svn/potassco/coala/src/lib/c_taid/scanner.cpp:1074:6: error: base operand of '->' has non-pointer type 'std::istream {aka std::basic_istream<char>}'
  /home/tovok7/svn/potassco/coala/src/lib/c_taid/scanner.cpp:1076:11: error: base operand of '->' has non-pointer type 'std::istream {aka std::basic_istream<char>}'
  /home/tovok7/svn/potassco/coala/src/lib/c_taid/scanner.cpp:1079:11: error: base operand of '->' has non-pointer type 'std::istream {aka std::basic_istream<char>}'
  /home/tovok7/svn/potassco/coala/src/lib/c_taid/scanner.cpp: In member function 'virtual void ctaidFlexLexer::LexerOutput(const char*, int)':
  /home/tovok7/svn/potassco/coala/src/lib/c_taid/scanner.cpp:1096:14: error: base operand of '->' has non-pointer type 'std::ostream {aka std::basic_ostream<char>}'
  /home/tovok7/svn/potassco/coala/src/lib/c_taid/scanner.cpp: In member function 'virtual void ctaidFlexLexer::yyrestart(std::istream*)':
  /home/tovok7/svn/potassco/coala/src/lib/c_taid/scanner.cpp:1422:48: error: no matching function for call to 'ctaidFlexLexer::yy_init_buffer(yy_buffer_state*, std::istream*&)'
  In file included from /home/tovok7/svn/potassco/coala/src/lib/c_taid/scanner.cpp:336:0:
  /usr/include/FlexLexer.h:160:7: note: candidate: void ctaidFlexLexer::yy_init_buffer(yy_buffer_state*, std::istream&)
    void yy_init_buffer( struct yy_buffer_state* b, FLEX_STD istream& s );
         ^
  /usr/include/FlexLexer.h:160:7: note:   no known conversion for argument 2 from 'std::istream* {aka std::basic_istream<char>*}' to 'std::istream& {aka std::basic_istream<char>&}'
  /home/tovok7/svn/potassco/coala/src/lib/c_taid/scanner.cpp: In member function 'void ctaidFlexLexer::yy_load_buffer_state()':
  /home/tovok7/svn/potassco/coala/src/lib/c_taid/scanner.cpp:1465:7: error: no match for 'operator=' (operand types are 'std::istream {aka std::basic_istream<char>}' and 'std::istream* {aka std::basic_istream<char>*}')
  In file included from /usr/include/c++/5/iostream:40:0,
                   from /home/tovok7/svn/potassco/coala/src/lib/c_taid/scanner.cpp:96:
  /usr/include/c++/5/istream:58:11: note: candidate: std::basic_istream<char>& std::basic_istream<char>::operator=(const std::basic_istream<char>&)
       class basic_istream : virtual public basic_ios<_CharT, _Traits>
             ^
  /usr/include/c++/5/istream:58:11: note:   no known conversion for argument 1 from 'std::istream* {aka std::basic_istream<char>*}' to 'const std::basic_istream<char>&'
  /home/tovok7/svn/potassco/coala/src/lib/c_taid/scanner.cpp: In member function 'virtual yy_buffer_state* ctaidFlexLexer::yy_create_buffer(std::istream*, int)':
  /home/tovok7/svn/potassco/coala/src/lib/c_taid/scanner.cpp:1494:26: error: no matching function for call to 'ctaidFlexLexer::yy_init_buffer(yy_buffer_state*&, std::istream*&)'
  In file included from /home/tovok7/svn/potassco/coala/src/lib/c_taid/scanner.cpp:336:0:
  /usr/include/FlexLexer.h:160:7: note: candidate: void ctaidFlexLexer::yy_init_buffer(yy_buffer_state*, std::istream&)
    void yy_init_buffer( struct yy_buffer_state* b, FLEX_STD istream& s );
         ^
  /usr/include/FlexLexer.h:160:7: note:   no known conversion for argument 2 from 'std::istream* {aka std::basic_istream<char>*}' to 'std::istream& {aka std::basic_istream<char>&}'
  /home/tovok7/svn/potassco/coala/src/lib/c_taid/scanner.cpp: At global scope:
  /home/tovok7/svn/potassco/coala/src/lib/c_taid/scanner.cpp:23:25: error: prototype for 'void ctaidFlexLexer::yy_init_buffer(YY_BUFFER_STATE, std::istream*)' does not match any in class 'ctaidFlexLexer'
  /home/tovok7/svn/potassco/coala/src/lib/c_taid/scanner.cpp:1524:10: note: in expansion of macro 'yyFlexLexer'
  In file included from /home/tovok7/svn/potassco/coala/src/lib/c_taid/scanner.cpp:336:0:
  /usr/include/FlexLexer.h:160:7: error: candidate is: void ctaidFlexLexer::yy_init_buffer(yy_buffer_state*, std::istream&)
    void yy_init_buffer( struct yy_buffer_state* b, FLEX_STD istream& s );
         ^
  src/lib/c_taid/CMakeFiles/coala-c_taid-lib.dir/build.make:73: recipe for target 'src/lib/c_taid/CMakeFiles/coala-c_taid-lib.dir/scanner.o' failed
  make[4]: *** [src/lib/c_taid/CMakeFiles/coala-c_taid-lib.dir/scanner.o] Error 1
  make[4]: Leaving directory '/home/lamby/temp/cdt.20160127084342.GCxyGOG38W/coala-1.0.1/build'
  CMakeFiles/Makefile2:281: recipe for target 'src/lib/c_taid/CMakeFiles/coala-c_taid-lib.dir/all' failed
  make[3]: *** [src/lib/c_taid/CMakeFiles/coala-c_taid-lib.dir/all] Error 2
  make[3]: Leaving directory '/home/lamby/temp/cdt.20160127084342.GCxyGOG38W/coala-1.0.1/build'
  Makefile:149: recipe for target 'all' failed
  make[2]: *** [all] Error 2
  make[2]: Leaving directory '/home/lamby/temp/cdt.20160127084342.GCxyGOG38W/coala-1.0.1/build'
  debian/rules:19: recipe for target 'override_dh_auto_build' failed
  make[1]: *** [override_dh_auto_build] Error 2
  make[1]: Leaving directory '/home/lamby/temp/cdt.20160127084342.GCxyGOG38W/coala-1.0.1'
  debian/rules:13: recipe for target 'binary' failed
  make: *** [binary] Error 2

  [..]

The full build log is attached.


Regards,

-- 
      ,''`.
     : :'  :     Chris Lamb
     `. `'`      lamby at debian.org / chris-lamb.co.uk
       `-
-------------- next part --------------
A non-text attachment was scrubbed...
Name: coala.1.0.1-5.unstable.amd64.log.txt.gz
Type: application/octet-stream
Size: 2128 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/debian-science-maintainers/attachments/20160127/88bd4234/attachment-0001.obj>


More information about the debian-science-maintainers mailing list