Summary: | sci-libs/flann-1.9.1-r1 - CMake Error at src/cpp/CMakeLists.txt:37 - No SOURCES given to target: flann_cuda | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | LE GARREC Vincent <gentoo.bugzilla> |
Component: | Current packages | Assignee: | Gentoo Science Related Packages <sci> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | gentoo.bugzilla, phobosk, zoltan |
Priority: | Normal | Keywords: | PATCH |
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | 652594 | ||
Bug Blocks: | |||
Attachments: |
build.log.gz
flann_cuda.patch flann_cuda_2.patch |
Description
LE GARREC Vincent
2019-02-14 21:14:59 UTC
Created attachment 565416 [details]
build.log.gz
Created attachment 565418 [details, diff]
flann_cuda.patch
Fix CMakeFiles.txt
Created attachment 565420 [details, diff]
flann_cuda_2.patch
Fix compilation with CUDA > 9.0
For the error, ``` CMake Error at /usr/share/cmake/Modules/FindCUDA.cmake:1820 (add_library): No SOURCES given to target: flann_cuda Call Stack (most recent call first): src/cpp/CMakeLists.txt:37 (cuda_add_library) ``` that the flann_cuda.patch on this bug fixes, the relevant upstream issue seems to be https://github.com/mariusmuja/flann/issues/369 Vincent's patch to the CUDA > 9.0 issue also seems to be correct, as upstream has patched this in https://github.com/mariusmuja/flann/commit/b9dd074526c18e7423085853518b58d602cb0b57 in the same manner. Can confirm both build failure and build success after applying patches. The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=10670e7e6bcefd2e396297bd4ea36e884af28198 commit 10670e7e6bcefd2e396297bd4ea36e884af28198 Author: Andreas Sturmlechner <asturm@gentoo.org> AuthorDate: 2019-02-17 12:26:59 +0000 Commit: Andreas Sturmlechner <asturm@gentoo.org> CommitDate: 2019-02-17 12:39:00 +0000 sci-libs/flann: Fix build with CUDA > 9.0 Supposedly. Closes: https://bugs.gentoo.org/678030 Package-Manager: Portage-2.3.60, Repoman-2.3.12 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org> sci-libs/flann/files/flann-1.9.1-cuda-9.patch | 22 ++++++++++++++++++++++ sci-libs/flann/flann-1.9.1-r2.ebuild | 5 ++++- 2 files changed, 26 insertions(+), 1 deletion(-) Thanks but you missed the first patch "flann_cuda.patch" that solves the problem with ">cmake-3.10". same on ~amd64 with cuda-10 The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9a4be0df9bfd7588f37b0721568571e614608a8f commit 9a4be0df9bfd7588f37b0721568571e614608a8f Author: Andreas Sturmlechner <asturm@gentoo.org> AuthorDate: 2019-05-19 21:18:08 +0000 Commit: Andreas Sturmlechner <asturm@gentoo.org> CommitDate: 2019-05-19 21:18:08 +0000 sci-libs/flann: Add another fix for >=cmake-3.11 with cuda Thanks-to: LE GARREC Vincent <gentoo.bugzilla@le-garrec.fr> Closes: https://bugs.gentoo.org/678030 Package-Manager: Portage-2.3.66, Repoman-2.3.12 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org> sci-libs/flann/files/flann-1.9.1-cmake-3.11-1.patch | 11 +++++++++++ sci-libs/flann/flann-1.9.1-r2.ebuild | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) |