Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[build_farm] Fix focal error #486

Closed
wants to merge 1 commit into from

Conversation

mqcmd196
Copy link
Member

Google Chat ROS

23:02:48 CMake Error at /opt/ros/noetic/share/catkin/cmake/catkinConfig.cmake:83 (find_package):
23:02:48   Could not find a package configuration file provided by "actionlib_msgs"
23:02:48   with any of the following names:
23:02:48 
23:02:48     actionlib_msgsConfig.cmake
23:02:48     actionlib_msgs-config.cmake
23:02:48 
23:02:48   Add the installation prefix of "actionlib_msgs" to CMAKE_PREFIX_PATH or set
23:02:48   "actionlib_msgs_DIR" to a directory containing one of the above files.  If
23:02:48   "actionlib_msgs" provides a separate development package or SDK, be sure it
23:02:48   has been installed.
23:02:48 Call Stack (most recent call first):
23:02:48   CMakeLists.txt:4 (find_package)
23:02:56 CMake Error at CMakeLists.txt:40 (find_package):
23:02:56   By not providing "Findrostest.cmake" in CMAKE_MODULE_PATH this project has
23:02:56   asked CMake to find a package configuration file provided by "rostest", but
23:02:56   CMake did not find one.
23:02:56 
23:02:56   Could not find a package configuration file provided by "rostest" with any
23:02:56   of the following names:
23:02:56 
23:02:56     rostestConfig.cmake
23:02:56     rostest-config.cmake
23:02:56 
23:02:56   Add the installation prefix of "rostest" to CMAKE_PREFIX_PATH or set
23:02:56   "rostest_DIR" to a directory containing one of the above files.  If
23:02:56   "rostest" provides a separate development package or SDK, be sure it has
23:02:56   been installed.
23:03:19 Run Build Command(s):/usr/bin/make cmTC_d34bf/fast && make[2]: Entering directory '/tmp/binarydeb/ros-noetic-ros-google-cloud-language-2.1.26/.obj-x86_64-linux-gnu/CMakeFiles/CMakeTmp'
23:03:19 /usr/bin/make -f CMakeFiles/cmTC_d34bf.dir/build.make CMakeFiles/cmTC_d34bf.dir/build
23:03:19 make[3]: Entering directory '/tmp/binarydeb/ros-noetic-ros-google-cloud-language-2.1.26/.obj-x86_64-linux-gnu/CMakeFiles/CMakeTmp'
23:03:19 Building C object CMakeFiles/cmTC_d34bf.dir/CheckFunctionExists.c.o
23:03:19 /usr/lib/ccache/cc   -g -O2 -fdebug-prefix-map=/tmp/binarydeb/ros-noetic-ros-google-cloud-language-2.1.26=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -DCHECK_FUNCTION_EXISTS=pthread_create   -o CMakeFiles/cmTC_d34bf.dir/CheckFunctionExists.c.o   -c /usr/share/cmake-3.16/Modules/CheckFunctionExists.c
23:03:19 Linking C executable cmTC_d34bf
23:03:19 /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_d34bf.dir/link.txt --verbose=1
23:03:19 /usr/lib/ccache/cc -g -O2 -fdebug-prefix-map=/tmp/binarydeb/ros-noetic-ros-google-cloud-language-2.1.26=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -DCHECK_FUNCTION_EXISTS=pthread_create    -rdynamic CMakeFiles/cmTC_d34bf.dir/CheckFunctionExists.c.o  -o cmTC_d34bf  -lpthreads 
23:03:19 /usr/bin/ld: cannot find -lpthreads
23:03:19 collect2: error: ld returned 1 exit status
23:03:19 make[3]: *** [CMakeFiles/cmTC_d34bf.dir/build.make:87: cmTC_d34bf] Error 1
23:03:19 make[3]: Leaving directory '/tmp/binarydeb/ros-noetic-ros-google-cloud-language-2.1.26/.obj-x86_64-linux-gnu/CMakeFiles/CMakeTmp'
23:03:19 make[2]: *** [Makefile:121: cmTC_d34bf/fast] Error 2
23:03:19 make[2]: Leaving directory '/tmp/binarydeb/ros-noetic-ros-google-cloud-language-2.1.26/.obj-x86_64-linux-gnu/CMakeFiles/CMakeTmp'
23:04:13 Run Build Command(s):/usr/bin/make cmTC_79182/fast && make[2]: Entering directory '/tmp/binarydeb/ros-noetic-zdepth-image-transport-2.1.26/.obj-x86_64-linux-gnu/CMakeFiles/CMakeTmp'
23:04:13 /usr/bin/make -f CMakeFiles/cmTC_79182.dir/build.make CMakeFiles/cmTC_79182.dir/build
23:04:13 make[3]: Entering directory '/tmp/binarydeb/ros-noetic-zdepth-image-transport-2.1.26/.obj-x86_64-linux-gnu/CMakeFiles/CMakeTmp'
23:04:13 Building C object CMakeFiles/cmTC_79182.dir/CheckFunctionExists.c.o
23:04:13 /usr/lib/ccache/cc   -g -O2 -fdebug-prefix-map=/tmp/binarydeb/ros-noetic-zdepth-image-transport-2.1.26=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -DCHECK_FUNCTION_EXISTS=pthread_create   -o CMakeFiles/cmTC_79182.dir/CheckFunctionExists.c.o   -c /usr/share/cmake-3.16/Modules/CheckFunctionExists.c
23:04:13 Linking C executable cmTC_79182
23:04:13 /usr/bin/cmake -E cmake_link_script CMakeFiles/cmTC_79182.dir/link.txt --verbose=1
23:04:13 /usr/lib/ccache/cc -g -O2 -fdebug-prefix-map=/tmp/binarydeb/ros-noetic-zdepth-image-transport-2.1.26=. -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -DCHECK_FUNCTION_EXISTS=pthread_create    -rdynamic CMakeFiles/cmTC_79182.dir/CheckFunctionExists.c.o  -o cmTC_79182  -lpthreads 
23:04:13 /usr/bin/ld: cannot find -lpthreads
23:04:13 collect2: error: ld returned 1 exit status
23:04:13 make[3]: *** [CMakeFiles/cmTC_79182.dir/build.make:87: cmTC_79182] Error 1
23:04:13 make[3]: Leaving directory '/tmp/binarydeb/ros-noetic-zdepth-image-transport-2.1.26/.obj-x86_64-linux-gnu/CMakeFiles/CMakeTmp'
23:04:13 make[2]: *** [Makefile:121: cmTC_79182/fast] Error 2
23:04:13 make[2]: Leaving directory '/tmp/binarydeb/ros-noetic-zdepth-image-transport-2.1.26/.obj-x86_64-linux-gnu/CMakeFiles/CMakeTmp'

@mqcmd196
Copy link
Member Author

About nfc_ros, is it not enough to add rostest in test_depend ??
About ros_google_cloud_language and zdpeth_image_transport, why pthread not found ??

@k-okada
Copy link
Member

k-okada commented Jul 20, 2023

Thank you for investigation. I have already worked this issue on #479 but forget to release. See if ros/rosdistro#38048 works.

I think @sloretz 's comment is not correct, this is not due to missing pthread but originated from missing action_msgs
https://gist.github.com/k-okada/638987d488969ef4130363586a128fab#file-log-txt-L78

You can reproduce the error from ubuntu:20.04 docker iamge

$ apt update && apt install -y sudo lsb-release curl gnupg && sudo sh -c 'echo "deb http://packages.ros.or\
g/ros-testing/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list' && curl -s https://raw.githubu
sercontent.com/ros/rosdistro/master/ros.asc | sudo apt-key add - && apt update
$ apt install git dpkg-dev
$ git clone https://github.com/tork-a/jsk_3rdparty-release
$ cd jsk_3rdparty-release/
$ git checkout debian/noetic/focal/ros_google_cloud_language
$ apt install debhelper ros-noetic-catkin ros-noetic-catkin-virtualenv ros-noetic-diagnostic-msgs ros-noetic-message-generation
$ dpkg-buildpackage -r -b

@knorth55
Copy link
Member

@k-okada
Thank you so much to solve the issue.

@mqcmd196
This is the same issue as #356

@mqcmd196
Copy link
Member Author

I see, thank you for your answer.

@mqcmd196
This is the same issue as #356

Yes, I tried reproducing the error with bloom and dpkg on docker, but I couldn't reproduce it, and it worked fine with the current master. So I wondered why.

@mqcmd196 mqcmd196 closed this Jul 21, 2023
@mqcmd196 mqcmd196 deleted the PR/fix_focal_buildfarm branch July 26, 2023 01:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants