Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 582776 - sys-libs/argp-standalone-1.3 does not compile with gcc-6.1
Summary: sys-libs/argp-standalone-1.3 does not compile with gcc-6.1
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Anthony Basile
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-05-11 19:25 UTC by Felix Janda
Modified: 2016-06-11 09:03 UTC (History)
2 users (show)

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


Attachments
build log (build.log,20.00 KB, text/plain)
2016-05-11 19:25 UTC, Felix Janda
Details
gnu89-inline patch. (argp-standalone-1.3-gnu89-inline.patch,772 bytes, patch)
2016-06-11 00:32 UTC, Aric Belsito
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Felix Janda 2016-05-11 19:25:42 UTC
Created attachment 433994 [details]
build log

First error message:

argp-namefrob.h:62:32: error: redefinition of 'argp_fmtstream_write'

Does compile with -fgnu89-inline, so will probably also not compile with gcc-5.
Comment 1 Aric Belsito 2016-06-11 00:32:54 UTC
Created attachment 437108 [details, diff]
gnu89-inline patch.

@Felix

Can confirm, I had this same issue.

I forgot where I found this patch..
Comment 2 Aric Belsito 2016-06-11 00:34:28 UTC
(In reply to Aric Belsito from comment #1)
> Created attachment 437108 [details, diff] [details, diff]
> gnu89-inline patch.
> 
> @Felix
> 
> Can confirm, I had this same issue.
> 
> I forgot where I found this patch..

Note: I added the patch when I was using GCC 5.3.0

also, we could simply add append-cflags -fgnu89-inline in the ebuild.
Comment 3 Anthony Basile gentoo-dev 2016-06-11 00:51:54 UTC
(In reply to Aric Belsito from comment #2)
> (In reply to Aric Belsito from comment #1)
> > Created attachment 437108 [details, diff] [details, diff] [details, diff]
> > gnu89-inline patch.
> > 
> > @Felix
> > 
> > Can confirm, I had this same issue.
> > 
> > I forgot where I found this patch..
> 
> Note: I added the patch when I was using GCC 5.3.0
> 
> also, we could simply add append-cflags -fgnu89-inline in the ebuild.

Ah yes, the inline issue is know about gcc6.  I'd rather add the cflag in the ebuild.
Comment 4 Anthony Basile gentoo-dev 2016-06-11 01:04:15 UTC
(In reply to Anthony Basile from comment #3)
> (In reply to Aric Belsito from comment #2)
> > (In reply to Aric Belsito from comment #1)
> > > Created attachment 437108 [details, diff] [details, diff] [details, diff] [details, diff]
> > > gnu89-inline patch.
> > > 
> > > @Felix
> > > 
> > > Can confirm, I had this same issue.
> > > 
> > > I forgot where I found this patch..
> > 
> > Note: I added the patch when I was using GCC 5.3.0
> > 
> > also, we could simply add append-cflags -fgnu89-inline in the ebuild.
> 
> Ah yes, the inline issue is know about gcc6.  I'd rather add the cflag in
> the ebuild.

can you guys test 1.3-r1.  I add

src_configure() {
	append-cflags -fgnu89-inline
	default
}
Comment 5 Felix Janda 2016-06-11 09:03:02 UTC
The in-tree argp-standalone-1.3-r1 works fine for me. Thanks!