Home > OS >  Tensorflow compile error problem
Tensorflow compile error problem

Time:09-27

ERROR:/home/yq66/cache/bazel _bazel_yq66 d8d45ace9f21a4a14631f99a393477f5/external/protobuf/BUILD: 593:1: c + + compilation of rule '@ protobuf//: pyext/_message. So' failed: GCC failed: ERROR executing the command/usr/bin/GCC - U_FORTIFY_SOURCE - D_FORTIFY_SOURCE='1' - fstack - protector - Wall - Wl - z - relro, z, now - B/usr/bin - B/usr/bin - Wunused - but - set - parameter - Wno - free - nonheap - object - fno - canonical - system - headers... (remaining 57 argument (s) skipped) : com. Its devtools. Build. Lib. Shell. BadExitStatusException: Process exited with the status 1.
External/protobuf/python/Google/protobuf/pyext/descriptor_pool. Cc: In function 'PyObject * Google: : protobuf: : python: : cdescriptor_pool: : the New (PyTypeObject *, PyObject *, PyObject *)' :
External/protobuf/python/Google/protobuf/pyext/descriptor_pool. Cc: 138:46: warning: ISO c + + forbids converting a string constant to 'char *' [- Wwrite - strings]
The static char * kwlist []={" descriptor_db ", 0};
^
External/protobuf/python/Google/protobuf/pyext/descriptor_pool. Cc: In function 'PyObject * Google: : protobuf: : python: : cdescriptor_pool: : FindMessageByName (Google: : protobuf: : python: : PyDescriptorPool *, PyObject *)' :
External/protobuf/python/Google/protobuf/pyext/descriptor_pool. Cc: 50:45: error: invalid conversion from 'const char *' to 'char *' [- fpermissive]
((* (charpp)=PyUnicode_AsUTF8AndSize (ob (sizep)))==NULL? 1:0) : \
~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ^ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
External/protobuf/python/Google/protobuf/pyext/descriptor_pool. Cc: 168-7: note: in expansion of macro 'PyString_AsStringAndSize'
If (PyString_AsStringAndSize (arg, & name, & name_size) <0) {
^ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
External/protobuf/python/Google/protobuf/pyext/descriptor_pool. Cc: In function 'PyObject * Google: : protobuf: : python: : cdescriptor_pool: : FindFileByName (Google: : protobuf: : python: : PyDescriptorPool *, PyObject *)' :
External/protobuf/python/Google/protobuf/pyext/descriptor_pool. Cc: 50:45: error: invalid conversion from 'const char *' to 'char *' [- fpermissive]
((* (charpp)=PyUnicode_AsUTF8AndSize (ob (sizep)))==NULL? 1:0) : \
~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ^ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
External/protobuf/python/Google/protobuf/pyext/descriptor_pool. Cc: 189-7: note: in expansion of macro 'PyString_AsStringAndSize'
If (PyString_AsStringAndSize (arg, & name, & name_size) <0) {
^ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
External/protobuf/python/Google/protobuf/pyext/descriptor_pool. Cc: In function 'PyObject * Google: : protobuf: : python: : cdescriptor_pool: : FindFieldByName (Google: : protobuf: : python: : PyDescriptorPool *, PyObject *)' :
External/protobuf/python/Google/protobuf/pyext/descriptor_pool. Cc: 50:45: error: invalid conversion from 'const char *' to 'char *' [- fpermissive]
((* (charpp)=PyUnicode_AsUTF8AndSize (ob (sizep)))==NULL? 1:0) : \
~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ^ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
External/protobuf/python/Google/protobuf/pyext/descriptor_pool. Cc: 205-7: note: in expansion of macro 'PyString_AsStringAndSize'
If (PyString_AsStringAndSize (arg, & name, & name_size) <0) {
^ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
External/protobuf/python/Google/protobuf/pyext/descriptor_pool. Cc: In function 'PyObject * Google: : protobuf: : python: : cdescriptor_pool: : FindExtensionByName (Google: : protobuf: : python: : PyDescriptorPool *, PyObject *)' :
External/protobuf/python/Google/protobuf/pyext/descriptor_pool. Cc: 50:45: error: invalid conversion from 'const char *' to 'char *' [- fpermissive]
((* (charpp)=PyUnicode_AsUTF8AndSize (ob (sizep)))==NULL? 1:0) : \
~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ^ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
External/protobuf/python/Google/protobuf/pyext/descriptor_pool. Cc: 223-7: note: in expansion of macro 'PyString_AsStringAndSize'
If (PyString_AsStringAndSize (arg, & name, & name_size) <0) {
^ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
External/protobuf/python/Google/protobuf/pyext/descriptor_pool. Cc: In function 'PyObject * Google: : protobuf: : python: : cdescriptor_pool: : FindEnumTypeByName (Google: : protobuf: : python: : PyDescriptorPool *, PyObject *)' :
External/protobuf/python/Google/protobuf/pyext/descriptor_pool. Cc: 50:45: error: invalid conversion from 'const char *' to 'char *' [- fpermissive]
((* (charpp)=PyUnicode_AsUTF8AndSize (ob (sizep)))==NULL? 1:0) : \
~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ^ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
External/protobuf/python/Google/protobuf/pyext/descriptor_pool. Cc: 240-7: note: in expansion of macro 'PyString_AsStringAndSize'
If (PyString_AsStringAndSize (arg, & name, & name_size) <0) {
^ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
External/protobuf/python/Google/protobuf/pyext/descriptor_pool. Cc: In function 'PyObject * Google: : protobuf: : python: : cdescriptor_pool: : FindOneofByName (Google: : protobuf: : python: : PyDescriptorPool *, PyObject *)' :
External/protobuf/python/Google/protobuf/pyext/descriptor_pool. Cc: 50:45: error: invalid conversion from 'const char *' to 'char *' [- fpermissive]
((* (charpp)=PyUnicode_AsUTF8AndSize (ob (sizep)))==NULL? 1:0) : \
~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ^ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~ ~
nullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnull
  • Related