我在构建SyntaXnet时遇到了问题。我有一个新安装的Ubuntu 17.10,遵循“手动安装”指南:SyntaxNet。我成功安装了那里列出的所有软件包,另外我已经安装了第五版gcc并添加了它作为替代,因为tensorflow不支持下一个版本(至少它是这样说的)。配置张量流(为所有内容选择'默认'或'否')并继续进行因此错误而失败的测试:
ERROR: /home/double/.cache/bazel/_bazel_double /43ab8fb5dff609b6b3ab4eb2438eb6cc/external/protobuf_archive/BUILD:133:1: C++ compilation of rule '@protobuf_archive//:protobuf' failed (Exit 1): gcc failed: error executing command
(cd /home/double/.cache/bazel/_bazel_double/43ab8fb5dff609b6b3ab4eb2438eb6cc/execroot/__main__ && \
exec env - \
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/home/double/bin:/home/double/bin \
PWD=/proc/self/cwd \
/usr/bin/gcc -U_FORTIFY_SOURCE -fstack-protector -Wall -B/usr/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 -g0 '-std=c++0x' -g0 -MD -MF bazel-out/host/bin/external
/protobuf_archive/_objs/protobuf/external/protobuf_archive/src/google/protobuf/util/internal/json_stream_parser.d '-frandom-seed=bazel-out/host/bin/external
/protobuf_archive/_objs/protobuf/external/protobuf_archive/src/google/protobuf/util/internal/json_stream_parser.o' -iquote external/protobuf_archive -iquote
bazel-out/host/genfiles/external/protobuf_archive -iquote external/bazel_tools -iquote bazel-out/host/genfiles/external/bazel_tools -isystem external/protobuf_archive/src -isystem bazel-out/host/genfiles/external
/protobuf_archive/src -isystem external/bazel_tools/tools/cpp/gcc3 -DHAVE_PTHREAD -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare
-Wno-unused-function -fno-canonical-system-headers -Wno-builtin-macro-redefined '-D__DATE__="redacted"' '-D__TIMESTAMP__="redacted"' '-D__TIME__="redacted"' -c external/protobuf_archive/src/google/protobuf/util/internal
/json_stream_parser.cc -o bazel-out/host/bin/external/protobuf_archive/_objs/protobuf/external/protobuf_archive/src/google/protobuf/util/internal /json_stream_parser.o).
这可能与gcc的错误安装有关,但我无法理解如何修复它。我在github问题或这里找不到这个特殊问题。任何帮助将不胜感激,谢谢。