Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 726116

Summary: x11-misc/bumblebee does not build with GCC 10
Product: Gentoo Linux Reporter: niek
Component: Current packagesAssignee: Adam Feldman <np-hardass>
Status: RESOLVED FIXED    
Severity: normal CC: pacho, proxy-maint, rei4dan, silvio.gerli
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: /var/tmp/portage/x11-misc/bumblebee-3.2.1_p20170130/temp/build.log
emerge --info output

Description niek 2020-05-29 17:38:11 UTC
Created attachment 642568 [details]
/var/tmp/portage/x11-misc/bumblebee-3.2.1_p20170130/temp/build.log

x11-misc/bumblebee-3.2.1_p20170130 does not want to compile using sys-devel/gcc-10.1.0

Please find the build.log and emerge --info attached.
Comment 1 niek 2020-05-29 17:39:03 UTC
Created attachment 642572 [details]
emerge --info output
Comment 2 niek 2020-05-29 17:45:36 UTC
Setting CFLAGS="${CFLAGS} -fcommon" seems to work.
Comment 3 Brian Evans (RETIRED) gentoo-dev 2020-05-29 17:59:09 UTC
Don't CC arches yourself please.
Comment 4 Alex Guzman 2020-06-15 17:42:13 UTC
https://gcc.gnu.org/gcc-10/porting_to.html

This seems to be the result of GCC 10 changing the default behavior for non-extern globals. Adding the -fcommon CFLAG does seem to be the simplest fix for this.
Comment 5 Larry the Git Cow gentoo-dev 2020-06-19 17:35:00 UTC
The bug has been closed via the following commit(s):

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

commit d5702a506f6074eef248afc8cc20df6ebd68a1a6
Author:     Pacho Ramos <pacho@gentoo.org>
AuthorDate: 2020-06-19 17:34:05 +0000
Commit:     Pacho Ramos <pacho@gentoo.org>
CommitDate: 2020-06-19 17:34:05 +0000

    x11-misc/bumblebee: Fix building with gcc-10
    
    Closes: https://bugs.gentoo.org/726116
    Package-Manager: Portage-2.3.100, Repoman-2.3.22
    Signed-off-by: Pacho Ramos <pacho@gentoo.org>

 .../bumblebee/bumblebee-3.2.1_p20190421.ebuild     |  5 ++
 .../files/bumblebee-3.2.1_p20190421-gcc10.patch    | 66 ++++++++++++++++++++++
 2 files changed, 71 insertions(+)