Error installing on OS X w/ Homebrew GCC 5.3.0
Following installation instructions on OS X 10.11.4. GCC is from homebrew, version 5.3.0.
This happened:
$ bazel test --linkopt=-headerpad_max_install_names syntaxnet/... util/utf8/...
...........
INFO: Found 65 targets and 12 test targets...
ERROR: /Users/pdarragh/Programming/Projects/tensorflow-models/syntaxnet/third_party/utf/BUILD:3:1: C++ compilation of rule '//third_party/utf:utf' failed: osx_cc_wrapper.sh failed: error executing command external/local_config_cc/osx_cc_wrapper.sh -U_FORTIFY_SOURCE '-D_FORTIFY_SOURCE=1' -fstack-protector -Wall -Wthread-safety -Wself-assign -Wunused-but-set-parameter -Wno-free-nonheap-object ... (remaining 36 argument(s) skipped): com.google.devtools.build.lib.shell.BadExitStatusException: Process exited with status 1.
gcc: error: unrecognized command line option '-Wthread-safety'
gcc: error: unrecognized command line option '-Wself-assign'
INFO: Elapsed time: 111.199s, Critical Path: 0.37s
//syntaxnet:arc_standard_transitions_test NO STATUS
//syntaxnet:beam_reader_ops_test NO STATUS
//syntaxnet:graph_builder_test NO STATUS
//syntaxnet:lexicon_builder_test NO STATUS
//syntaxnet:parser_features_test NO STATUS
//syntaxnet:parser_trainer_test NO STATUS
//syntaxnet:reader_ops_test NO STATUS
//syntaxnet:sentence_features_test NO STATUS
//syntaxnet:shared_store_test NO STATUS
//syntaxnet:tagger_transitions_test NO STATUS
//syntaxnet:text_formats_test NO STATUS
//util/utf8:unicodetext_unittest NO STATUS
Executed 0 out of 12 tests: 12 were skipped.
Looked at file syntaxnet/bazel-syntaxnet/external/local_config_cc/osx_cc_wrapper.sh after attempting to install, since the error seems to indicate the problem happened there, but I can't see anything wrong with it. Attempted changing the gcc call to use OS X's gcc (line 56), but that had no effect on the error.
Any ideas?
I got exactly the same error installing with macports, FWIW.
I got the same error with gcc 4.9.2
@takahiroanno is your gcc from Apple via Xcode or is it Homebrew/MacPorts or what? (Just trying to see what patterns we can find to make the debugging easier for the developers.)
@pdarragh my gcc is from Xcode.
I tested this on OSX using 10.11.4, with Xcode installed to provide gcc, but python etc. from homebrew. Has anyone with this issue been able to resolve it?
anyone resolve the problem?
@djweiss @licheng5625 I have not been able to resolve the problem, no. Can't say that I put a ton more work into it, to be fair.
This looks like the same issue as tensorflow/tensorflow#336 and bazelbuild/bazel#649.