Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 453612

Summary: dev-java/icedtea fails to build with -Os
Product: Gentoo Linux Reporter: Rick Farina (Zero_Chaos) <zerochaos>
Component: New packagesAssignee: Andrew John Hughes <gnu_andrew>
Status: CONFIRMED ---    
Severity: normal CC: caster, java, kripton, proxy-maint, steev
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also:
Package list:
Runtime testing required: ---
Attachments: strace of failing command

Description Rick Farina (Zero_Chaos) gentoo-dev 2013-01-23 01:57:13 UTC
Both :6 and :7, from gentoo and java-overlay cannot build with CFLAGS="-Os"

During build the following command runs:

"/var/tmp/portage/dev-java/icedtea- -version"

That command blocks forever with 1 cpu at 100%
Comment 1 Rick Farina (Zero_Chaos) gentoo-dev 2013-01-23 02:00:34 UTC
Created attachment 336534 [details]
strace of failing command

strace of the failing command, the end of the file is where output stops, however it just blocks there forever and I have to ^C
Comment 2 Steev Klimaszewski gentoo-dev 2013-01-23 15:45:49 UTC
I'm pretty sure we can replace-flags Os O2 to fix this
Comment 3 Rick Farina (Zero_Chaos) gentoo-dev 2013-01-23 15:55:21 UTC
(In reply to comment #2)
> I'm pretty sure we can replace-flags Os O2 to fix this


But is that enough? I mean if -Os breaks what happens with -O1 or -O3? maybe replacing "O? O2" is safer?
Comment 4 Ralph Sennhauser (RETIRED) gentoo-dev 2013-01-23 17:33:00 UTC
-Os works fine on amd64, so likely an arm specific issue.

  23 Jan 2013; Ralph Sennhauser <> icedtea-,
  Use jamvm and replace -Os with -O2 on arm. #IT1266 #IT1267

With this things should work for our arm users.

About the other -O, -Os can be considered pretty usual / norm for arm, so replacing that is fine. But the others are the responsibility of the user.