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

anna-cli build issue #52

Open
hellertime opened this issue Sep 9, 2020 · 4 comments
Open

anna-cli build issue #52

hellertime opened this issue Sep 9, 2020 · 4 comments

Comments

@hellertime
Copy link

hellertime commented Sep 9, 2020

I wanted to test out a local build of anna following the steps in docs/building-anna.md, but hit an immediate issue on compiling anna-cli:

anna % ./scripts/build.sh
...
[ 56%] Building CXX object client/cpp/CMakeFiles/anna-cli.dir/cli.cpp.o
/Users/chris.heller/hydro-project/anna/client/cpp/cli.cpp:28:8: error: no member named 'cout' in namespace 'std'
  std::cout << "{ ";
  ~~~~~^
/Users/chris.heller/hydro-project/anna/client/cpp/cli.cpp:30:10: error: no member named 'cout' in namespace 'std'
    std::cout << val << " ";
    ~~~~~^
/Users/chris.heller/hydro-project/anna/client/cpp/cli.cpp:33:8: error: no member named 'cout' in namespace 'std'
  std::cout << "}" << std::endl;
  ~~~~~^
/Users/chris.heller/hydro-project/anna/client/cpp/cli.cpp:53:12: error: no member named 'cout' in namespace 'std'
      std::cout << "Error: received more than one response" << std::endl;
      ~~~~~^
/Users/chris.heller/hydro-project/anna/client/cpp/cli.cpp:60:10: error: no member named 'cout' in namespace 'std'
    std::cout << lww_lattice.reveal().value << std::endl;
    ~~~~~^
/Users/chris.heller/hydro-project/anna/client/cpp/cli.cpp:71:12: error: no member named 'cout' in namespace 'std'
      std::cout << "Error: received more than one response" << std::endl;
      ~~~~~^
/Users/chris.heller/hydro-project/anna/client/cpp/cli.cpp:81:12: error: no member named 'cout' in namespace 'std'
      std::cout << "{" << pair.first << " : "
      ~~~~~^
/Users/chris.heller/hydro-project/anna/client/cpp/cli.cpp:86:12: error: no member named 'cout' in namespace 'std'
      std::cout << dep_key_vc_pair.first << " : ";
      ~~~~~^
/Users/chris.heller/hydro-project/anna/client/cpp/cli.cpp:88:14: error: no member named 'cout' in namespace 'std'
        std::cout << "{" << vc_pair.first << " : "
        ~~~~~^
/Users/chris.heller/hydro-project/anna/client/cpp/cli.cpp:94:10: error: no member named 'cout' in namespace 'std'
    std::cout << *(mkcl.reveal().value.reveal().begin()) << std::endl;
    ~~~~~^
/Users/chris.heller/hydro-project/anna/client/cpp/cli.cpp:109:12: error: no member named 'cout' in namespace 'std'
      std::cout << "Invalid response: ID did not match request ID!"
      ~~~~~^
/Users/chris.heller/hydro-project/anna/client/cpp/cli.cpp:113:12: error: no member named 'cout' in namespace 'std'
      std::cout << "Success!" << std::endl;
      ~~~~~^
/Users/chris.heller/hydro-project/anna/client/cpp/cli.cpp:115:12: error: no member named 'cout' in namespace 'std'
      std::cout << "Failure!" << std::endl;
      ~~~~~^
/Users/chris.heller/hydro-project/anna/client/cpp/cli.cpp:145:12: error: no member named 'cout' in namespace 'std'
      std::cout << "Invalid response: ID did not match request ID!"
      ~~~~~^
/Users/chris.heller/hydro-project/anna/client/cpp/cli.cpp:149:12: error: no member named 'cout' in namespace 'std'
      std::cout << "Success!" << std::endl;
      ~~~~~^
/Users/chris.heller/hydro-project/anna/client/cpp/cli.cpp:151:12: error: no member named 'cout' in namespace 'std'
      std::cout << "Failure!" << std::endl;
      ~~~~~^
/Users/chris.heller/hydro-project/anna/client/cpp/cli.cpp:170:12: error: no member named 'cout' in namespace 'std'
      std::cout << "Invalid response: ID did not match request ID!"
      ~~~~~^
/Users/chris.heller/hydro-project/anna/client/cpp/cli.cpp:174:12: error: no member named 'cout' in namespace 'std'
      std::cout << "Success!" << std::endl;
      ~~~~~^
/Users/chris.heller/hydro-project/anna/client/cpp/cli.cpp:176:12: error: no member named 'cout' in namespace 'std'
      std::cout << "Failure!" << std::endl;
      ~~~~~^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make[2]: *** [client/cpp/CMakeFiles/anna-cli.dir/cli.cpp.o] Error 1
make[1]: *** [client/cpp/CMakeFiles/anna-cli.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 57%] Linking CXX static library libanna-hash-ring.a
[ 57%] Built target anna-hash-ring
make: *** [all] Error 2

This is with the following git checkout:

anna % git rev-parse --short HEAD
53956c9

Happy to provide any other info that might help resolve this. Possibly I need to just run build.sh with a non-default set of options, but unsure how to decide what options to use.

@vsreekanti
Copy link
Member

Hi @hellertime! Can you actually show what was included in the ...? It seems like this might be a compiler version issue, and the build script should print that.

@hellertime
Copy link
Author

@vsreekanti I updated the comment to include the entire error output until the make jobs exited.

@vsreekanti
Copy link
Member

@hellertime, sorry for the confusion. There is a "..." between the shell command where you called build and the first error you show. Was anything printed out there? Thanks!

@hellertime
Copy link
Author

hellertime commented Sep 10, 2020

Oh. Yes, it's a ton of output. Let me re-run with that directed to a file and I can give you the entire output.

anna_build.out.txt

zhipeng-jia pushed a commit to zhipeng-jia/anna that referenced this issue Sep 1, 2021
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

2 participants