Fix build failure while using make -j1. Issue 2257 (#2279)

* Fix build failure while using make -j1

* Fix java test failure
This commit is contained in:
Yuhong Guo
2018-06-21 15:18:00 -07:00
committed by Philipp Moritz
parent b108419628
commit aa42331844
7 changed files with 21 additions and 7 deletions
+3
View File
@@ -97,6 +97,9 @@ if ("${CMAKE_RAY_LANG_PYTHON}" STREQUAL "YES")
add_custom_target(copy_ray ALL
DEPENDS ${build_ray_file_list})
# Make sure redis-server is ready before copying.
add_dependencies(copy_ray copy_redis)
# Make sure that the Python extensions are built before copying the files.
if ("${CMAKE_RAY_LANG_PYTHON}" STREQUAL "YES")
get_local_scheduler_library("python" LOCAL_SCHEDULER_LIBRARY_LANG)
+4
View File
@@ -7,4 +7,8 @@ include(${CMAKE_CURRENT_LIST_DIR}/../common/cmake/Common.cmake)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror -Wall")
add_executable(global_scheduler global_scheduler.cc global_scheduler_algorithm.cc)
# Make sure ${HIREDIS_LIB} is ready before linking.
add_dependencies(global_scheduler hiredis)
target_link_libraries(global_scheduler common ${HIREDIS_LIB} ray_static ${PLASMA_STATIC_LIB} ${ARROW_STATIC_LIB} ${Boost_SYSTEM_LIBRARY} pthread)
+2 -1
View File
@@ -61,7 +61,8 @@ add_dependencies(gen_local_scheduler_fbs flatbuffers_ep)
add_library(local_scheduler_client STATIC local_scheduler_client.cc)
add_dependencies(local_scheduler_client gen_local_scheduler_fbs)
# local_scheduler_shared.h includes ray/gcs/client.h which requires gen_gcs_fbs & gen_node_manager_fbs.
add_dependencies(local_scheduler_client gen_local_scheduler_fbs ${COMMON_FBS_OUTPUT_FILES} gen_gcs_fbs gen_node_manager_fbs)
add_executable(local_scheduler local_scheduler.cc local_scheduler_algorithm.cc)
target_link_libraries(local_scheduler local_scheduler_client common ${HIREDIS_LIB} ${PLASMA_STATIC_LIB} ray_static ${ARROW_STATIC_LIB} -lpthread ${Boost_SYSTEM_LIBRARY})
+3 -1
View File
@@ -77,6 +77,8 @@ install(
ADD_RAY_LIB(ray
SOURCES ${RAY_SRCS} ${AE_SRCS} ${HIREDIS_SRCS} ${UTIL_SRCS}
DEPENDENCIES gen_gcs_fbs gen_object_manager_fbs gen_node_manager_fbs gen_local_scheduler_fbs
# TODO: When raylet replaces the old backend, please remove the dependency gen_local_scheduler_fbs.
# TODO: When remove the included Task.h from table.h, please remove the dependency gen_common_python_fbs.
DEPENDENCIES gen_gcs_fbs gen_object_manager_fbs gen_node_manager_fbs gen_local_scheduler_fbs ${COMMON_FBS_OUTPUT_FILES}
SHARED_LINK_LIBS ""
STATIC_LINK_LIBS ${PLASMA_STATIC_LIB} ${ARROW_STATIC_LIB})
+2
View File
@@ -15,6 +15,8 @@
#include "ray/raylet/format/node_manager_generated.h"
// TODO(pcm): Remove this
// TODO: While removing "task.h", remove the dependency gen_common_python_fbs
// from src/ray/CMakeLists.txt.
#include "task.h"
struct redisAsyncContext;
+2
View File
@@ -1,6 +1,8 @@
#include "ray/raylet/node_manager.h"
#include "common_protocol.h"
// TODO: While removing "local_scheduler_generated.h", remove the dependency
// gen_local_scheduler_fbs from src/ray/CMakeLists.txt.
#include "local_scheduler/format/local_scheduler_generated.h"
#include "ray/raylet/format/node_manager_generated.h"
#include "ray/util/util.h"
+5 -5
View File
@@ -26,6 +26,11 @@ echo "Build language is $LANGUAGE."
unamestr="$(uname)"
##############################################
# boost
##############################################
bash "$TP_SCRIPT_DIR/build_boost.sh"
##############################################
# redis
##############################################
@@ -36,11 +41,6 @@ bash "$TP_SCRIPT_DIR/build_redis.sh"
##############################################
bash "$TP_SCRIPT_DIR/build_credis.sh"
##############################################
# boost
##############################################
bash "$TP_SCRIPT_DIR/build_boost.sh"
##############################################
# flatbuffers if necessary
##############################################