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.
or just use flag-o-matic and filter it out ;) after all, -O2 is *nothing* like -Os
Now, If I just understood what you just said and how it applies. ;-) So much to learn in such a short time.
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. ;-)
flag-o-matic has been added to the -r9 ebuild of perl. Let me know if this substitution solves the problem for you, Michael
Will test this weekend on several diff machines. Can't do it before then. Will report as soon as tested. Thanx!
Thank spanky - I'd never had to use the flag-o-matic before this, didn't even really know it was there
This is now corrected in the ebuild (and my correction was corected too - 0's and O's)
I've just emerged perl-5.8.5-r1 with the -Os flag, and everything looks fine