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

[BUG] udf-examples native build broken #3256

Closed
tgravescs opened this issue Aug 19, 2021 · 2 comments
Closed

[BUG] udf-examples native build broken #3256

tgravescs opened this issue Aug 19, 2021 · 2 comments
Labels
bug Something isn't working build Related to CI / CD or cleanly building P0 Must have for release

Comments

@tgravescs
Copy link
Collaborator

Describe the bug
I was trying to build the native bits of the udf-examples build but it doesn't seem to be working. I tried the docker image in the udf-examples directory and also the centos one we use for building CUDF. Both came up with errors.

We should investigate the proper way to build an external project that depends on CUDF.

The errors using the Docker file:


Performing C SOURCE FILE Test CMAKE_HAVE_LIBC_PTHREAD failed with the following output:
Change Dir: /home/tgraves/workspace/spark-rapids/udf-examples/target/cpp-build/CMakeFiles/CMakeTmp

Building C object CMakeFiles/cmTC_2ca25.dir/src.c.o
/usr/bin/cc -DCMAKE_HAVE_LIBC_PTHREAD  -fPIE -o CMakeFiles/cmTC_2ca25.dir/src.c.o -c /home/tgraves/workspace/spark-rapids/udf-examples/target/cpp-build/CMakeFiles/CMakeTmp/src.c
Linking C executable cmTC_2ca25
/usr/local/cmake-3.20.5-linux-x86_64/bin/cmake -E cmake_link_script CMakeFiles/cmTC_2ca25.dir/link.txt --verbose=1
/usr/bin/cc CMakeFiles/cmTC_2ca25.dir/src.c.o -o cmTC_2ca25
CMakeFiles/cmTC_2ca25.dir/src.c.o: In function `main’:
src.c:(.text+0x2f): undefined reference to `pthread_create’
src.c:(.text+0x3b): undefined reference to `pthread_detach’
src.c:(.text+0x47): undefined reference to `pthread_cancel’
src.c:(.text+0x58): undefined reference to `pthread_join’
src.c:(.text+0x6c): undefined reference to `pthread_atfork’
collect2: error: ld returned 1 exit status
gmake[1]: *** [cmTC_2ca25] Error 1

building from the centos docker image errors:

[exec] See also “/home/tgraves/workspace/spark-rapids/udf-examples/target/cpp-build/CMakeFiles/CMakeError.log”.
     [exec] CMake Error at /home/tgraves/workspace/spark-rapids/udf-examples/target/cpp-build/_deps/cuco-src/CMakeLists.txt:25 (include):
     [exec]   include could not find requested file:
     [exec]
     [exec]     rapids-cmake

rapids-cmake is there but it also compalins about rapids-find, rapids-cpm and rapids-cuda which I do not see.

@tgravescs tgravescs added bug Something isn't working ? - Needs Triage Need team to review and classify build Related to CI / CD or cleanly building P0 Must have for release labels Aug 19, 2021
@pxLi pxLi changed the title [BUG]udf-examples native build broken [BUG] cudf native build broken Aug 20, 2021
@pxLi
Copy link
Collaborator

pxLi commented Aug 20, 2021

Also seeing this in our cudfjni nightly build pipeline related to rapidsai/cudf#9073

@pxLi pxLi changed the title [BUG] cudf native build broken [BUG] udf-examples native build broken Aug 20, 2021
@pxLi pxLi removed the ? - Needs Triage Need team to review and classify label Aug 23, 2021
@pxLi
Copy link
Collaborator

pxLi commented Aug 23, 2021

We have a weekly pipeline for this (rapids_build-it-UDF-native), this issue was resolved after rapidsai/cudf#9075 got merged.

@pxLi pxLi closed this as completed Aug 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working build Related to CI / CD or cleanly building P0 Must have for release
Projects
None yet
Development

No branches or pull requests

2 participants