Summary: | dev-lang/perl-5.20.2 Errno module broken with GCC 5.1 | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Patrick Lauer <patrick> |
Component: | [OLD] GCC Porting | Assignee: | Gentoo Perl team <perl> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | bugzie, gem, martin, rhill |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
URL: | https://rt.perl.org/Public/Bug/Display.html?id=123784 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 915000, 536984 | ||
Attachments: |
Add option -P to cpp to fix compilation with gcc-5
perl-5.20.2-gcc51.patch |
Description
Patrick Lauer
2015-04-29 02:19:38 UTC
*** Bug 548294 has been marked as a duplicate of this bug. *** Created attachment 402380 [details, diff] Add option -P to cpp to fix compilation with gcc-5 Since -P is not passed to the cpp preprocessor in perl-5.20.2, errno constants are calculated false with gcc-5, causing e.g. Socket.pm to fail to compile with use strict The attached fix is a backport of the upstream fix https://github.com/Perl/perl5/commit/3bea78d24634e630b610f59957e7a019205a67b2 Created attachment 402738 [details, diff] perl-5.20.2-gcc51.patch I think that patch is incomplete. We need both of these: https://github.com/Perl/perl5/commit/816b056ffb99ae54642320e20dc30a59fd1effef https://github.com/Perl/perl5/commit/3bea78d24634e630b610f59957e7a019205a67b2 Without the second we get: # Failed test 5 - preamble compiles at ../lib/h2ph.t line 49 # got 'Bareword found where operator expected at _h2ph_pre.ph line 212, near "7fff" # (Missing operator before fff?) # Bareword found where operator expected at _h2ph_pre.ph line 218, near "7fffffff" # (Missing operator before fffffff?) # Bareword found where operator expected at _h2ph_pre.ph line 224, near "7fffffffffffffffL" # (Missing operator before fffffffffffffffL?) # Bareword found where operator expected at _h2ph_pre.ph line 230, near "7f" # (Missing operator before f?) # Bareword found where operator expected at _h2ph_pre.ph line 236, near "7fffffffffffffffL" # (Missing operator before fffffffffffffffL?) # Bareword found where operator expected at _h2ph_pre.ph line 240, near "7fffffffffffffffL" # (Missing operator before fffffffffffffffL?) # Bareword found where operator expected at _h2ph_pre.ph line 244, near "7fffffffffffffffL" # (Missing operator before fffffffffffffffL?) # Bareword found where operator expected at _h2ph_pre.ph line 248, near "7fffffffffffffffL" # (Missing operator before fffffffffffffffL?) # Bareword found where operator expected at _h2ph_pre.ph line 252, near "7fffffffffffffffL" # (Missing operator before fffffffffffffffL?) # Bareword found where operator expected at _h2ph_pre.ph line 256, near "7f" # (Missing operator before f?) # syntax error at _h2ph_pre.ph line 212, near "7fff " # syntax error at _h2ph_pre.ph line 218, near "7fffffff " # syntax error at _h2ph_pre.ph line 224, near "7fffffffffffffffL " # syntax error at _h2ph_pre.ph line 230, near "7f " # syntax error at _h2ph_pre.ph line 236, near "7fffffffffffffffL " # syntax error at _h2ph_pre.ph line 240, near "7fffffffffffffffL " # syntax error at _h2ph_pre.ph line 244, near "7fffffffffffffffL " # syntax error at _h2ph_pre.ph line 248, near "7fffffffffffffffL " # syntax error at _h2ph_pre.ph line 252, near "7fffffffffffffffL " # syntax error at _h2ph_pre.ph line 256, near "7f " # _h2ph_pre.ph has too many errors. # ' # expected /(?^:syntax OK$)/ ../lib/h2ph.t ..................................................... Failed 1/6 subtests Perl guys, can I get you to add this patch now rather than wait for a new release? It's causing several other packages to break which is making testing difficult. (In reply to Ryan Hill from comment #3) > > Perl guys, can I get you to add this patch now rather than wait for a new > release? It's causing several other packages to break which is making > testing difficult. I can do it over the weekend at latest. Please ping me on irc if I forget. (In reply to Andreas K. Hüttel from comment #4) > (In reply to Ryan Hill from comment #3) > > > > > Perl guys, can I get you to add this patch now rather than wait for a new > > release? It's causing several other packages to break which is making > > testing difficult. > > I can do it over the weekend at latest. Please ping me on irc if I forget. The fix is now in 5.20.2-r1. Thanks! Thanks for the quick response. *** Bug 553600 has been marked as a duplicate of this bug. *** *** Bug 579664 has been marked as a duplicate of this bug. *** |