问题: 使用Swig为toco.i生成python代码的步骤失败,并且我得到的唯一错误消息是“退出1”:
ERROR: /home/cbr4/dev/tensorflow_build/tensorflow-1.7.1/tensorflow/contrib/lite/toco/python/BUILD:22:1: SWIGing tensorflow/contrib/lite/toco/python/toco.i failed (Exit 1): swig failed: error executing command
(cd /users/cbr4/.cache/bazel/_bazel_cbr4/375e09be30bf6373233712bfa58ebeed/execroot/org_tensorflow && \
exec env - \
bazel-out/host/bin/external/swig/swig -c++ -python -module tensorflow_wrap_toco -o bazel-out/k8-py3-opt/bin/tensorflow/contrib/lite/toco/python/tensorflow_wrap_toco.cc -outdir bazel-out/k8-py3-opt/bin/tensorflow/contrib/lite/toco/python -Iexternal/eigen_archive -Ibazel-out/k8-py3-opt/genfiles -Iexternal/protobuf_archive -Iexternal/swig -Ibazel-out/k8-py3-opt/genfiles/external/local_config_python -Iexternal/nsync -Iexternal/gemmlowp -Iexternal/com_google_absl -Iexternal/jpeg -Iexternal/com_googlesource_code_re2 -Iexternal/zlib_archive -Iexternal/flatbuffers -Iexternal/png_archive -Iexternal/highwayhash -Iexternal/gif_archive -Ibazel-out/k8-py3-opt/genfiles/external/jpeg -Ibazel-out/k8-py3-opt/genfiles/external/png_archive -Iexternal/arm_neon_2_x86_sse -Iexternal/farmhash_archive -Iexternal/swig/Lib -Iexternal/swig/Lib/cffi -Iexternal/swig/Lib/python -Iexternal/swig/Lib/std -Iexternal/swig/Lib/typemaps tensorflow/contrib/lite/toco/python/toco.i)
Target //tensorflow/tools/pip_package:build_pip_package failed to build
问题:
我假设有一些全局构建脚本定义了swig的命令行选项,有人知道它在哪里吗?我想看看是否可以使用-v
标志执行swig并弄清楚问题出在哪里。
注意::我尝试构建tf-1.9.0(使用bazel-0.10.0),但是对于interpreter_wrapper.i
遇到了类似的错误提示。我没有昨天在这个系统上成功建立了tf-1.4.1,没有问题。
环境: