Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 731210 - net-irc/emech-3.0.99_p3-r1 fails to compile: function.c:1074:2: error: function definition is not allowed here
Summary: net-irc/emech-3.0.99_p3-r1 fails to compile: function.c:1074:2: error: functi...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks: systemwide-clang
  Show dependency tree
 
Reported: 2020-07-07 06:29 UTC by Agostino Sarubbo
Modified: 2022-12-11 08:40 UTC (History)
2 users (show)

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


Attachments
build.log (build.log,15.25 KB, text/plain)
2020-07-07 06:29 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2020-07-07 06:29:22 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: net-irc/emech fails to compile.
Discovered on: amd64

NOTE:
This machine uses a clang/LLVM toolchain.
If you think that this issue is strictly related to clang/LLVM please block bug 408963. If you think that this issue isstrictly related to the LLD linker, please block bug 731004.
Comment 1 Agostino Sarubbo gentoo-dev 2020-07-07 06:29:27 UTC
Created attachment 648168 [details]
build.log

build log and emerge --info
Comment 2 Jonas Stein gentoo-dev 2020-11-15 12:39:49 UTC
duplicate of 707122?
Comment 3 Stephan Hartmann (RETIRED) gentoo-dev 2021-02-21 14:26:52 UTC
(In reply to Jonas Stein from comment #2)
> duplicate of 707122?

Nope. Code uses nested functions which is a gcc language extension.
Comment 4 Agostino Sarubbo gentoo-dev 2022-01-16 13:27:03 UTC
tinderbox has reproduced this issue with version 3.0.99_p3-r1 - Updating summary.
Comment 5 Larry the Git Cow gentoo-dev 2022-12-11 08:40:18 UTC
The bug has been closed via the following commit(s):

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

commit 0c432c6e270bf46229bb9b8b965b1f1b3b8cd548
Author:     Pascal Jäger <pascal.jaeger@leimstift.de>
AuthorDate: 2022-11-23 07:10:52 +0000
Commit:     Joonas Niilola <juippis@gentoo.org>
CommitDate: 2022-12-11 08:39:32 +0000

    net-irc/emech: fix build for clang16
    
    Closes: https://bugs.gentoo.org/876358
    Closes: https://bugs.gentoo.org/731210
    
    Signed-off-by: Pascal Jäger <pascal.jaeger@leimstift.de>
    Closes: https://github.com/gentoo/gentoo/pull/28393
    Signed-off-by: Joonas Niilola <juippis@gentoo.org>

 net-irc/emech/Manifest                             |  1 +
 net-irc/emech/emech-3.0.99_p20221123.ebuild        | 90 ++++++++++++++++++++++
 .../emech-3.0.99_p20221123-fix-Wreturn-type.patch  | 34 ++++++++
 3 files changed, 125 insertions(+)