Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not build on bookworm Raspberry Pi OS #6

Open
konsumer opened this issue Apr 6, 2024 · 0 comments
Open

Does not build on bookworm Raspberry Pi OS #6

konsumer opened this issue Apr 6, 2024 · 0 comments

Comments

@konsumer
Copy link

konsumer commented Apr 6, 2024

make

mkdir -p ./build
g++ -MMD -MP -fdata-sections -ffunction-sections -O2  -c rule.cpp -o build/rule.cpp.o
rule.cpp: In function 'ClientSpec {anonymous}::parseClientSpec(const std::string&)':
rule.cpp:168:56: error: cannot bind non-const lvalue reference of type 'std::ostream&' {aka 'std::basic_ostream<char>&'} to an rvalue of type 'std::basic_ostream<char>'
  168 |       throw Parse(Error() << "malformed client '" << s << "'");
      |                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~
rule.cpp:159:27: note:   initializing argument 1 of '{anonymous}::Parse::Parse(std::ostream&)'
  159 |       Parse(std::ostream& o) : std::string(errormsg(o)) { }
      |             ~~~~~~~~~~~~~~^
rule.cpp:174:72: error: cannot bind non-const lvalue reference of type 'std::ostream&' {aka 'std::basic_ostream<char>&'} to an rvalue of type 'std::basic_ostream<char>'
  174 | w Parse(Error() << "parseClientSpec match failure with '" << s << "'");
      |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~

rule.cpp:159:27: note:   initializing argument 1 of '{anonymous}::Parse::Parse(std::ostream&)'
  159 |       Parse(std::ostream& o) : std::string(errormsg(o)) { }
      |             ~~~~~~~~~~~~~~^
rule.cpp: In function 'PortSpec {anonymous}::parsePortSpec(const std::string&)':
rule.cpp:184:54: error: cannot bind non-const lvalue reference of type 'std::ostream&' {aka 'std::basic_ostream<char>&'} to an rvalue of type 'std::basic_ostream<char>'
  184 |       throw Parse(Error() << "malformed port '" << s << "'");
      |                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~
rule.cpp:159:27: note:   initializing argument 1 of '{anonymous}::Parse::Parse(std::ostream&)'
  159 |       Parse(std::ostream& o) : std::string(errormsg(o)) { }
      |             ~~~~~~~~~~~~~~^
rule.cpp:191:70: error: cannot bind non-const lvalue reference of type 'std::ostream&' {aka 'std::basic_ostream<char>&'} to an rvalue of type 'std::basic_ostream<char>'
  191 | row Parse(Error() << "parsePortSpec match failure with '" << s << "'");
      |           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~

rule.cpp:159:27: note:   initializing argument 1 of '{anonymous}::Parse::Parse(std::ostream&)'
  159 |       Parse(std::ostream& o) : std::string(errormsg(o)) { }
      |             ~~~~~~~~~~~~~~^
rule.cpp: In function 'AddressSpec {anonymous}::parseAddressSpec(const std::string&)':
rule.cpp:204:59: error: cannot bind non-const lvalue reference of type 'std::ostream&' {aka 'std::basic_ostream<char>&'} to an rvalue of type 'std::basic_ostream<char>'
  204 |         throw Parse(Error() << "invalid port type '" << s << "'");
      |                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~
rule.cpp:159:27: note:   initializing argument 1 of '{anonymous}::Parse::Parse(std::ostream&)'
  159 |       Parse(std::ostream& o) : std::string(errormsg(o)) { }
      |             ~~~~~~~~~~~~~~^
rule.cpp:211:57: error: cannot bind non-const lvalue reference of type 'std::ostream&' {aka 'std::basic_ostream<char>&'} to an rvalue of type 'std::basic_ostream<char>'
  211 |       throw Parse(Error() << "malformed address '" << s << "'");
      |                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~
rule.cpp:159:27: note:   initializing argument 1 of '{anonymous}::Parse::Parse(std::ostream&)'
  159 |       Parse(std::ostream& o) : std::string(errormsg(o)) { }
      |             ~~~~~~~~~~~~~~^
rule.cpp: In function 'ConnectionRules {anonymous}::parseConnectionRule(const std::string&)':
rule.cpp:225:54: error: cannot bind non-const lvalue reference of type 'std::ostream&' {aka 'std::basic_ostream<char>&'} to an rvalue of type 'std::basic_ostream<char>'
  225 |       throw Parse(Error() << "malformed rule '" << s << "'");
      |                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~
rule.cpp:159:27: note:   initializing argument 1 of '{anonymous}::Parse::Parse(std::ostream&)'
  159 |       Parse(std::ostream& o) : std::string(errormsg(o)) { }
      |             ~~~~~~~~~~~~~~^
rule.cpp:233:78: error: cannot bind non-const lvalue reference of type 'std::ostream&' {aka 'std::basic_ostream<char>&'} to an rvalue of type 'std::basic_ostream<char>'
  233 | rse(Error() << "parseConnectionRule match failure with '" << s << "'");
      |     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~

rule.cpp:159:27: note:   initializing argument 1 of '{anonymous}::Parse::Parse(std::ostream&)'
  159 |       Parse(std::ostream& o) : std::string(errormsg(o)) { }
      |             ~~~~~~~~~~~~~~^
rule.cpp: In function 'ConnectionRules {anonymous}::parseLine(const std::string&)':
rule.cpp:273:27: error: cannot bind non-const lvalue reference of type 'std::ostream&' {aka 'std::basic_ostream<char>&'} to an rvalue of type 'std::basic_ostream<char>'
  273 |       throw Parse(Error() << "was not expected to parse");
      |                   ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
rule.cpp:159:27: note:   initializing argument 1 of '{anonymous}::Parse::Parse(std::ostream&)'
  159 |       Parse(std::ostream& o) : std::string(errormsg(o)) { }
      |             ~~~~~~~~~~~~~~^
rule.cpp: In function 'ClientSpec {anonymous}::parseClientSpec(const std::string&)':
rule.cpp:176:3: warning: control reaches end of non-void function [-Wreturn-type]
  176 |   }
      |   ^
rule.cpp: In function 'PortSpec {anonymous}::parsePortSpec(const std::string&)':
rule.cpp:193:3: warning: control reaches end of non-void function [-Wreturn-type]
  193 |   }
      |   ^
make: *** [Makefile:32: build/rule.cpp.o] Error 1

Additionally, the pre-built does not run:

wget https://github.com/mzero/amidiminder/releases/download/0.70/amidiminder_0.70_armhf.deb
sudo apt install ./amidiminder_0.70_armhf.deb

amidiminder -C
amidiminder: error while loading shared libraries: libstdc++.so.6: cannot open shared object file: No such file or directory
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant