--Hi. I'm unable to run the tests. I already had TensorFlow installed.
Tonight I installed bazel via then binary installer, on Mac OS X El Capitan, 10.11.5 and MacPorts.
Then ran...
% bazel test //magenta:all
.
WARNING: /private/var/tmp/_bazel_myusername/ddd9d9dc1e025ace939596b3e248324a/external/protobuf/WORKSPACE:1: Workspace name in /private/var/tmp/_bazel_myusername/ddd9d9dc1e025ace939596b3e248324a/external/protobuf/WORKSPACE (@__main__) does not match the name given in the repository's definition (@protobuf); this will cause a build error in future versions.
INFO: Found 9 targets and 6 test targets...
ERROR: /private/var/tmp/_bazel_myusername/ddd9d9dc1e025ace939596b3e248324a/external/protobuf/BUILD:71:1: C++ compilation of rule '@protobuf//:protobuf_lite' failed: cc_wrapper.sh failed: error executing command external/local_config_cc/cc_wrapper.sh -U_FORTIFY_SOURCE '-D_FORTIFY_SOURCE=1' -fstack-protector -Wall -Wthread-safety -Wself-assign -Wno-free-nonheap-object -fno-omit-frame-pointer -g0 -O2 -DNDEBUG ... (remaining 36 argument(s) skipped): com.google.devtools.build.lib.shell.BadExitStatusException: Process exited with status 1.
cc1plus: error: unrecognized command line option "-Wthread-safety"
cc1plus: error: unrecognized command line option "-Wself-assign"
cc1plus: warning: unrecognized command line option "-Wno-free-nonheap-object"
INFO: Elapsed time: 27.281s, Critical Path: 0.22s
//magenta:basic_one_hot_encoder_test NO STATUS
//magenta:convert_midi_dir_to_note_sequences_test NO STATUS
//magenta:melodies_lib_test NO STATUS
//magenta:midi_io_test NO STATUS
//magenta:note_sequence_io_test NO STATUS
//magenta:sequence_to_melodies_test NO STATUS
Executed 0 out of 6 tests: 6 were skipped.
%
Perhaps it's a gcc version error? Most of my build tools will pull from my environment and then use the "MacPorts" compilers...
% env | /usr/bin/grep CC
CC=/opt/local/bin/gcc-mp-4.4
% env | /usr/bin/grep CXX
CXX=/opt/local/bin/g++-mp-4.4
...but I leave the default "gcc" to refer to Apple's executable:
% which gcc
/Applications/XCode.app/Contents/Developer/usr/bin/gcc
Tried it in both tcsh (my usual) and bash. Stuck.
Any suggestions?
Magenta project: magenta.tensorflow.org
To post to this group, send email to magenta...@tensorflow.org
To unsubscribe from this group, send email to magenta-discu...@tensorflow.org
---
You received this message because you are subscribed to the Google Groups "Magenta Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to magenta-discu...@tensorflow.org.
i686-apple-darwin15-gcc-apple-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5666) (dot 3) (MacPorts apple-gcc42 5666.3_15)
Build label: 0.4.2-homebrew
Build target: bazel-out/local-opt/bin/src/main/java/com/google/devtools/build/lib/bazel/BazelServer_deploy.jar
Build time: Thu Dec 8 03:14:36 2016 (1481166876)
Build timestamp: 1481166876
Build timestamp as int: 1481166876
>>>>> # @protobuf//:protobuf_lite [action 'Compiling external/protobuf/src/google/protobuf/stubs/strutil.cc [for host]']
(cd /private/var/tmp/_bazel_ew/a3f93a71053172e3592585ee68c6835c/execroot/magenta && \
exec env - \
PATH=/usr/local/bin:/opt/local/bin:/opt/local/sbin:/opt/local/bin:/opt/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin \
TMPDIR=/var/folders/9_/pp_qbzl53_5_v4vrl3sxgdbh0000gn/T/ \
external/local_config_cc/cc_wrapper.sh -U_FORTIFY_SOURCE '-D_FORTIFY_SOURCE=1' -fstack-protector -Wall -Wthread-safety -Wself-assign -fno-omit-frame-pointer -g0 -O2 -DNDEBUG -ffunction-sections -fdata-sections -g0 '-std=c++0x' -MD -MF bazel-out/host/bin/external/protobuf/_objs/protobuf_lite/external/protobuf/src/google/protobuf/stubs/strutil.d '-frandom-seed=bazel-out/host/bin/external/protobuf/_objs/protobuf_lite/external/protobuf/src/google/protobuf/stubs/strutil.o' -iquote external/protobuf -iquote bazel-out/host/genfiles/external/protobuf -iquote external/bazel_tools -iquote bazel-out/host/genfiles/external/bazel_tools -isystem external/protobuf/src -isystem bazel-out/host/genfiles/external/protobuf/src -isystemexternal/bazel_tools/tools/cpp/gcc3 -DHAVE_PTHREAD -Wall -Wwrite-strings -Woverloaded-virtual -Wno-sign-compare '-Wnoerror=unused-function' -Wno-builtin-macro-redefined '-D__DATE__="redacted"' ' D__TIMESTAMP__="redacted"' '-D__TIME__="redacted"' -c external/protobuf/src/google/protobuf/stubs/strutil.cc -o bazelout/host/bin/external/protobuf/_objs/protobuf_lite/external/protobuf/src/google/protobuf/stubs/strutil.o)
ERROR: /private/var/tmp/_bazel_ew/a3f93a71053172e3592585ee68c6835c/external/protobuf/BUILD:71:1: C++ compilation of rule '@protobuf//:protobuf_lite' failed: cc_wrapper.sh failed:
error executing command external/local_config_cc/cc_wrapper.sh -U_FORTIFY_SOURCE '-D_FORTIFY_SOURCE=1' -fstack-protector -Wall -Wthread-safety -Wself-assign -fno-omit-frame-pointer -g0 -O2 -DNDEBUG -ffunction-sections ... (remaining 35 argument(s) skipped): com.google.devtools.build.lib.shell.BadExitStatusException: Process exited with status 1.
cc1plus: error: unrecognized command line option "-Wthread-safety"
cc1plus: error: unrecognized command line option "-Wself-assign"
cc1plus: error: unrecognized command line option "-Wno-builtin-macro-redefined"
cc1plus: error: unrecognized command line option "-std=c++0x"
To unsubscribe from this group, send email to magenta-discuss+unsubscribe@tensorflow.org
---
You received this message because you are subscribed to the Google Groups "Magenta Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to magenta-discuss+unsubscribe@tensorflow.org.
--
Magenta project: magenta.tensorflow.org
To post to this group, send email to magenta...@tensorflow.org
To unsubscribe from this group, send email to magenta-discuss+unsubscribe@tensorflow.org
---
You received this message because you are subscribed to the Google Groups "Magenta Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to magenta-discuss+unsubscribe@tensorflow.org.