Closed perry020 closed 6 years ago
Hi @perry020, can you please let us know what compiler you were using, and what flags you passed to the script? Thanks!
[ 16%] No install step for 'zeromq' [ 17%] Completed 'zeromq' [ 17%] Built target zeromq make: *** [all] Error 2
Hi @soarway, could you please let us know what operating system and compiler you are using? Thanks.
@cw75 CentOS Linux release 7.5.1804 (Core)
@cw75
[root@AAA vendor]# ls
spdlog yamlcpp zeromq zeromqcpp
[root@AAA vendor]# du -sh .
103M .
[root@AAA vendor]# ls zeromqcpp/
CMakeFiles cmake_install.cmake Makefile zeromqcpp-prefix
[root@AAA vendor]# ls zeromq
CMakeFiles cmake_install.cmake Makefile src tmp
[root@AAA vendor]#
@soarway were you running with Debug mode or release mode? Did you pass any flag to scrpit/build-all.sh
?
@cw75 Release mode
@soarway there should be lines in the middle where it says certain error occurred (in addition to the make: *** [all] Error 2
). Could you please let us know what these errors are? Thanks.
@cw75 -- [download 68% complete] -- [download 69% complete] -- [download 70% complete] -- [download 72% complete] -- [download 73% complete] -- [download 74% complete] -- [download 75% complete] -- [download 76% complete] -- [download 77% complete] -- [download 78% complete] -- [download 79% complete] -- [download 80% complete] -- [download 81% complete] -- [download 83% complete] [ 12%] Building CXX object CMakeFiles/flproto.dir/requests.pb.cc.o In file included from /root/fluent-master/build/requests.pb.cc:4: /root/fluent-master/build/requests.pb.h:7:10: fatal error: 'string' file not found
^
1 error generated. make[2]: [CMakeFiles/flproto.dir/requests.pb.cc.o] Error 1 make[1]: [CMakeFiles/flproto.dir/all] Error 2 make[1]: *** Waiting for unfinished jobs.... -- [download 84% complete] -- [download 85% complete] -- [download 86% complete] -- [download 88% complete] -- [download 89% complete] -- [download 90% complete] -- [download 91% complete] -- [download 93% complete] -- [download 94% complete] -- [download 95% complete] -- [download 96% complete] -- [download 97% complete] -- [download 98% complete] -- [download 99% complete] -- [download 100% complete] -- Downloading... done
@soarway which compiler are you using? g++ or clang++?
@cw75 [root@iz fluent-master]# ./scripts/build-all.sh -- The C compiler identification is GNU 4.8.5 -- The CXX compiler identification is Clang 3.4.2 -- 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/clang++ -- Check for working CXX compiler: /usr/bin/clang++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done
@soarway have you run ./scripts/install-dependencies.sh
?
could you paste the output when running this script? Your Clang version looks a bit old, and I am not sure if the libc++-dev libc++abi-dev
are installed
@cw75 [root@aaz fluent-master]# ./scripts/install-dependencies.sh g++ Detected that this is a Fedora-based distribution. Setting compiler to g++... Installing the following packages via yum:
[root@az fluent-master]# ./scripts/install-dependencies.sh Detected that this is a Fedora-based distribution. No compiler is specified. Default compiler is clang++. We currently are unable to support clang++ installation on Fedora distributions. [root@iaz fluent-master]#
[root@i4z fluent-master]# ./scripts/install-dependencies.sh clang++ Detected that this is a Fedora-based distribution. Setting compiler to clang++... We currently are unable to support clang++ installation on Fedora distributions.
I'm configuring G++, But when compiling, the compiler is clang++.
@cw75 My os : CentOS Linux release 7.5.1804 (Core)
@cw75 [root@i4z fluent-master]# yum install gcc-c++ libstdc++-devel Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile Package gcc-c++-4.8.5-28.el7_5.1.x86_64 already installed and latest version Package libstdc++-devel-4.8.5-28.el7_5.1.x86_64 already installed and latest version Nothing to do [root@i4z fluent-master]# yum install gcc Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile Package gcc-4.8.5-28.el7_5.1.x86_64 already installed and latest version Nothing to do
@soarway Could you run ./scripts/build-all.sh -g
?
the -g
flag should set the compiler to g++
@cw75 Use g++, success。
[100%] Built target run_server_handler_tests
Thanks you!
@soarway 👍
While running this script, some source files turn out error, and the message is : no member named 'cerr' in namespace 'std' It only can be build if I add the #include \<iostream> in these files os : mac high sierra 10.13.6