Summary: | dev-vcs/rcs-5.9.3 fails to compile with gcc-5.1 | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Martin Väth <martin> |
Component: | [OLD] GCC Porting | Assignee: | Ian Delaney (RETIRED) <idella4> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | b.buschinski, rhill, titanofold |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 536984 | ||
Attachments: | build log |
Description
Martin Väth
2015-05-01 10:42:31 UTC
Need a build log. As mentioned, you get practically the same log as in bug 542302 While in the mentioned bug, the problem was caused by explicitly adding -std=gnu11 to the CFLAGS, when using gcc-5, this happens implicitly because of the changed defaults. That's great, attach the log. Why? Created attachment 402596 [details]
build log
This appears a gcc 5.1 issues and I don't wrok gcc all that much, RHill does (In reply to Ian Delaney from comment #6) > This appears a gcc 5.1 issues Well, it is simply explained: Since gcc-5, the default C dialect is gnu11 (an extension of c11). Obviously, dev-vcs/rcs is written in the gnu99 (an extension of c99) dialect. So, either the syntax is updated to the new standard (which might be quite cumbersome - I am not an expert in details about the C standard and did not try to check), or one instruct gcc-5 with the mentioned compiler switch to accept the previous default dialect. (In previous gcc versions, this switch is presumably a NOOP). also fails with dev-vcs/rcs-5.9.4 (not in tree or cvs or whatever) append-flags -std=gnu99 helps (just for the record) 25 Jul 2015; Ian Delaney <idella4@gentoo.org> rcs-5.9.3.ebuild: set -std=gnu99 into CFLAGS, thanks to fix by Bernd Buschinski in bug #548320 Set to test-request despite that coming under status RESOLVED. CC entries ensure interested parties can runtest and addd comment. (In reply to Ian Delaney from comment #9) > thanks to fix by Bernd Buschinski This fix is from me (see the original report; comment #0). Normally I would not mind, but after I was forced here to post so much redundant data and explanations just to get this fix through, I do not want to see that it is now contributed to somebody else. ChangeLog corrected 25 Jul 2015; Ian Delaney <idella4@gentoo.org> rcs-5.9.3.ebuild: set -std=gnu99 into CFLAGS, thanks to fix by Martin Väth, Comment 0, in bug #548320 Sorry for misreading |