Skip to content

[BUG] Debug build results in compile error #3212

@wphicks

Description

@wphicks

Describe the bug
Building with the debug flag results in following compiler error:

/usr/bin/ld: ../../libcuml++.so: undefined reference to `ML::manifold_inputs_t<float>::alloc_knn_graph() const'
/usr/bin/ld: ../../libcuml++.so: undefined reference to `cusparseScsrmv'
collect2: error: ld returned 1 exit status
make[2]: *** [examples/dbscan/CMakeFiles/dbscan_example.dir/build.make:109: examples/dbscan/dbscan_example] Error 1
make[1]: *** [CMakeFiles/Makefile2:536: examples/dbscan/CMakeFiles/dbscan_example.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
/usr/bin/ld: ../../libcuml++.so: undefined reference to `ML::manifold_inputs_t<float>::alloc_knn_graph() const'
/usr/bin/ld: ../../libcuml++.so: undefined reference to `cusparseScsrmv'
collect2: error: ld returned 1 exit status
make[2]: *** [examples/kmeans/CMakeFiles/kmeans_example.dir/build.make:109: examples/kmeans/kmeans_example] Error 1
make[1]: *** [CMakeFiles/Makefile2:509: examples/kmeans/CMakeFiles/kmeans_example.dir/all] Error 2
/usr/bin/ld: ../libcuml++.so: undefined reference to `ML::manifold_inputs_t<float>::alloc_knn_graph() const'
/usr/bin/ld: ../libcuml++.so: undefined reference to `cusparseScsrmv'
collect2: error: ld returned 1 exit status
make[2]: *** [bench/CMakeFiles/sg_benchmark.dir/build.make:230: bench/sg_benchmark] Error 1
make[1]: *** [CMakeFiles/Makefile2:593: bench/CMakeFiles/sg_benchmark.dir/all] Error 2
/usr/bin/ld: CMakeFiles/ml.dir/sg/decisiontree_batchedlevel_unittest.cu.o: in function `ML::DecisionTree::BatchedLevelAlgoUnitTestFixture::SetUp()':
/home/whicks/proj_cuml/cuml/cpp/test/sg/decisiontree_batchedlevel_unittest.cu:103: undefined reference to `ML::DecisionTree::BatchedLevelAlgoUnitTestFixture::n_col'
/usr/bin/ld: /home/whicks/proj_cuml/cuml/cpp/test/sg/decisiontree_batchedlevel_unittest.cu:103: undefined reference to `ML::DecisionTree::BatchedLevelAlgoUnitTestFixture::n_row'
/usr/bin/ld: ../libcuml++.so: undefined reference to `ML::manifold_inputs_t<float>::alloc_knn_graph() const'
/usr/bin/ld: ../libcuml++.so: undefined reference to `cusparseScsrmv'
collect2: error: ld returned 1 exit status
make[2]: *** [test/CMakeFiles/ml.dir/build.make:538: test/ml] Error 1
make[1]: *** [CMakeFiles/Makefile2:482: test/CMakeFiles/ml.dir/all] Error 2
make: *** [Makefile:149: all] Error 2

Steps/Code to reproduce bug
./build.sh -g

Expected behavior
Library should compile

Environment details (please complete the following information):

  • Environment location: Bare-metal
  • Linux Distro/Architecture: Ubuntu 20.04
  • GPU Model/Driver: Quadro RTX 8000, 455.39
  • CUDA: 11.0
  • Method of cuDF & cuML install: from source, cmake 3.18.4, gcc 7.5.0, 63c8a44

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions