Robotics StackExchange | Archived questions

colcon build stalling at 50%

Hi all, beginner here with (possibly) stupid question.

I'm trying build a client / server using humble which uses the wiringPi library to read from a serial port. When I try to colcon build my code, it gets to 50% on the build stage and then hangs there forever. Running in verbose mode, it can't get past

[ 25%] Building CXX object CMakeFiles/server.dir/src/loc_serv.cpp.o

[ 50%] Building CXX object CMakeFiles/server.dir/src/loc_serv.cpp.o

my CMakeLists.txt file looks like this:

cmake_minimum_required(VERSION 3.8)
project(gps_service)
if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
  add_compile_options(-Wall -Wextra -Wpedantic)
endif()
find_package(ament_cmake REQUIRED)

find_package(wiringPi REQUIRED)
find_package(rclcpp REQUIRED)
find_package(custom_interface REQUIRED)

add_executable(server src/loc_serv.cpp)

target_link_libraries(server wiringPi)

ament_target_dependencies(server rclcpp custom_interface)


add_executable(client src/loc_client.cpp)

ament_target_dependencies(client rclcpp custom_interface)

install(TARGETS server client DESTINATION lib/${PROJECT_NAME})

ament_package()

Has anyone seen this sort of thing before?

Asked by LVRoss on 2023-07-06 19:57:56 UTC

Comments

Is one of your build processes getting killed due to running out of memory?

Asked by tfoote on 2023-07-07 20:30:43 UTC

Answers