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

Tests fail to link: ../../lib/libSpheral_CXX.so: undefined reference to `qh_qh' #230

Closed
yurivict opened this issue Jul 6, 2023 · 3 comments

Comments

@yurivict
Copy link

yurivict commented Jul 6, 2023

[100%] Linking CXX executable ../../bin/spheral_cuda_test
cd /usr/ports/science/spheral/work/.build/src/CXXTests && /usr/local/bin/cmake -E cmake_link_script CMakeFiles/spheral_cuda_test.dir/link.txt --verbose=1
/usr/local/libexec/ccache/c++ -O2 -pipe -fstack-protector-strong -fno-strict-aliasing  -I/usr/local/include/eigen3  -Wall -Wextra  -O2 -pipe -fstack-protector-strong -fno-strict-aliasing  -I/usr/local/include/eigen3  -DNDEBUG  -Wl,-rpath=/usr/local/lib/gcc12  -L/usr/local/lib/gcc12 -B/usr/local/bin -fstack-protector-strong -Wl,-rpath=/usr/local/lib/gcc12 -Wl,-rpath -Wl,/usr/local/lib -L/usr/local/lib/gcc12 -fopenmp=libomp CMakeFiles/spheral_cuda_test.dir/Spheral_CUDA_Test.cc.o -o ../../bin/spheral_cuda_test  -Wl,-rpath,/usr/ports/science/spheral/work/.build/lib:/usr/local/lib ../../lib/libSpheral_CXX.so /usr/lib/libz.so /usr/local/lib/libboost_filesystem.so /usr/local/lib/libboost_system.so /usr/local/lib/libqhull_r.so /usr/local/lib/libsiloh5.so /usr/local/lib/libaxom.so /usr/local/lib/libhdf5.so /usr/local/lib/libhdf5_hl.so /usr/local/lib/libosdCPU.so /usr/local/lib/libpolytope.so -lmfem /usr/local/lib/libconduit_relay_mpi_io.so /usr/local/lib/libconduit_relay.so -lrt /usr/local/lib/libsiloh5.so -lpthread /usr/local/lib/libhdf5.so.200.2.0 -lm -ldl /usr/local/lib/libconduit_blueprint_mpi.so /usr/local/lib/libconduit_blueprint.so /usr/local/lib/libconduit_relay_mpi.so /usr/local/lib/libconduit.so /usr/local/lib/liblua-5.4.so /usr/local/lib/libmpicxx.so /usr/local/lib/libmpi.so /usr/local/lib/libmpifort.so 
/usr/local/bin/ld: ../../lib/libSpheral_CXX.so: undefined reference to `qh_qh'
c++: error: linker command failed with exit code 1 (use -v to see invocation)

spheral was configured with -DENABLE_CUDA=OFF.
Why are executables with "CUDA" in their names linked?

Version: 2023.03.2
clang-15
FreeBSD 13.2

@mdavis36
Copy link
Collaborator

mdavis36 commented Jul 6, 2023

spheral_cuda_test builds a standalone test executable regardless of the presence of cuda. It will compile for device code if possible, and for host if not enabled, it's used as part of the current GPU porting effort. The compilation error has to do with qhull, looks like there's an issue with tpl version / configuration here.

@mdavis36
Copy link
Collaborator

mdavis36 commented Jul 6, 2023

Perhaps changing the target name to spheral_portable_target_test would be more appropriate. #231

@mdavis36 mdavis36 added good first issue Good for newcomers and removed good first issue Good for newcomers labels Jul 6, 2023
@mdavis36
Copy link
Collaborator

Closing due to inactivity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants