Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 913921 - sci-libs/cholmod-3.0.14 - failes to compile with cuda, missing cholmod_gpu.h
Summary: sci-libs/cholmod-3.0.14 - failes to compile with cuda, missing cholmod_gpu.h
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Science Related Packages
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2023-09-10 07:43 UTC by Kfir Ozer
Modified: 2023-12-16 09:21 UTC (History)
2 users (show)

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


Attachments
emerge --info (emerge-info.txt,7.77 KB, text/plain)
2023-09-10 07:43 UTC, Kfir Ozer
Details
build.log (build.log,31.28 KB, text/x-log)
2023-09-12 06:54 UTC, Kfir Ozer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kfir Ozer 2023-09-10 07:43:12 UTC
I'm trying to compile sci-libs/cholmod-3.0.14 with cuda flag and i'm getting this error:

cholmod_gpu.c:20:10: fatal error: cholmod_gpu.h: No such file or directory
   20 | #include "cholmod_gpu.h"
      |          ^~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [Makefile:448: cholmod_gpu.lo] Error 1
cholmod_gpu.c:20:10: fatal error: cholmod_gpu.h: No such file or directory
   20 | #include "cholmod_gpu.h"
      |          ^~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [Makefile:455: libcholmodl_gpu_la-cholmod_gpu.lo] Error 1
make[2]: Leaving directory '/var/tmp/portage/sci-libs/cholmod-3.0.14/work/cholmod-3.0.14/GPU'
make[1]: *** [Makefile:643: all-recursive] Error 1
make[1]: Leaving directory '/var/tmp/portage/sci-libs/cholmod-3.0.14/work/cholmod-3.0.14'
make: *** [Makefile:507: all] Error 2
 * ERROR: sci-libs/cholmod-3.0.14::gentoo failed (compile phase):
 *   emake failed
 * 
 * If you need support, post the output of `emerge --info '=sci-libs/cholmod-3.0.14::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=sci-libs/cholmod-3.0.14::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/sci-libs/cholmod-3.0.14/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/sci-libs/cholmod-3.0.14/temp/environment'.
 * Working directory: '/var/tmp/portage/sci-libs/cholmod-3.0.14/work/cholmod-3.0.14'
 * S: '/var/tmp/portage/sci-libs/cholmod-3.0.14/work/cholmod-3.0.14'


Reproducible: Always

Steps to Reproduce:
USE="cuda" emerge sci-libs/cholmod
Comment 1 Kfir Ozer 2023-09-10 07:43:33 UTC
Created attachment 870203 [details]
emerge --info
Comment 2 Mike Gilbert gentoo-dev 2023-09-11 20:09:47 UTC
Please attach the full build log.
Comment 3 Kfir Ozer 2023-09-12 06:54:34 UTC
Created attachment 870331 [details]
build.log
Comment 4 Egor 2023-10-30 08:37:12 UTC
I have the same bug
Comment 5 Larry the Git Cow gentoo-dev 2023-12-16 09:21:12 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6c0474cc8a08172cdc244af680edba8be5ada95b

commit 6c0474cc8a08172cdc244af680edba8be5ada95b
Author:     Paul Zander <negril.nx+gentoo@gmail.com>
AuthorDate: 2023-11-27 19:58:40 +0000
Commit:     Pacho Ramos <pacho@gentoo.org>
CommitDate: 2023-12-16 09:20:20 +0000

    sci-libs/cholmod: fix cuda build
    
    - include cuda patch from https://bugs.gentoo.org/715610#c16
    - make use of cuda.eclass for nvcc
    
    Closes: https://bugs.gentoo.org/913921
    Closes: https://bugs.gentoo.org/904973
    Closes: https://bugs.gentoo.org/715610
    Signed-off-by: Paul Zander <negril.nx+gentoo@gmail.com>
    Closes: https://github.com/gentoo/gentoo/pull/34020
    Signed-off-by: Pacho Ramos <pacho@gentoo.org>

 sci-libs/cholmod/cholmod-3.0.13.ebuild             |  14 ++-
 sci-libs/cholmod/cholmod-3.0.14.ebuild             |  14 ++-
 .../cholmod/files/cholmod-3.0.14-fix-CUDA.patch    | 109 +++++++++++++++++++++
 3 files changed, 133 insertions(+), 4 deletions(-)