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: RESOLVED OBSOLETE    
Severity: normal CC: caster, java, kripton, proxy-maint, steev
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=1267
Whiteboard:
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-6.1.11.5/work/icedtea6-1.11.5/bootstrap/jdk1.6.0/bin/java -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 (RETIRED) 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

s/fix/workaround/

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 <sera@gentoo.org> icedtea-6.1.11.5.ebuild,
  icedtea-7.2.3.4.ebuild:
  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.
Comment 5 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2024-03-29 14:37:13 UTC
Package removed.