Error failed building wheel for grpcio

System information OS Platform and Distribution Linux Ubuntu 16.04 TensorFlow installed from pip install TensorFlow version:1.14.0 Installed using pip inside a virtual environment created using vir...

System information

  • OS Platform and Distribution Linux Ubuntu 16.04
  • TensorFlow installed from pip install
  • TensorFlow version:1.14.0
  • Installed using pip inside a virtual environment created using virtualenv command

When I was trying to install tensorflow in a virtual environment(created using virtualenv command, it is showing the following error at some point of installation:

Building wheels for collected packages: grpcio
  Running setup.py bdist_wheel for grpcio ... /

Failed building wheel for grpcio

Provide the exact sequence of commands / steps that you executed before running into the problem

virtualenv dd
source dd/bin/activate
pip install tensorflow

Any other info / logs
T=1536 -DGPR_BACKWARDS_COMPATIBILITY_MODE=1 -DHAVE_CONFIG_H=1 -DGRPC_ENABLE_FORK_SUPPORT=1 -DPyMODINIT_FUNC=extern «C» attribute((visibility («default»))) void -DGRPC_POSIX_FORK_ALLOW_PTHREAD_ATFORK=1 -Isrc/python/grpcio -Iinclude -I. -Ithird_party/abseil-cpp -Ithird_party/address_sorting/include -Ithird_party/cares -Ithird_party/cares/cares -Ithird_party/cares/config_linux -Ithird_party/re2 -Ithird_party/boringssl-with-bazel/src/include -Ithird_party/upb -Isrc/core/ext/upb-generated -Isrc/core/ext/upbdefs-generated -Ithird_party/zlib -I/usr/include/python2.7 -c src/core/ext/upb-generated/google/api/http.upb.c -o python_build/temp.linux-x86_64-2.7/src/core/ext/upb-generated/google/api/http.upb.o -std=c++11 -std=gnu99 -fvisibility=hidden -fno-wrapv -fno-exceptions -pthread
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong —param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions-fstack-protector-strong —param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -D_WIN32_WINNT=1536 -DGPR_BACKWARDS_COMPATIBILITY_MODE=1 -DHAVE_CONFIG_H=1 -DGRPC_ENABLE_FORK_SUPPORT=1 -DPyMODINIT_FUNC=extern «C» attribute((visibility («default»))) void -DGRPC_POSIX_FORK_ALLOW_PTHREAD_ATFORK=1 -Isrc/python/grpcio -Iinclude -I. -Ithird_party/abseil-cpp -Ithird_party/address_sorting/include -Ithird_party/cares -Ithird_party/cares/cares -Ithird_party/cares/config_linux -Ithird_party/re2 -Ithird_party/boringssl-with-bazel/src/include -Ithird_party/upb -Isrc/core/ext/upb-generated -Isrc/core/ext/upbdefs-generated -Ithird_party/zlib -I/usr/include/python2.7 -c src/core/ext/upbdefs-generated/envoy/service/listener/v3/lds.upbdefs.c -o python_build/temp.linux-x86_64-2.7/src/core/ext/upbdefs-generated/envoy/service/listener/v3/lds.upbdefs.o -std=c++11 -std=gnu99 -fvisibility=hidden -fno-wrapv -fno-exceptions -pthread
cc1: warning: command line option ‘-std=c++11’ is valid for C++/ObjC++ but not for C [enabled by default]
cc1: warning: command line option ‘-std=c++11’ is valid for C++/ObjC++ but not for C [enabled by default]
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong —param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions-fstack-protector-strong —param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -I/usr/include/python2.7 -c /tmp/tmpcOA4GA/a.c -o None/tmp/tmpcOA4GA/a.o
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong —param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions-fstack-protector-strong —param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -D_WIN32_WINNT=1536 -DGPR_BACKWARDS_COMPATIBILITY_MODE=1 -DHAVE_CONFIG_H=1 -DGRPC_ENABLE_FORK_SUPPORT=1 -DPyMODINIT_FUNC=extern «C» attribute((visibility («default»))) void -DGRPC_POSIX_FORK_ALLOW_PTHREAD_ATFORK=1 -Isrc/python/grpcio -Iinclude -I. -Ithird_party/abseil-cpp -Ithird_party/address_sorting/include -Ithird_party/cares -Ithird_party/cares/cares -Ithird_party/cares/config_linux -Ithird_party/re2 -Ithird_party/boringssl-with-bazel/src/include -Ithird_party/upb -Isrc/core/ext/upb-generated -Isrc/core/ext/upbdefs-generated -Ithird_party/zlib -I/usr/include/python2.7 -c src/core/ext/upbdefs-generated/envoy/config/core/v3/address.upbdefs.c -o python_build/temp.linux-x86_64-2.7/src/core/ext/upbdefs-generated/envoy/config/core/v3/address.upbdefs.o -std=c++11 -std=gnu99 -fvisibility=hidden -fno-wrapv -fno-exceptions -pthread
cc1: warning: command line option ‘-std=c++11’ is valid for C++/ObjC++ but not for C [enabled by default]
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong —param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions-fstack-protector-strong —param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -D_WIN32_WINNT=1536 -DGPR_BACKWARDS_COMPATIBILITY_MODE=1 -DHAVE_CONFIG_H=1 -DGRPC_ENABLE_FORK_SUPPORT=1 -DPyMODINIT_FUNC=extern «C» attribute((visibility («default»))) void -DGRPC_POSIX_FORK_ALLOW_PTHREAD_ATFORK=1 -Isrc/python/grpcio -Iinclude -I. -Ithird_party/abseil-cpp -Ithird_party/address_sorting/include -Ithird_party/cares -Ithird_party/cares/cares -Ithird_party/cares/config_linux -Ithird_party/re2 -Ithird_party/boringssl-with-bazel/src/include -Ithird_party/upb -Isrc/core/ext/upb-generated -Isrc/core/ext/upbdefs-generated -Ithird_party/zlib -I/usr/include/python2.7 -c src/core/ext/upbdefs-generated/envoy/config/listener/v3/listener_components.upbdefs.c -o python_build/temp.linux-x86_64-2.7/src/core/ext/upbdefs-generated/envoy/config/listener/v3/listener_components.upbdefs.o -std=c++11 -std=gnu99 -fvisibility=hidden -fno-wrapv -fno-exceptions -pthread
cc1: warning: command line option ‘-std=c++11’ is valid for C++/ObjC++ but not for C [enabled by default]
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong —param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions-fstack-protector-strong —param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -D_WIN32_WINNT=1536 -DGPR_BACKWARDS_COMPATIBILITY_MODE=1 -DHAVE_CONFIG_H=1 -DGRPC_ENABLE_FORK_SUPPORT=1 -DPyMODINIT_FUNC=extern «C» attribute((visibility («default»))) void -DGRPC_POSIX_FORK_ALLOW_PTHREAD_ATFORK=1 -Isrc/python/grpcio -Iinclude -I. -Ithird_party/abseil-cpp -Ithird_party/address_sorting/include -Ithird_party/cares -Ithird_party/cares/cares -Ithird_party/cares/config_linux -Ithird_party/re2 -Ithird_party/boringssl-with-bazel/src/include -Ithird_party/upb -Isrc/core/ext/upb-generated -Isrc/core/ext/upbdefs-generated -Ithird_party/zlib -I/usr/include/python2.7 -c src/core/ext/upbdefs-generated/udpa/core/v1/resource_locator.upbdefs.c -o python_build/temp.linux-x86_64-2.7/src/core/ext/upbdefs-generated/udpa/core/v1/resource_locator.upbdefs.o -std=c++11 -std=gnu99 -fvisibility=hidden -fno-wrapv -fno-exceptions -pthread
cc1: warning: command line option ‘-std=c++11’ is valid for C++/ObjC++ but not for C [enabled by default]
cc1: warning: command line option ‘-std=c++11’ is valid for C++/ObjC++ but not for C [enabled by default]
cc1: warning: command line option ‘-std=c++11’ is valid for C++/ObjC++ but not for C [enabled by default]
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong —param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions-fstack-protector-strong —param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -D_WIN32_WINNT=1536 -DGPR_BACKWARDS_COMPATIBILITY_MODE=1 -DHAVE_CONFIG_H=1 -DGRPC_ENABLE_FORK_SUPPORT=1 -DPyMODINIT_FUNC=extern «C» attribute((visibility («default»))) void -DGRPC_POSIX_FORK_ALLOW_PTHREAD_ATFORK=1 -Isrc/python/grpcio -Iinclude -I. -Ithird_party/abseil-cpp -Ithird_party/address_sorting/include -Ithird_party/cares -Ithird_party/cares/cares -Ithird_party/cares/config_linux -Ithird_party/re2 -Ithird_party/boringssl-with-bazel/src/include -Ithird_party/upb -Isrc/core/ext/upb-generated -Isrc/core/ext/upbdefs-generated -Ithird_party/zlib -I/usr/include/python2.7 -c src/core/ext/upb-generated/envoy/config/listener/v3/listener_components.upb.c -o python_build/temp.linux-x86_64-2.7/src/core/ext/upb-generated/envoy/config/listener/v3/listener_components.upb.o -std=c++11 -std=gnu99 -fvisibility=hidden -fno-wrapv -fno-exceptions -pthread
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong —param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions-fstack-protector-strong —param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -D_WIN32_WINNT=1536 -DGPR_BACKWARDS_COMPATIBILITY_MODE=1 -DHAVE_CONFIG_H=1 -DGRPC_ENABLE_FORK_SUPPORT=1 -DPyMODINIT_FUNC=extern «C» attribute((visibility («default»))) void -DGRPC_POSIX_FORK_ALLOW_PTHREAD_ATFORK=1 -Isrc/python/grpcio -Iinclude -I. -Ithird_party/abseil-cpp -Ithird_party/address_sorting/include -Ithird_party/cares -Ithird_party/cares/cares -Ithird_party/cares/config_linux -Ithird_party/re2 -Ithird_party/boringssl-with-bazel/src/include -Ithird_party/upb -Isrc/core/ext/upb-generated -Isrc/core/ext/upbdefs-generated -Ithird_party/zlib -I/usr/include/python2.7 -c src/core/ext/upb-generated/google/protobuf/any.upb.c -o python_build/temp.linux-x86_64-2.7/src/core/ext/upb-generated/google/protobuf/any.upb.o -std=c++11 -std=gnu99 -fvisibility=hidden -fno-wrapv-fno-exceptions -pthread
cc1: warning: command line option ‘-std=c++11’ is valid for C++/ObjC++ but not for C [enabled by default]
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong —param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions-fstack-protector-strong —param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -D_WIN32_WINNT=1536 -DGPR_BACKWARDS_COMPATIBILITY_MODE=1 -DHAVE_CONFIG_H=1 -DGRPC_ENABLE_FORK_SUPPORT=1 -DPyMODINIT_FUNC=extern «C» attribute((visibility («default»))) void -DGRPC_POSIX_FORK_ALLOW_PTHREAD_ATFORK=1 -Isrc/python/grpcio -Iinclude -I. -Ithird_party/abseil-cpp -Ithird_party/address_sorting/include -Ithird_party/cares -Ithird_party/cares/cares -Ithird_party/cares/config_linux -Ithird_party/re2 -Ithird_party/boringssl-with-bazel/src/include -Ithird_party/upb -Isrc/core/ext/upb-generated -Isrc/core/ext/upbdefs-generated -Ithird_party/zlib -I/usr/include/python2.7 -c src/core/ext/upb-generated/envoy/service/route/v3/rds.upb.c -o python_build/temp.linux-x86_64-2.7/src/core/ext/upb-generated/envoy/service/route/v3/rds.upb.o -std=c++11 -std=gnu99 -fvisibility=hidden -fno-wrapv -fno-exceptions -pthread
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong —param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions-fstack-protector-strong —param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -D_WIN32_WINNT=1536 -DGPR_BACKWARDS_COMPATIBILITY_MODE=1 -DHAVE_CONFIG_H=1 -DGRPC_ENABLE_FORK_SUPPORT=1 -DPyMODINIT_FUNC=extern «C» attribute((visibility («default»))) void -DGRPC_POSIX_FORK_ALLOW_PTHREAD_ATFORK=1 -Isrc/python/grpcio -Iinclude -I. -Ithird_party/abseil-cpp -Ithird_party/address_sorting/include -Ithird_party/cares -Ithird_party/cares/cares -Ithird_party/cares/config_linux -Ithird_party/re2 -Ithird_party/boringssl-with-bazel/src/include -Ithird_party/upb -Isrc/core/ext/upb-generated -Isrc/core/ext/upbdefs-generated -Ithird_party/zlib -I/usr/include/python2.7 -c src/core/ext/upbdefs-generated/google/protobuf/descriptor.upbdefs.c -o python_build/temp.linux-x86_64-2.7/src/core/ext/upbdefs-generated/google/protobuf/descriptor.upbdefs.o -std=c++11 -std=gnu99 -fvisibility=hidden -fno-wrapv -fno-exceptions -pthread
cc1: warning: command line option ‘-std=c++11’ is valid for C++/ObjC++ but not for C [enabled by default]
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong —param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions-fstack-protector-strong —param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -D_WIN32_WINNT=1536 -DGPR_BACKWARDS_COMPATIBILITY_MODE=1 -DHAVE_CONFIG_H=1 -DGRPC_ENABLE_FORK_SUPPORT=1 -DPyMODINIT_FUNC=extern «C» attribute((visibility («default»))) void -DGRPC_POSIX_FORK_ALLOW_PTHREAD_ATFORK=1 -Isrc/python/grpcio -Iinclude -I. -Ithird_party/abseil-cpp -Ithird_party/address_sorting/include -Ithird_party/cares -Ithird_party/cares/cares -Ithird_party/cares/config_linux -Ithird_party/re2 -Ithird_party/boringssl-with-bazel/src/include -Ithird_party/upb -Isrc/core/ext/upb-generated -Isrc/core/ext/upbdefs-generated -Ithird_party/zlib -I/usr/include/python2.7 -c src/core/lib/channel/connected_channel.cc -o python_build/temp.linux-x86_64-2.7/src/core/lib/channel/connected_channel.o -std=c++11 -std=gnu99 -fvisibility=hidden -fno-wrapv -fno-exceptions -pthread
cc1: warning: command line option ‘-std=c++11’ is valid for C++/ObjC++ but not for C [enabled by default]
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong —param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions-fstack-protector-strong —param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -D_WIN32_WINNT=1536 -DGPR_BACKWARDS_COMPATIBILITY_MODE=1 -DHAVE_CONFIG_H=1 -DGRPC_ENABLE_FORK_SUPPORT=1 -DPyMODINIT_FUNC=extern «C» attribute((visibility («default»))) void -DGRPC_POSIX_FORK_ALLOW_PTHREAD_ATFORK=1 -Isrc/python/grpcio -Iinclude -I. -Ithird_party/abseil-cpp -Ithird_party/address_sorting/include -Ithird_party/cares -Ithird_party/cares/cares -Ithird_party/cares/config_linux -Ithird_party/re2 -Ithird_party/boringssl-with-bazel/src/include -Ithird_party/upb -Isrc/core/ext/upb-generated -Isrc/core/ext/upbdefs-generated -Ithird_party/zlib -I/usr/include/python2.7 -c src/core/ext/upbdefs-generated/envoy/service/load_stats/v3/lrs.upbdefs.c -o python_build/temp.linux-x86_64-2.7/src/core/ext/upbdefs-generated/envoy/service/load_stats/v3/lrs.upbdefs.o -std=c++11 -std=gnu99 -fvisibility=hidden -fno-wrapv -fno-exceptions -pthread
cc1: warning: command line option ‘-std=c++11’ is valid for C++/ObjC++ but not for C [enabled by default]
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong —param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions-fstack-protector-strong —param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -D_WIN32_WINNT=1536 -DGPR_BACKWARDS_COMPATIBILITY_MODE=1 -DHAVE_CONFIG_H=1 -DGRPC_ENABLE_FORK_SUPPORT=1 -DPyMODINIT_FUNC=extern «C» attribute((visibility («default»))) void -DGRPC_POSIX_FORK_ALLOW_PTHREAD_ATFORK=1 -Isrc/python/grpcio -Iinclude -I. -Ithird_party/abseil-cpp -Ithird_party/address_sorting/include -Ithird_party/cares -Ithird_party/cares/cares -Ithird_party/cares/config_linux -Ithird_party/re2 -Ithird_party/boringssl-with-bazel/src/include -Ithird_party/upb -Isrc/core/ext/upb-generated -Isrc/core/ext/upbdefs-generated -Ithird_party/zlib -I/usr/include/python2.7 -c src/core/ext/upbdefs-generated/envoy/config/listener/v3/udp_listener_config.upbdefs.c -o python_build/temp.linux-x86_64-2.7/src/core/ext/upbdefs-generated/envoy/config/listener/v3/udp_listener_config.upbdefs.o -std=c++11 -std=gnu99 -fvisibility=hidden -fno-wrapv -fno-exceptions -pthread
cc1: warning: command line option ‘-std=c++11’ is valid for C++/ObjC++ but not for C [enabled by default]
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong —param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions-fstack-protector-strong —param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -D_WIN32_WINNT=1536 -DGPR_BACKWARDS_COMPATIBILITY_MODE=1 -DHAVE_CONFIG_H=1 -DGRPC_ENABLE_FORK_SUPPORT=1 -DPyMODINIT_FUNC=extern «C» attribute((visibility («default»))) void -DGRPC_POSIX_FORK_ALLOW_PTHREAD_ATFORK=1 -Isrc/python/grpcio -Iinclude -I. -Ithird_party/abseil-cpp -Ithird_party/address_sorting/include -Ithird_party/cares -Ithird_party/cares/cares -Ithird_party/cares/config_linux -Ithird_party/re2 -Ithird_party/boringssl-with-bazel/src/include -Ithird_party/upb -Isrc/core/ext/upb-generated -Isrc/core/ext/upbdefs-generated -Ithird_party/zlib -I/usr/include/python2.7 -c src/core/ext/upbdefs-generated/envoy/config/core/v3/backoff.upbdefs.c -o python_build/temp.linux-x86_64-2.7/src/core/ext/upbdefs-generated/envoy/config/core/v3/backoff.upbdefs.o -std=c++11 -std=gnu99 -fvisibility=hidden -fno-wrapv -fno-exceptions -pthread
cc1plus: warning: command line option ‘-std=gnu99’ is valid for C/ObjC but not for C++ [enabled by default]
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong —param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions-fstack-protector-strong —param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -D_WIN32_WINNT=1536 -DGPR_BACKWARDS_COMPATIBILITY_MODE=1 -DHAVE_CONFIG_H=1 -DGRPC_ENABLE_FORK_SUPPORT=1 -DPyMODINIT_FUNC=extern «C» attribute((visibility («default»))) void -DGRPC_POSIX_FORK_ALLOW_PTHREAD_ATFORK=1 -Isrc/python/grpcio -Iinclude -I. -Ithird_party/abseil-cpp -Ithird_party/address_sorting/include -Ithird_party/cares -Ithird_party/cares/cares -Ithird_party/cares/config_linux -Ithird_party/re2 -Ithird_party/boringssl-with-bazel/src/include -Ithird_party/upb -Isrc/core/ext/upb-generated -Isrc/core/ext/upbdefs-generated -Ithird_party/zlib -I/usr/include/python2.7 -c src/core/ext/upbdefs-generated/udpa/core/v1/resource_name.upbdefs.c -o python_build/temp.linux-x86_64-2.7/src/core/ext/upbdefs-generated/udpa/core/v1/resource_name.upbdefs.o -std=c++11 -std=gnu99 -fvisibility=hidden -fno-wrapv -fno-exceptions -pthread
cc1: warning: command line option ‘-std=c++11’ is valid for C++/ObjC++ but not for C [enabled by default]
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong —param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions-fstack-protector-strong —param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -D_WIN32_WINNT=1536 -DGPR_BACKWARDS_COMPATIBILITY_MODE=1 -DHAVE_CONFIG_H=1 -DGRPC_ENABLE_FORK_SUPPORT=1 -DPyMODINIT_FUNC=extern «C» attribute((visibility («default»))) void -DGRPC_POSIX_FORK_ALLOW_PTHREAD_ATFORK=1 -Isrc/python/grpcio -Iinclude -I. -Ithird_party/abseil-cpp -Ithird_party/address_sorting/include -Ithird_party/cares -Ithird_party/cares/cares -Ithird_party/cares/config_linux -Ithird_party/re2 -Ithird_party/boringssl-with-bazel/src/include -Ithird_party/upb -Isrc/core/ext/upb-generated -Isrc/core/ext/upbdefs-generated -Ithird_party/zlib -I/usr/include/python2.7 -c src/core/ext/transport/inproc/inproc_plugin.cc -o python_build/temp.linux-x86_64-2.7/src/core/ext/transport/inproc/inproc_plugin.o -std=c++11 -std=gnu99 -fvisibility=hidden -fno-wrapv -fno-exceptions -pthread
cc1: warning: command line option ‘-std=c++11’ is valid for C++/ObjC++ but not for C [enabled by default]
cc1: warning: command line option ‘-std=c++11’ is valid for C++/ObjC++ but not for C [enabled by default]
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong —param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions-fstack-protector-strong —param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -D_WIN32_WINNT=1536 -DGPR_BACKWARDS_COMPATIBILITY_MODE=1 -DHAVE_CONFIG_H=1 -DGRPC_ENABLE_FORK_SUPPORT=1 -DPyMODINIT_FUNC=extern «C» attribute((visibility («default»))) void -DGRPC_POSIX_FORK_ALLOW_PTHREAD_ATFORK=1 -Isrc/python/grpcio -Iinclude -I. -Ithird_party/abseil-cpp -Ithird_party/address_sorting/include -Ithird_party/cares -Ithird_party/cares/cares -Ithird_party/cares/config_linux -Ithird_party/re2 -Ithird_party/boringssl-with-bazel/src/include -Ithird_party/upb -Isrc/core/ext/upb-generated -Isrc/core/ext/upbdefs-generated -Ithird_party/zlib -I/usr/include/python2.7 -c src/core/ext/upb-generated/google/protobuf/descriptor.upb.c -o python_build/temp.linux-x86_64-2.7/src/core/ext/upb-generated/google/protobuf/descriptor.upb.o -std=c++11 -std=gnu99 -fvisibility=hidden -fno-wrapv -fno-exceptions -pthread
cc1: warning: command line option ‘-std=c++11’ is valid for C++/ObjC++ but not for C [enabled by default]
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong —param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions-fstack-protector-strong —param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -D_WIN32_WINNT=1536 -DGPR_BACKWARDS_COMPATIBILITY_MODE=1 -DHAVE_CONFIG_H=1 -DGRPC_ENABLE_FORK_SUPPORT=1 -DPyMODINIT_FUNC=extern «C» attribute((visibility («default»))) void -DGRPC_POSIX_FORK_ALLOW_PTHREAD_ATFORK=1 -Isrc/python/grpcio -Iinclude -I. -Ithird_party/abseil-cpp -Ithird_party/address_sorting/include -Ithird_party/cares -Ithird_party/cares/cares -Ithird_party/cares/config_linux -Ithird_party/re2 -Ithird_party/boringssl-with-bazel/src/include -Ithird_party/upb -Isrc/core/ext/upb-generated -Isrc/core/ext/upbdefs-generated -Ithird_party/zlib -I/usr/include/python2.7 -c src/core/ext/upb-generated/envoy/config/listener/v3/udp_listener_config.upb.c -o python_build/temp.linux-x86_64-2.7/src/core/ext/upb-generated/envoy/config/listener/v3/udp_listener_config.upb.o -std=c++11 -std=gnu99 -fvisibility=hidden -fno-wrapv -fno-exceptions -pthread
Traceback (most recent call last):
File «», line 1, in
File «/tmp/pip-build-KkOhKw/grpcio/setup.py», line 488, in
cmdclass=COMMAND_CLASS,
File «/usr/lib64/python2.7/distutils/core.py», line 152, in setup
cc1: warning: command line option ‘-std=c++11’ is valid for C++/ObjC++ but not for C [enabled by default]
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong —param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions-fstack-protector-strong —param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -D_WIN32_WINNT=1536 -DGPR_BACKWARDS_COMPATIBILITY_MODE=1 -DHAVE_CONFIG_H=1 -DGRPC_ENABLE_FORK_SUPPORT=1 -DPyMODINIT_FUNC=extern «C» attribute((visibility («default»))) void -DGRPC_POSIX_FORK_ALLOW_PTHREAD_ATFORK=1 -Isrc/python/grpcio -Iinclude -I. -Ithird_party/abseil-cpp -Ithird_party/address_sorting/include -Ithird_party/cares -Ithird_party/cares/cares -Ithird_party/cares/config_linux -Ithird_party/re2 -Ithird_party/boringssl-with-bazel/src/include -Ithird_party/upb -Isrc/core/ext/upb-generated -Isrc/core/ext/upbdefs-generated -Ithird_party/zlib -I/usr/include/python2.7 -c src/core/ext/upb-generated/envoy/service/route/v3/srds.upb.c -o python_build/temp.linux-x86_64-2.7/src/core/ext/upb-generated/envoy/service/route/v3/srds.upb.o -std=c++11 -std=gnu99 -fvisibility=hidden -fno-wrapv -fno-exceptions -pthread
dist.run_commands()
File «/usr/lib64/python2.7/distutils/dist.py», line 953, in run_commands
self.run_command(cmd)
File «/usr/lib64/python2.7/distutils/dist.py», line 972, in run_command
cmd_obj.run()
File «/home/vagdevi4768/dd/lib/python2.7/site-packages/setuptools/command/install.py», line 61, in run
return orig.install.run(self)
File «/usr/lib64/python2.7/distutils/command/install.py», line 563, in run
self.run_command(‘build’)
File «/usr/lib64/python2.7/distutils/cmd.py», line 326, in run_command
self.distribution.run_command(command)
cc1plus: warning: command line option ‘-std=gnu99’ is valid for C/ObjC but not for C++ [enabled by default]
File «/usr/lib64/python2.7/distutils/dist.py», line 972, in run_command
cmd_obj.run()
File «/usr/lib64/python2.7/distutils/command/build.py», line 127, in run
self.run_command(cmd_name)
File «/usr/lib64/python2.7/distutils/cmd.py», line 326, in run_command
self.distribution.run_command(command)
File «/usr/lib64/python2.7/distutils/dist.py», line 972, in run_command
cmd_obj.run()
File «/home/vagdevi4768/dd/lib/python2.7/site-packages/setuptools/command/build_ext.py», line 75, in run
_build_ext.run(self)
File «/usr/lib64/python2.7/distutils/command/build_ext.py», line 339, in run
self.build_extensions()
File «/tmp/pip-build-KkOhKw/grpcio/src/python/grpcio/commands.py», line 272, in build_extensions
«Failed build_ext step:n{}».format(formatted_exception))
commands.CommandError: Failed build_ext step:
Traceback (most recent call last):
File «/tmp/pip-build-KkOhKw/grpcio/src/python/grpcio/commands.py», line 267, in build_extensions
build_ext.build_ext.build_extensions(self)
File «/usr/lib64/python2.7/distutils/command/build_ext.py», line 448, in build_extensions
self.build_extension(ext)
File «/home/vagdevi4768/dd/lib/python2.7/site-packages/setuptools/command/build_ext.py», line 196, in build_extension
_build_ext.build_extension(self, ext)
File «/usr/lib64/python2.7/distutils/command/build_ext.py», line 498, in build_extension
depends=ext.depends)
File «/tmp/pip-build-KkOhKw/grpcio/src/python/grpcio/_parallel_compile_patch.py», line 59, in _parallel_compile
_compile_single_file, objects)
File «/usr/lib64/python2.7/multiprocessing/pool.py», line 250, in map
return self.map_async(func, iterable, chunksize).get()
File «/usr/lib64/python2.7/multiprocessing/pool.py», line 554, in get
raise self._value
CompileError: command ‘gcc’ failed with exit status 1

gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions-fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -D_WIN32_WINNT=1536 -DGPR_BACKWARDS_COMPATIBILITY_MODE=1 -DHAVE_CONFIG_H=1 -DGRPC_ENABLE_FORK_SUPPORT=1 -DPyMODINIT_FUNC=extern "C" __attribute__((visibility ("default"))) void -DGRPC_POSIX_FORK_ALLOW_PTHREAD_ATFORK=1 -Isrc/python/grpcio -Iinclude -I. -Ithird_party/abseil-cpp -Ithird_party/address_sorting/include -Ithird_party/cares -Ithird_party/cares/cares -Ithird_party/cares/config_linux -Ithird_party/re2 -Ithird_party/boringssl-with-bazel/src/include -Ithird_party/upb -Isrc/core/ext/upb-generated -Isrc/core/ext/upbdefs-generated -Ithird_party/zlib -I/usr/include/python2.7 -c src/core/ext/upbdefs-generated/envoy/service/route/v3/rds.upbdefs.c -o python_build/temp.linux-x86_64-2.7/src/core/ext/upbdefs-generated/envoy/service/route/v3/rds.upbdefs.o -std=c++11 -std=gnu99 -fvisibility=hidden -fno-wrapv -fno-exceptions -pthread
cc1: warning: command line option ‘-std=c++11’ is valid for C++/ObjC++ but not for C [enabled by default]
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions-fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -D_WIN32_WINNT=1536 -DGPR_BACKWARDS_COMPATIBILITY_MODE=1 -DHAVE_CONFIG_H=1 -DGRPC_ENABLE_FORK_SUPPORT=1 -DPyMODINIT_FUNC=extern "C" __attribute__((visibility ("default"))) void -DGRPC_POSIX_FORK_ALLOW_PTHREAD_ATFORK=1 -Isrc/python/grpcio -Iinclude -I. -Ithird_party/abseil-cpp -Ithird_party/address_sorting/include -Ithird_party/cares -Ithird_party/cares/cares -Ithird_party/cares/config_linux -Ithird_party/re2 -Ithird_party/boringssl-with-bazel/src/include -Ithird_party/upb -Isrc/core/ext/upb-generated -Isrc/core/ext/upbdefs-generated -Ithird_party/zlib -I/usr/include/python2.7 -c src/core/lib/gpr/cpu_linux.cc -o python_build/temp.linux-x86_64-2.7/src/core/lib/gpr/cpu_linux.o -std=c++11 -std=gnu99 -fvisibility=hidden -fno-wrapv -fno-exceptions -pthread
cc1: warning: command line option ‘-std=c++11’ is valid for C++/ObjC++ but not for C [enabled by default]
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions-fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -D_WIN32_WINNT=1536 -DGPR_BACKWARDS_COMPATIBILITY_MODE=1 -DHAVE_CONFIG_H=1 -DGRPC_ENABLE_FORK_SUPPORT=1 -DPyMODINIT_FUNC=extern "C" __attribute__((visibility ("default"))) void -DGRPC_POSIX_FORK_ALLOW_PTHREAD_ATFORK=1 -Isrc/python/grpcio -Iinclude -I. -Ithird_party/abseil-cpp -Ithird_party/address_sorting/include -Ithird_party/cares -Ithird_party/cares/cares -Ithird_party/cares/config_linux -Ithird_party/re2 -Ithird_party/boringssl-with-bazel/src/include -Ithird_party/upb -Isrc/core/ext/upb-generated -Isrc/core/ext/upbdefs-generated -Ithird_party/zlib -I/usr/include/python2.7 -c src/core/ext/upbdefs-generated/envoy/config/core/v3/base.upbdefs.c -o python_build/temp.linux-x86_64-2.7/src/core/ext/upbdefs-generated/envoy/config/core/v3/base.upbdefs.o -std=c++11 -std=gnu99 -fvisibility=hidden -fno-wrapv -fno-exceptions -pthread
cc1plus: warning: command line option ‘-std=gnu99’ is valid for C/ObjC but not for C++ [enabled by default]
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions-fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -D_WIN32_WINNT=1536 -DGPR_BACKWARDS_COMPATIBILITY_MODE=1 -DHAVE_CONFIG_H=1 -DGRPC_ENABLE_FORK_SUPPORT=1 -DPyMODINIT_FUNC=extern "C" __attribute__((visibility ("default"))) void -DGRPC_POSIX_FORK_ALLOW_PTHREAD_ATFORK=1 -Isrc/python/grpcio -Iinclude -I. -Ithird_party/abseil-cpp -Ithird_party/address_sorting/include -Ithird_party/cares -Ithird_party/cares/cares -Ithird_party/cares/config_linux -Ithird_party/re2 -Ithird_party/boringssl-with-bazel/src/include -Ithird_party/upb -Isrc/core/ext/upb-generated -Isrc/core/ext/upbdefs-generated -Ithird_party/zlib -I/usr/include/python2.7 -c src/core/ext/upbdefs-generated/google/protobuf/duration.upbdefs.c -o python_build/temp.linux-x86_64-2.7/src/core/ext/upbdefs-generated/google/protobuf/duration.upbdefs.o -std=c++11 -std=gnu99 -fvisibility=hidden -fno-wrapv -fno-exceptions -pthread
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions-fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -D_WIN32_WINNT=1536 -DGPR_BACKWARDS_COMPATIBILITY_MODE=1 -DHAVE_CONFIG_H=1 -DGRPC_ENABLE_FORK_SUPPORT=1 -DPyMODINIT_FUNC=extern "C" __attribute__((visibility ("default"))) void -DGRPC_POSIX_FORK_ALLOW_PTHREAD_ATFORK=1 -Isrc/python/grpcio -Iinclude -I. -Ithird_party/abseil-cpp -Ithird_party/address_sorting/include -Ithird_party/cares -Ithird_party/cares/cares -Ithird_party/cares/config_linux -Ithird_party/re2 -Ithird_party/boringssl-with-bazel/src/include -Ithird_party/upb -Isrc/core/ext/upb-generated -Isrc/core/ext/upbdefs-generated -Ithird_party/zlib -I/usr/include/python2.7 -c src/core/ext/upbdefs-generated/validate/validate.upbdefs.c -o python_build/temp.linux-x86_64-2.7/src/core/ext/upbdefs-generated/validate/validate.upbdefs.o -std=c++11 -std=gnu99 -fvisibility=hidden -fno-wrapv -fno-exceptions -pthread
cc1: warning: command line option ‘-std=c++11’ is valid for C++/ObjC++ but not for C [enabled by default]
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions-fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -D_WIN32_WINNT=1536 -DGPR_BACKWARDS_COMPATIBILITY_MODE=1 -DHAVE_CONFIG_H=1 -DGRPC_ENABLE_FORK_SUPPORT=1 -DPyMODINIT_FUNC=extern "C" __attribute__((visibility ("default"))) void -DGRPC_POSIX_FORK_ALLOW_PTHREAD_ATFORK=1 -Isrc/python/grpcio -Iinclude -I. -Ithird_party/abseil-cpp -Ithird_party/address_sorting/include -Ithird_party/cares -Ithird_party/cares/cares -Ithird_party/cares/config_linux -Ithird_party/re2 -Ithird_party/boringssl-with-bazel/src/include -Ithird_party/upb -Isrc/core/ext/upb-generated -Isrc/core/ext/upbdefs-generated -Ithird_party/zlib -I/usr/include/python2.7 -c src/core/lib/gpr/sync_abseil.cc -o python_build/temp.linux-x86_64-2.7/src/core/lib/gpr/sync_abseil.o -std=c++11 -std=gnu99 -fvisibility=hidden -fno-wrapv -fno-exceptions -pthread
cc1: warning: command line option ‘-std=c++11’ is valid for C++/ObjC++ but not for C [enabled by default]
cc1: warning: command line option ‘-std=c++11’ is valid for C++/ObjC++ but not for C [enabled by default]
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions-fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -D_WIN32_WINNT=1536 -DGPR_BACKWARDS_COMPATIBILITY_MODE=1 -DHAVE_CONFIG_H=1 -DGRPC_ENABLE_FORK_SUPPORT=1 -DPyMODINIT_FUNC=extern "C" __attribute__((visibility ("default"))) void -DGRPC_POSIX_FORK_ALLOW_PTHREAD_ATFORK=1 -Isrc/python/grpcio -Iinclude -I. -Ithird_party/abseil-cpp -Ithird_party/address_sorting/include -Ithird_party/cares -Ithird_party/cares/cares -Ithird_party/cares/config_linux -Ithird_party/re2 -Ithird_party/boringssl-with-bazel/src/include -Ithird_party/upb -Isrc/core/ext/upb-generated -Isrc/core/ext/upbdefs-generated -Ithird_party/zlib -I/usr/include/python2.7 -c src/core/ext/upb-generated/envoy/config/rbac/v3/rbac.upb.c -o python_build/temp.linux-x86_64-2.7/src/core/ext/upb-generated/envoy/config/rbac/v3/rbac.upb.o -std=c++11 -std=gnu99 -fvisibility=hidden -fno-wrapv -fno-exceptions -pthread
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions-fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -D_WIN32_WINNT=1536 -DGPR_BACKWARDS_COMPATIBILITY_MODE=1 -DHAVE_CONFIG_H=1 -DGRPC_ENABLE_FORK_SUPPORT=1 -DPyMODINIT_FUNC=extern "C" __attribute__((visibility ("default"))) void -DGRPC_POSIX_FORK_ALLOW_PTHREAD_ATFORK=1 -Isrc/python/grpcio -Iinclude -I. -Ithird_party/abseil-cpp -Ithird_party/address_sorting/include -Ithird_party/cares -Ithird_party/cares/cares -Ithird_party/cares/config_linux -Ithird_party/re2 -Ithird_party/boringssl-with-bazel/src/include -Ithird_party/upb -Isrc/core/ext/upb-generated -Isrc/core/ext/upbdefs-generated -Ithird_party/zlib -I/usr/include/python2.7 -c src/core/ext/upbdefs-generated/envoy/service/route/v3/srds.upbdefs.c -o python_build/temp.linux-x86_64-2.7/src/core/ext/upbdefs-generated/envoy/service/route/v3/srds.upbdefs.o -std=c++11 -std=gnu99 -fvisibility=hidden -fno-wrapv -fno-exceptions -pthread
cc1plus: warning: command line option ‘-std=gnu99’ is valid for C/ObjC but not for C++ [enabled by default]
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions-fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -D_WIN32_WINNT=1536 -DGPR_BACKWARDS_COMPATIBILITY_MODE=1 -DHAVE_CONFIG_H=1 -DGRPC_ENABLE_FORK_SUPPORT=1 -DPyMODINIT_FUNC=extern "C" __attribute__((visibility ("default"))) void -DGRPC_POSIX_FORK_ALLOW_PTHREAD_ATFORK=1 -Isrc/python/grpcio -Iinclude -I. -Ithird_party/abseil-cpp -Ithird_party/address_sorting/include -Ithird_party/cares -Ithird_party/cares/cares -Ithird_party/cares/config_linux -Ithird_party/re2 -Ithird_party/boringssl-with-bazel/src/include -Ithird_party/upb -Isrc/core/ext/upb-generated -Isrc/core/ext/upbdefs-generated -Ithird_party/zlib -I/usr/include/python2.7 -c src/core/lib/gpr/cpu_posix.cc -o python_build/temp.linux-x86_64-2.7/src/core/lib/gpr/cpu_posix.o -std=c++11 -std=gnu99 -fvisibility=hidden -fno-wrapv -fno-exceptions -pthread
cc1: warning: command line option ‘-std=c++11’ is valid for C++/ObjC++ but not for C [enabled by default]
cc1: warning: command line option ‘-std=c++11’ is valid for C++/ObjC++ but not for C [enabled by default]
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions-fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -D_WIN32_WINNT=1536 -DGPR_BACKWARDS_COMPATIBILITY_MODE=1 -DHAVE_CONFIG_H=1 -DGRPC_ENABLE_FORK_SUPPORT=1 -DPyMODINIT_FUNC=extern "C" __attribute__((visibility ("default"))) void -DGRPC_POSIX_FORK_ALLOW_PTHREAD_ATFORK=1 -Isrc/python/grpcio -Iinclude -I. -Ithird_party/abseil-cpp -Ithird_party/address_sorting/include -Ithird_party/cares -Ithird_party/cares/cares -Ithird_party/cares/config_linux -Ithird_party/re2 -Ithird_party/boringssl-with-bazel/src/include -Ithird_party/upb -Isrc/core/ext/upb-generated -Isrc/core/ext/upbdefs-generated -Ithird_party/zlib -I/usr/include/python2.7 -c src/core/ext/upb-generated/envoy/type/matcher/v3/metadata.upb.c -o python_build/temp.linux-x86_64-2.7/src/core/ext/upb-generated/envoy/type/matcher/v3/metadata.upb.o -std=c++11 -std=gnu99 -fvisibility=hidden -fno-wrapv -fno-exceptions -pthread
cc1: warning: command line option ‘-std=c++11’ is valid for C++/ObjC++ but not for C [enabled by default]
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions-fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -D_WIN32_WINNT=1536 -DGPR_BACKWARDS_COMPATIBILITY_MODE=1 -DHAVE_CONFIG_H=1 -DGRPC_ENABLE_FORK_SUPPORT=1 -DPyMODINIT_FUNC=extern "C" __attribute__((visibility ("default"))) void -DGRPC_POSIX_FORK_ALLOW_PTHREAD_ATFORK=1 -Isrc/python/grpcio -Iinclude -I. -Ithird_party/abseil-cpp -Ithird_party/address_sorting/include -Ithird_party/cares -Ithird_party/cares/cares -Ithird_party/cares/config_linux -Ithird_party/re2 -Ithird_party/boringssl-with-bazel/src/include -Ithird_party/upb -Isrc/core/ext/upb-generated -Isrc/core/ext/upbdefs-generated -Ithird_party/zlib -I/usr/include/python2.7 -c src/core/lib/gprpp/mpscq.cc -o python_build/temp.linux-x86_64-2.7/src/core/lib/gprpp/mpscq.o -std=c++11 -std=gnu99 -fvisibility=hidden -fno-wrapv -fno-exceptions -pthread
cc1plus: warning: command line option ‘-std=gnu99’ is valid for C/ObjC but not for C++ [enabled by default]
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions-fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -D_WIN32_WINNT=1536 -DGPR_BACKWARDS_COMPATIBILITY_MODE=1 -DHAVE_CONFIG_H=1 -DGRPC_ENABLE_FORK_SUPPORT=1 -DPyMODINIT_FUNC=extern "C" __attribute__((visibility ("default"))) void -DGRPC_POSIX_FORK_ALLOW_PTHREAD_ATFORK=1 -Isrc/python/grpcio -Iinclude -I. -Ithird_party/abseil-cpp -Ithird_party/address_sorting/include -Ithird_party/cares -Ithird_party/cares/cares -Ithird_party/cares/config_linux -Ithird_party/re2 -Ithird_party/boringssl-with-bazel/src/include -Ithird_party/upb -Isrc/core/ext/upb-generated -Isrc/core/ext/upbdefs-generated -Ithird_party/zlib -I/usr/include/python2.7 -c src/core/lib/iomgr/endpoint_pair_uv.cc -o python_build/temp.linux-x86_64-2.7/src/core/lib/iomgr/endpoint_pair_uv.o -std=c++11 -std=gnu99 -fvisibility=hidden -fno-wrapv -fno-exceptions -pthread
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions-fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -D_WIN32_WINNT=1536 -DGPR_BACKWARDS_COMPATIBILITY_MODE=1 -DHAVE_CONFIG_H=1 -DGRPC_ENABLE_FORK_SUPPORT=1 -DPyMODINIT_FUNC=extern "C" __attribute__((visibility ("default"))) void -DGRPC_POSIX_FORK_ALLOW_PTHREAD_ATFORK=1 -Isrc/python/grpcio -Iinclude -I. -Ithird_party/abseil-cpp -Ithird_party/address_sorting/include -Ithird_party/cares -Ithird_party/cares/cares -Ithird_party/cares/config_linux -Ithird_party/re2 -Ithird_party/boringssl-with-bazel/src/include -Ithird_party/upb -Isrc/core/ext/upb-generated -Isrc/core/ext/upbdefs-generated -Ithird_party/zlib -I/usr/include/python2.7 -c src/core/lib/gpr/cpu_windows.cc -o python_build/temp.linux-x86_64-2.7/src/core/lib/gpr/cpu_windows.o -std=c++11 -std=gnu99 -fvisibility=hidden -fno-wrapv -fno-exceptions -pthread
cc1plus: warning: command line option ‘-std=gnu99’ is valid for C/ObjC but not for C++ [enabled by default]
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions-fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -D_WIN32_WINNT=1536 -DGPR_BACKWARDS_COMPATIBILITY_MODE=1 -DHAVE_CONFIG_H=1 -DGRPC_ENABLE_FORK_SUPPORT=1 -DPyMODINIT_FUNC=extern "C" __attribute__((visibility ("default"))) void -DGRPC_POSIX_FORK_ALLOW_PTHREAD_ATFORK=1 -Isrc/python/grpcio -Iinclude -I. -Ithird_party/abseil-cpp -Ithird_party/address_sorting/include -Ithird_party/cares -Ithird_party/cares/cares -Ithird_party/cares/config_linux -Ithird_party/re2 -Ithird_party/boringssl-with-bazel/src/include -Ithird_party/upb -Isrc/core/ext/upb-generated -Isrc/core/ext/upbdefs-generated -Ithird_party/zlib -I/usr/include/python2.7 -c src/core/lib/iomgr/gethostname_host_name_max.cc -o python_build/temp.linux-x86_64-2.7/src/core/lib/iomgr/gethostname_host_name_max.o -std=c++11 -std=gnu99 -fvisibility=hidden -fno-wrapv -fno-exceptions -pthread
cc1: warning: command line option ‘-std=c++11’ is valid for C++/ObjC++ but not for C [enabled by default]
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions-fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -D_WIN32_WINNT=1536 -DGPR_BACKWARDS_COMPATIBILITY_MODE=1 -DHAVE_CONFIG_H=1 -DGRPC_ENABLE_FORK_SUPPORT=1 -DPyMODINIT_FUNC=extern "C" __attribute__((visibility ("default"))) void -DGRPC_POSIX_FORK_ALLOW_PTHREAD_ATFORK=1 -Isrc/python/grpcio -Iinclude -I. -Ithird_party/abseil-cpp -Ithird_party/address_sorting/include -Ithird_party/cares -Ithird_party/cares/cares -Ithird_party/cares/config_linux -Ithird_party/re2 -Ithird_party/boringssl-with-bazel/src/include -Ithird_party/upb -Isrc/core/ext/upb-generated -Isrc/core/ext/upbdefs-generated -Ithird_party/zlib -I/usr/include/python2.7 -c src/core/lib/iomgr/poller/eventmanager_libuv.cc -o python_build/temp.linux-x86_64-2.7/src/core/lib/iomgr/poller/eventmanager_libuv.o -std=c++11 -std=gnu99 -fvisibility=hidden -fno-wrapv -fno-exceptions -pthread
cc1plus: warning: command line option ‘-std=gnu99’ is valid for C/ObjC but not for C++ [enabled by default]
cc1plus: warning: command line option ‘-std=gnu99’ is valid for C/ObjC but not for C++ [enabled by default]
cc1plus: warning: command line option ‘-std=gnu99’ is valid for C/ObjC but not for C++ [enabled by default]
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions-fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -D_WIN32_WINNT=1536 -DGPR_BACKWARDS_COMPATIBILITY_MODE=1 -DHAVE_CONFIG_H=1 -DGRPC_ENABLE_FORK_SUPPORT=1 -DPyMODINIT_FUNC=extern "C" __attribute__((visibility ("default"))) void -DGRPC_POSIX_FORK_ALLOW_PTHREAD_ATFORK=1 -Isrc/python/grpcio -Iinclude -I. -Ithird_party/abseil-cpp -Ithird_party/address_sorting/include -Ithird_party/cares -Ithird_party/cares/cares -Ithird_party/cares/config_linux -Ithird_party/re2 -Ithird_party/boringssl-with-bazel/src/include -Ithird_party/upb -Isrc/core/ext/upb-generated -Isrc/core/ext/upbdefs-generated -Ithird_party/zlib -I/usr/include/python2.7 -c src/core/lib/iomgr/endpoint_pair_windows.cc -o python_build/temp.linux-x86_64-2.7/src/core/lib/iomgr/endpoint_pair_windows.o -std=c++11 -std=gnu99 -fvisibility=hidden -fno-wrapv -fno-exceptions -pthread
cc1plus: warning: command line option ‘-std=gnu99’ is valid for C/ObjC but not for C++ [enabled by default]
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions-fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -D_WIN32_WINNT=1536 -DGPR_BACKWARDS_COMPATIBILITY_MODE=1 -DHAVE_CONFIG_H=1 -DGRPC_ENABLE_FORK_SUPPORT=1 -DPyMODINIT_FUNC=extern "C" __attribute__((visibility ("default"))) void -DGRPC_POSIX_FORK_ALLOW_PTHREAD_ATFORK=1 -Isrc/python/grpcio -Iinclude -I. -Ithird_party/abseil-cpp -Ithird_party/address_sorting/include -Ithird_party/cares -Ithird_party/cares/cares -Ithird_party/cares/config_linux -Ithird_party/re2 -Ithird_party/boringssl-with-bazel/src/include -Ithird_party/upb -Isrc/core/ext/upb-generated -Isrc/core/ext/upbdefs-generated -Ithird_party/zlib -I/usr/include/python2.7 -c src/core/lib/gpr/env_linux.cc -o python_build/temp.linux-x86_64-2.7/src/core/lib/gpr/env_linux.o -std=c++11 -std=gnu99 -fvisibility=hidden -fno-wrapv -fno-exceptions -pthread
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions-fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -D_WIN32_WINNT=1536 -DGPR_BACKWARDS_COMPATIBILITY_MODE=1 -DHAVE_CONFIG_H=1 -DGRPC_ENABLE_FORK_SUPPORT=1 -DPyMODINIT_FUNC=extern "C" __attribute__((visibility ("default"))) void -DGRPC_POSIX_FORK_ALLOW_PTHREAD_ATFORK=1 -Isrc/python/grpcio -Iinclude -I. -Ithird_party/abseil-cpp -Ithird_party/address_sorting/include -Ithird_party/cares -Ithird_party/cares/cares -Ithird_party/cares/config_linux -Ithird_party/re2 -Ithird_party/boringssl-with-bazel/src/include -Ithird_party/upb -Isrc/core/ext/upb-generated -Isrc/core/ext/upbdefs-generated -Ithird_party/zlib -I/usr/include/python2.7 -c src/core/ext/upb-generated/envoy/config/route/v3/route.upb.c -o python_build/temp.linux-x86_64-2.7/src/core/ext/upb-generated/envoy/config/route/v3/route.upb.o -std=c++11 -std=gnu99 -fvisibility=hidden -fno-wrapv -fno-exceptions -pthread
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions-fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -D_WIN32_WINNT=1536 -DGPR_BACKWARDS_COMPATIBILITY_MODE=1 -DHAVE_CONFIG_H=1 -DGRPC_ENABLE_FORK_SUPPORT=1 -DPyMODINIT_FUNC=extern "C" __attribute__((visibility ("default"))) void -DGRPC_POSIX_FORK_ALLOW_PTHREAD_ATFORK=1 -Isrc/python/grpcio -Iinclude -I. -Ithird_party/abseil-cpp -Ithird_party/address_sorting/include -Ithird_party/cares -Ithird_party/cares/cares -Ithird_party/cares/config_linux -Ithird_party/re2 -Ithird_party/boringssl-with-bazel/src/include -Ithird_party/upb -Isrc/core/ext/upb-generated -Isrc/core/ext/upbdefs-generated -Ithird_party/zlib -I/usr/include/python2.7 -c src/core/lib/iomgr/gethostname_sysconf.cc -o python_build/temp.linux-x86_64-2.7/src/core/lib/iomgr/gethostname_sysconf.o -std=c++11 -std=gnu99 -fvisibility=hidden -fno-wrapv -fno-exceptions -pthread
cc1plus: warning: command line option ‘-std=gnu99’ is valid for C/ObjC but not for C++ [enabled by default]
cc1: warning: command line option ‘-std=c++11’ is valid for C++/ObjC++ but not for C [enabled by default]
cc1plus: warning: command line option ‘-std=gnu99’ is valid for C/ObjC but not for C++ [enabled by default]
cc1plus: warning: command line option ‘-std=gnu99’ is valid for C/ObjC but not for C++ [enabled by default]
In file included from ./src/core/ext/filters/client_channel/service_config_parser.h:28:0,
                 from ./src/core/ext/filters/message_size/message_size_filter.h:22,
                 from src/core/ext/filters/message_size/message_size_filter.cc:19:
src/core/ext/filters/message_size/message_size_filter.cc: In function ‘void recv_message_ready(void*, grpc_error*)’:
src/core/ext/filters/message_size/message_size_filter.cc:207:56: error: no matching function for call to ‘StrFormat(const char [45], uint32_t, int&)’
                             calld->limits.max_recv_size)
                                                        ^
./src/core/lib/iomgr/error.h:158:71: note: in definition of macro‘GRPC_ERROR_CREATE_FROM_COPIED_STRING’
   grpc_error_create(__FILE__, __LINE__, grpc_slice_from_copied_string(desc), 
 ^
src/core/ext/filters/message_size/message_size_filter.cc:207:56: note: candidate is:
                             calld->limits.max_recv_size)
                                                        ^
./src/core/lib/iomgr/error.h:158:71: note: in definition of macro‘GRPC_ERROR_CREATE_FROM_COPIED_STRING’
   grpc_error_create(__FILE__, __LINE__, grpc_slice_from_copied_string(desc), 
 ^
In file included from src/core/ext/filters/message_size/message_size_filter.cc:24:0:
third_party/abseil-cpp/absl/strings/str_format.h:338:34: note: template<class ... Args> std::string absl::lts_2020_09_23::StrFormat(absl::lts_2020_09_23::FormatSpec<Args ...>&, const Args& ...)
 ABSL_MUST_USE_RESULT std::string StrFormat(const FormatSpec<Args...>& format,
                                  ^
third_party/abseil-cpp/absl/strings/str_format.h:338:34: note:   template argument deduction/substitution failed:
In file included from ./src/core/ext/filters/client_channel/service_config_parser.h:28:0,
                 from ./src/core/ext/filters/message_size/message_size_filter.h:22,
                 from src/core/ext/filters/message_size/message_size_filter.cc:19:
src/core/ext/filters/message_size/message_size_filter.cc:207:56: note:   mismatched types ‘absl::lts_2020_09_23::FormatSpec<Args ...>’ and ‘const char [45]’
                             calld->limits.max_recv_size)
                                                        ^
./src/core/lib/iomgr/error.h:158:71: note: in definition of macro‘GRPC_ERROR_CREATE_FROM_COPIED_STRING’
   grpc_error_create(__FILE__, __LINE__, grpc_slice_from_copied_string(desc), 
 ^
src/core/ext/filters/message_size/message_size_filter.cc: In function ‘void message_size_start_transport_stream_op_batch(grpc_call_element*, grpc_transport_stream_op_batch*)’:
src/core/ext/filters/message_size/message_size_filter.cc:269:48: error: no matching function for call to ‘StrFormat(const char [41], uint32_t, int&)’
                     calld->limits.max_send_size)
                                                ^
./src/core/lib/iomgr/error.h:158:71: note: in definition of macro‘GRPC_ERROR_CREATE_FROM_COPIED_STRING’
   grpc_error_create(__FILE__, __LINE__, grpc_slice_from_copied_string(desc), 
 ^
src/core/ext/filters/message_size/message_size_filter.cc:269:48: note: candidate is:
                     calld->limits.max_send_size)
                                                ^
./src/core/lib/iomgr/error.h:158:71: note: in definition of macro‘GRPC_ERROR_CREATE_FROM_COPIED_STRING’
   grpc_error_create(__FILE__, __LINE__, grpc_slice_from_copied_string(desc), 
 ^
In file included from src/core/ext/filters/message_size/message_size_filter.cc:24:0:
third_party/abseil-cpp/absl/strings/str_format.h:338:34: note: template<class ... Args> std::string absl::lts_2020_09_23::StrFormat(absl::lts_2020_09_23::FormatSpec<Args ...>&, const Args& ...)
 ABSL_MUST_USE_RESULT std::string StrFormat(const FormatSpec<Args...>& format,
                                  ^
third_party/abseil-cpp/absl/strings/str_format.h:338:34: note:   template argument deduction/substitution failed:
In file included from ./src/core/ext/filters/client_channel/service_config_parser.h:28:0,
                 from ./src/core/ext/filters/message_size/message_size_filter.h:22,
                 from src/core/ext/filters/message_size/message_size_filter.cc:19:
src/core/ext/filters/message_size/message_size_filter.cc:269:48: note:   mismatched types ‘absl::lts_2020_09_23::FormatSpec<Args ...>’ and ‘const char [41]’
                     calld->limits.max_send_size)
                                                ^
./src/core/lib/iomgr/error.h:158:71: note: in definition of macro‘GRPC_ERROR_CREATE_FROM_COPIED_STRING’
   grpc_error_create(__FILE__, __LINE__, grpc_slice_from_copied_string(desc), 
 ^
src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb.cc: In member function ‘virtual std::string grpc_core::{anonymous}::GrpcLb::TokenAndClientStatsAttribute::ToString() const’:
src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb.cc:278:49: error: no matching function for call to ‘StrFormat(const char [30], const string&, grpc_core::GrpcLbClientStats*)’
                              client_stats_.get());
                                                 ^
src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb.cc:278:49: note: candidate is:
In file included from src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb.cc:69:0:
third_party/abseil-cpp/absl/strings/str_format.h:338:34: note: template<class ... Args> std::string absl::lts_2020_09_23::StrFormat(absl::lts_2020_09_23::FormatSpec<Args ...>&, const Args& ...)
 ABSL_MUST_USE_RESULT std::string StrFormat(const FormatSpec<Args...>& format,
                                  ^
third_party/abseil-cpp/absl/strings/str_format.h:338:34: note:   template argument deduction/substitution failed:
src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb.cc:278:49: note:   mismatched types ‘absl::lts_2020_09_23::FormatSpec<Args ...>’ and ‘const char [30]’
                              client_stats_.get());
                                                 ^
src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb.cc: In member function ‘std::string grpc_core::{anonymous}::GrpcLb::Serverlist::AsText() const’:
src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb.cc:525:72: error: no matching function for call to ‘StrFormat(const char [20], size_t&, std::string&, const char [50])’
                                       ipport, server.load_balance_token));
  ^
src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb.cc:525:72: note: candidate is:
In file included from src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb.cc:69:0:
third_party/abseil-cpp/absl/strings/str_format.h:338:34: note: template<class ... Args> std::string absl::lts_2020_09_23::StrFormat(absl::lts_2020_09_23::FormatSpec<Args ...>&, const Args& ...)
 ABSL_MUST_USE_RESULT std::string StrFormat(const FormatSpec<Args...>& format,
                                  ^
third_party/abseil-cpp/absl/strings/str_format.h:338:34: note:   template argument deduction/substitution failed:
src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb.cc:525:72: note:   mismatched types ‘absl::lts_2020_09_23::FormatSpec<Args ...>’ and ‘const char [20]’
                                       ipport, server.load_balance_token));
  ^
src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb.cc: In member function ‘virtual std::string grpc_core::{anonymous}::GrpcLb::TokenAndClientStatsAttribute::ToString() const’:
src/core/ext/filters/client_channel/lb_policy/grpclb/grpclb.cc:279:5: warning: control reaches end of non-void function [-Wreturn-type]
     }
     ^
src/python/grpcio/grpc/_cython/cygrpc.cpp: In function ‘void __pyx_f_4grpc_7_cython_6cygrpc__unified_socket_write(int)’:
src/python/grpcio/grpc/_cython/cygrpc.cpp:94016:46: warning: ignoring return value of ‘ssize_t write(int, const void*, size_t)’, declared with attribute warn_unused_result [-Wunused-result]
   (void)(write(__pyx_v_fd, ((char *)"1"), 1));
                                              ^
src/python/grpcio/grpc/_cython/cygrpc.cpp: In function ‘PyObject*__pyx_pw_4grpc_7_cython_6cygrpc_7Channel_9segregated_call(PyObject*, PyObject*, PyObject*)’:
src/python/grpcio/grpc/_cython/cygrpc.cpp:30837:76: warning: ‘__pyx_v_c_completion_queue’ may be used uninitialized in this function [-Wmaybe-uninitialized]
   __pyx_v_segregated_call->_c_completion_queue = __pyx_v_c_completion_queue;
      ^
src/python/grpcio/grpc/_cython/cygrpc.cpp:30471:26: note: ‘__pyx_v_c_completion_queue’ was declared here
   grpc_completion_queue *__pyx_v_c_completion_queue;
                          ^
src/python/grpcio/grpc/_cython/cygrpc.cpp: At global scope:
src/python/grpcio/grpc/_cython/cygrpc.cpp:184131:1: warning: ‘void __Pyx_PyAsyncGen_Fini()’ defined but not used [-Wunused-function]
 __Pyx_PyAsyncGen_Fini(void)
 ^

----------------------------------------

Command «/home/vagdevik/dd/bin/python -u -c «import setuptools, tokenize;file=’/tmp/pip-build-KkOhKw/grpcio/setup.py’;f=getattr(tokenize, ‘open’, open)(file);code=f.read().replace(‘rn’, ‘n’);f.close();exec(compile(code, file, ‘exec’))» install —record /tmp/pip-vnkkCk-record/install-record.txt —single-version-externally-managed —compile —install-headers /home/vagdevik/dd/include/site/python2.7/grpcio» failed with error code 1 in /tmp/pip-build-KkOhKw/grpcio/
You are using pip version 9.0.1, however version 20.3.1 is available.
You should consider upgrading via the ‘pip install —upgrade pip’ command.

I follow the step of installing tensorflow on MacBook Pro M1.
https://developer.apple.com/metal/tensorflow-plugin/
When i install the base tensorflow, it keep on showing the error: fail of building wheel for grpcio. I has updated my setuptools, pip, and grpcio to the latest version but it still not work. My python version is 3.9.6. How can i install tensorflow successfully?

Replies

Hi frankiexe,
We recently updated the tensorflow-deps to a more recent version. That might have led to version mismatch. Can you try following steps and if it helps ?

conda uninstall -c apple tensorflow-deps
conda install -c apple tensorflow-deps==2.5.0

Hi Frankie.

I’ve ran into the same error. grpcio needs some environment variables to be correctly compiled.

add those two lines at the end of your .zshrc file

export GRPC_PYTHON_BUILD_SYSTEM_OPENSSL=1
export GRPC_PYTHON_BUILD_SYSTEM_ZLIB=1

Also close/open your terminal app so it will apply the variables at opening the terminal.

Я получаю сообщение об ошибке при установке grpcio с помощью pip install grpcio на моем компьютере с Windows. Я прочитал здесь — https://github.com/grpc/grpc/issues/17829, что это может быть связано с ошибкой в ​​​​версии setuptools. Я обновил свои инструменты настройки до последней версии, то есть 41.0.1. Все еще получаю ту же ошибку сборки. Этого не происходит ни с одним другим пакетом. Я попытался переустановить pip и python на своем ноутбуке. прилагаю свою ошибку

Building wheels for collected packages: grpcio
Building wheel for grpcio (setup.py) ... error
ERROR: Complete output from command 'c:python27python.exe' -u -c 'import setuptools, tokenize;__file__='"'"'c:\users\s\appdata\local\temp\pip-install-ge5zhq\grpcio\setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(__file__);code=f.read().replace('"'"'rn'"'"', '"'"'n'"'"');f.close();exec(compile(code, __file__, '"'"'exec'"'"'))' bdist_wheel
-d 'c:userssappdatalocaltemppip-wheel-txjhlh' --python-tag cp27:
  ERROR: Found cython-generated files...
  running bdist_wheel
  running build
  running build_py
  running build_project_metadata
  creating python_build
  creating python_buildlib.win-amd64-2.7
  creating python_buildlib.win-amd64-2.7grpc
  copying srcpythongrpciogrpc_auth.py -> python_buildlib.win-amd64-2.7grpc
  copying srcpythongrpciogrpc_channel.py -> python_buildlib.win-amd64-2.7grpc
  copying srcpythongrpciogrpc_common.py -> python_buildlib.win-amd64-2.7grpc
  copying srcpythongrpciogrpc_compression.py -> python_buildlib.win-amd64-2.7grpc
  copying srcpythongrpciogrpc_grpcio_metadata.py -> python_buildlib.win-amd64-2.7grpc
  copying srcpythongrpciogrpc_interceptor.py -> python_buildlib.win-amd64-2.7grpc
  copying srcpythongrpciogrpc_plugin_wrapping.py -> python_buildlib.win-amd64-2.7grpc
  copying srcpythongrpciogrpc_server.py -> python_buildlib.win-amd64-2.7grpc
  copying srcpythongrpciogrpc_utilities.py -> python_buildlib.win-amd64-2.7grpc
  copying srcpythongrpciogrpc__init__.py -> python_buildlib.win-amd64-2.7grpc
  creating python_buildlib.win-amd64-2.7grpcbeta
  copying srcpythongrpciogrpcbetaimplementations.py -> python_buildlib.win-amd64-2.7grpcbeta
  copying srcpythongrpciogrpcbetainterfaces.py -> python_buildlib.win-amd64-2.7grpcbeta
  copying srcpythongrpciogrpcbetautilities.py -> python_buildlib.win-amd64-2.7grpcbeta
  copying srcpythongrpciogrpcbeta_client_adaptations.py -> python_buildlib.win-amd64-2.7grpcbeta
      copying srcpythongrpciogrpcbeta_metadata.py -> python_buildlib.win-amd64-2.7grpcbeta
      copying srcpythongrpciogrpcbeta_server_adaptations.py -> python_buildlib.win-amd64-2.7grpcbeta
      copying srcpythongrpciogrpcbeta__init__.py -> python_buildlib.win-amd64-2.7grpcbeta
      creating python_buildlib.win-amd64-2.7grpcexperimental
      copying srcpythongrpciogrpcexperimentalgevent.py -> python_buildlib.win-amd64-2.7grpcexperimental
      copying srcpythongrpciogrpcexperimentalsession_cache.py -> python_buildlib.win-amd64-2.7grpcexperimental
      copying srcpythongrpciogrpcexperimental__init__.py -> python_buildlib.win-amd64-2.7grpcexperimental
      creating python_buildlib.win-amd64-2.7grpcframework
      copying srcpythongrpciogrpcframe`enter code here`work__init__.py -> python_buildlib.win-amd64-2.7grpcframework
      creating python_buildlib.win-amd64-2.7grpc_cython
      copying srcpythongrpciogrpc_cython__init__.py -> python_buildlib.win-amd64-2.7grpc_cython
      creating python_buildlib.win-amd64-2.7grpcframeworkcommon
      copying srcpythongrpciogrpcframeworkcommoncardinality.py -> python_buildlib.win-amd64-2.7grpcframeworkcommon
      copying srcpythongrpciogrpcframeworkcommonstyle.py -> python_buildlib.win-amd64-2.7grpcframeworkcommon
      copying srcpythongrpciogrpcframeworkcommon__init__.py -> python_buildlib.win-amd64-2.7grpcframeworkcommon
      creating python_buildlib.win-amd64-2.7grpcframeworkfoundation
      copying srcpythongrpciogrpcframeworkfoundationabandonment.py -> python_buildlib.win-amd64-2.7grpcframeworkfoundation
      copying srcpythongrpciogrpcframeworkfoundationcallable_util.py -> python_buildlib.win-amd64-2.7grpcframeworkfoundation
      copying srcpythongrpciogrpcframeworkfoundationfuture.py -> python_buildlib.win-amd64-2.7grpcframeworkfoundation
      copying srcpythongrpciogrpcframeworkfoundationlogging_pool.py -> python_buildlib.win-amd64-2.7grpcframeworkfoundation
      copying srcpythongrpciogrpcframeworkfoundationstream.py -> python_buildlib.win-amd64-2.7grpcframeworkfoundation
      copying srcpythongrpciogrpcframeworkfoundationstream_util.py -> python_buildlib.win-amd64-2.7grpcframeworkfoundation
      copying srcpythongrpciogrpcframeworkfoundation__init__.py -> python_buildlib.win-amd64-2.7grpcframeworkfoundation
      creating python_buildlib.win-amd64-2.7grpcframeworkinterfaces
      copying srcpythongrpciogrpcframeworkinterfaces__init__.py -> python_buildlib.win-amd64-2.7grpcframeworkinterfaces
      creating python_buildlib.win-amd64-2.7grpcframeworkinterfacesbase
      copying srcpythongrpciogrpcframeworkinterfacesbasebase.py -> python_buildlib.win-amd64-2.7grpcframeworkinterfacesbase
      copying srcpythongrpciogrpcframeworkinterfacesbaseutilities.py -> python_buildlib.win-amd64-2.7grpcframeworkinterfacesbase
      copying srcpythongrpciogrpcframeworkinterfacesbase__init__.py -> python_buildlib.win-amd64-2.7grpcframeworkinterfacesbase
      creating python_buildlib.win-amd64-2.7grpcframeworkinterfacesface
      copying srcpythongrpciogrpcframeworkinterfacesfaceface.py -> python_buildlib.win-amd64-2.7grpcframeworkinterfacesface
      copying srcpythongrpciogrpcframeworkinterfacesfaceutilities.py -> python_buildlib.win-amd64-2.7grpcframeworkinterfacesface
      copying srcpythongrpciogrpcframeworkinterfacesface__init__.py -> python_buildlib.win-amd64-2.7grpcframeworkinterfacesface
      creating python_buildlib.win-amd64-2.7grpc_cython_cygrpc
      copying srcpythongrpciogrpc_cython_cygrpc__init__.py -> python_buildlib.win-amd64-2.7grpc_cython_cygrpc
      creating python_buildlib.win-amd64-2.7grpc_cython_credentials
      copying srcpythongrpciogrpc_cython_credentialsroots.pem -> python_buildlib.win-amd64-2.7grpc_cython_credentials
      running build_ext
      error: [Error 2] The system cannot find the file specified
      ----------------------------------------
      ERROR: Failed building wheel for grpcio
      Running setup.py clean for grpcio
    Failed to build grpcio

Перейти к ответу
Данный вопрос помечен как решенный


Ответы
3

Я столкнулся с той же проблемой, используя python 3.7 с setuptools 41.0.1 при установке пакета, который включает колесо сборки для gracio…
Сборка колеса для grpcio (setup.py)… ошибка

warning: include path for stdlibc++ headers not found; pass '-stdlib=libc++' on the command line to use the libc++ standard library instead [-Wstdlibcxx-not-found]
src/python/Gracie/grpc/_cython/cygrpc.cpp:1343:14: fatal error: 'cstdlib' file not found
    #include <cstdlib>
             ^~~~~~~~~
1 warning and 1 error generated.

Не удалось найти способ решения выше, но
Я попробовал другую среду с Python 3.6.x с теми же средствами настройки 41.0.1. Каким-то образом «настройка» нашла готовый руль для gracio (то есть grpcio==1.11.0) и прошла настройку.

Во-первых, обновите пипс

pip3 install --upgrade pip

Затем обновите инструменты настройки:

python3 -m pip install --upgrade setuptools

Наконец, установите grpcio, используя:

pip3 install --no-cache-dir  --force-reinstall -Iv grpcio==<version_number>

Попробуй установить с помощью

grpcio==1.36.1

Это сработало в моем случае.

Другие вопросы по теме

MikeDS

Posts: 9
Joined: Mon Aug 06, 2018 7:05 pm

Difficulty installing tensorflow

Hi. I’m trying to install tensorflow, but I’m having a problem with pip3 and then with tensorflow itself. See below.

Code: Select all

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Sun Aug  5 20:25:39 2018 from 192.168.1.128
pi@pi3:~$ pip3 install tensorflow
-bash: pip3: command not found
pi@pi3:~$ python3 --version
Python 3.4.2
pi@pi3:~$ sudo apt-get install python3-pip
Reading package lists... Done
Building dependency tree       
Reading state information... Done
python3-pip is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
pi@pi3:~$ python3-pip install tensorflow
-bash: python3-pip: command not found
pi@pi3:~$ pip install tensorflow
Collecting tensorflow
  Could not find a version that satisfies the requirement tensorflow (from versions: )
No matching distribution found for tensorflow
pi@pi3:~$

Appreciate any help the can get me unstuck. Thank you


User avatar

bertlea

Posts: 313
Joined: Wed Dec 07, 2016 6:33 am
Location: Hong Kong

Re: Difficulty installing tensorflow

Tue Aug 07, 2018 5:15 am

What is your Raspbian version? I am using Stretch April 2018 release.

I just tried on my Pi Zero W using pip3. I followed the general steps from the site https://www.tensorflow.org/install/install_linux, but I am using python3/pip3 and I use the built-in venv to create a vitural environment for the installation.
It took a very long time (over 3 hours) to complete, and I got some errors about installing wheel for numpy and clean up the numpy installation….etc. But I think it was successfully done (see below testing) even it got some python version warnings. It took a long time and it need to use the swap memory (file) for compiling/linking numpy and grpcio. I guess you can do better job by install numpy and grpcio first or install bdist_wheel first.

post-installation testing:

Code: Select all

(venv) pi@P0G32T2:~/temp/pytf $ python
Python 3.5.3 (default, Jan 19 2017, 14:11:04)
[GCC 6.3.0 20170124] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import tensorflow as tf
/usr/lib/python3.5/importlib/_bootstrap.py:222: RuntimeWarning: compiletime version 3.4 of module 'tensorflow.python.framework.fast_tensor_util' does not match runtime version 3.5
  return f(*args, **kwds)
/usr/lib/python3.5/importlib/_bootstrap.py:222: RuntimeWarning: builtins.type size changed, may indicate binary incompatibility. Expected 432, got 412
  return f(*args, **kwds)
/usr/lib/python3.5/importlib/_bootstrap.py:222: RuntimeWarning: numpy.dtype size changed, may indicate binary incompatibility. Expected 56, got 52
  return f(*args, **kwds)
>>> a = tf.constant([1,2,3], shape=[3,1])
>>> b = tf.constant([4,5,6], shape=[1,3])
>>> c = tf.matmul(a, b)
>>> sess = tf.Session()
>>> print(sess.run(c))
[[ 4  5  6]
 [ 8 10 12]
 [12 15 18]]
>>>


User avatar

bertlea

Posts: 313
Joined: Wed Dec 07, 2016 6:33 am
Location: Hong Kong

Re: Difficulty installing tensorflow

Tue Aug 07, 2018 5:52 am

Adding the installation log for your reference:

Code: Select all

pi@P0G32T2:~/temp/pytf $ source venv/bin/activate
(venv) pi@P0G32T2:~/temp/pytf $
(venv) pi@P0G32T2:~/temp/pytf $ pip3 install -U tensorflow
Collecting tensorflow
  Downloading https://www.piwheels.org/simple/tensorflow/tensorflow-1.9.0-cp35-none-linux_armv6l.whl (62.8MB)
    100% |████████████████████████████████| 62.8MB 1.1kB/s
Collecting wheel>=0.26 (from tensorflow)
  Downloading https://files.pythonhosted.org/packages/81/30/e935244ca6165187ae8be876b6316ae201b71485538ffac1d718843025a9/wheel-0.31.1-py2.py3-none-any.whl (41kB)
    100% |████████████████████████████████| 51kB 573kB/s
Collecting absl-py>=0.1.6 (from tensorflow)
  Downloading https://www.piwheels.org/simple/absl-py/absl_py-0.3.0-py3-none-any.whl (100kB)
    100% |████████████████████████████████| 102kB 36kB/s
Collecting setuptools<=39.1.0 (from tensorflow)
  Downloading https://files.pythonhosted.org/packages/8c/10/79282747f9169f21c053c562a0baa21815a8c7879be97abd930dbcf862e8/setuptools-39.1.0-py2.py3-none-any.whl (566kB)
    100% |████████████████████████████████| 573kB 137kB/s
Collecting tensorboard<1.10.0,>=1.9.0 (from tensorflow)
  Downloading https://files.pythonhosted.org/packages/9e/1f/3da43860db614e294a034e42d4be5c8f7f0d2c75dc1c428c541116d8cdab/tensorboard-1.9.0-py3-none-any.whl (3.3MB)
    100% |████████████████████████████████| 3.3MB 27kB/s
Collecting grpcio>=1.8.6 (from tensorflow)
  Downloading https://files.pythonhosted.org/packages/8a/5f/3f8ae67af2e56c36d62b1d047bddd421a7502fbedd9daf2e6c2049a71424/grpcio-1.14.0.tar.gz (14.4MB)
    100% |████████████████████████████████| 14.4MB 6.2kB/s
Collecting protobuf>=3.4.0 (from tensorflow)
  Downloading https://files.pythonhosted.org/packages/85/f8/d09e4bf21c4de65405ce053e90542e728c5b7cf296b9df36b0bf0488f534/protobuf-3.6.0-py2.py3-none-any.whl (390kB)
    100% |████████████████████████████████| 399kB 198kB/s
Collecting termcolor>=1.1.0 (from tensorflow)
  Downloading https://www.piwheels.org/simple/termcolor/termcolor-1.1.0-py3-none-any.whl
Collecting astor>=0.6.0 (from tensorflow)
  Downloading https://files.pythonhosted.org/packages/35/6b/11530768cac581a12952a2aad00e1526b89d242d0b9f59534ef6e6a1752f/astor-0.7.1-py2.py3-none-any.whl
Collecting six>=1.10.0 (from tensorflow)
  Downloading https://files.pythonhosted.org/packages/67/4b/141a581104b1f6397bfa78ac9d43d8ad29a7ca43ea90a2d863fe3056e86a/six-1.11.0-py2.py3-none-any.whl
Collecting numpy>=1.13.3 (from tensorflow)
  Downloading https://files.pythonhosted.org/packages/3a/20/c81632328b1a4e1db65f45c0a1350a9c5341fd4bbb8ea66cdd98da56fe2e/numpy-1.15.0.zip (4.5MB)
    100% |████████████████████████████████| 4.5MB 14kB/s
Collecting gast>=0.2.0 (from tensorflow)
  Downloading https://www.piwheels.org/simple/gast/gast-0.2.0-py3-none-any.whl
Collecting werkzeug>=0.11.10 (from tensorboard<1.10.0,>=1.9.0->tensorflow)
  Downloading https://files.pythonhosted.org/packages/20/c4/12e3e56473e52375aa29c4764e70d1b8f3efa6682bef8d0aae04fe335243/Werkzeug-0.14.1-py2.py3-none-any.whl (322kB)
    100% |████████████████████████████████| 327kB 241kB/s
Collecting markdown>=2.6.8 (from tensorboard<1.10.0,>=1.9.0->tensorflow)
  Downloading https://files.pythonhosted.org/packages/6d/7d/488b90f470b96531a3f5788cf12a93332f543dbab13c423a5e7ce96a0493/Markdown-2.6.11-py2.py3-none-any.whl (78kB)
    100% |████████████████████████████████| 81kB 543kB/s
Building wheels for collected packages: grpcio, numpy
  Running setup.py bdist_wheel for grpcio ... error
  Complete output from command /home/pi/temp/pytf/venv/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-x_9_4m7y/grpcio/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('rn', 'n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /tmp/tmpa47275hhpip-wheel- --python-tag cp35:
  Found cython-generated files...
  usage: -c [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
     or: -c --help [cmd1 cmd2 ...]
     or: -c --help-commands
     or: -c cmd --help

  error: invalid command 'bdist_wheel'

  ----------------------------------------
  Failed building wheel for grpcio
  Running setup.py clean for grpcio
  Running setup.py bdist_wheel for numpy ... error
  Complete output from command /home/pi/temp/pytf/venv/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-x_9_4m7y/numpy/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('rn', 'n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d /tmp/tmpdu3t81j4pip-wheel- --python-tag cp35:
  Running from numpy source directory.
  usage: -c [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
     or: -c --help [cmd1 cmd2 ...]
     or: -c --help-commands
     or: -c cmd --help

  error: invalid command 'bdist_wheel'

  ----------------------------------------
  Failed building wheel for numpy
  Running setup.py clean for numpy
  Complete output from command /home/pi/temp/pytf/venv/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-build-x_9_4m7y/numpy/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('rn', 'n');f.close();exec(compile(code, __file__, 'exec'))" clean --all:
  Running from numpy source directory.

  `setup.py clean` is not supported, use one of the following instead:

    - `git clean -xdf` (cleans all files)
    - `git clean -Xdf` (cleans all versioned files, doesn't touch
                        files that aren't checked into the git repo)

  Add `--force` to your command to use it anyway if you must (unsupported).


  ----------------------------------------
  Failed cleaning build dir for numpy
Failed to build grpcio numpy
Installing collected packages: wheel, six, absl-py, setuptools, werkzeug, numpy, markdown, protobuf, tensorboard, grpcio, termcolor, astor, gast, tensorflow
  Found existing installation: setuptools 33.1.1
    Uninstalling setuptools-33.1.1:
      Successfully uninstalled setuptools-33.1.1
  Running setup.py install for numpy ... done
  Running setup.py install for grpcio ... done
Successfully installed absl-py-0.3.0 astor-0.7.1 gast-0.2.0 grpcio-1.14.0 markdown-2.6.11 numpy-1.15.0 protobuf-3.6.0 setuptools-39.1.0 six-1.11.0 tensorboard-1.9.0 tensorflow-1.9.0 termcolor-1.1.0 werkzeug-0.14.1 wheel-0.31.1





DirkS

Posts: 10809
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: Difficulty installing tensorflow

Wed Aug 08, 2018 10:51 am

MikeDS wrote: ↑

Wed Aug 08, 2018 10:33 am


The version of Raspbian is Jessie.

Not sure why the last command in your first post did not work…

First I would upgrade pip3:

Then follow the instructions I linked to above, which boils down to

Code: Select all

sudo apt update
sudo apt install libatlas-base-dev
sudo pip3 install tensorflow

Post any error messages here.


DirkS

Posts: 10809
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: Difficulty installing tensorflow

Wed Aug 08, 2018 5:07 pm

Just found out that the tenorflow for the Pi is only available from Ben Nuttall’s piwheels.
You need to create /etc/pip.conf

and add

Code: Select all

[global]
extra-index-url=https://www.piwheels.org/simple

and then run the pip3 install command.

I don’t know if there is a version for Python 3.4 (installed on Raspbian Jessie)



DirkS

Posts: 10809
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: Difficulty installing tensorflow

Thu Aug 09, 2018 2:42 pm

MikeDS wrote: ↑

Thu Aug 09, 2018 11:11 am

DirkS wrote: ↑

Wed Aug 08, 2018 10:51 am



First I would upgrade pip3:

pip3 command is not recognized. See my first post
:(

Can’t see you using pip3 in that post. You tried python3-pip which is the name of the package, not the program.
The log in your first post shows that the package pip3-python is installed, so the ‘pip3’ should be a valid command.

Have you actually tried the update command above? If it fails then please post the full error message.


MikeDS

Posts: 9
Joined: Mon Aug 06, 2018 7:05 pm

Re: Difficulty installing tensorflow

Thu Aug 16, 2018 11:07 am

DirkS wrote: ↑

Thu Aug 09, 2018 2:42 pm



Can’t see you using pip3 in that post. You tried python3-pip which is the name of the package, not the program.
The log in your first post shows that the package pip3-python is installed, so the ‘pip3’ should be a valid command.

Have you actually tried the update command above? If it fails then please post the full error message.

The reason why I tried the package name is because the program didn’t work.



MikeDS

Posts: 9
Joined: Mon Aug 06, 2018 7:05 pm

Re: Difficulty installing tensorflow

Thu Aug 16, 2018 1:21 pm

DirkS wrote: ↑

Thu Aug 16, 2018 1:09 pm


Try the following to install pip3

Code: Select all

wget https://bootstrap.pypa.io/get-pip.py
sudo python3 get-pip.py

Collecting pip
Using cached https://files.pythonhosted.org/packages … d3f3144150
a5f3af41213346e5b6c221c9e086a166f3703d2ddaf940/pip-18.0-py2.py3-none-any.w
l
Installing collected packages: pip
Found existing installation: pip 1.5.6
Uninstalling pip-1.5.6:
Successfully uninstalled pip-1.5.6
Successfully installed pip-18.0

When trying to install tf:

pts$ pip3 install tensorflow
Collecting tensorflow
Could not find a version that satisfies the requirement tensorflow (from
versions: )
No matching distribution found for tensorflow


DirkS

Posts: 10809
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: Difficulty installing tensorflow

Thu Aug 16, 2018 5:23 pm

MikeDS wrote: ↑

Thu Aug 16, 2018 1:21 pm


No matching distribution found for tensorflow

Did you create /etc/pip.conf as I mentioned a couple of posts ago?


User avatar

bertlea

Posts: 313
Joined: Wed Dec 07, 2016 6:33 am
Location: Hong Kong

Re: Difficulty installing tensorflow

Fri Aug 17, 2018 3:06 am

@DirkS, a hypothetical question: Will it work if I just zip my venv folder that contained the tensorflow package I compiled/installed and send to MikeDS. Then MikeDS just unzip that to his Raspberry Pi and able to use it under venv? Just a hypothetical question, not suggesting do it that way. I would like to understand Python venv better as I am also learning Python.


DirkS

Posts: 10809
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: Difficulty installing tensorflow

Fri Aug 17, 2018 6:41 am

bertlea wrote: ↑

Fri Aug 17, 2018 3:06 am


@DirkS, a hypothetical question: Will it work if I just zip my venv folder that contained the tensorflow package I compiled/installed and send to MikeDS. Then MikeDS just unzip that to his Raspberry Pi and able to use it under venv? Just a hypothetical question, not suggesting do it that way. I would like to understand Python venv better as I am also learning Python.

Sorry, don’t know. In general these things tend to cause more problems than solutions.



MikeDS

Posts: 9
Joined: Mon Aug 06, 2018 7:05 pm

Re: Difficulty installing tensorflow

Mon Aug 20, 2018 2:06 pm

DirkS wrote: ↑

Thu Aug 16, 2018 5:23 pm

MikeDS wrote: ↑

Thu Aug 16, 2018 1:21 pm


No matching distribution found for tensorflow

Did you create /etc/pip.conf as I mentioned a couple of posts ago?

I did now. Sorry, I shouldn’t be doing all this on my phone. It seemed to be working, until it got stuck again:

Installing collected packages: termcolor, six, protobuf, gast, numpy, whee
, markdown, werkzeug, tensorboard, absl-py, astor, grpcio, tensorflow
Found existing installation: six 1.8.0
Uninstalling six-1.8.0:
Successfully uninstalled six-1.8.0
Found existing installation: numpy 1.8.2
Cannot uninstall ‘numpy’. It is a distutils installed project and thus we
annot accurately determine which files belong to it which would lead to only a partial uninstall.


DirkS

Posts: 10809
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: Difficulty installing tensorflow

Mon Aug 20, 2018 2:20 pm

MikeDS wrote: ↑

Mon Aug 20, 2018 2:06 pm


Found existing installation: numpy 1.8.2
Cannot uninstall ‘numpy’. It is a distutils installed project and thus we
annot accurately determine which files belong to it which would lead to only a partial uninstall.

That’s an older version fro the Raspbian repo

I would just install it using apt-get and then use pip3 to install a current version:

Code: Select all

sudo apt-get remove python3-numpy
sudo pip3 install numpy


MikeDS

Posts: 9
Joined: Mon Aug 06, 2018 7:05 pm

Re: Difficulty installing tensorflow

Mon Aug 20, 2018 3:21 pm

Can I call this a success?

Code: Select all

@pi3:~/shared/scripts/tensorflow$ nano teste.py
pi@pi3:~/shared/scripts/tensorflow$ python teste.py
Traceback (most recent call last):
  File "teste.py", line 1, in <module>
    import tensorflow as tf
ImportError: No module named tensorflow
pi@pi3:~/shared/scripts/tensorflow$ python3 teste.py
/usr/lib/python3.4/importlib/_bootstrap.py:321: RuntimeWarning: numpy.dtyp
 size changed, may indicate binary incompatibility. Expected 56, got 52
  return f(*args, **kwds)
b'hello!'


DirkS

Posts: 10809
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: Difficulty installing tensorflow

Mon Aug 20, 2018 3:55 pm

MikeDS wrote: ↑

Mon Aug 20, 2018 3:21 pm


Can I call this a success?

Yes, I think so. :D
I get a similar warning on my Pi with Raspbian Stretch.


MikeDS

Posts: 9
Joined: Mon Aug 06, 2018 7:05 pm

Re: Difficulty installing tensorflow

Mon Aug 20, 2018 4:13 pm

DirkS wrote: ↑

Mon Aug 20, 2018 3:55 pm

MikeDS wrote: ↑

Mon Aug 20, 2018 3:21 pm


Can I call this a success?

Yes, I think so. :D
I get a similar warning on my Pi with Raspbian Stretch.

Awesome! Thanks a bunch!


metalalive

Posts: 3
Joined: Wed Dec 06, 2017 4:28 pm
Location: Taipei

Re: Difficulty installing tensorflow

Sun Sep 16, 2018 2:20 pm

DirkS wrote: ↑

Wed Aug 08, 2018 5:07 pm


Just found out that the tenorflow for the Pi is only available from Ben Nuttall’s piwheels.
You need to create /etc/pip.conf

and add

Code: Select all

[global]
extra-index-url=https://www.piwheels.org/simple

and then run the pip3 install command.

I don’t know if there is a version for Python 3.4 (installed on Raspbian Jessie)

my command for installing tensorflow is «pip3 install —user tensorflow»
without the option —user , you might get permission denied in the middle of installation,
anyway DirkS’s suggestion + official installation steps work pretty well on my Raspbain stretch,
thanks :D.


DirkS

Posts: 10809
Joined: Tue Jun 19, 2012 9:46 pm
Location: Essex, UK

Re: Difficulty installing tensorflow

Sun Sep 16, 2018 2:43 pm

metalalive wrote: ↑

Sun Sep 16, 2018 2:20 pm


my command for installing tensorflow is «pip3 install —user tensorflow»
without the option —user , you might get permission denied in the middle of installation,

Well, that’s exactly why you would normally use

That way it is installed globally (for all users).
I would install it in a virtual environment anyway.


Return to “Python”

Понравилась статья? Поделить с друзьями:
  • Error failed building wheel for fastecdsa
  • Error failed building wheel for cx oracle
  • Error failed building wheel for ciso8601
  • Error failed building wheel for cffi
  • Error failed building wheel for backports zoneinfo