foundry: FTBFS: operator<< missing on ostream (missing headers?)

Bug #1508234 reported by Logan Rosen
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
foundry (Debian)
Fix Released
Unknown
foundry (Ubuntu)
Triaged
High
Unassigned

Bug Description

Imported from Debian bug http://bugs.debian.org/799817:

Source: foundry
Version: 0.0.20130809-2
Severity: serious
Justification: fails to build from source
Tags: sid stretch
User: <email address hidden>
Usertags: ftbfs
X-Debbugs-CC: <email address hidden>

Dear Maintainer,

The package fails to build:

touch stage1/parse_cst_lex.hpp
g++ -D_FORTIFY_SOURCE=2 -Istage1 -I. -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -W -Wall -Werror -std=c++0x -MD -MF stage1/.bison_output_visitor.d -o stage1/bison_output_visitor.o -c bison_output_visitor.cpp
bison_output_visitor.cpp: In member function ‘virtual void foundry::parse::bison_output_visitor::visit(const foundry::parse::root&)’:
bison_output_visitor.cpp:31:13: error: no match for ‘operator<<’ (operand types are ‘std::ostream {aka std::basic_ostream<char>}’ and ‘const char [3]’)
         out << "%{" << std::endl;
             ^
In file included from /usr/include/c++/5/string:52:0,
                 from ./parse_tree.hpp:5,
                 from bison_output_visitor.h:4,
                 from bison_output_visitor.cpp:5:
/usr/include/c++/5/bits/basic_string.h:5170:5: note: candidate: template<class _CharT, class _Traits, class _Alloc> std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&)
     operator<<(basic_ostream<_CharT, _Traits>& __os,
     ^
/usr/include/c++/5/bits/basic_string.h:5170:5: note: template argument deduction/substitution failed:
bison_output_visitor.cpp:31:16: note: mismatched types ‘const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>’ and ‘const char [3]’
         out << "%{" << std::endl;
                ^
bison_output_visitor.cpp:31:24: error: ‘endl’ is not a member of ‘std’
         out << "%{" << std::endl;
                        ^
bison_output_visitor.cpp:32:13: error: no match for ‘operator<<’ (operand types are ‘std::ostream {aka std::basic_ostream<char>}’ and ‘const char [11]’)
         out << "#include \"" << basename << "_cst.hpp\"" << std::endl;
             ^
In file included from /usr/include/c++/5/string:52:0,
                 from ./parse_tree.hpp:5,
                 from bison_output_visitor.h:4,
                 from bison_output_visitor.cpp:5:
/usr/include/c++/5/bits/basic_string.h:5170:5: note: candidate: template<class _CharT, class _Traits, class _Alloc> std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&)
     operator<<(basic_ostream<_CharT, _Traits>& __os,
     ^
/usr/include/c++/5/bits/basic_string.h:5170:5: note: template argument deduction/substitution failed:
bison_output_visitor.cpp:32:16: note: mismatched types ‘const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>’ and ‘const char [11]’
         out << "#include \"" << basename << "_cst.hpp\"" << std::endl;
                ^
bison_output_visitor.cpp:32:61: error: ‘endl’ is not a member of ‘std’
         out << "#include \"" << basename << "_cst.hpp\"" << std::endl;
                                                             ^
bison_output_visitor.cpp:33:13: error: no match for ‘operator<<’ (operand types are ‘std::ostream {aka std::basic_ostream<char>}’ and ‘const char [11]’)
         out << "#include \"" << basename << "_parse.hpp\"" << std::endl;
             ^
In file included from /usr/include/c++/5/string:52:0,
                 from ./parse_tree.hpp:5,
                 from bison_output_visitor.h:4,
                 from bison_output_visitor.cpp:5:
/usr/include/c++/5/bits/basic_string.h:5170:5: note: candidate: template<class _CharT, class _Traits, class _Alloc> std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&)
     operator<<(basic_ostream<_CharT, _Traits>& __os,
     ^
/usr/include/c++/5/bits/basic_string.h:5170:5: note: template argument deduction/substitution failed:
bison_output_visitor.cpp:33:16: note: mismatched types ‘const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>’ and ‘const char [11]’
         out << "#include \"" << basename << "_parse.hpp\"" << std::endl;
                ^
bison_output_visitor.cpp:33:63: error: ‘endl’ is not a member of ‘std’
         out << "#include \"" << basename << "_parse.hpp\"" << std::endl;
                                                               ^
bison_output_visitor.cpp:34:13: error: no match for ‘operator<<’ (operand types are ‘std::ostream {aka std::basic_ostream<char>}’ and ‘const char [11]’)
         out << "#include \"" << basename << "_lex.hpp\"" << std::endl;
             ^
In file included from /usr/include/c++/5/string:52:0,
                 from ./parse_tree.hpp:5,
                 from bison_output_visitor.h:4,
                 from bison_output_visitor.cpp:5:
/usr/include/c++/5/bits/basic_string.h:5170:5: note: candidate: template<class _CharT, class _Traits, class _Alloc> std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&)
     operator<<(basic_ostream<_CharT, _Traits>& __os,
     ^
/usr/include/c++/5/bits/basic_string.h:5170:5: note: template argument deduction/substitution failed:
bison_output_visitor.cpp:34:16: note: mismatched types ‘const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>’ and ‘const char [11]’
         out << "#include \"" << basename << "_lex.hpp\"" << std::endl;
                ^
bison_output_visitor.cpp:34:61: error: ‘endl’ is not a member of ‘std’
         out << "#include \"" << basename << "_lex.hpp\"" << std::endl;
                                                             ^
bison_output_visitor.cpp:35:13: error: no match for ‘operator<<’ (operand types are ‘std::ostream {aka std::basic_ostream<char>}’ and ‘const char [3]’)
         out << "%}" << std::endl;
             ^
In file included from /usr/include/c++/5/string:52:0,
                 from ./parse_tree.hpp:5,
                 from bison_output_visitor.h:4,
                 from bison_output_visitor.cpp:5:
/usr/include/c++/5/bits/basic_string.h:5170:5: note: candidate: template<class _CharT, class _Traits, class _Alloc> std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&)
     operator<<(basic_ostream<_CharT, _Traits>& __os,
     ^
/usr/include/c++/5/bits/basic_string.h:5170:5: note: template argument deduction/substitution failed:
bison_output_visitor.cpp:35:16: note: mismatched types ‘const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>’ and ‘const char [3]’
         out << "%}" << std::endl;
                ^
bison_output_visitor.cpp:35:24: error: ‘endl’ is not a member of ‘std’
         out << "%}" << std::endl;
                        ^
bison_output_visitor.cpp:36:13: error: no match for ‘operator<<’ (operand types are ‘std::ostream {aka std::basic_ostream<char>}’ and ‘const char [1]’)
         out << "" << std::endl;
             ^
In file included from /usr/include/c++/5/string:52:0,
                 from ./parse_tree.hpp:5,
                 from bison_output_visitor.h:4,
                 from bison_output_visitor.cpp:5:
/usr/include/c++/5/bits/basic_string.h:5170:5: note: candidate: template<class _CharT, class _Traits, class _Alloc> std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&)
     operator<<(basic_ostream<_CharT, _Traits>& __os,
     ^
/usr/include/c++/5/bits/basic_string.h:5170:5: note: template argument deduction/substitution failed:
bison_output_visitor.cpp:36:16: note: mismatched types ‘const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>’ and ‘const char [1]’
         out << "" << std::endl;
                ^
bison_output_visitor.cpp:36:22: error: ‘endl’ is not a member of ‘std’
         out << "" << std::endl;
                      ^
bison_output_visitor.cpp:37:13: error: no match for ‘operator<<’ (operand types are ‘std::ostream {aka std::basic_ostream<char>}’ and ‘const char [7]’)
         out << "%debug" << std::endl;
             ^
In file included from /usr/include/c++/5/string:52:0,
                 from ./parse_tree.hpp:5,
                 from bison_output_visitor.h:4,
                 from bison_output_visitor.cpp:5:
/usr/include/c++/5/bits/basic_string.h:5170:5: note: candidate: template<class _CharT, class _Traits, class _Alloc> std::basic_ostream<_CharT, _Traits>& std::operator<<(std::basic_ostream<_CharT, _Traits>&, const std::__cxx11::basic_string<_CharT, _Traits, _Alloc>&)
     operator<<(basic_ostream<_CharT, _Traits>& __os,
     ^

...

make[3]: Leaving directory '/foundry-0.0.20130809/lang'
Makefile:4: recipe for target 'all' failed
make[2]: *** [all] Error 2
make[2]: Leaving directory '/foundry-0.0.20130809'
dh_auto_build: make -j1 CXXFLAGS+=-W -Wall -Werror returned exit code 2

Full build log:
https://reproducible.debian.net/rb-pkg/unstable/amd64/foundry.html

-- System Information:
Debian Release: stretch/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Tags: ftbfs
Logan Rosen (logan)
Changed in foundry (Ubuntu):
status: New → Triaged
importance: Undecided → High
description: updated
tags: added: ftbfs
Changed in foundry (Debian):
importance: Undecided → Unknown
Changed in foundry (Debian):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.