Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 726116 - x11-misc/bumblebee does not build with GCC 10
Summary: x11-misc/bumblebee does not build with GCC 10
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Adam Feldman
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-05-29 17:38 UTC by niek
Modified: 2020-06-19 17:35 UTC (History)
4 users (show)

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


Attachments
/var/tmp/portage/x11-misc/bumblebee-3.2.1_p20170130/temp/build.log (build.log,38.32 KB, text/x-log)
2020-05-29 17:38 UTC, niek
Details
emerge --info output (emerge-info.txt,15.59 KB, text/plain)
2020-05-29 17:39 UTC, niek
Details

Note You need to log in before you can comment on or make changes to this bug.
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(+)