Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 678030 - sci-libs/flann-1.9.1-r1 - CMake Error at src/cpp/CMakeLists.txt:37 - No SOURCES given to target: flann_cuda
Summary: sci-libs/flann-1.9.1-r1 - CMake Error at src/cpp/CMakeLists.txt:37 - No SOURC...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Science Related Packages
URL:
Whiteboard:
Keywords: PATCH
Depends on: 652594
Blocks:
  Show dependency tree
 
Reported: 2019-02-14 21:14 UTC by LE GARREC Vincent
Modified: 2019-05-19 21:19 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log.gz (build.log.gz,1.74 KB, application/gzip)
2019-02-14 21:15 UTC, LE GARREC Vincent
Details
flann_cuda.patch (flann_cuda.patch,687 bytes, patch)
2019-02-14 21:16 UTC, LE GARREC Vincent
Details | Diff
flann_cuda_2.patch (flann_cuda_2.patch,427 bytes, patch)
2019-02-14 21:17 UTC, LE GARREC Vincent
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description LE GARREC Vincent 2019-02-14 21:14:59 UTC
Related to https://bugs.gentoo.org/657470

Same bug with cuda.

Same solution.

Reproducible: Always




Portage 2.3.58 (python 3.6.6-final-0, default/linux/amd64/17.0/desktop/gnome/systemd, gcc-7.4.0, glibc-2.28-r5, 4.14.91-gentoo x86_64)
=================================================================
System uname: Linux-4.14.91-gentoo-x86_64-Intel-R-_Core-TM-_i7-3770_CPU_@_3.40GHz-with-gentoo-2.6
KiB Mem:    16375316 total,   9477520 free
KiB Swap:    9767516 total,   9767516 free
Timestamp of repository gentoo: Sun, 27 Jan 2019 16:00:01 +0000
Head commit of repository gentoo: 2a56851ec0c7adafcd5e487a91912535eed9bb95
sh bash 5.0_p2
ld GNU ld (Gentoo 2.31.1 p5) 2.31.1
app-shells/bash:          5.0_p2::gentoo
dev-java/java-config:     2.2.0-r4::gentoo
dev-lang/perl:            5.28.0::gentoo
dev-lang/python:          2.7.15::gentoo, 3.6.6::gentoo, 3.7.0::gentoo
dev-util/cmake:           3.13.3::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.6-r1::gentoo
sys-apps/sandbox:         2.15::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.11.6-r3::gentoo, 1.16.1-r1::gentoo
sys-devel/binutils:       2.31.1-r3::gentoo
sys-devel/gcc:            7.4.0::gentoo, 8.2.0-r6::gentoo
sys-devel/gcc-config:     2.0::gentoo
sys-devel/libtool:        2.4.6-r5::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 4.14-r1::gentoo (virtual/os-headers)
sys-libs/glibc:           2.28-r5::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-metamanifest: yes
    sync-rsync-extra-opts: 
    sync-rsync-verify-max-age: 24

crossdev
    location: /home/legarrec/info/overlay
    masters: gentoo
    priority: 0

cg
    location: /var/lib/layman/cg
    masters: gentoo
    priority: 50

dotnet
    location: /var/lib/layman/dotnet
    sync-uri: https://github.com/gentoo/dotnet.git
    masters: gentoo
    priority: 50

genthree
    location: /var/lib/layman/genthree
    masters: gentoo
    priority: 50

ssnbPortage 2.3.58 (python 3.6.6-final-0, default/linux/amd64/17.0/desktop/gnome/systemd, gcc-7.4.0, glibc-2.28-r5, 4.14.91-gentoo x86_64)
=================================================================
System uname: Linux-4.14.91-gentoo-x86_64-Intel-R-_Core-TM-_i7-3770_CPU_@_3.40GHz-with-gentoo-2.6
KiB Mem:    16375316 total,   9477520 free
KiB Swap:    9767516 total,   9767516 free
Timestamp of repository gentoo: Sun, 27 Jan 2019 16:00:01 +0000
Head commit of repository gentoo: 2a56851ec0c7adafcd5e487a91912535eed9bb95
sh bash 5.0_p2
ld GNU ld (Gentoo 2.31.1 p5) 2.31.1
app-shells/bash:          5.0_p2::gentoo
dev-java/java-config:     2.2.0-r4::gentoo
dev-lang/perl:            5.28.0::gentoo
dev-lang/python:          2.7.15::gentoo, 3.6.6::gentoo, 3.7.0::gentoo
dev-util/cmake:           3.13.3::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.6-r1::gentoo
sys-apps/sandbox:         2.15::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.11.6-r3::gentoo, 1.16.1-r1::gentoo
sys-devel/binutils:       2.31.1-r3::gentoo
sys-devel/gcc:            7.4.0::gentoo, 8.2.0-r6::gentoo
sys-devel/gcc-config:     2.0::gentoo
sys-devel/libtool:        2.4.6-r5::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 4.14-r1::gentoo (virtual/os-headers)
sys-libs/glibc:           2.28-r5::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-metamanifest: yes
    sync-rsync-extra-opts: 
    sync-rsync-verify-max-age: 24

crossdev
    location: /home/legarrec/info/overlay
    masters: gentoo
    priority: 0

cg
    location: /var/lib/layman/cg
    masters: gentoo
    priority: 50

dotnet
    location: /var/lib/layman/dotnet
    sync-uri: https://github.com/gentoo/dotnet.git
    masters: gentoo
    priority: 50

genthree
    location: /var/lib/layman/genthree
    masters: gentoo
    priority: 50

ssnb
    location: /var/lib/layman/ssnb
    masters: gentoo
    priority: 50

steam-overlay
    location: /var/lib/layman/steam-overlay
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O0 -ggdb2 -g2 -pipe -fno-omit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O0 -ggdb2 -g2 -pipe -fno-omit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="-j9 --load-average=9"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-march=native -O0 -ggdb2 -g2 -pipe -fno-omit-frame-pointer"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs compressdebug config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news noclean parallel-fetch pid-sandbox preserve-libs protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=native -O0 -ggdb2 -g2 -pipe -fno-omit-frame-pointer"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="fr_FR.UTF-8"
LDFLAGS="-Wl,--as-needed -Wl,-O0"
LINGUAS="fr en ja"
MAKEOPTS="-j9"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/home/legarrec/info"
USE="X a52 aac accessibility acl acpi alsa amd64 berkdb branding bzip2 cairo cdda cdr cli colord crypt cuda cups cxx dbus dhcpcd dri dts dvd dvdr eds emboss encode evo exif fam flac fortran gdbm gif glamor gnome gnome-online-accounts gpm gtk gtk3 iconv introspection ipv6 jpeg lcms ldap libnotify libsecret libtirpc mad mng mp3 mp4 mpeg multilib nautilus ncurses nls nptl ogg opencl opengl openmp pam pango pcre pdf png policykit ppds pulseaudio qt5 readline sdl seccomp spell ssl startup-notification svg systemd tcpd tiff tracker truetype udev udisks unicode upower usb vorbis wxwidgets x264 xattr xcb xml xv xvid zlib" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx mmx mmxext popcnt sse sse2 sse3 sse4 sse4_1 sse4_2 ssse3" CURL_SSL="openssl" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" L10N="fr en ja" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="nlpsolver" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" POSTGRES_TARGETS="postgres9_5 postgres10" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python3_6" RUBY_TARGETS="ruby26" SANE_BACKENDS="canon_dr cardscan coolscan coolscan2 coolscan3 dc210 dc240 dc25 dell1600n_net dmc epjitsu epson epson2 fujitsu genesys gt68xx hp hp3500 hp3900 hp4200 hp5400 hp5590 hpljm1005 hs2p ibm kodak kodakaio kvs1025 kvs20xx leo lexmark ma1509 magicolor matsushita microtek microtek2 mustek mustek_usb nec net niash p5 pie pixma plustek plustek_pp qcam ricoh rts8891 s9036 sceptre sharp sm3600 sm3840 snapscan sp15c st400 stv680 tamarack teco1 teco2 teco3 test u12 umax umax1220u umax_pp xerox_mfp mustek_usb2" USERLAND="GNU" VIDEO_CARDS="nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS


sci-libs/flann-1.9.1-r1::gentoo was built with the following:
USE="cuda openmp -doc -examples -mpi -octave -static-libs" ABI_X86="(64)"
CXXFLAGS="-march=native -O0 -ggdb2 -g2 -pipe -fno-omit-frame-pointer -std=c++11"

    location: /var/lib/layman/ssnb
    masters: gentoo
    priority: 50
Comment 1 LE GARREC Vincent 2019-02-14 21:15:47 UTC
Created attachment 565416 [details]
build.log.gz
Comment 2 LE GARREC Vincent 2019-02-14 21:16:35 UTC
Created attachment 565418 [details, diff]
flann_cuda.patch

Fix CMakeFiles.txt
Comment 3 LE GARREC Vincent 2019-02-14 21:17:22 UTC
Created attachment 565420 [details, diff]
flann_cuda_2.patch

Fix compilation with CUDA > 9.0
Comment 4 Zoltan Puskas 2019-02-15 09:22:16 UTC
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
Comment 5 Zoltan Puskas 2019-02-15 09:32:34 UTC
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.
Comment 6 Zoltan Puskas 2019-02-15 09:40:13 UTC
Can confirm both build failure and build success after applying patches.
Comment 7 Larry the Git Cow gentoo-dev 2019-02-17 12:39:18 UTC
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(-)
Comment 8 LE GARREC Vincent 2019-02-17 18:06:26 UTC
Thanks but you missed the first patch "flann_cuda.patch" that solves the problem with ">cmake-3.10".
Comment 9 brothermechanic 2019-04-16 19:36:20 UTC
same on ~amd64 with cuda-10
Comment 10 Larry the Git Cow gentoo-dev 2019-05-19 21:19:55 UTC
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(-)