Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 453612 - dev-java/icedtea fails to build with -Os
Summary: dev-java/icedtea fails to build with -Os
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Andrew John Hughes
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-01-23 01:57 UTC by Rick Farina (Zero_Chaos)
Modified: 2013-03-17 15:45 UTC (History)
5 users (show)

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


Attachments
strace of failing command (strace-java,60.66 KB, text/plain)
2013-01-23 02:00 UTC, Rick Farina (Zero_Chaos)
Details

Note You need to log in before you can comment on or make changes to this bug.
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 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.