Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 194771 - net-p2p/azureus does not compile on ppc (out of memory)
Summary: net-p2p/azureus does not compile on ppc (out of memory)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: PPC Linux
: High normal (vote)
Assignee: Petteri Räty (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-05 07:36 UTC by Otto Giesenfeld
Modified: 2007-10-05 15:06 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 Otto Giesenfeld 2007-10-05 07:36:21 UTC
The package azureus-2.5.0.4-r1 gets an out of memory error when compiling with ibm-jdk-bin-1.5.0.5a. This is a similar problem as discussed in:

http://bugs.gentoo.org/show_bug.cgi?id=145338

Only, my platform is ppc (Kuro Box with ppc 603e), and therefore the conditionals in the ebuild file do not export an ANT_OPTS value.

I did:

export ANT_OPTS="-Xmx192m"

In the shell before emerging, and then the compile worked fine. Lower values may work, too--this was the only value I tried. This statement should be in the ebuild file. See Additional Information.


Reproducible: Always




From azureus-2.5.0.4-r1.ebuild:

src_compile() {
        # we started to force ecj because -Xmx seemed to have no effect but that
        # was because of ANT_OPTS not exported. Bug #145338
        use x86 && export ANT_OPTS="-Xmx128m"
        use amd64 && export ANT_OPTS="-Xmx256m"

        eant ${ant_extra_opts} jar
}

Suggested code:

src_compile() {
        # we started to force ecj because -Xmx seemed to have no effect but that
        # was because of ANT_OPTS not exported. Bug #145338
        use x86 && export ANT_OPTS="-Xmx128m"
        use amd64 && export ANT_OPTS="-Xmx256m"
        use ppc && export ANT_OPTS="-Xmx192m"

        eant ${ant_extra_opts} jar
}
Comment 1 William L. Thomson Jr. (RETIRED) gentoo-dev 2007-10-05 15:06:47 UTC
Ok, ebuild has been modified. Thanks for the suggestion and testing. Sorry you experienced an oom :) Closing bug.