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

Bug 582780

Summary: sci-mathematics/gfan-0.5 does not compile with gcc-6.1
Product: Gentoo Linux Reporter: Felix Janda <felix.janda>
Component: Current packagesAssignee: Thomas Kahle (RETIRED) <tomka>
Status: RESOLVED FIXED    
Severity: normal CC: bircoph, jstein, plevine457, sci-mathematics
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 582084    
Attachments: build log
Possible fix
gfan-0.5-gcc6.patch

Description Felix Janda 2016-05-11 19:40:00 UTC
Created attachment 434000 [details]
build log

First error message:

app_secondaryfan.cpp:310:5: error: reference to 'rank' is ambiguous
Comment 1 Felix Janda 2016-05-11 19:41:23 UTC
Created attachment 434002 [details, diff]
Possible fix
Comment 2 Andrew Savchenko gentoo-dev 2016-05-25 09:16:59 UTC
Am I missing something?

gcc-6 is not even in the tree, how devs are supposed to fix related bugs?
Comment 3 Felix Janda 2016-05-26 12:20:17 UTC
By now I would have expected that gcc-6 can be found in the tree...
Still, you can get gcc-6.1 right now from the hardened-development overlay.
Comment 4 Thomas Kahle (RETIRED) gentoo-dev 2016-05-27 05:36:50 UTC
Yes, I see no problem in being future proof here.  I'm talking to Anders Jensen, the author of gfan about what would be the best solution.  Please stay tuned.
Comment 5 Peter Levine 2016-05-31 01:25:01 UTC
Created attachment 435886 [details, diff]
gfan-0.5-gcc6.patch

Previous patch was fine except for the naming convention.

17.4.3.2.1 of the C++ standard, assuming it hasn't changed, states that names which start with an underscore in global namespace are reserved for the implementation.

This patch just changes "_rank" to "rank_"
Comment 6 Thomas Kahle (RETIRED) gentoo-dev 2016-06-09 20:16:42 UTC
gfan-0.5-r1 is a bump to EAPI=6 which also contains Peter Levine's version of the gcc-6.1 patch.  Thanks a lot and please test (I don't run gcc-6.1 yet).