RobotLocomotion / drake

Model-based design and verification for robotics.
https://drake.mit.edu
Other
3.33k stars 1.26k forks source link

'lcmtypes/bot_core/planar_lidar_t.hpp' file not found #2330

Closed jamiesnape closed 8 years ago

jamiesnape commented 8 years ago

Transient error on OS X builds:

/Users/yosemite/workspace/mac-clang-continuous-matlab-open-source/drake/systems/plants/test/lidarTest.cpp:3:10: fatal error: 'lcmtypes/bot_core/planar_lidar_t.hpp' file not found
#include "lcmtypes/bot_core/planar_lidar_t.hpp"
         ^
1 error generated.
RussTedrake commented 8 years ago

I have seen this before if the dependencies are not quite correct on parallel builds. The auto-generated file doesn’t get built before the code that depends on it...

liangfok commented 8 years ago

I believe I know the fix for this and will issue a PR shortly.

jamiesnape commented 8 years ago

Same problem in the latest continuous build: https://drake-jenkins.csail.mit.edu/job/mac-clang-continuous-debug/168/consoleText https://drake-cdash.csail.mit.edu/viewBuildError.php?onlydeltap&buildid=20700

liangfok commented 8 years ago

Searching for the Problem

Looking at the mac-clang-continuous-debug log file, here are the places that mention "planar_lidar_t":

On line 12,955, Java code is generated:

12955 [ 10%] Generating lcmgen/lcmtypes/bot_core/planar_lidar_t.java
12956 cd /Users/yosemite/workspace/mac-clang-continuous-debug/pod-build/externals/bot_core_lcmtypes/lcmgen/lcmtypes && /Users/yosemite/workspace/mac-clang-continuous-debu      g/build/bin/lcm-gen --jdefaultpkg lcmtypes --java /Users/yosemite/workspace/mac-clang-continuous-debug/externals/bot_core_lcmtypes/lcmtypes/bot_core_planar_lidar_t.      lcm

On line 38,574, lidarTest.cpp fails to include planar_lidar_t.hpp:

38574 /Users/yosemite/workspace/mac-clang-continuous-debug/drake/systems/plants/test/lidarTest.cpp:8:10: fatal error: 'lcmtypes/bot_core/planar_lidar_t.hpp' file not foun      d
38575 #include "lcmtypes/bot_core/planar_lidar_t.hpp"
38576          ^
38577 1 error generated.

On line 46,073, lidarTest.cpp again fails to include planar_lidar_t.hpp:

46073 Preprocessing /Users/yosemite/workspace/mac-clang-continuous-debug/drake/systems/plants/test/testRigidBodyInertialMeasurementUnit.m.../Users/yosemite/workspace/mac-      clang-continuous-debug/drake/systems/plants/test/lidarTest.cpp:8:10: fatal error: 'lcmtypes/bot_core/planar_lidar_t.hpp' file not found
46074 #include "lcmtypes/bot_core/planar_lidar_t.hpp"
46075          ^
46076 1 error generated.

It's strange how only the Java code is generated. Let's do a search for which LCM message type C++ header files are generated:

$ cat -n logfile.txt | grep "Generating lcmgen" | grep hpp
 21752  [  0%] Generating lcmgen/lcmtypes/drake/lcmt_body_motion_data.hpp
 21759  [  1%] Generating lcmgen/lcmtypes/drake/lcmt_body_wrench_data.hpp
 21765  [  1%] Generating lcmgen/lcmtypes/drake/lcmt_drake_signal.hpp
 21771  [  4%] Generating lcmgen/lcmtypes/drake/lcmt_driving_command_t.hpp
 21777  [  4%] Generating lcmgen/lcmtypes/drake/lcmt_euler_floating_joint_state_t.hpp
 21783  [  4%] Generating lcmgen/lcmtypes/drake/lcmt_foot_flag.hpp
 21789  [  5%] Generating lcmgen/lcmtypes/drake/lcmt_force_torque.hpp
 21795  [  7%] Generating lcmgen/lcmtypes/drake/lcmt_joint_pd_override.hpp
 21801  [  7%] Generating lcmgen/lcmtypes/drake/lcmt_piecewise_polynomial.hpp
 21805  [  7%] Generating lcmgen/lcmtypes/drake/lcmt_polynomial.hpp
 21811  [  9%] Generating lcmgen/lcmtypes/drake/lcmt_polynomial_matrix.hpp
 21817  [  9%] Generating lcmgen/lcmtypes/drake/lcmt_qp_controller_input.hpp
 21823  [ 10%] Generating lcmgen/lcmtypes/drake/lcmt_quadrotor_input_t.hpp
 21829  [ 10%] Generating lcmgen/lcmtypes/drake/lcmt_quadrotor_output_t.hpp
 21833  [ 12%] Generating lcmgen/lcmtypes/drake/lcmt_robot_state.hpp
 21839  [ 12%] Generating lcmgen/lcmtypes/drake/lcmt_scope_data.hpp
 21845  [ 13%] Generating lcmgen/lcmtypes/drake/lcmt_simple_car_config_t.hpp
 21852  [ 14%] Generating lcmgen/lcmtypes/drake/lcmt_simple_car_state_t.hpp
 21858  [ 15%] Generating lcmgen/lcmtypes/drake/lcmt_simulation_command.hpp
 21862  [ 15%] Generating lcmgen/lcmtypes/drake/lcmt_support_data.hpp
 21866  [ 15%] Generating lcmgen/lcmtypes/drake/lcmt_viewer_command.hpp
 21870  [ 17%] Generating lcmgen/lcmtypes/drake/lcmt_viewer_draw.hpp
 21874  [ 17%] Generating lcmgen/lcmtypes/drake/lcmt_viewer_geometry_data.hpp
 21880  [ 17%] Generating lcmgen/lcmtypes/drake/lcmt_viewer_link_data.hpp
 21884  [ 17%] Generating lcmgen/lcmtypes/drake/lcmt_viewer_load_robot.hpp
 21888  [ 19%] Generating lcmgen/lcmtypes/drake/lcmt_whole_body_data.hpp
 21892  [ 19%] Generating lcmgen/lcmtypes/drake/lcmt_zmp_com_observer_state.hpp
 21896  [ 19%] Generating lcmgen/lcmtypes/drake/lcmt_zmp_data.hpp

28 LCM C++ message types are generated. Their entries in the log file is in the 20K range. All of them are in the lcmtypes/drake directory. This is not the same directory that holds planar_lidar_t, which is in [drake distro]/externals/bot_core_lcmtypes, as shown below:

$ cd [drake distro]/externals/bot_core_lcmtypes
$ find . -name "*planar_lidar_t*"
./lcmtypes/bot_core_planar_lidar_t.lcm

Thus, there appears to be a missing dependency between building bot_core_lcmtypes and drake.

Looking in [drake-distro]/CMakeLists.txt, I see the following line specifying that bot_core_lcmtypes is a dependency of drake.

set(drake_dependencies cmake eigen googletest lcm bot_core_lcmtypes libbot bullet octomap snopt gurobi swig_matlab swigmake yaml_cpp nlopt)

I think this is sufficient to ensure that the LCM messages defined within bot_core_lcmtypes is generated before Drake is compiled.

I'm now looking at a successful execution of the same configuration: https://drake-jenkins.csail.mit.edu/job/mac-clang-continuous-debug/169/consoleText

From the successful execution, I see the logs indicating the generation of planar_lidar_t.hpp. It occurs on line 13,240:

13240 [ 50%] Generating lcmgen/lcmtypes/bot_core/planar_lidar_t.hpp
13241 cd /Users/yosemite/workspace/mac-clang-continuous-debug/pod-build/externals/bot_core_lcmtypes/lcmgen/lcmtypes && /Users/yosemite/workspace/mac-clang-continuous-debu      g/build/bin/lcm-gen --cpp /Users/yosemite/workspace/mac-clang-continuous-debug/externals/bot_core_lcmtypes/lcmtypes/bot_core_planar_lidar_t.lcm --cpp-include lcmtyp      es

Here's a command showing that the C++ LCM messages for bot_core wasn't generated in the failure case:

$ cat -n ~/Downloads/log168.txt | grep "Generating lcmgen/lcmtypes/bot_core"
 12892  [  1%] Generating lcmgen/lcmtypes/bot_core/vector_3d_t.java
 12909  [  1%] Generating lcmgen/lcmtypes/bot_core/atlas_command_t.java
 12912  [  2%] Generating lcmgen/lcmtypes/bot_core/force_torque_t.java
 12916  [  3%] Generating lcmgen/lcmtypes/bot_core/gps_data_t.java
 12919  [  3%] Generating lcmgen/lcmtypes/bot_core/gps_satellite_info_list_t.java
 12921  [  4%] Generating lcmgen/lcmtypes/bot_core/gps_satellite_info_t.java
 12924  [  4%] Generating lcmgen/lcmtypes/bot_core/image_metadata_t.java
 12928  [  5%] Generating lcmgen/lcmtypes/bot_core/image_sync_t.java
 12930  [  6%] Generating lcmgen/lcmtypes/bot_core/image_t.java
 12934  [  6%] Generating lcmgen/lcmtypes/bot_core/images_t.java
 12939  [  7%] Generating lcmgen/lcmtypes/bot_core/ins_t.java
 12943  [  7%] Generating lcmgen/lcmtypes/bot_core/joint_angles_t.java
 12946  [  8%] Generating lcmgen/lcmtypes/bot_core/joint_state_t.java
 12949  [  9%] Generating lcmgen/lcmtypes/bot_core/kvh_raw_imu_batch_t.java
 12952  [  9%] Generating lcmgen/lcmtypes/bot_core/kvh_raw_imu_t.java
 12955  [ 10%] Generating lcmgen/lcmtypes/bot_core/planar_lidar_t.java
 12961  [ 10%] Generating lcmgen/lcmtypes/bot_core/pointcloud2_t.java
 12965  [ 11%] Generating lcmgen/lcmtypes/bot_core/pointcloud_t.java
 12969  [ 12%] Generating lcmgen/lcmtypes/bot_core/pointfield_t.java
 12973  [ 12%] Generating lcmgen/lcmtypes/bot_core/pose_t.java
 12976  [ 13%] Generating lcmgen/lcmtypes/bot_core/position_3d_t.java
 12981  [ 13%] Generating lcmgen/lcmtypes/bot_core/quaternion_t.java
 12988  [ 14%] Generating lcmgen/lcmtypes/bot_core/raw_t.java
 12991  [ 15%] Generating lcmgen/lcmtypes/bot_core/rigid_transform_t.java
 12996  [ 15%] Generating lcmgen/lcmtypes/bot_core/robot_state_t.java
 12999  [ 16%] Generating lcmgen/lcmtypes/bot_core/robot_urdf_t.java
 13003  [ 16%] Generating lcmgen/lcmtypes/bot_core/sensor_status_t.java
 13006  [ 17%] Generating lcmgen/lcmtypes/bot_core/six_axis_force_torque_array_t.java
 13010  [ 18%] Generating lcmgen/lcmtypes/bot_core/six_axis_force_torque_t.java
 13014  [ 18%] Generating lcmgen/lcmtypes/bot_core/system_status_t.java
 13017  [ 19%] Generating lcmgen/lcmtypes/bot_core/twist_t.java
 13020  [ 19%] Generating lcmgen/lcmtypes/bot_core/utime_t.java

Compare the above to the successful case:

$ cat -n ~/Downloads/log169.txt | grep "Generating lcmgen/lcmtypes/bot_core"
 12991  checking dependency style of clang++... [  1%] Generating lcmgen/lcmtypes/bot_core/vector_3d_t.java
 12993  [  1%] Generating lcmgen/lcmtypes/bot_core/atlas_command_t.java
 12995  [  2%] Generating lcmgen/lcmtypes/bot_core/force_torque_t.java
 12997  [  3%] Generating lcmgen/lcmtypes/bot_core/gps_data_t.java
 12999  [  3%] Generating lcmgen/lcmtypes/bot_core/gps_satellite_info_list_t.java
 13001  [  4%] Generating lcmgen/lcmtypes/bot_core/gps_satellite_info_t.java
 13003  [  4%] Generating lcmgen/lcmtypes/bot_core/image_metadata_t.java
 13007  [  5%] Generating lcmgen/lcmtypes/bot_core/image_sync_t.java
 13009  [  6%] Generating lcmgen/lcmtypes/bot_core/image_t.java
 13011  [  6%] Generating lcmgen/lcmtypes/bot_core/images_t.java
 13013  [  7%] Generating lcmgen/lcmtypes/bot_core/ins_t.java
 13015  [  7%] Generating lcmgen/lcmtypes/bot_core/joint_angles_t.java
 13017  [  8%] Generating lcmgen/lcmtypes/bot_core/joint_state_t.java
 13019  [  9%] Generating lcmgen/lcmtypes/bot_core/kvh_raw_imu_batch_t.java
 13021  [  9%] Generating lcmgen/lcmtypes/bot_core/kvh_raw_imu_t.java
 13023  [ 10%] Generating lcmgen/lcmtypes/bot_core/planar_lidar_t.java
 13025  [ 10%] Generating lcmgen/lcmtypes/bot_core/pointcloud2_t.java
 13027  [ 11%] Generating lcmgen/lcmtypes/bot_core/pointcloud_t.java
 13030  [ 12%] Generating lcmgen/lcmtypes/bot_core/pointfield_t.java
 13032  [ 12%] Generating lcmgen/lcmtypes/bot_core/pose_t.java
 13034  [ 13%] Generating lcmgen/lcmtypes/bot_core/position_3d_t.java
 13036  [ 13%] Generating lcmgen/lcmtypes/bot_core/quaternion_t.java
 13038  [ 14%] Generating lcmgen/lcmtypes/bot_core/raw_t.java
 13040  [ 15%] Generating lcmgen/lcmtypes/bot_core/rigid_transform_t.java
 13042  [ 15%] Generating lcmgen/lcmtypes/bot_core/robot_state_t.java
 13044  [ 16%] Generating lcmgen/lcmtypes/bot_core/robot_urdf_t.java
 13046  [ 16%] Generating lcmgen/lcmtypes/bot_core/sensor_status_t.java
 13049  [ 17%] Generating lcmgen/lcmtypes/bot_core/six_axis_force_torque_array_t.java
 13051  [ 18%] Generating lcmgen/lcmtypes/bot_core/six_axis_force_torque_t.java
 13053  [ 18%] Generating lcmgen/lcmtypes/bot_core/system_status_t.java
 13055  [ 19%] Generating lcmgen/lcmtypes/bot_core/twist_t.java
 13057  [ 19%] Generating lcmgen/lcmtypes/bot_core/utime_t.java
 13124  [ 22%] Generating lcmgen/lcmtypes/bot_core/atlas_command_t.py
 13126  [ 22%] Generating lcmgen/lcmtypes/bot_core/force_torque_t.py
 13128  [ 23%] Generating lcmgen/lcmtypes/bot_core/gps_data_t.py
 13131  [ 24%] Generating lcmgen/lcmtypes/bot_core/gps_satellite_info_list_t.py
 13133  [ 24%] Generating lcmgen/lcmtypes/bot_core/gps_satellite_info_t.py
 13136  [ 25%] Generating lcmgen/lcmtypes/bot_core/image_metadata_t.py
 13138  [ 25%] Generating lcmgen/lcmtypes/bot_core/image_sync_t.py
 13143  checking for a sed that does not truncate output... [ 26%] Generating lcmgen/lcmtypes/bot_core/image_t.py
 13146  [ 27%] Generating lcmgen/lcmtypes/bot_core/images_t.py
 13149  [ 27%] Generating lcmgen/lcmtypes/bot_core/ins_t.py
 13152  [ 28%] Generating lcmgen/lcmtypes/bot_core/joint_angles_t.py
 13154  [ 28%] Generating lcmgen/lcmtypes/bot_core/joint_state_t.py
 13156  [ 29%] Generating lcmgen/lcmtypes/bot_core/kvh_raw_imu_batch_t.py
 13158  [ 30%] Generating lcmgen/lcmtypes/bot_core/kvh_raw_imu_t.py
 13160  [ 30%] Generating lcmgen/lcmtypes/bot_core/planar_lidar_t.py
 13163  [ 31%] Generating lcmgen/lcmtypes/bot_core/pointcloud2_t.py
 13165  [ 31%] Generating lcmgen/lcmtypes/bot_core/pointcloud_t.py
 13167  [ 32%] Generating lcmgen/lcmtypes/bot_core/pointfield_t.py
 13169  [ 33%] Generating lcmgen/lcmtypes/bot_core/pose_t.py
 13171  [ 33%] Generating lcmgen/lcmtypes/bot_core/position_3d_t.py
 13174  [ 34%] Generating lcmgen/lcmtypes/bot_core/quaternion_t.py
 13176  [ 34%] Generating lcmgen/lcmtypes/bot_core/raw_t.py
 13178  [ 35%] Generating lcmgen/lcmtypes/bot_core/rigid_transform_t.py
 13180  [ 36%] Generating lcmgen/lcmtypes/bot_core/robot_state_t.py
 13183  [ 36%] Generating lcmgen/lcmtypes/bot_core/robot_urdf_t.py
 13185  [ 37%] Generating lcmgen/lcmtypes/bot_core/sensor_status_t.py
 13188  [ 37%] Generating lcmgen/lcmtypes/bot_core/six_axis_force_torque_array_t.py
 13190  [ 38%] Generating lcmgen/lcmtypes/bot_core/six_axis_force_torque_t.py
 13192  [ 39%] Generating lcmgen/lcmtypes/bot_core/system_status_t.py
 13195  [ 39%] Generating lcmgen/lcmtypes/bot_core/twist_t.py
 13197  [ 40%] Generating lcmgen/lcmtypes/bot_core/utime_t.py
 13199  [ 41%] Generating lcmgen/lcmtypes/bot_core/vector_3d_t.py
 13208  [ 41%] Generating lcmgen/lcmtypes/bot_core/atlas_command_t.hpp
 13210  [ 42%] Generating lcmgen/lcmtypes/bot_core/force_torque_t.hpp
 13212  [ 43%] Generating lcmgen/lcmtypes/bot_core/gps_data_t.hpp
 13214  [ 43%] Generating lcmgen/lcmtypes/bot_core/gps_satellite_info_list_t.hpp
 13217  [ 44%] Generating lcmgen/lcmtypes/bot_core/gps_satellite_info_t.hpp
 13219  [ 44%] Generating lcmgen/lcmtypes/bot_core/image_metadata_t.hpp
 13222  [ 45%] Generating lcmgen/lcmtypes/bot_core/image_sync_t.hpp
 13224  [ 46%] Generating lcmgen/lcmtypes/bot_core/image_t.hpp
 13226  [ 46%] Generating lcmgen/lcmtypes/bot_core/images_t.hpp
 13228  [ 47%] Generating lcmgen/lcmtypes/bot_core/ins_t.hpp
 13230  [ 47%] Generating lcmgen/lcmtypes/bot_core/joint_angles_t.hpp
 13232  [ 48%] Generating lcmgen/lcmtypes/bot_core/joint_state_t.hpp
 13234  [ 49%] Generating lcmgen/lcmtypes/bot_core/kvh_raw_imu_batch_t.hpp
 13236  [ 49%] Generating lcmgen/lcmtypes/bot_core/kvh_raw_imu_t.hpp
 13240  [ 50%] Generating lcmgen/lcmtypes/bot_core/planar_lidar_t.hpp
 13253  [ 50%] Generating lcmgen/lcmtypes/bot_core/pointcloud2_t.hpp
 13255  checking for boostlib >= 1.20.0... [ 51%] Generating lcmgen/lcmtypes/bot_core/pointcloud_t.hpp
 13257  [ 52%] Generating lcmgen/lcmtypes/bot_core/pointfield_t.hpp
 13260  [ 52%] Generating lcmgen/lcmtypes/bot_core/pose_t.hpp
 13272  checking for dlopen in -ldl... [ 53%] Generating lcmgen/lcmtypes/bot_core/position_3d_t.hpp
 13274  [ 53%] Generating lcmgen/lcmtypes/bot_core/quaternion_t.hpp
 13276  [ 54%] Generating lcmgen/lcmtypes/bot_core/raw_t.hpp
 13280  [ 55%] Generating lcmgen/lcmtypes/bot_core/rigid_transform_t.hpp
 13282  [ 55%] Generating lcmgen/lcmtypes/bot_core/robot_state_t.hpp
 13284  [ 56%] Generating lcmgen/lcmtypes/bot_core/robot_urdf_t.hpp
 13287  [ 56%] Generating lcmgen/lcmtypes/bot_core/sensor_status_t.hpp
 13290  checking for library containing t_open... [ 57%] Generating lcmgen/lcmtypes/bot_core/six_axis_force_torque_array_t.hpp
 13292  [ 58%] Generating lcmgen/lcmtypes/bot_core/six_axis_force_torque_t.hpp
 13295  [ 58%] Generating lcmgen/lcmtypes/bot_core/system_status_t.hpp
 13297  [ 59%] Generating lcmgen/lcmtypes/bot_core/twist_t.hpp
 13299  [ 59%] Generating lcmgen/lcmtypes/bot_core/utime_t.hpp
 13301  [ 60%] Generating lcmgen/lcmtypes/bot_core/vector_3d_t.hpp
 13306  [ 60%] Generating lcmgen/lcmtypes/bot_core_vector_3d_t.c, lcmgen/lcmtypes/bot_core_vector_3d_t.h
 13309  checking for library containing socket... [ 61%] Generating lcmgen/lcmtypes/bot_core_atlas_command_t.c, lcmgen/lcmtypes/bot_core_atlas_command_t.h
 13311  [ 61%] Generating lcmgen/lcmtypes/bot_core_force_torque_t.c, lcmgen/lcmtypes/bot_core_force_torque_t.h
 13315  [ 62%] Generating lcmgen/lcmtypes/bot_core_gps_data_t.c, lcmgen/lcmtypes/bot_core_gps_data_t.h
 13318  checking for swill_init in -lswill... [ 62%] Generating lcmgen/lcmtypes/bot_core_gps_satellite_info_list_t.c, lcmgen/lcmtypes/bot_core_gps_satellite_info_list_t.h
 13320  [ 63%] Generating lcmgen/lcmtypes/bot_core_gps_satellite_info_t.c, lcmgen/lcmtypes/bot_core_gps_satellite_info_t.h
 13322  [ 64%] Generating lcmgen/lcmtypes/bot_core_image_metadata_t.c, lcmgen/lcmtypes/bot_core_image_metadata_t.h
 13324  [ 64%] Generating lcmgen/lcmtypes/bot_core_image_sync_t.c, lcmgen/lcmtypes/bot_core_image_sync_t.h
 13326  [ 65%] Generating lcmgen/lcmtypes/bot_core_image_t.c, lcmgen/lcmtypes/bot_core_image_t.h
 13329  checking for main in -lieee... [ 65%] Generating lcmgen/lcmtypes/bot_core_images_t.c, lcmgen/lcmtypes/bot_core_images_t.h
 13331  [ 66%] Generating lcmgen/lcmtypes/bot_core_ins_t.c, lcmgen/lcmtypes/bot_core_ins_t.h
 13333  [ 67%] Generating lcmgen/lcmtypes/bot_core_joint_angles_t.c, lcmgen/lcmtypes/bot_core_joint_angles_t.h
 13336  [ 67%] Generating lcmgen/lcmtypes/bot_core_joint_state_t.c, lcmgen/lcmtypes/bot_core_joint_state_t.h
 13338  [ 68%] Generating lcmgen/lcmtypes/bot_core_kvh_raw_imu_batch_t.c, lcmgen/lcmtypes/bot_core_kvh_raw_imu_batch_t.h
 13342  checking for crypt in -lcrypt... [ 69%] Generating lcmgen/lcmtypes/bot_core_kvh_raw_imu_t.c, lcmgen/lcmtypes/bot_core_kvh_raw_imu_t.h
 13344  [ 69%] Generating lcmgen/lcmtypes/bot_core_planar_lidar_t.c, lcmgen/lcmtypes/bot_core_planar_lidar_t.h
 13346  [ 70%] Generating lcmgen/lcmtypes/bot_core_pointcloud2_t.c, lcmgen/lcmtypes/bot_core_pointcloud2_t.h
 13348  [ 70%] Generating lcmgen/lcmtypes/bot_core_pointcloud_t.c, lcmgen/lcmtypes/bot_core_pointcloud_t.h
 13350  [ 71%] Generating lcmgen/lcmtypes/bot_core_pointfield_t.c, lcmgen/lcmtypes/bot_core_pointfield_t.h
 13354  checking for Tcl configuration... [ 72%] Generating lcmgen/lcmtypes/bot_core_pose_t.c, lcmgen/lcmtypes/bot_core_pose_t.h
 13356  [ 72%] Generating lcmgen/lcmtypes/bot_core_position_3d_t.c, lcmgen/lcmtypes/bot_core_position_3d_t.h
 13362  checking for python major version number... [ 73%] Generating lcmgen/lcmtypes/bot_core_quaternion_t.c, lcmgen/lcmtypes/bot_core_quaternion_t.h
 13365  checking for Python os.name... [ 73%] Generating lcmgen/lcmtypes/bot_core_raw_t.c, lcmgen/lcmtypes/bot_core_raw_t.h
 13367  [ 74%] Generating lcmgen/lcmtypes/bot_core_rigid_transform_t.c, lcmgen/lcmtypes/bot_core_rigid_transform_t.h
 13371  [ 75%] Generating lcmgen/lcmtypes/bot_core_robot_state_t.c, lcmgen/lcmtypes/bot_core_robot_state_t.h
 13374  checking for Python exec-prefix... [ 75%] Generating lcmgen/lcmtypes/bot_core_robot_urdf_t.c, lcmgen/lcmtypes/bot_core_robot_urdf_t.h
 13377  checking for Python version... [ 76%] Generating lcmgen/lcmtypes/bot_core_sensor_status_t.c, lcmgen/lcmtypes/bot_core_sensor_status_t.h
 13380  checking for Python lib dir... [ 76%] Generating lcmgen/lcmtypes/bot_core_six_axis_force_torque_array_t.c, lcmgen/lcmtypes/bot_core_six_axis_force_torque_array_t.h
 13382  [ 77%] Generating lcmgen/lcmtypes/bot_core_six_axis_force_torque_t.c, lcmgen/lcmtypes/bot_core_six_axis_force_torque_t.h
 13401  checking for python major version number... [ 78%] Generating lcmgen/lcmtypes/bot_core_system_status_t.c, lcmgen/lcmtypes/bot_core_system_status_t.h
 13404  checking for pep8... [ 78%] Generating lcmgen/lcmtypes/bot_core_twist_t.c, lcmgen/lcmtypes/bot_core_twist_t.h
 13409  checking for Perl5 library... [ 79%] Generating lcmgen/lcmtypes/bot_core_utime_t.c, lcmgen/lcmtypes/bot_core_utime_t.h

I now don't think it's a race condition, but rather a failure somewhere in the build system that resulted in the C++ LCM headers not being generated.

Found the Problem

In the failure mode log file, I found the following:

13157 [ 21%] Creating Java archive lcmtypes_bot2-core.jar
13158 cd /Users/yosemite/workspace/mac-clang-continuous-debug/pod-build/externals/bot_core_lcmtypes/CMakeFiles/lcmtypes_bot2-core.dir && /Library/Java/JavaVirtualMachines      /jdk1.8.0_92.jdk/Contents/Home/bin/jar -cf /Users/yosemite/workspace/mac-clang-continuous-debug/pod-build/externals/bot_core_lcmtypes/lcmtypes_bot2-core.jar @java_c      lass_filelist
13159 checking build system type... [  4%] Building CXX object src/LinearMath/CMakeFiles/LinearMath.dir/btVector3.o
13160 'c' flag requires manifest or input files to be specified!
13161 Usage: jar {ctxui}[vfmn0PMe] [jar-file] [manifest-file] [entry-point] [-C dir] files ...
13162 Options:
13163     -c  create new archive
13164     -t  list table of contents for archive
13165     -x  extract named (or all) files from archive
13166     -u  update existing archive
13167     -v  generate verbose output on standard output
13168     -f  specify archive file name
13169     -m  include manifest information from specified manifest file
13170     -n  perform Pack200 normalization after creating a new archive
13171     -e  specify application entry point for stand-alone application
13172         bundled into an executable jar file
13173     -0  store only; use no ZIP compression
13174     -P  preserve leading '/' (absolute path) and ".." (parent directory) components from file names
13175     -M  do not create a manifest file for the entries
13176     -i  generate index information for the specified jar files
13177     -C  change to the specified directory and include the following file
13178 If any file is a directory then it is processed recursively.
13179 The manifest file name, the archive file name and the entry point name are
13180 specified in the same order as the 'm', 'f' and 'e' flags.
13181
13182 Example 1: to archive two class files into an archive called classes.jar:
13183        jar cvf classes.jar Foo.class Bar.class
13184 Example 2: use an existing manifest file 'mymanifest' and archive all the
13185            files in the foo/ directory into 'classes.jar':
13186        jar cvfm classes.jar mymanifest -C foo/ .
13187
13188 make[5]: *** [lcmtypes_bot2-core.jar] Error 1
13189 make[4]: *** [CMakeFiles/lcmtypes_bot2-core.dir/all] Error 2
13190 make[3]: *** [all] Error 2
13191 make[2]: *** [bot_core_lcmtypes-prefix/src/bot_core_lcmtypes-stamp/bot_core_lcmtypes-build] Error 2
13192 make[1]: *** [CMakeFiles/bot_core_lcmtypes.dir/all] Error 2
13193 make[1]: *** Waiting for unfinished jobs....

Thus, this is actually an instance of https://github.com/RobotLocomotion/drake/issues/2341.

liangfok commented 8 years ago

Since this issue is a duplicate of https://github.com/RobotLocomotion/drake/issues/2341, I'm going to close this issue.