models icon indicating copy to clipboard operation
models copied to clipboard

Error installing on OS X w/ Homebrew GCC 5.3.0

Open pdarragh opened this issue 10 years ago • 8 comments

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?

pdarragh avatar May 13 '16 17:05 pdarragh

I got exactly the same error installing with macports, FWIW.

gwachob avatar May 13 '16 17:05 gwachob

I got the same error with gcc 4.9.2

takahiroanno avatar May 14 '16 07:05 takahiroanno

@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 avatar May 16 '16 15:05 pdarragh

@pdarragh my gcc is from Xcode.

takahiroanno avatar May 18 '16 00:05 takahiroanno

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?

djweiss avatar May 18 '16 14:05 djweiss

anyone resolve the problem?

licheng5625 avatar May 23 '16 14:05 licheng5625

@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.

pdarragh avatar May 23 '16 19:05 pdarragh

This looks like the same issue as tensorflow/tensorflow#336 and bazelbuild/bazel#649.

calberti avatar Jun 22 '16 15:06 calberti