Skip to content

[Noetic] ros_google_cloud_language fails to build: Missing pthreads #484

@sloretz

Description

@sloretz

It looks like ros_google_cloud_language is failing to build on all platforms. It seems to be having trouble linking against pthreads

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'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions