Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 13952 - perl 5.8.0 borks with '-Os'
Summary: perl 5.8.0 borks with '-Os'
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High minor (vote)
Assignee: Michael Cummings (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-01-14 20:59 UTC by Guy
Modified: 2004-11-16 12:18 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Guy 2003-01-14 20:59:57 UTC
Disclaimer: I personally consider this to be a very trivial matter. HOWEVER. 
 
1) I've been closely following all the various difficulties (of what I've understood anyway) with perl 
5.8.0 and perl 5.6.1 etc. 
 
2) I've been following the discussion of 'USE flags per package' discussion. I realize that discussion is 
from the standpoint of the gentoo user so this is kind of the inverse of that. IE - from the standpoint 
of the ebuild. 
 
3) If someone else encounters the same problem, they can (hopefully) find it here and resolve it real 
quick. :-) 
 
The Problem: 
 
Perl 5.8.0 borks when CFLAGS includes -Os as the optimization option. This occurs during the 
compiliation of pp_pack.c (may be in libperl 5.8.0). The error is of the type that value ffffffffff??? is 
too big for field 00000000???. 
 
Work Around: 
 
Method 1: 
# env CFLAGS="-march??? -O2 -pipe" emerge libperl 
# env CFLAGS="-march??? -Os -pipe" 
 
Method 2: 
# nano -w /etc/make.conf  (change CFLAGS there.) 
# emerge libperl. 
# nano -w /etc/make.conf (change CFLAGS back.) 
 
I used method 2 as method 1 didn't occur to me until I had already kicked off the new ebuild of libperl. 
So method 1 may not be quite correct. 
 
Suggestion: 
The ebuild should be updated to check for CFLAG -Os and to change this to -O2 for the duration of 
the ebuild.
Comment 1 SpanKY gentoo-dev 2003-01-14 21:03:39 UTC
or just use flag-o-matic and filter it out ;) 
after all, -O2 is *nothing* like -Os 
Comment 2 Guy 2003-01-14 22:01:28 UTC
Now, If I just understood what you just said and how it applies.  ;-) 
So much to learn in such a short time.
Comment 3 Guy 2003-01-15 08:28:43 UTC
I now understand the gist of the flag-o-matic eclass. I assume this would apply
to anyone changing or customizing the perl 5.8.0 ebuild. ;-)
Comment 4 Michael Cummings (RETIRED) gentoo-dev 2003-01-16 14:37:14 UTC
flag-o-matic has been added to the -r9 ebuild of perl. Let me know if this
substitution solves the problem for you,

Michael
Comment 5 Guy 2003-01-17 06:57:07 UTC
Will test this weekend on several diff machines. Can't do it before then. Will report as soon as tested. 
Thanx! 
Comment 6 Michael Cummings (RETIRED) gentoo-dev 2003-01-17 07:04:15 UTC
Thank spanky - I'd never had to use the flag-o-matic before this, didn't even 
really know it was there
Comment 7 Michael Cummings (RETIRED) gentoo-dev 2003-01-26 10:28:07 UTC
This is now corrected in the ebuild (and my correction was corected too - 0's
and O's)
Comment 8 Moshe Kamensky 2004-11-16 12:18:18 UTC
I've just emerged perl-5.8.5-r1 with the -Os flag, and everything looks fine