Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 620216 - x11-drivers/nvidia-drivers-340.102 and sys-kernel/*-sources-4.11.* compile error
Summary: x11-drivers/nvidia-drivers-340.102 and sys-kernel/*-sources-4.11.* compile error
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-05-30 19:09 UTC by hangglider
Modified: 2017-06-21 16:06 UTC (History)
1 user (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 hangglider 2017-05-30 19:09:04 UTC
/var/tmp/portage/x11-drivers/nvidia-drivers-340.102-r1/work/kernel/nv-drm.c: At top level:
/var/tmp/portage/x11-drivers/nvidia-drivers-340.102-r1/work/kernel/nv-drm.c:124:15: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
     .unload = nv_drm_unload,
               ^~~~~~~~~~~~~

Current kernel is pf-sources-4.11-p3, also tried with gentoo-sources-4.11.0 and gentoo-sources-4.11.3 with same result.
System is amd64,
GCC is gcc version 6.3.0 (Gentoo 6.3.0 p1.0).

Problem seems NOT related to 615388.
Comment 1 hangglider 2017-05-30 20:00:29 UTC
Even if patching nv_drm_unload() to void function() it turns out that macro definitions CPU_DOWN_PREPARE and CPU_DOWN_FAILED are removed with kernel 4.10.0, so driver source needs to be ported to kernel >= 4.10.0. This seems to be an upstream task.
Comment 2 Ben Kohler gentoo-dev 2017-06-07 15:31:33 UTC
The ebuild already checks for kernels >=4.10 and emits a warning:

    if use kernel_linux && kernel_is ge 4 10; then
        ewarn "Gentoo supports kernels which are supported by NVIDIA"
        ewarn "which are limited to the following kernels:"
        ewarn "<sys-kernel/gentoo-sources-4.10"
        ewarn "<sys-kernel/vanilla-sources-4.10"
        ewarn ""
        ewarn "You are free to utilize eapply_user to provide whatever"
        ewarn "support you feel is appropriate, but will not receive"
        ewarn "support as a result of those changes."
        ewarn ""
        ewarn "Do not file a bug report about this."
        ewarn ""
    fi
Comment 3 Navid Zamani 2017-06-21 16:06:24 UTC
Can we please get an updated version that already includes the patches?

It can still say we won’t get support, but it can at least automatically apply the patches without forcing everybody to hunt for them!

Quite a few people still have cards that aren’t supported by newer drivers, and frankly, there is absolutely zero reason to upgrade as the card and computer is already and still overpowered for the work required.