2016-10-06 1 views
0

Ubuntu 16.04construire tensorflow échouer à 6 octobre 2016

gcc 5.4.0

java 1.8.0_91

Bazel 0.3.1 (télécharger les versions, ne sont pas à partir du source, car il construire FAIL)

je modifier le fichier de configuration suivre la discussion here et here parce que cela fonctionne pour ./configure.

Je clone le dernier code et configure sans GPU. Voici mon instruction de construction dans le répertoire racine de tensorflow

bazel build -c opt //tensorflow/tools/pip_package:build_pip_package 

Le journal des erreurs:

ERROR: /home/gt/.cache/bazel/_bazel_gt/3d5d29ec73796bda2fc5b2dffed26f47/external/protobuf/BUILD:333:1: Linking of rule '@protobuf//:protoc' failed: gcc failed: error executing command /usr/bin/gcc -o bazel-out/host/bin/external/protobuf/protoc -Wl,-no-as-needed -B/usr/bin -B/usr/bin -pass-exit-codes '-Wl,--build-id=md5' '-Wl,--hash-style=gnu' -Wl,-S -Wl,--gc-sections ... (remaining 1 argument(s) skipped): com.google.devtools.build.lib.shell.BadExitStatusException: Process exited with status 1. 
bazel-out/host/bin/external/protobuf/_objs/protoc/external/protobuf/src/google/protobuf/compiler/main.o: In function `main': 
main.cc:(.text.startup.main+0x2db): undefined reference to `vtable for google::protobuf::compiler::php::Generator' 
main.cc:(.text.startup.main+0x642): undefined reference to `vtable for google::protobuf::compiler::php::Generator' 
main.cc:(.text.startup.main+0x740): undefined reference to `vtable for google::protobuf::compiler::php::Generator' 
collect2: error: ld returned 1 exit status 
Target //tensorflow/tools/pip_package:build_pip_package failed to build 
Use --verbose_failures to see the command lines of failed build steps. 

Répondre

0

Ce bogue dans protobuf, nous l'avons signalé déjà il y a deux semaines. Voir https://github.com/google/protobuf/issues/2133

+0

Merci beaucoup. Comment les développeurs vérifient-ils le code-run-result sans le construire? –