Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 917507 - net-misc/whois-5.5.20 fails to build with GCC 10
Summary: net-misc/whois-5.5.20 fails to build with GCC 10
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2023-11-17 15:09 UTC by P. Roth
Modified: 2023-11-19 11:57 UTC (History)
2 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 P. Roth 2023-11-17 15:09:58 UTC
Compilation fails due to using __attribute__((malloc(free))), which is a new feature introduced with GCC 11. It's not implemented in GCC 10 (which is still stable in Gentoo), resulting in: "error: wrong number of arguments specified for ‘malloc’ attribute"

(The same caused an error with 5.5.19 and Clang, see Bug 915603.)

Reproducible: Always
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-11-17 15:11:40 UTC
GCC 10 is EOL and the only reason it hasn't been masked yet was because people weren't happy when I immediately masked 9.x when 9.5.0 was released (at which point it became EOL).

I'll just go ahead and do that now, as it's overdue.
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-11-17 15:14:39 UTC
(Actually, I'll do it later on, as I suspect there may be a complication with Ada. But yes, stop using it.)
Comment 3 Larry the Git Cow gentoo-dev 2023-11-19 11:57:22 UTC
The bug has been referenced in the following commit(s):

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

commit b0efe50bef19688c248e91e0eba870e052d65416
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-11-17 15:12:11 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-11-19 11:56:35 +0000

    profiles: mask <sys-devel/gcc-11 (GCC 10 is EOL)
    
    GCC 10 is EOL - it has been since GCC 10.5 was released in July.
    
    It's hard to get the balance right here - if we mask immediately on the release
    of .5 of a series, some people aren't happy, and it's indeed kind of a nuisance
    for stabling the last version of a series too. (I did it the day-of for 9.5.x
    and had some feedback on it from users.)
    
    In any case, by now, it's certainly overdue. Move to GCC 11 or newer, please.
    
    Bug: https://bugs.gentoo.org/917507
    Signed-off-by: Sam James <sam@gentoo.org>
    Closes: https://github.com/gentoo/gentoo/pull/33872
    Signed-off-by: Sam James <sam@gentoo.org>

 profiles/package.mask | 13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)