Skip to content
This repository has been archived by the owner on Aug 10, 2019. It is now read-only.

error while running the scrpit/build-all.sh #27

Closed
perry020 opened this issue Sep 20, 2018 · 18 comments
Closed

error while running the scrpit/build-all.sh #27

perry020 opened this issue Sep 20, 2018 · 18 comments

Comments

@perry020
Copy link

perry020 commented Sep 20, 2018

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

@vsreekanti
Copy link
Member

Hi @perry020, can you please let us know what compiler you were using, and what flags you passed to the script? Thanks!

@soarway
Copy link

soarway commented Sep 22, 2018

[ 16%] No install step for 'zeromq'
[ 17%] Completed 'zeromq'
[ 17%] Built target zeromq
make: *** [all] Error 2

@cw75
Copy link
Contributor

cw75 commented Sep 22, 2018

Hi @soarway, could you please let us know what operating system and compiler you are using? Thanks.

@soarway
Copy link

soarway commented Sep 22, 2018

@cw75 CentOS Linux release 7.5.1804 (Core)

@soarway
Copy link

soarway commented Sep 22, 2018

@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]#

@cw75
Copy link
Contributor

cw75 commented Sep 23, 2018

@soarway were you running with Debug mode or release mode? Did you pass any flag to scrpit/build-all.sh?

@soarway
Copy link

soarway commented Sep 24, 2018

@cw75 Release mode

@cw75
Copy link
Contributor

cw75 commented Sep 25, 2018

@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.

@soarway
Copy link

soarway commented Sep 25, 2018

@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
#include
^
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

@cw75
Copy link
Contributor

cw75 commented Sep 25, 2018

@soarway which compiler are you using? g++ or clang++?

@soarway
Copy link

soarway commented Sep 25, 2018

@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

@cw75
Copy link
Contributor

cw75 commented Sep 25, 2018

@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

@soarway
Copy link

soarway commented Sep 25, 2018

@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:
* autoconf
* automake
* libtool
* build-essential
* make
All dependencies installed!

[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++.

@soarway
Copy link

soarway commented Sep 25, 2018

@cw75 My os : CentOS Linux release 7.5.1804 (Core)

@soarway
Copy link

soarway commented Sep 25, 2018

@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

@cw75
Copy link
Contributor

cw75 commented Sep 25, 2018

@soarway Could you run ./scripts/build-all.sh -g?
the -g flag should set the compiler to g++

@soarway
Copy link

soarway commented Sep 25, 2018

@cw75 Use g++, success。
[100%] Built target run_server_handler_tests
Thanks you!

@cw75
Copy link
Contributor

cw75 commented Sep 25, 2018

@soarway 👍

@cw75 cw75 closed this as completed Sep 25, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants