Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 641244 - media-gfx/blender USE=cuda forces CUDA 8, incompatible with gcc 6.4.0
Summary: media-gfx/blender USE=cuda forces CUDA 8, incompatible with gcc 6.4.0
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Jonathan Scruggs (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: gcc-6
  Show dependency tree
 
Reported: 2017-12-16 05:11 UTC by Daniel M. Weeks
Modified: 2017-12-25 16:09 UTC (History)
4 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel M. Weeks 2017-12-16 05:11:33 UTC
Per the ebuild commit message: "Upstream only supports CUDA 8 with this release" 

However, anything older than CUDA 9 does not support gcc > 5 and fails with the following error:

#error -- unsupported GNU version! gcc versions later than 5 are not supported!

Since gcc 6.4.0 is now the default in Gentoo, it is no longer possible to build with USE=cuda.

Reproducible: Always
Comment 1 Jonas Stein gentoo-dev 2017-12-16 15:43:43 UTC
I am not sure, if this is finally a duplicate of #639384, or should be taken as new ticket.
Comment 2 Daniel M. Weeks 2017-12-20 13:32:47 UTC
(In reply to Jonas Stein from comment #1)
> I am not sure, if this is finally a duplicate of #639384, or should be taken
> as new ticket.

It is the same problem. Although, this does affect people still on 13.0 as well.
Comment 3 Jonathan Scruggs (RETIRED) gentoo-dev 2017-12-23 12:01:53 UTC
Would you be able to edit the ebuild to remove the hard depend on CUDA 8 to try CUDA 9? If this works, then I can change the ebuild. I think Blender 2.79 fixes this issue. BTW, this is one reason I really don't like CUDA.
Comment 4 Daniel M. Weeks 2017-12-24 01:17:57 UTC
(In reply to Jonathan Scruggs from comment #3)
> Would you be able to edit the ebuild to remove the hard depend on CUDA 8 to
> try CUDA 9? If this works, then I can change the ebuild. I think Blender
> 2.79 fixes this issue. BTW, this is one reason I really don't like CUDA.

It builds with CUDA 9.1 (from the junkdrawer overlay) and completed the "BMW benchmark" on the GPU.
Comment 5 Larry the Git Cow gentoo-dev 2017-12-25 16:09:42 UTC
The bug has been closed via the following commit(s):

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

commit d874e5a73532b74bdeed992a7c0f75b4d12bd561
Author:     Jonathan Scruggs <j.scruggs@gmail.com>
AuthorDate: 2017-12-24 17:24:26 +0000
Commit:     David Seifert <soap@gentoo.org>
CommitDate: 2017-12-25 16:09:12 +0000

    media-gfx/blender: Version bump to 2.79
    
    Version bump to 2.79
    Closes: https://bugs.gentoo.org/630820
    
    Allow CUDA v9 to be used for GCC 6.4 compatibility.
    Closes: https://bugs.gentoo.org/641244
    
    Call cmake-utils_src_prepare explicity.
    Closes: https://bugs.gentoo.org/640194
    
    Depend on virtual/jack.
    Closes: https://bugs.gentoo.org/612022
    
    Allow DRI to be writable to avoid sandbox violations.
    Closes: https://bugs.gentoo.org/600916
    Closes: https://github.com/gentoo/gentoo/pull/6620

 media-gfx/blender/Manifest            |   1 +
 media-gfx/blender/blender-2.79.ebuild | 287 ++++++++++++++++++++++++++++++++++
 media-gfx/blender/metadata.xml        |   6 +
 3 files changed, 294 insertions(+)