tensorflow / serving

A flexible, high-performance serving system for machine learning models
https://www.tensorflow.org/serving
Apache License 2.0
6.19k stars 2.19k forks source link

Error when build tensorflow serving model-server from source - "@curl//:curl", /usr/include/openssl/ocsp.h #626

Closed gyang274 closed 7 years ago

gyang274 commented 7 years ago

Hi, Tensorflow Serving Team,

I tried to build the tensorflow model server from source. I did this successfully on the same machine two month ago, but when I tried it again today, it fails with the following error message:

bazel --output_user_root=./tf_bazel_cache/ build -c opt //tensorflow_serving/model_servers:tensorflow_model_server
Extracting Bazel installation...
.........
DEBUG: /yg/technism/tensorflow/gits/docker-tensorflow-serving-inception/src/serving/tf_bazel_cache/91410463709861b006dadd753ee4d7ae/external/bazel_tools/tools/build_defs/pkg/pkg.bzl:197:9: @//tensorflow_serving/model_servers:tensorflow_model_server_tar: you provided a non dictionary to the pkg_tar `files` attribute. This attribute was renamed to `srcs`. Consider renaming it in your BUILD file.
WARNING: /yg/technism/tensorflow/gits/docker-tensorflow-serving-inception/src/serving/tf_bazel_cache/91410463709861b006dadd753ee4d7ae/external/org_tensorflow/tensorflow/core/BUILD:1782:1: in includes attribute of cc_library rule @org_tensorflow//tensorflow/core:framework_headers_lib: '../../../../external/nsync/public' resolves to 'external/nsync/public' not below the relative path of its package 'external/org_tensorflow/tensorflow/core'. This will be an error in the future. Since this rule was created by the macro 'cc_header_only_library', the error might have been caused by the macro implementation in /yg/technism/tensorflow/gits/docker-tensorflow-serving-inception/src/serving/tf_bazel_cache/91410463709861b006dadd753ee4d7ae/external/org_tensorflow/tensorflow/tensorflow.bzl:1048:30
WARNING: /yg/technism/tensorflow/gits/docker-tensorflow-serving-inception/src/serving/tensorflow_serving/servables/tensorflow/BUILD:120:1: in cc_library rule //tensorflow_serving/servables/tensorflow:session_bundle_factory: target '//tensorflow_serving/servables/tensorflow:session_bundle_factory' depends on deprecated target '@org_tensorflow//tensorflow/contrib/session_bundle:session_bundle': No longer supported. Switch to SavedModel immediately.
WARNING: /yg/technism/tensorflow/gits/docker-tensorflow-serving-inception/src/serving/tensorflow_serving/servables/tensorflow/BUILD:207:1: in cc_library rule //tensorflow_serving/servables/tensorflow:session_bundle_source_adapter: target '//tensorflow_serving/servables/tensorflow:session_bundle_source_adapter' depends on deprecated target '@org_tensorflow//tensorflow/contrib/session_bundle:session_bundle': No longer supported. Switch to SavedModel immediately.
WARNING: /yg/technism/tensorflow/gits/docker-tensorflow-serving-inception/src/serving/tensorflow_serving/servables/tensorflow/BUILD:515:1: in cc_library rule //tensorflow_serving/servables/tensorflow:classifier: target '//tensorflow_serving/servables/tensorflow:classifier' depends on deprecated target '@org_tensorflow//tensorflow/contrib/session_bundle:session_bundle_lite': No longer supported. Switch to SavedModel immediately.
WARNING: /yg/technism/tensorflow/gits/docker-tensorflow-serving-inception/src/serving/tensorflow_serving/servables/tensorflow/BUILD:515:1: in cc_library rule //tensorflow_serving/servables/tensorflow:classifier: target '//tensorflow_serving/servables/tensorflow:classifier' depends on deprecated target '@org_tensorflow//tensorflow/contrib/session_bundle:signature_lite': No longer supported. Switch to SavedModel immediately.
WARNING: /yg/technism/tensorflow/gits/docker-tensorflow-serving-inception/src/serving/tensorflow_serving/servables/tensorflow/BUILD:562:1: in cc_library rule //tensorflow_serving/servables/tensorflow:classification_service: target '//tensorflow_serving/servables/tensorflow:classification_service' depends on deprecated target '@org_tensorflow//tensorflow/contrib/session_bundle:session_bundle': No longer supported. Switch to SavedModel immediately.
WARNING: /yg/technism/tensorflow/gits/docker-tensorflow-serving-inception/src/serving/tensorflow_serving/servables/tensorflow/BUILD:562:1: in cc_library rule //tensorflow_serving/servables/tensorflow:classification_service: target '//tensorflow_serving/servables/tensorflow:classification_service' depends on deprecated target '@org_tensorflow//tensorflow/contrib/session_bundle:signature': No longer supported. Switch to SavedModel immediately.
WARNING: /yg/technism/tensorflow/gits/docker-tensorflow-serving-inception/src/serving/tensorflow_serving/servables/tensorflow/BUILD:432:1: in cc_library rule //tensorflow_serving/servables/tensorflow:get_model_metadata_impl: target '//tensorflow_serving/servables/tensorflow:get_model_metadata_impl' depends on deprecated target '@org_tensorflow//tensorflow/contrib/session_bundle:session_bundle': No longer supported. Switch to SavedModel immediately.
WARNING: /yg/technism/tensorflow/gits/docker-tensorflow-serving-inception/src/serving/tensorflow_serving/servables/tensorflow/BUILD:581:1: in cc_library rule //tensorflow_serving/servables/tensorflow:regression_service: target '//tensorflow_serving/servables/tensorflow:regression_service' depends on deprecated target '@org_tensorflow//tensorflow/contrib/session_bundle:session_bundle': No longer supported. Switch to SavedModel immediately.
WARNING: /yg/technism/tensorflow/gits/docker-tensorflow-serving-inception/src/serving/tensorflow_serving/servables/tensorflow/BUILD:581:1: in cc_library rule //tensorflow_serving/servables/tensorflow:regression_service: target '//tensorflow_serving/servables/tensorflow:regression_service' depends on deprecated target '@org_tensorflow//tensorflow/contrib/session_bundle:signature': No longer supported. Switch to SavedModel immediately.
WARNING: /yg/technism/tensorflow/gits/docker-tensorflow-serving-inception/src/serving/tensorflow_serving/servables/tensorflow/BUILD:412:1: in cc_library rule //tensorflow_serving/servables/tensorflow:predict_impl: target '//tensorflow_serving/servables/tensorflow:predict_impl' depends on deprecated target '@org_tensorflow//tensorflow/contrib/session_bundle:session_bundle': No longer supported. Switch to SavedModel immediately.
WARNING: /yg/technism/tensorflow/gits/docker-tensorflow-serving-inception/src/serving/tensorflow_serving/servables/tensorflow/BUILD:412:1: in cc_library rule //tensorflow_serving/servables/tensorflow:predict_impl: target '//tensorflow_serving/servables/tensorflow:predict_impl' depends on deprecated target '@org_tensorflow//tensorflow/contrib/session_bundle:signature': No longer supported. Switch to SavedModel immediately.
WARNING: /yg/technism/tensorflow/gits/docker-tensorflow-serving-inception/src/serving/tensorflow_serving/servables/tensorflow/BUILD:646:1: in cc_library rule //tensorflow_serving/servables/tensorflow:multi_inference: target '//tensorflow_serving/servables/tensorflow:multi_inference' depends on deprecated target '@org_tensorflow//tensorflow/contrib/session_bundle:session_bundle': No longer supported. Switch to SavedModel immediately.
WARNING: /yg/technism/tensorflow/gits/docker-tensorflow-serving-inception/src/serving/tensorflow_serving/servables/tensorflow/BUILD:600:1: in cc_library rule //tensorflow_serving/servables/tensorflow:regressor: target '//tensorflow_serving/servables/tensorflow:regressor' depends on deprecated target '@org_tensorflow//tensorflow/contrib/session_bundle:session_bundle_lite': No longer supported. Switch to SavedModel immediately.
WARNING: /yg/technism/tensorflow/gits/docker-tensorflow-serving-inception/src/serving/tensorflow_serving/servables/tensorflow/BUILD:600:1: in cc_library rule //tensorflow_serving/servables/tensorflow:regressor: target '//tensorflow_serving/servables/tensorflow:regressor' depends on deprecated target '@org_tensorflow//tensorflow/contrib/session_bundle:signature_lite': No longer supported. Switch to SavedModel immediately.
INFO: Analysed target //tensorflow_serving/model_servers:tensorflow_model_server (94 packages loaded).
INFO: Found 1 target...
ERROR: /yg/technism/tensorflow/gits/docker-tensorflow-serving-inception/src/serving/tf_bazel_cache/91410463709861b006dadd753ee4d7ae/external/curl/BUILD:28:1: C++ compilation of rule '@curl//:curl' failed (Exit 1)
In file included from external/boringssl/src/include/openssl/x509.h:70:0,
                 from external/boringssl/src/include/openssl/pem.h:66,
                 from external/boringssl/src/include/openssl/ssl.h:151,
                 from external/curl/lib/urldata.h:86,
                 from external/curl/lib/vtls/openssl.c:41:
/usr/include/openssl/ocsp.h:206:1: error: unknown type name 'OCSP_RESPID'
 DECLARE_ASN1_FUNCTIONS(OCSP_RESPID)
 ^
/usr/include/openssl/ocsp.h:206:1: error: unknown type name 'OCSP_RESPID'
 DECLARE_ASN1_FUNCTIONS(OCSP_RESPID)
 ^
/usr/include/openssl/ocsp.h:206:1: error: unknown type name 'OCSP_RESPID'
 DECLARE_ASN1_FUNCTIONS(OCSP_RESPID)
 ^
/usr/include/openssl/ocsp.h:206:1: error: unknown type name 'OCSP_RESPID'
 DECLARE_ASN1_FUNCTIONS(OCSP_RESPID)
 ^
/usr/include/openssl/ocsp.h:206:1: error: unknown type name 'OCSP_RESPID'
 DECLARE_ASN1_FUNCTIONS(OCSP_RESPID)
 ^
In file included from external/curl/lib/vtls/openssl.c:72:0:
/usr/include/openssl/ocsp.h:265:5: error: unknown type name 'OCSP_RESPID'
     OCSP_RESPID *responderId;
     ^
/usr/include/openssl/ocsp.h:397:1: error: unknown type name 'OCSP_RESPONSE'
 OCSP_RESPONSE *OCSP_sendreq_bio(BIO *b, const char *path, OCSP_REQUEST *req);
 ^
/usr/include/openssl/ocsp.h:398:1: error: unknown type name 'OCSP_REQ_CTX'
 OCSP_REQ_CTX *OCSP_sendreq_new(BIO *io, const char *path, OCSP_REQUEST *req,
 ^
/usr/include/openssl/ocsp.h:400:23: error: unknown type name 'OCSP_REQ_CTX'
 int OCSP_REQ_CTX_nbio(OCSP_REQ_CTX *rctx);
                       ^
/usr/include/openssl/ocsp.h:401:23: error: unknown type name 'OCSP_RESPONSE'
 int OCSP_sendreq_nbio(OCSP_RESPONSE **presp, OCSP_REQ_CTX *rctx);
                       ^
/usr/include/openssl/ocsp.h:401:46: error: unknown type name 'OCSP_REQ_CTX'
 int OCSP_sendreq_nbio(OCSP_RESPONSE **presp, OCSP_REQ_CTX *rctx);
                                              ^
/usr/include/openssl/ocsp.h:402:1: error: unknown type name 'OCSP_REQ_CTX'
 OCSP_REQ_CTX *OCSP_REQ_CTX_new(BIO *io, int maxline);
 ^
/usr/include/openssl/ocsp.h:403:24: error: unknown type name 'OCSP_REQ_CTX'
 void OCSP_REQ_CTX_free(OCSP_REQ_CTX *rctx);
                        ^
/usr/include/openssl/ocsp.h:404:35: error: unknown type name 'OCSP_REQ_CTX'
 void OCSP_set_max_response_length(OCSP_REQ_CTX *rctx, unsigned long len);
                                   ^
/usr/include/openssl/ocsp.h:405:22: error: unknown type name 'OCSP_REQ_CTX'
 int OCSP_REQ_CTX_i2d(OCSP_REQ_CTX *rctx, const ASN1_ITEM *it,
                      ^
/usr/include/openssl/ocsp.h:407:27: error: unknown type name 'OCSP_REQ_CTX'
 int OCSP_REQ_CTX_nbio_d2i(OCSP_REQ_CTX *rctx, ASN1_VALUE **pval,
                           ^
/usr/include/openssl/ocsp.h:409:32: error: unknown type name 'OCSP_REQ_CTX'
 BIO *OCSP_REQ_CTX_get0_mem_bio(OCSP_REQ_CTX *rctx);
                                ^
/usr/include/openssl/ocsp.h:410:22: error: unknown type name 'OCSP_REQ_CTX'
 int OCSP_REQ_CTX_i2d(OCSP_REQ_CTX *rctx, const ASN1_ITEM *it,
                      ^
/usr/include/openssl/ocsp.h:412:23: error: unknown type name 'OCSP_REQ_CTX'
 int OCSP_REQ_CTX_http(OCSP_REQ_CTX *rctx, const char *op, const char *path);
                       ^
/usr/include/openssl/ocsp.h:413:27: error: unknown type name 'OCSP_REQ_CTX'
 int OCSP_REQ_CTX_set1_req(OCSP_REQ_CTX *rctx, OCSP_REQUEST *req);
                           ^
/usr/include/openssl/ocsp.h:414:30: error: unknown type name 'OCSP_REQ_CTX'
 int OCSP_REQ_CTX_add1_header(OCSP_REQ_CTX *rctx,
                              ^
/usr/include/openssl/ocsp.h:440:26: error: unknown type name 'OCSP_RESPONSE'
 int OCSP_response_status(OCSP_RESPONSE *resp);
                          ^
/usr/include/openssl/ocsp.h:441:42: error: unknown type name 'OCSP_RESPONSE'
 OCSP_BASICRESP *OCSP_response_get1_basic(OCSP_RESPONSE *resp);
                                          ^
/usr/include/openssl/ocsp.h:474:1: error: unknown type name 'OCSP_RESPONSE'
 OCSP_RESPONSE *OCSP_response_create(int status, OCSP_BASICRESP *bs);
 ^
In file included from external/boringssl/src/include/openssl/x509.h:70:0,
                 from external/boringssl/src/include/openssl/pem.h:66,
                 from external/boringssl/src/include/openssl/ssl.h:151,
                 from external/curl/lib/urldata.h:86,
                 from external/curl/lib/vtls/openssl.c:41:
/usr/include/openssl/ocsp.h:551:1: error: unknown type name 'OCSP_RESPID'
 DECLARE_ASN1_FUNCTIONS(OCSP_RESPID)
 ^
/usr/include/openssl/ocsp.h:551:1: error: unknown type name 'OCSP_RESPID'
 DECLARE_ASN1_FUNCTIONS(OCSP_RESPID)
 ^
/usr/include/openssl/ocsp.h:551:1: error: unknown type name 'OCSP_RESPID'
 DECLARE_ASN1_FUNCTIONS(OCSP_RESPID)
 ^
/usr/include/openssl/ocsp.h:551:1: error: unknown type name 'OCSP_RESPID'
 DECLARE_ASN1_FUNCTIONS(OCSP_RESPID)
 ^
/usr/include/openssl/ocsp.h:551:1: error: unknown type name 'OCSP_RESPID'
 DECLARE_ASN1_FUNCTIONS(OCSP_RESPID)
 ^
/usr/include/openssl/ocsp.h:552:1: error: unknown type name 'OCSP_RESPONSE'
 DECLARE_ASN1_FUNCTIONS(OCSP_RESPONSE)
 ^
/usr/include/openssl/ocsp.h:552:1: error: unknown type name 'OCSP_RESPONSE'
 DECLARE_ASN1_FUNCTIONS(OCSP_RESPONSE)
 ^
/usr/include/openssl/ocsp.h:552:1: error: unknown type name 'OCSP_RESPONSE'
 DECLARE_ASN1_FUNCTIONS(OCSP_RESPONSE)
 ^
/usr/include/openssl/ocsp.h:552:1: error: unknown type name 'OCSP_RESPONSE'
 DECLARE_ASN1_FUNCTIONS(OCSP_RESPONSE)
 ^
/usr/include/openssl/ocsp.h:552:1: error: unknown type name 'OCSP_RESPONSE'
 DECLARE_ASN1_FUNCTIONS(OCSP_RESPONSE)
 ^
In file included from external/curl/lib/vtls/openssl.c:72:0:
/usr/include/openssl/ocsp.h:567:34: error: unknown type name 'OCSP_RESPONSE'
 int OCSP_RESPONSE_print(BIO *bp, OCSP_RESPONSE *o, unsigned long flags);
                                  ^
external/curl/lib/vtls/openssl.c: In function 'verifystatus':
external/curl/lib/vtls/openssl.c:1262:3: error: unknown type name 'OCSP_RESPONSE'
   OCSP_RESPONSE *rsp = NULL;
   ^
external/curl/lib/vtls/openssl.c:1267:14: warning: implicit declaration of function 'SSL_get_tlsext_status_ocsp_resp' [-Wimplicit-function-declaration]
   long len = SSL_get_tlsext_status_ocsp_resp(connssl->handle, &p);
              ^
external/curl/lib/vtls/openssl.c:1275:9: warning: implicit declaration of function 'd2i_OCSP_RESPONSE' [-Wimplicit-function-declaration]
   rsp = d2i_OCSP_RESPONSE(NULL, &p, len);
         ^
external/curl/lib/vtls/openssl.c:1275:7: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
   rsp = d2i_OCSP_RESPONSE(NULL, &p, len);
       ^
external/curl/lib/vtls/openssl.c:1282:17: warning: implicit declaration of function 'OCSP_response_status' [-Wimplicit-function-declaration]
   ocsp_status = OCSP_response_status(rsp);
                 ^
external/curl/lib/vtls/openssl.c:1290:8: warning: implicit declaration of function 'OCSP_response_get1_basic' [-Wimplicit-function-declaration]
   br = OCSP_response_get1_basic(rsp);
        ^
external/curl/lib/vtls/openssl.c:1290:6: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
   br = OCSP_response_get1_basic(rsp);
      ^
external/curl/lib/vtls/openssl.c:1374:3: warning: implicit declaration of function 'OCSP_RESPONSE_free' [-Wimplicit-function-declaration]
   OCSP_RESPONSE_free(rsp);
   ^
external/curl/lib/vtls/openssl.c: In function 'ossl_connect_step1':
external/curl/lib/vtls/openssl.c:2061:5: warning: implicit declaration of function 'SSL_set_tlsext_status_type' [-Wimplicit-function-declaration]
     SSL_set_tlsext_status_type(connssl->handle, TLSEXT_STATUSTYPE_ocsp);
     ^
external/curl/lib/vtls/openssl.c: At top level:
cc1: warning: unrecognized command line option '-Wno-string-plus-int'
Target //tensorflow_serving/model_servers:tensorflow_model_server failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 43.803s, Critical Path: 4.84s
FAILED: Build did NOT complete successfully

Bazel info:

........
bazel-bin: /home/yg/.cache/bazel/_bazel_yg/91410463709861b006dadd753ee4d7ae/execroot/tf_serving/bazel-out/local-fastbuild/bin
bazel-genfiles: /home/yg/.cache/bazel/_bazel_yg/91410463709861b006dadd753ee4d7ae/execroot/tf_serving/bazel-out/local-fastbuild/genfiles
bazel-testlogs: /home/yg/.cache/bazel/_bazel_yg/91410463709861b006dadd753ee4d7ae/execroot/tf_serving/bazel-out/local-fastbuild/testlogs
character-encoding: file.encoding = ISO-8859-1, defaultCharset = ISO-8859-1
command_log: /home/yg/.cache/bazel/_bazel_yg/91410463709861b006dadd753ee4d7ae/command.log
committed-heap-size: 405MB
execution_root: /home/yg/.cache/bazel/_bazel_yg/91410463709861b006dadd753ee4d7ae/execroot/tf_serving
gc-count: 4
gc-time: 52ms
install_base: /home/yg/.cache/bazel/_bazel_yg/install/87bd8178e17eba1d2cb9891fa4d0f450
java-home: /usr/lib/jvm/java-8-oracle/jre
java-runtime: Java(TM) SE Runtime Environment (build 1.8.0_144-b01) by Oracle Corporation
java-vm: Java HotSpot(TM) 64-Bit Server VM (build 25.144-b01, mixed mode) by Oracle Corporation
max-heap-size: 7473MB
message_log: /home/yg/.cache/bazel/_bazel_yg/91410463709861b006dadd753ee4d7ae/message.log
output_base: /home/yg/.cache/bazel/_bazel_yg/91410463709861b006dadd753ee4d7ae
output_path: /home/yg/.cache/bazel/_bazel_yg/91410463709861b006dadd753ee4d7ae/execroot/tf_serving/bazel-out
package_path: %workspace%
release: release 0.7.0
server_pid: 24510
used-heap-size: 115MB
workspace: /yg/technism/tensorflow/gits/docker-tensorflow-serving-inception/src/serving

System Info:

Linux yg-ubuntu 4.4.0-97-generic #120-Ubuntu SMP Tue Sep 19 17:28:18 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

Please let me know if any additional info needed.

Thank you very much!

gyang274 commented 7 years ago

output via verbose failures:

$ bazel --output_user_root=./tf_bazel_cache/ build -c opt //tensorflow_serving/model_servers:tensorflow_model_server --verbose_failures

DEBUG: /yg/technism/tensorflow/gits/docker-tensorflow-serving-inception/src/serving/tf_bazel_cache/91410463709861b006dadd753ee4d7ae/external/bazel_tools/tools/build_defs/pkg/pkg.bzl:197:9: @//tensorflow_serving/model_servers:tensorflow_model_server_tar: you provided a non dictionary to the pkg_tar `files` attribute. This attribute was renamed to `srcs`. Consider renaming it in your BUILD file.
WARNING: /yg/technism/tensorflow/gits/docker-tensorflow-serving-inception/src/serving/tf_bazel_cache/91410463709861b006dadd753ee4d7ae/external/org_tensorflow/tensorflow/core/BUILD:1782:1: in includes attribute of cc_library rule @org_tensorflow//tensorflow/core:framework_headers_lib: '../../../../external/nsync/public' resolves to 'external/nsync/public' not below the relative path of its package 'external/org_tensorflow/tensorflow/core'. This will be an error in the future. Since this rule was created by the macro 'cc_header_only_library', the error might have been caused by the macro implementation in /yg/technism/tensorflow/gits/docker-tensorflow-serving-inception/src/serving/tf_bazel_cache/91410463709861b006dadd753ee4d7ae/external/org_tensorflow/tensorflow/tensorflow.bzl:1048:30
WARNING: /yg/technism/tensorflow/gits/docker-tensorflow-serving-inception/src/serving/tensorflow_serving/servables/tensorflow/BUILD:120:1: in cc_library rule //tensorflow_serving/servables/tensorflow:session_bundle_factory: target '//tensorflow_serving/servables/tensorflow:session_bundle_factory' depends on deprecated target '@org_tensorflow//tensorflow/contrib/session_bundle:session_bundle': No longer supported. Switch to SavedModel immediately.
WARNING: /yg/technism/tensorflow/gits/docker-tensorflow-serving-inception/src/serving/tensorflow_serving/servables/tensorflow/BUILD:207:1: in cc_library rule //tensorflow_serving/servables/tensorflow:session_bundle_source_adapter: target '//tensorflow_serving/servables/tensorflow:session_bundle_source_adapter' depends on deprecated target '@org_tensorflow//tensorflow/contrib/session_bundle:session_bundle': No longer supported. Switch to SavedModel immediately.
WARNING: /yg/technism/tensorflow/gits/docker-tensorflow-serving-inception/src/serving/tensorflow_serving/servables/tensorflow/BUILD:412:1: in cc_library rule //tensorflow_serving/servables/tensorflow:predict_impl: target '//tensorflow_serving/servables/tensorflow:predict_impl' depends on deprecated target '@org_tensorflow//tensorflow/contrib/session_bundle:session_bundle': No longer supported. Switch to SavedModel immediately.
WARNING: /yg/technism/tensorflow/gits/docker-tensorflow-serving-inception/src/serving/tensorflow_serving/servables/tensorflow/BUILD:412:1: in cc_library rule //tensorflow_serving/servables/tensorflow:predict_impl: target '//tensorflow_serving/servables/tensorflow:predict_impl' depends on deprecated target '@org_tensorflow//tensorflow/contrib/session_bundle:signature': No longer supported. Switch to SavedModel immediately.
WARNING: /yg/technism/tensorflow/gits/docker-tensorflow-serving-inception/src/serving/tensorflow_serving/servables/tensorflow/BUILD:515:1: in cc_library rule //tensorflow_serving/servables/tensorflow:classifier: target '//tensorflow_serving/servables/tensorflow:classifier' depends on deprecated target '@org_tensorflow//tensorflow/contrib/session_bundle:session_bundle_lite': No longer supported. Switch to SavedModel immediately.
WARNING: /yg/technism/tensorflow/gits/docker-tensorflow-serving-inception/src/serving/tensorflow_serving/servables/tensorflow/BUILD:515:1: in cc_library rule //tensorflow_serving/servables/tensorflow:classifier: target '//tensorflow_serving/servables/tensorflow:classifier' depends on deprecated target '@org_tensorflow//tensorflow/contrib/session_bundle:signature_lite': No longer supported. Switch to SavedModel immediately.
WARNING: /yg/technism/tensorflow/gits/docker-tensorflow-serving-inception/src/serving/tensorflow_serving/servables/tensorflow/BUILD:600:1: in cc_library rule //tensorflow_serving/servables/tensorflow:regressor: target '//tensorflow_serving/servables/tensorflow:regressor' depends on deprecated target '@org_tensorflow//tensorflow/contrib/session_bundle:session_bundle_lite': No longer supported. Switch to SavedModel immediately.
WARNING: /yg/technism/tensorflow/gits/docker-tensorflow-serving-inception/src/serving/tensorflow_serving/servables/tensorflow/BUILD:600:1: in cc_library rule //tensorflow_serving/servables/tensorflow:regressor: target '//tensorflow_serving/servables/tensorflow:regressor' depends on deprecated target '@org_tensorflow//tensorflow/contrib/session_bundle:signature_lite': No longer supported. Switch to SavedModel immediately.
WARNING: /yg/technism/tensorflow/gits/docker-tensorflow-serving-inception/src/serving/tensorflow_serving/servables/tensorflow/BUILD:646:1: in cc_library rule //tensorflow_serving/servables/tensorflow:multi_inference: target '//tensorflow_serving/servables/tensorflow:multi_inference' depends on deprecated target '@org_tensorflow//tensorflow/contrib/session_bundle:session_bundle': No longer supported. Switch to SavedModel immediately.
WARNING: /yg/technism/tensorflow/gits/docker-tensorflow-serving-inception/src/serving/tensorflow_serving/servables/tensorflow/BUILD:581:1: in cc_library rule //tensorflow_serving/servables/tensorflow:regression_service: target '//tensorflow_serving/servables/tensorflow:regression_service' depends on deprecated target '@org_tensorflow//tensorflow/contrib/session_bundle:session_bundle': No longer supported. Switch to SavedModel immediately.
WARNING: /yg/technism/tensorflow/gits/docker-tensorflow-serving-inception/src/serving/tensorflow_serving/servables/tensorflow/BUILD:581:1: in cc_library rule //tensorflow_serving/servables/tensorflow:regression_service: target '//tensorflow_serving/servables/tensorflow:regression_service' depends on deprecated target '@org_tensorflow//tensorflow/contrib/session_bundle:signature': No longer supported. Switch to SavedModel immediately.
WARNING: /yg/technism/tensorflow/gits/docker-tensorflow-serving-inception/src/serving/tensorflow_serving/servables/tensorflow/BUILD:432:1: in cc_library rule //tensorflow_serving/servables/tensorflow:get_model_metadata_impl: target '//tensorflow_serving/servables/tensorflow:get_model_metadata_impl' depends on deprecated target '@org_tensorflow//tensorflow/contrib/session_bundle:session_bundle': No longer supported. Switch to SavedModel immediately.
WARNING: /yg/technism/tensorflow/gits/docker-tensorflow-serving-inception/src/serving/tensorflow_serving/servables/tensorflow/BUILD:562:1: in cc_library rule //tensorflow_serving/servables/tensorflow:classification_service: target '//tensorflow_serving/servables/tensorflow:classification_service' depends on deprecated target '@org_tensorflow//tensorflow/contrib/session_bundle:session_bundle': No longer supported. Switch to SavedModel immediately.
WARNING: /yg/technism/tensorflow/gits/docker-tensorflow-serving-inception/src/serving/tensorflow_serving/servables/tensorflow/BUILD:562:1: in cc_library rule //tensorflow_serving/servables/tensorflow:classification_service: target '//tensorflow_serving/servables/tensorflow:classification_service' depends on deprecated target '@org_tensorflow//tensorflow/contrib/session_bundle:signature': No longer supported. Switch to SavedModel immediately.
INFO: Analysed target //tensorflow_serving/model_servers:tensorflow_model_server (0 packages loaded).
INFO: Found 1 target...
ERROR: /yg/technism/tensorflow/gits/docker-tensorflow-serving-inception/src/serving/tf_bazel_cache/91410463709861b006dadd753ee4d7ae/external/curl/BUILD:28:1: C++ compilation of rule '@curl//:curl' failed (Exit 1): gcc failed: error executing command 
  (cd /yg/technism/tensorflow/gits/docker-tensorflow-serving-inception/src/serving/tf_bazel_cache/91410463709861b006dadd753ee4d7ae/execroot/tf_serving && \
  exec env - \
    PWD=/proc/self/cwd \
    PYTHON_BIN_PATH=/usr/bin/python \
  /home/yg/anaconda2/bin/gcc -U_FORTIFY_SOURCE -fstack-protector -Wall -B/home/yg/anaconda2/bin -B/usr/bin -Wunused-but-set-parameter -Wno-free-nonheap-object -fno-omit-frame-pointer -g0 -O2 '-D_FORTIFY_SOURCE=1' -DNDEBUG -ffunction-sections -fdata-sections -MD -MF bazel-out/local-opt/bin/external/curl/_objs/curl/external/curl/lib/vtls/openssl.d -iquote external/curl -iquote bazel-out/local-opt/genfiles/external/curl -iquote external/zlib_archive -iquote bazel-out/local-opt/genfiles/external/zlib_archive -iquote external/bazel_tools -iquote bazel-out/local-opt/genfiles/external/bazel_tools -iquote external/boringssl -iquote bazel-out/local-opt/genfiles/external/boringssl -isystem external/curl/include -isystem bazel-out/local-opt/genfiles/external/curl/include -isystem external/zlib_archive -isystem bazel-out/local-opt/genfiles/external/zlib_archive -isystem external/bazel_tools/tools/cpp/gcc3 -isystem external/boringssl/src/include -isystem bazel-out/local-opt/genfiles/external/boringssl/src/include -Iexternal/curl/lib -D_GNU_SOURCE -DHAVE_CONFIG_H -DCURL_DISABLE_FTP -DCURL_DISABLE_NTLM -DHAVE_LIBZ -DHAVE_ZLIB_H -Wno-string-plus-int '-DCURL_MAX_WRITE_SIZE=65536' -fno-canonical-system-headers -Wno-builtin-macro-redefined '-D__DATE__="redacted"' '-D__TIMESTAMP__="redacted"' '-D__TIME__="redacted"' -c external/curl/lib/vtls/openssl.c -o bazel-out/local-opt/bin/external/curl/_objs/curl/external/curl/lib/vtls/openssl.o)
In file included from external/boringssl/src/include/openssl/x509.h:70:0,
                 from external/boringssl/src/include/openssl/pem.h:66,
                 from external/boringssl/src/include/openssl/ssl.h:151,
                 from external/curl/lib/urldata.h:86,
                 from external/curl/lib/vtls/openssl.c:41:
/usr/include/openssl/ocsp.h:206:1: error: unknown type name 'OCSP_RESPID'
 DECLARE_ASN1_FUNCTIONS(OCSP_RESPID)
 ^
/usr/include/openssl/ocsp.h:206:1: error: unknown type name 'OCSP_RESPID'
 DECLARE_ASN1_FUNCTIONS(OCSP_RESPID)
 ^
/usr/include/openssl/ocsp.h:206:1: error: unknown type name 'OCSP_RESPID'
 DECLARE_ASN1_FUNCTIONS(OCSP_RESPID)
 ^
/usr/include/openssl/ocsp.h:206:1: error: unknown type name 'OCSP_RESPID'
 DECLARE_ASN1_FUNCTIONS(OCSP_RESPID)
 ^
/usr/include/openssl/ocsp.h:206:1: error: unknown type name 'OCSP_RESPID'
 DECLARE_ASN1_FUNCTIONS(OCSP_RESPID)
 ^
In file included from external/curl/lib/vtls/openssl.c:72:0:
/usr/include/openssl/ocsp.h:265:5: error: unknown type name 'OCSP_RESPID'
     OCSP_RESPID *responderId;
     ^
/usr/include/openssl/ocsp.h:397:1: error: unknown type name 'OCSP_RESPONSE'
 OCSP_RESPONSE *OCSP_sendreq_bio(BIO *b, const char *path, OCSP_REQUEST *req);
 ^
/usr/include/openssl/ocsp.h:398:1: error: unknown type name 'OCSP_REQ_CTX'
 OCSP_REQ_CTX *OCSP_sendreq_new(BIO *io, const char *path, OCSP_REQUEST *req,
 ^
/usr/include/openssl/ocsp.h:400:23: error: unknown type name 'OCSP_REQ_CTX'
 int OCSP_REQ_CTX_nbio(OCSP_REQ_CTX *rctx);
                       ^
/usr/include/openssl/ocsp.h:401:23: error: unknown type name 'OCSP_RESPONSE'
 int OCSP_sendreq_nbio(OCSP_RESPONSE **presp, OCSP_REQ_CTX *rctx);
                       ^
/usr/include/openssl/ocsp.h:401:46: error: unknown type name 'OCSP_REQ_CTX'
 int OCSP_sendreq_nbio(OCSP_RESPONSE **presp, OCSP_REQ_CTX *rctx);
                                              ^
/usr/include/openssl/ocsp.h:402:1: error: unknown type name 'OCSP_REQ_CTX'
 OCSP_REQ_CTX *OCSP_REQ_CTX_new(BIO *io, int maxline);
 ^
/usr/include/openssl/ocsp.h:403:24: error: unknown type name 'OCSP_REQ_CTX'
 void OCSP_REQ_CTX_free(OCSP_REQ_CTX *rctx);
                        ^
/usr/include/openssl/ocsp.h:404:35: error: unknown type name 'OCSP_REQ_CTX'
 void OCSP_set_max_response_length(OCSP_REQ_CTX *rctx, unsigned long len);
                                   ^
/usr/include/openssl/ocsp.h:405:22: error: unknown type name 'OCSP_REQ_CTX'
 int OCSP_REQ_CTX_i2d(OCSP_REQ_CTX *rctx, const ASN1_ITEM *it,
                      ^
/usr/include/openssl/ocsp.h:407:27: error: unknown type name 'OCSP_REQ_CTX'
 int OCSP_REQ_CTX_nbio_d2i(OCSP_REQ_CTX *rctx, ASN1_VALUE **pval,
                           ^
/usr/include/openssl/ocsp.h:409:32: error: unknown type name 'OCSP_REQ_CTX'
 BIO *OCSP_REQ_CTX_get0_mem_bio(OCSP_REQ_CTX *rctx);
                                ^
/usr/include/openssl/ocsp.h:410:22: error: unknown type name 'OCSP_REQ_CTX'
 int OCSP_REQ_CTX_i2d(OCSP_REQ_CTX *rctx, const ASN1_ITEM *it,
                      ^
/usr/include/openssl/ocsp.h:412:23: error: unknown type name 'OCSP_REQ_CTX'
 int OCSP_REQ_CTX_http(OCSP_REQ_CTX *rctx, const char *op, const char *path);
                       ^
/usr/include/openssl/ocsp.h:413:27: error: unknown type name 'OCSP_REQ_CTX'
 int OCSP_REQ_CTX_set1_req(OCSP_REQ_CTX *rctx, OCSP_REQUEST *req);
                           ^
/usr/include/openssl/ocsp.h:414:30: error: unknown type name 'OCSP_REQ_CTX'
 int OCSP_REQ_CTX_add1_header(OCSP_REQ_CTX *rctx,
                              ^
/usr/include/openssl/ocsp.h:440:26: error: unknown type name 'OCSP_RESPONSE'
 int OCSP_response_status(OCSP_RESPONSE *resp);
                          ^
/usr/include/openssl/ocsp.h:441:42: error: unknown type name 'OCSP_RESPONSE'
 OCSP_BASICRESP *OCSP_response_get1_basic(OCSP_RESPONSE *resp);
                                          ^
/usr/include/openssl/ocsp.h:474:1: error: unknown type name 'OCSP_RESPONSE'
 OCSP_RESPONSE *OCSP_response_create(int status, OCSP_BASICRESP *bs);
 ^
In file included from external/boringssl/src/include/openssl/x509.h:70:0,
                 from external/boringssl/src/include/openssl/pem.h:66,
                 from external/boringssl/src/include/openssl/ssl.h:151,
                 from external/curl/lib/urldata.h:86,
                 from external/curl/lib/vtls/openssl.c:41:
/usr/include/openssl/ocsp.h:551:1: error: unknown type name 'OCSP_RESPID'
 DECLARE_ASN1_FUNCTIONS(OCSP_RESPID)
 ^
/usr/include/openssl/ocsp.h:551:1: error: unknown type name 'OCSP_RESPID'
 DECLARE_ASN1_FUNCTIONS(OCSP_RESPID)
 ^
/usr/include/openssl/ocsp.h:551:1: error: unknown type name 'OCSP_RESPID'
 DECLARE_ASN1_FUNCTIONS(OCSP_RESPID)
 ^
/usr/include/openssl/ocsp.h:551:1: error: unknown type name 'OCSP_RESPID'
 DECLARE_ASN1_FUNCTIONS(OCSP_RESPID)
 ^
/usr/include/openssl/ocsp.h:551:1: error: unknown type name 'OCSP_RESPID'
 DECLARE_ASN1_FUNCTIONS(OCSP_RESPID)
 ^
/usr/include/openssl/ocsp.h:552:1: error: unknown type name 'OCSP_RESPONSE'
 DECLARE_ASN1_FUNCTIONS(OCSP_RESPONSE)
 ^
/usr/include/openssl/ocsp.h:552:1: error: unknown type name 'OCSP_RESPONSE'
 DECLARE_ASN1_FUNCTIONS(OCSP_RESPONSE)
 ^
/usr/include/openssl/ocsp.h:552:1: error: unknown type name 'OCSP_RESPONSE'
 DECLARE_ASN1_FUNCTIONS(OCSP_RESPONSE)
 ^
/usr/include/openssl/ocsp.h:552:1: error: unknown type name 'OCSP_RESPONSE'
 DECLARE_ASN1_FUNCTIONS(OCSP_RESPONSE)
 ^
/usr/include/openssl/ocsp.h:552:1: error: unknown type name 'OCSP_RESPONSE'
 DECLARE_ASN1_FUNCTIONS(OCSP_RESPONSE)
 ^
In file included from external/curl/lib/vtls/openssl.c:72:0:
/usr/include/openssl/ocsp.h:567:34: error: unknown type name 'OCSP_RESPONSE'
 int OCSP_RESPONSE_print(BIO *bp, OCSP_RESPONSE *o, unsigned long flags);
                                  ^
external/curl/lib/vtls/openssl.c: In function 'verifystatus':
external/curl/lib/vtls/openssl.c:1262:3: error: unknown type name 'OCSP_RESPONSE'
   OCSP_RESPONSE *rsp = NULL;
   ^
external/curl/lib/vtls/openssl.c:1267:14: warning: implicit declaration of function 'SSL_get_tlsext_status_ocsp_resp' [-Wimplicit-function-declaration]
   long len = SSL_get_tlsext_status_ocsp_resp(connssl->handle, &p);
              ^
external/curl/lib/vtls/openssl.c:1275:9: warning: implicit declaration of function 'd2i_OCSP_RESPONSE' [-Wimplicit-function-declaration]
   rsp = d2i_OCSP_RESPONSE(NULL, &p, len);
         ^
external/curl/lib/vtls/openssl.c:1275:7: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
   rsp = d2i_OCSP_RESPONSE(NULL, &p, len);
       ^
external/curl/lib/vtls/openssl.c:1282:17: warning: implicit declaration of function 'OCSP_response_status' [-Wimplicit-function-declaration]
   ocsp_status = OCSP_response_status(rsp);
                 ^
external/curl/lib/vtls/openssl.c:1290:8: warning: implicit declaration of function 'OCSP_response_get1_basic' [-Wimplicit-function-declaration]
   br = OCSP_response_get1_basic(rsp);
        ^
external/curl/lib/vtls/openssl.c:1290:6: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
   br = OCSP_response_get1_basic(rsp);
      ^
external/curl/lib/vtls/openssl.c:1374:3: warning: implicit declaration of function 'OCSP_RESPONSE_free' [-Wimplicit-function-declaration]
   OCSP_RESPONSE_free(rsp);
   ^
external/curl/lib/vtls/openssl.c: In function 'ossl_connect_step1':
external/curl/lib/vtls/openssl.c:2061:5: warning: implicit declaration of function 'SSL_set_tlsext_status_type' [-Wimplicit-function-declaration]
     SSL_set_tlsext_status_type(connssl->handle, TLSEXT_STATUSTYPE_ocsp);
     ^
external/curl/lib/vtls/openssl.c: At top level:
cc1: warning: unrecognized command line option '-Wno-string-plus-int'
Target //tensorflow_serving/model_servers:tensorflow_model_server failed to build
INFO: Elapsed time: 0.720s, Critical Path: 0.33s
FAILED: Build did NOT complete successfully
gyang274 commented 7 years ago

Found a workaround solution:

The issue comes from anaconda2's openssl, which overwrites the systems openssl. Even the anaconda2's openssl is updated. Solved by backup and remove anaconda2's openssl when build.

Note: I move anaconda's openssl back, as I suppose it is a critical dependence for several packages, such as anaconda2's ipython.