First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 143895
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Perl Devs @ Gentoo <perl@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: sg313 <sg313d@gmail.com>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
perl-5.8.8-r2.ebuild.patch Filters -fsched2-use-superblocks for perl patch sg313 2006-08-14 09:51 0000 445 bytes Details | Diff
libperl-5.8.8-r1.ebuild.patch Filters -fsched2-use-superblocks for libperl patch sg313 2006-08-14 09:52 0000 462 bytes Details | Diff
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 143895 depends on: Show dependency tree
Bug 143895 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2006-08-14 09:47 0000
perl and libperl don't like the optimization flag -fsched2-use-superblocks in
conjunction with -O2 or higher on gcc-4.1.1. 
This causes perl 'require vX.Y.Z' to fail for versions ending with .0 (Z=0),
for example a perl-5.8.8 installation exit with an error from 
perl -e 'require v5.6.0'; 
On gcc-3.4.6 these malfunctions couldn't be observed.

Description:
The optimization damages loop code in str_to_version. As a consequence the
command >>perl -e require 'vX.Y.0'<< will fail for any values of X,Y;
This seems to be version of a (well) known bug on gcc-bugzilla. They closed
it as wontfix.
See http://gcc.gnu.org/bugzilla/show_bug.cgi?id=323 for details.
If are convinced that this is a another bug, feel free to file it at
the gcc-bugzilla.

Steps to reproduce:
1. Compile libperl/perl >= 5.8 with gcc-4.1.1, -O2 & -fsched2-use-superblocks.
2. perl -e 'require 5.6.0' -> Will abort with error (!)

Proposed solution:
This can be easyly circumvented by using flag-o-matic to  strip
-fsched2-use-superblocks from CFLAGS.
Patches for perl and libperl ebuilds are attached.

------- Comment #1 From sg313 2006-08-14 09:51:42 0000 -------
Created an attachment (id=94253) [details]
Filters -fsched2-use-superblocks for perl

s.o.

------- Comment #2 From sg313 2006-08-14 09:52:32 0000 -------
Created an attachment (id=94254) [details]
Filters -fsched2-use-superblocks for libperl

s.o.

------- Comment #3 From Jakub Moc (RETIRED) 2006-08-14 10:23:34 0000 -------
Quite frankly, we really have better things to do that to filter whatever
ultraweird flag that someone has stuck into his flags for whatever reason. How
about that you filter it yourself?

------- Comment #4 From sg313 2006-08-14 10:41:32 0000 -------
The report was not meant to be an offense. Discard it if you want;
I just wanted to share the solution.

------- Comment #5 From Christian Hartmann 2006-08-15 06:48:59 0000 -------
Fixed in cvs.

------- Comment #6 From sg313 2006-08-15 09:23:41 0000 -------
Thanks!

First Last Prev Next    No search results available      Search page      Enter new bug