Closed RussTedrake closed 5 years ago
Trying a clean build now. I don't recall seeing this locally before.
So far, I cannot reproduce this on Mojave or High Sierra. Can you re-run bazel with the --subcommands
build option?
it throws extremely verbose errors on many build artifacts. here is one.
SUBCOMMAND: # //systems/plants/spring_mass_system:spring_mass_system_test_dsym [action 'Executing genrule //systems/plants/spring_mass_system:spring_mass_system_test_dsym']
(cd /private/var/tmp/_bazel_russt/9c100c86c1cc4c543d01c45f7a63d5c6/execroot/drake && \
exec env - \
CCACHE_DISABLE=1 \
PATH=/bin:/usr/bin \
/bin/bash -c 'source external/bazel_tools/tools/genrule/genrule-setup.sh; touch bazel-out/darwin-opt/bin/systems/plants/spring_mass_system/spring_mass_system_test.dSYM')
SUBCOMMAND: # //systems/framework:system_symbolic_inspector_test [action 'Compiling systems/framework/test/system_symbolic_inspector_test.cc']
(cd /private/var/tmp/_bazel_russt/9c100c86c1cc4c543d01c45f7a63d5c6/execroot/drake && \
exec env - \
CCACHE_DISABLE=1 \
PATH=/bin:/usr/bin \
PWD=/proc/self/cwd \
external/local_config_cc/cc_wrapper.sh -U_FORTIFY_SOURCE -fstack-protector -Wall -Wthread-safety -Wself-assign -fcolor-diagnostics -fno-omit-frame-pointer -g0 -O2 '-D_FORTIFY_SOURCE=1' -DNDEBUG -ffunction-sections -fdata-sections '-std=c++0x' -MD -MF bazel-out/darwin-opt/bin/systems/framework/_objs/system_symbolic_inspector_test/system_symbolic_inspector_test.pic.d '-frandom-seed=bazel-out/darwin-opt/bin/systems/framework/_objs/system_symbolic_inspector_test/system_symbolic_inspector_test.pic.o' -fPIC -DEIGEN_MPL2_ONLY '-DFMT_HEADER_ONLY=1' '-DFMT_NO_FMT_STRING_ALIAS=1' -DHAVE_SPDLOG -DSPDLOG_FMT_EXTERNAL -DCCD_STATIC_DEFINE -DFCL_STATIC_DEFINE -DFCL_HAVE_OCTOMAP '-DGTEST_DONT_DEFINE_FAIL=1' '-DGTEST_DONT_DEFINE_SUCCEED=1' '-DGTEST_DONT_DEFINE_TEST=1' -iquote . -iquote bazel-out/darwin-opt/genfiles -iquote bazel-out/darwin-opt/bin -iquote external/eigen -iquote bazel-out/darwin-opt/genfiles/external/eigen -iquote bazel-out/darwin-opt/bin/external/eigen -iquote external/bazel_tools -iquote bazel-out/darwin-opt/genfiles/external/bazel_tools -iquote bazel-out/darwin-opt/bin/external/bazel_tools -iquote external/fmt -iquote bazel-out/darwin-opt/genfiles/external/fmt -iquote bazel-out/darwin-opt/bin/external/fmt -iquote external/spdlog -iquote bazel-out/darwin-opt/genfiles/external/spdlog -iquote bazel-out/darwin-opt/bin/external/spdlog -iquote external/stx -iquote bazel-out/darwin-opt/genfiles/external/stx -iquote bazel-out/darwin-opt/bin/external/stx -iquote external/spruce -iquote bazel-out/darwin-opt/genfiles/external/spruce -iquote bazel-out/darwin-opt/bin/external/spruce -iquote external/fcl -iquote bazel-out/darwin-opt/genfiles/external/fcl -iquote bazel-out/darwin-opt/bin/external/fcl -iquote external/ccd -iquote bazel-out/darwin-opt/genfiles/external/ccd -iquote bazel-out/darwin-opt/bin/external/ccd -iquote external/octomap -iquote bazel-out/darwin-opt/genfiles/external/octomap -iquote bazel-out/darwin-opt/bin/external/octomap -iquote external/tinyobjloader -iquote bazel-out/darwin-opt/genfiles/external/tinyobjloader -iquote bazel-out/darwin-opt/bin/external/tinyobjloader -iquote external/gflags -iquote bazel-out/darwin-opt/genfiles/external/gflags -iquote bazel-out/darwin-opt/bin/external/gflags -iquote external/gtest -iquote bazel-out/darwin-opt/genfiles/external/gtest -iquote bazel-out/darwin-opt/bin/external/gtest -Ibazel-out/darwin-opt/bin/systems/framework/_virtual_includes/leaf_system -Ibazel-out/darwin-opt/bin/systems/framework/_virtual_includes/leaf_context -Ibazel-out/darwin-opt/bin/systems/framework/_virtual_includes/cache_and_dependency_tracker -Ibazel-out/darwin-opt/bin/systems/framework/_virtual_includes/framework_common -Ibazel-out/darwin-opt/bin/common/_virtual_includes/type_safe_index -Ibazel-out/darwin-opt/bin/common/_virtual_includes/essential -Ibazel-out/darwin-opt/bin/common/_virtual_includes/hash -Ibazel-out/darwin-opt/bin/common/_virtual_includes/nice_type_name -Ibazel-out/darwin-opt/bin/systems/framework/_virtual_includes/value -Ibazel-out/darwin-opt/bin/systems/framework/_virtual_includes/vector -Ibazel-out/darwin-opt/bin/common/_virtual_includes/autodiff -Ibazel-out/darwin-opt/bin/common/_virtual_includes/cond -Ibazel-out/darwin-opt/bin/common/_virtual_includes/double -Ibazel-out/darwin-opt/bin/common/_virtual_includes/dummy_value -Ibazel-out/darwin-opt/bin/common/_virtual_includes/default_scalars -Ibazel-out/darwin-opt/bin/common/_virtual_includes/symbolic -Ibazel-out/darwin-opt/bin/common/_virtual_includes/drake_bool -Ibazel-out/darwin-opt/bin/common/_virtual_includes/extract_double -Ibazel-out/darwin-opt/bin/common/_virtual_includes/polynomial -Ibazel-out/darwin-opt/bin/math/_virtual_includes/matrix_util -Ibazel-out/darwin-opt/bin/common/_virtual_includes/_symbolic_private_headers_impl -Ibazel-out/darwin-opt/bin/common/_virtual_includes/copyable_unique_ptr -Ibazel-out/darwin-opt/bin/common/_virtual_includes/is_cloneable -Ibazel-out/darwin-opt/bin/common/_virtual_includes/reset_on_copy -Ibazel-out/darwin-opt/bin/common/_virtual_includes/unused -Ibazel-out/darwin-opt/bin/systems/framework/_virtual_includes/context -Ibazel-out/darwin-opt/bin/systems/framework/_virtual_includes/context_base -Ibazel-out/darwin-opt/bin/systems/framework/_virtual_includes/parameters -Ibazel-out/darwin-opt/bin/systems/framework/_virtual_includes/abstract_values -Ibazel-out/darwin-opt/bin/systems/framework/_virtual_includes/discrete_values -Ibazel-out/darwin-opt/bin/systems/framework/_virtual_includes/state -Ibazel-out/darwin-opt/bin/systems/framework/_virtual_includes/continuous_state -Ibazel-out/darwin-opt/bin/common/_virtual_includes/pointer_cast -Ibazel-out/darwin-opt/bin/systems/framework/_virtual_includes/leaf_output_port -Ibazel-out/darwin-opt/bin/systems/framework/_virtual_includes/output_port -Ibazel-out/darwin-opt/bin/systems/framework/_virtual_includes/output_port_base -Ibazel-out/darwin-opt/bin/systems/framework/_virtual_includes/system_base -Ibazel-out/darwin-opt/bin/systems/framework/_virtual_includes/cache_entry -Ibazel-out/darwin-opt/bin/systems/framework/_virtual_includes/input_port_base -Ibazel-out/darwin-opt/bin/systems/framework/_virtual_includes/model_values -Ibazel-out/darwin-opt/bin/systems/framework/_virtual_includes/system -Ibazel-out/darwin-opt/bin/systems/framework/_virtual_includes/event_collection -Ibazel-out/darwin-opt/bin/systems/framework/_virtual_includes/input_port -Ibazel-out/darwin-opt/bin/systems/framework/_virtual_includes/system_constraint -Ibazel-out/darwin-opt/bin/systems/framework/_virtual_includes/system_output -Ibazel-out/darwin-opt/bin/systems/framework/_virtual_includes/value_checker -Ibazel-out/darwin-opt/bin/systems/framework/_virtual_includes/system_scalar_converter -Ibazel-out/darwin-opt/bin/systems/framework/_virtual_includes/system_symbolic_inspector -Ibazel-out/darwin-opt/bin/examples/pendulum/_virtual_includes/pendulum_plant -Ibazel-out/darwin-opt/bin/examples/pendulum/_virtual_includes/pendulum_vector_types -Ibazel-out/darwin-opt/bin/geometry/_virtual_includes/scene_graph -Ibazel-out/darwin-opt/bin/geometry/_virtual_includes/geometry_context -Ibazel-out/darwin-opt/bin/geometry/_virtual_includes/geometry_state -Ibazel-out/darwin-opt/bin/geometry/_virtual_includes/frame_kinematics -Ibazel-out/darwin-opt/bin/geometry/_virtual_includes/geometry_ids -Ibazel-out/darwin-opt/bin/geometry/_virtual_includes/identifier -Ibazel-out/darwin-opt/bin/geometry/_virtual_includes/utilities -Ibazel-out/darwin-opt/bin/common/_virtual_includes/common -Ibazel-out/darwin-opt/bin/common/_virtual_includes/autodiffxd_make_coherent -Ibazel-out/darwin-opt/bin/common/_virtual_includes/drake_path -Ibazel-out/darwin-opt/bin/common/_virtual_includes/find_resource -Ibazel-out/darwin-opt/bin/common/_virtual_includes/drake_marker_shared_library -Ibazel-out/darwin-opt/bin/common/_virtual_includes/is_approx_equal_abstol -Ibazel-out/darwin-opt/bin/common/_virtual_includes/is_less_than_comparable -Ibazel-out/darwin-opt/bin/common/_virtual_includes/reset_after_move -Ibazel-out/darwin-opt/bin/common/_virtual_includes/scoped_singleton -Ibazel-out/darwin-opt/bin/common/_virtual_includes/sorted_pair -Ibazel-out/darwin-opt/bin/common/_virtual_includes/sorted_vectors_have_intersection -Ibazel-out/darwin-opt/bin/common/_virtual_includes/symbolic_decompose -Ibazel-out/darwin-opt/bin/common/_virtual_includes/temp_directory -Ibazel-out/darwin-opt/bin/geometry/_virtual_includes/geometry_frame -Ibazel-out/darwin-opt/bin/geometry/_virtual_includes/geometry_index -Ibazel-out/darwin-opt/bin/geometry/_virtual_includes/geometry_instance -Ibazel-out/darwin-opt/bin/geometry/_virtual_includes/materials -Ibazel-out/darwin-opt/bin/geometry/_virtual_includes/shape_specification -Ibazel-out/darwin-opt/bin/geometry/_virtual_includes/geometry_set -Ibazel-out/darwin-opt/bin/geometry/_virtual_includes/internal_frame -Ibazel-out/darwin-opt/bin/geometry/_virtual_includes/internal_geometry -Ibazel-out/darwin-opt/bin/geometry/_virtual_includes/geometry_roles -Ibazel-out/darwin-opt/bin/geometry/_virtual_includes/geometry_properties -Ibazel-out/darwin-opt/bin/geometry/_virtual_includes/proximity_engine -Ibazel-out/darwin-opt/bin/geometry/query_results/_virtual_includes/penetration_as_point_pair -Ibazel-out/darwin-opt/bin/geometry/query_results/_virtual_includes/signed_distance_pair -Ibazel-out/darwin-opt/bin/geometry/query_results/_virtual_includes/signed_distance_to_point -Ibazel-out/darwin-opt/bin/geometry/_virtual_includes/scene_graph_inspector -Ibazel-out/darwin-opt/bin/systems/framework/_virtual_includes/framework -Ibazel-out/darwin-opt/bin/systems/framework/_virtual_includes/diagram -Ibazel-out/darwin-opt/bin/systems/framework/_virtual_includes/diagram_context -Ibazel-out/darwin-opt/bin/systems/framework/_virtual_includes/diagram_continuous_state -Ibazel-out/darwin-opt/bin/systems/framework/_virtual_includes/diagram_discrete_values -Ibazel-out/darwin-opt/bin/systems/framework/_virtual_includes/diagram_output_port -Ibazel-out/darwin-opt/bin/systems/framework/_virtual_includes/diagram_builder -Ibazel-out/darwin-opt/bin/systems/framework/_virtual_includes/single_output_vector_source -Ibazel-out/darwin-opt/bin/systems/framework/_virtual_includes/vector_system -Ibazel-out/darwin-opt/bin/systems/rendering/_virtual_includes/pose_bundle -Ibazel-out/darwin-opt/bin/systems/rendering/_virtual_includes/frame_velocity -Ibazel-out/darwin-opt/bin/multibody/multibody_tree/math/_virtual_includes/spatial_velocity -Ibazel-out/darwin-opt/bin/multibody/multibody_tree/math/_virtual_includes/spatial_vector -Ibazel-out/darwin-opt/bin/math/_virtual_includes/geometric_transform -Ibazel-out/darwin-opt/bin/common/test_utilities/_virtual_includes/drake_cc_googletest_main -Ibazel-out/darwin-opt/bin/common/_virtual_includes/text_logging_gflags -isystem external/eigen -isystem bazel-out/darwin-opt/genfiles/external/eigen -isystem bazel-out/darwin-opt/bin/external/eigen -isystem external/fmt/include -isystem bazel-out/darwin-opt/genfiles/external/fmt/include -isystem bazel-out/darwin-opt/bin/external/fmt/include -isystem external/spdlog/include -isystem bazel-out/darwin-opt/genfiles/external/spdlog/include -isystem bazel-out/darwin-opt/bin/external/spdlog/include -isystem external/stx/include -isystem bazel-out/darwin-opt/genfiles/external/stx/include -isystem bazel-out/darwin-opt/bin/external/stx/include -isystem external/spruce -isystem bazel-out/darwin-opt/genfiles/external/spruce -isystem bazel-out/darwin-opt/bin/external/spruce -isystem external/fcl/include -isystem bazel-out/darwin-opt/genfiles/external/fcl/include -isystem bazel-out/darwin-opt/bin/external/fcl/include -isystem external/ccd/src -isystem bazel-out/darwin-opt/genfiles/external/ccd/src -isystem bazel-out/darwin-opt/bin/external/ccd/src -isystem external/octomap/octomap/include -isystem bazel-out/darwin-opt/genfiles/external/octomap/octomap/include -isystem bazel-out/darwin-opt/bin/external/octomap/octomap/include -isystem external/tinyobjloader -isystem bazel-out/darwin-opt/genfiles/external/tinyobjloader -isystem bazel-out/darwin-opt/bin/external/tinyobjloader -isystem external/gflags/include/_usr_local_Cellar_gflags_2.2.2_include -isystem bazel-out/darwin-opt/genfiles/external/gflags/include/_usr_local_Cellar_gflags_2.2.2_include -isystem bazel-out/darwin-opt/bin/external/gflags/include/_usr_local_Cellar_gflags_2.2.2_include -isystem external/gtest/googlemock -isystem bazel-out/darwin-opt/genfiles/external/gtest/googlemock -isystem bazel-out/darwin-opt/bin/external/gtest/googlemock -isystem external/gtest/googlemock/include -isystem bazel-out/darwin-opt/genfiles/external/gtest/googlemock/include -isystem bazel-out/darwin-opt/bin/external/gtest/googlemock/include -isystem external/gtest/googletest -isystem bazel-out/darwin-opt/genfiles/external/gtest/googletest -isystem bazel-out/darwin-opt/bin/external/gtest/googletest -isystem external/gtest/googletest/include -isystem bazel-out/darwin-opt/genfiles/external/gtest/googletest/include -isystem bazel-out/darwin-opt/bin/external/gtest/googletest/include '-std=c++14' -fdiagnostics-color -fdiagnostics-color '-Werror=all' '-Werror=deprecated' '-Werror=deprecated-declarations' '-Werror=ignored-qualifiers' '-Werror=old-style-cast' '-Werror=overloaded-virtual' '-Werror=shadow' '-Werror=absolute-value' '-Werror=inconsistent-missing-override' '-Werror=non-virtual-dtor' '-Werror=return-stack-address' '-Werror=sign-compare' -no-canonical-prefixes -Wno-builtin-macro-redefined '-D__DATE__="redacted"' '-D__TIMESTAMP__="redacted"' '-D__TIME__="redacted"' -c systems/framework/test/system_symbolic_inspector_test.cc -o bazel-out/darwin-opt/bin/systems/framework/_objs/system_symbolic_inspector_test/system_symbolic_inspector_test.pic.o)
ERROR: /Users/russt/drake/examples/pr2/BUILD.bazel:35:1: Couldn't build file examples/pr2/_objs/load_pr2_simplified_test/load_pr2_simplified_test.pic.o: C++ compilation of rule '//examples/pr2:load_pr2_simplified_test' failed (Exit 1) cc_wrapper.sh failed: error executing command external/local_config_cc/cc_wrapper.sh -U_FORTIFY_SOURCE -fstack-protector -Wall -Wthread-safety -Wself-assign -fcolor-diagnostics -fno-omit-frame-pointer -g0 -O2 '-D_FORTIFY_SOURCE=1' -DNDEBUG ... (remaining 314 argument(s) skipped)
Use --sandbox_debug to see verbose messages from the sandbox
In file included from examples/pr2/test/load_pr2_simplified_test.cc:4:
In file included from bazel-out/darwin-opt/bin/attic/multibody/parsers/_virtual_includes/parsing/drake/multibody/parsers/urdf_parser.h:7:
/usr/local/include/tinyxml2.h:1687:52: error: use of old-style cast [-Werror,-Wold-style-cast]
XMLError Parse( const char* xml, size_t nBytes=(size_t)(-1) );
^ ~~~~
1 error generated.
This is Bazel 0.20.0 (1543588705), Clang 1000.11.45.5, macOS 10.14.1 (18B75)?
FYI, I've tested it on macsim
which has the same environment as Jamie shared above. I was able to run the following without an error:
bazel clean --expunge
bazel test //examples/... -c dbg
FWIW, brew info tinyxml2
gives:
tinyxml2: stable 7.0.1 (bottled), HEAD
Improved tinyxml (in memory efficiency and size)
http://grinninglizard.com/tinyxml2
/usr/local/Cellar/tinyxml2/7.0.1 (11 files, 155.2KB) *
Poured from bottle on 2018-11-19 at 17:23:24
From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/tinyxml2.rb
==> Dependencies
Build: cmake ✔
==> Options
--HEAD
Install HEAD version
==> Analytics
install: 1,365 (30 days), 2,785 (90 days), 10,174 (365 days)
install_on_request: 561 (30 days), 1,039 (90 days), 3,517 (365 days)
build_error: 0 (30 days)
Mac 10.14.1
mbp13-rtedrake:drake russt$ clang --version
Apple LLVM version 10.0.0 (clang-1000.11.45.5)
Target: x86_64-apple-darwin18.2.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
mbp13-rtedrake:drake russt$ bazel version
WARNING: The following rc files are no longer being read, please transfer their contents or import their path into one of the standard rc files:
/Users/russt/.bazelrc
WARNING: --batch mode is deprecated. Please instead explicitly shut down your Bazel server using the command "bazel shutdown".
INFO: Invocation ID: c1ce2042-c3c4-4e5d-be19-dcaae480b63f
Build label: 0.20.0
Build target: bazel-out/darwin-opt/bin/src/main/java/com/google/devtools/build/lib/bazel/BazelServer_deploy.jar
Build time: Fri Nov 30 14:38:25 2018 (1543588705)
Build timestamp: 1543588705
Build timestamp as int: 1543588705
mbp13-rtedrake:sheets russt$ brew info tinyxml2
tinyxml2: stable 7.0.1 (bottled), HEAD
Improved tinyxml (in memory efficiency and size)
http://grinninglizard.com/tinyxml2
/usr/local/Cellar/tinyxml2/7.0.1 (11 files, 155.2KB) *
Poured from bottle on 2018-11-29 at 05:14:40
From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/tinyxml2.rb
==> Dependencies
Build: cmake ✔
==> Options
--HEAD
Install HEAD version
==> Analytics
install: 1,379 (30 days), 2,800 (90 days), 10,172 (365 days)
install_on_request: 571 (30 days), 1,049 (90 days), 3,524 (365 days)
build_error: 0 (30 days)
What is the output of cat bazel-drake/external/tinyxml/BUILD.bazel
? The slightly suspicious issue is that your build is looking for /usr/local/include/tinyxml2.h
instead of the target of bazel-drake/external/tinyxml/include/_usr_local_opt_tinyxml_include/tinyxml2.h
.
And just be 100% sure, this is master and there are definitely no --copt
or --cxxopt
added in any .bazelrc
files?
mbp13-rtedrake:sheets russt$ more ~/.bazelrc
build --keep_going
build --cxxopt -fdiagnostics-color
build --python_path=/usr/local/bin/python2
fetch --repository_cache /Users/russt/.cache/externals
query --repository_cache /Users/russt/.cache/externals
build --repository_cache /Users/russt/.cache/externals
build --disk_cache=/Users/russt/.cache/bazel-cas
test --disk_cache=/Users/russt/.cache/bazel-cas
run --disk_cache=/Users/russt/.cache/bazel-cas
build --experimental_strict_action_env
test --experimental_strict_action_env
mbp13-rtedrake:sheets russt$ more ~/drake/user.bazelrc
import /Users/russt/.bazelrc
build --config gurobi
build --config snopt
build --config mosek
#build --define=NO_IPOPT=ON
test --test_tag_filters=#-gurobi,-mosek
Remove these lines as a first check:
fetch --repository_cache /Users/russt/.cache/externals
query --repository_cache /Users/russt/.cache/externals
build --repository_cache /Users/russt/.cache/externals
build --disk_cache=/Users/russt/.cache/bazel-cas
test --disk_cache=/Users/russt/.cache/bazel-cas
run --disk_cache=/Users/russt/.cache/bazel-cas
build --experimental_strict_action_env
test --experimental_strict_action_env
and yes, it's master
removing the --experimental_strict_action_env
seems to resolve it for me. Not sure exactly where I picked that up (it must have been recommended to me at some point)?
Happy to reopen this if we want to make sure we understand it better. But will close it for now. Thanks!
We are not at a stage where --experimental_strict_action_env
will work on Mac. At the very least we need --action_env=PATH=/usr/local/bin:/usr/bin:/bin
or similar, and that may well have affected pkg-config
.
Looks like I might have closed it prematurely.
mbp13-rtedrake:drake russt$ bazel clean --expunge
WARNING: Duplicate rc file: /Users/russt/Dropbox (MIT)/.bazelrc.mac is read multiple times, it is a standard rc file location but must have been unnecessarilly imported earlier.
INFO: Invocation ID: 1192ace2-5b39-4f69-9ebc-0d36a3543e3c
INFO: Starting clean.
mbp13-rtedrake:drake russt$ bazel test //solvers:gurobi_solver_test
WARNING: Duplicate rc file: /Users/russt/Dropbox (MIT)/.bazelrc.mac is read multiple times, it is a standard rc file location but must have been unnecessarilly imported earlier.
Starting local Bazel server and connecting to it...
INFO: Invocation ID: 696994d8-ae17-4d48-a63c-4905f02d9439
INFO: Analysed target //solvers:gurobi_solver_test (43 packages loaded, 2501 targets configured).
INFO: Found 1 test target...
ERROR: /Users/russt/drake/solvers/BUILD.bazel:813:1: C++ compilation of rule '//solvers:nlopt_solver' failed (Exit 1) cc_wrapper.sh failed: error executing command external/local_config_cc/cc_wrapper.sh -U_FORTIFY_SOURCE -fstack-protector -Wall -Wthread-safety -Wself-assign -fcolor-diagnostics -fno-omit-frame-pointer -g0 -O2 '-D_FORTIFY_SOURCE=1' -DNDEBUG ... (remaining 149 argument(s) skipped)
Use --sandbox_debug to see verbose messages from the sandbox
In file included from solvers/nlopt_solver.cc:10:
/usr/local/include/nlopt.hpp:40:42: error: use of old-style cast [-Werror,-Wold-style-cast]
return nlopt_get_initial_step(opt, (const double *) NULL, dx);
^ ~~~~
/usr/local/include/nlopt.hpp:158:24: error: use of old-style cast [-Werror,-Wold-style-cast]
myfunc_data *d = (myfunc_data *) p;
^ ~
/usr/local/include/nlopt.hpp:166:24: error: use of old-style cast [-Werror,-Wold-style-cast]
myfunc_data *d = (myfunc_data *) p;
^ ~
/usr/local/include/nlopt.hpp:180:9: error: use of old-style cast [-Werror,-Wold-style-cast]
return (void*) dnew;
^ ~~~~
4 errors generated.
Target //solvers:gurobi_solver_test failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 90.077s, Critical Path: 10.49s
INFO: 29 processes: 23 remote cache hit, 6 darwin-sandbox.
FAILED: Build did NOT complete successfully
FAILED: Build did NOT complete successfully
What is in /Users/russt/Dropbox (MIT)/.bazelrc.mac
?
And do we still have the repository and disk caches enabled?
And again with announce_rc
mbp13-rtedrake:drake russt$ bazel test //solvers:gurobi_solver_test --announce_rc
WARNING: Duplicate rc file: /Users/russt/Dropbox (MIT)/.bazelrc.mac is read multiple times, it is a standard rc file location but must have been unnecessarilly imported earlier.
INFO: Invocation ID: 68e28bc2-cd5b-4cd2-9119-608143ef33e6
INFO: Options provided by the client:
Inherited 'common' options: --isatty=1 --terminal_columns=80
INFO: Reading rc options for 'test' from /Users/russt/drake/tools/cc_toolchain/bazel.rc:
Inherited 'build' options: --action_env=CCACHE_DISABLE=1 --cxxopt=-std=c++14 --host_cxxopt=-std=c++14
INFO: Reading rc options for 'test' from /Users/russt/drake/tools/bazel.rc:
Inherited 'build' options: -c opt --force_pic --strip=never --strict_system_includes
INFO: Reading rc options for 'test' from /Users/russt/Dropbox (MIT)/.bazelrc.mac:
Inherited 'build' options: --cxxopt -fdiagnostics-color --python_path=/usr/local/bin/python2 --repository_cache /Users/russt/.cache/externals --disk_cache=/Users/russt/.cache/bazel-cas
INFO: Reading rc options for 'test' from /Users/russt/Dropbox (MIT)/.bazelrc.drake.mac:
Inherited 'build' options: --config gurobi --config snopt --config mosek
INFO: Reading rc options for 'test' from /Users/russt/Dropbox (MIT)/.bazelrc.mac:
Inherited 'build' options: --cxxopt -fdiagnostics-color --python_path=/usr/local/bin/python2 --repository_cache /Users/russt/.cache/externals --disk_cache=/Users/russt/.cache/bazel-cas
INFO: Reading rc options for 'test' from /Users/russt/drake/tools/bazel.rc:
'test' options: --test_output=errors --test_summary=terse --test_tag_filters=-gurobi,-mosek,-snopt --test_env=DISPLAY --test_env=GRB_LICENSE_FILE --test_env=MOSEKLM_LICENSE_FILE
INFO: Reading rc options for 'test' from /Users/russt/Dropbox (MIT)/.bazelrc.mac:
'test' options: --disk_cache=/Users/russt/.cache/bazel-cas
INFO: Reading rc options for 'test' from /Users/russt/Dropbox (MIT)/.bazelrc.drake.mac:
'test' options: --test_tag_filters=
INFO: Reading rc options for 'test' from /Users/russt/Dropbox (MIT)/.bazelrc.mac:
'test' options: --disk_cache=/Users/russt/.cache/bazel-cas
INFO: Found applicable config definition build:gurobi in file /Users/russt/drake/tools/bazel.rc: --define=WITH_GUROBI=ON
INFO: Found applicable config definition build:snopt in file /Users/russt/drake/tools/bazel.rc: --define=WITH_SNOPT=ON
INFO: Found applicable config definition build:mosek in file /Users/russt/drake/tools/bazel.rc: --define=WITH_MOSEK=ON
INFO: Analysed target //solvers:gurobi_solver_test (0 packages loaded, 0 targets configured).
INFO: Found 1 test target...
INFO: From Linking math/libeigen_sparse_triplet.a:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: file: bazel-out/darwin-opt/bin/math/_objs/eigen_sparse_triplet/eigen_sparse_triplet.pic.o has no symbols
warning: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: warning for library: bazel-out/darwin-opt/bin/math/libeigen_sparse_triplet.a the table of contents is empty (no object file members in the library define global symbols)
INFO: From Linking common/libdouble.a:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: file: bazel-out/darwin-opt/bin/common/_objs/double/double_overloads.pic.o has no symbols
warning: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: warning for library: bazel-out/darwin-opt/bin/common/libdouble.a the table of contents is empty (no object file members in the library define global symbols)
INFO: From Linking common/libsymbolic.a:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: file: bazel-out/darwin-opt/bin/common/_objs/symbolic/symbolic.pic.o has no symbols
INFO: From Linking common/libcond.a:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: file: bazel-out/darwin-opt/bin/common/_objs/cond/cond.pic.o has no symbols
warning: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: warning for library: bazel-out/darwin-opt/bin/common/libcond.a the table of contents is empty (no object file members in the library define global symbols)
INFO: From Linking math/libautodiff.a:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: file: bazel-out/darwin-opt/bin/math/_objs/autodiff/autodiff.pic.o has no symbols
warning: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: warning for library: bazel-out/darwin-opt/bin/math/libautodiff.a the table of contents is empty (no object file members in the library define global symbols)
INFO: From Linking solvers/libmathematical_program_api.a:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: file: bazel-out/darwin-opt/bin/solvers/_objs/mathematical_program_api/mathematical_program_solver_interface.pic.o has no symbols
INFO: From Linking math/libmatrix_util.a:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: file: bazel-out/darwin-opt/bin/math/_objs/matrix_util/matrix_util.pic.o has no symbols
warning: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: warning for library: bazel-out/darwin-opt/bin/math/libmatrix_util.a the table of contents is empty (no object file members in the library define global symbols)
ERROR: /Users/russt/drake/solvers/BUILD.bazel:813:1: C++ compilation of rule '//solvers:nlopt_solver' failed (Exit 1) cc_wrapper.sh failed: error executing command external/local_config_cc/cc_wrapper.sh -U_FORTIFY_SOURCE -fstack-protector -Wall -Wthread-safety -Wself-assign -fcolor-diagnostics -fno-omit-frame-pointer -g0 -O2 '-D_FORTIFY_SOURCE=1' -DNDEBUG ... (remaining 149 argument(s) skipped)
Use --sandbox_debug to see verbose messages from the sandbox
In file included from solvers/nlopt_solver.cc:10:
/usr/local/include/nlopt.hpp:40:42: error: use of old-style cast [-Werror,-Wold-style-cast]
return nlopt_get_initial_step(opt, (const double *) NULL, dx);
^ ~~~~
/usr/local/include/nlopt.hpp:158:24: error: use of old-style cast [-Werror,-Wold-style-cast]
myfunc_data *d = (myfunc_data *) p;
^ ~
/usr/local/include/nlopt.hpp:166:24: error: use of old-style cast [-Werror,-Wold-style-cast]
myfunc_data *d = (myfunc_data *) p;
^ ~
/usr/local/include/nlopt.hpp:180:9: error: use of old-style cast [-Werror,-Wold-style-cast]
return (void*) dnew;
^ ~~~~
4 errors generated.
Target //solvers:gurobi_solver_test failed to build
Use --verbose_failures to see the command lines of failed build steps.
INFO: Elapsed time: 83.570s, Critical Path: 37.19s
INFO: 357 processes: 290 remote cache hit, 67 darwin-sandbox.
FAILED: Build did NOT complete successfully
FAILED: Build did NOT complete successfully
per slack, in addition to disabling --experimental_strict_action_env
, I had to remove BAZEL_USE_CPP_ONLY_TOOLCHAIN=1
which was originally recommended to me in #9347 . probably won't get symbols in clion again, but happy to at least be building successfully.
will reopen if there are more issues.
on a fresh xcode install on a new mac.
pretty sure mac is broken until it's resolved?