Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 177585 - dev-java/fop-0.93 has package.use.masked doc on amd64 due to out of memory error
Summary: dev-java/fop-0.93 has package.use.masked doc on amd64 due to out of memory error
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Java (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 187600
  Show dependency tree
 
Reported: 2007-05-08 06:54 UTC by menschmeier
Modified: 2015-07-06 13:16 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 menschmeier 2007-05-08 06:54:17 UTC
I did an emerge fop. The emerge process stop with an out of memory error:

c/codegen/font-file.xsl
    [style] Warning: the task name <style> is deprecated. Use <xslt> instead.
    [style] Processing /var/tmp/portage/dev-java/fop-0.93/work/fop-0.93/src/codegen/ZapfDingbats.xml to /var/tmp/portage/dev-java/fop-0.93/work/fop-0.93/build/gensrc/org/apache/fop/fonts/base14/ZapfDingbats.java
    [style] Loading stylesheet /var/tmp/portage/dev-java/fop-0.93/work/fop-0.93/src/codegen/font-file.xsl

compile-java:
    [mkdir] Created dir: /var/tmp/portage/dev-java/fop-0.93/work/fop-0.93/build/classes
    [javac] Compiling 827 source files to /var/tmp/portage/dev-java/fop-0.93/work/fop-0.93/build/classes
    [javac]
    [javac]
    [javac] The system is out of resources.
    [javac] Consult the following stack trace for details.
    [javac] java.lang.OutOfMemoryError

BUILD FAILED
/var/tmp/portage/dev-java/fop-0.93/work/fop-0.93/build.xml:313: Compile failed; see the compiler error output for details.

Total time: 26 seconds

!!! ERROR: dev-java/fop-0.93 failed.
Call stack:
  ebuild.sh, line 1614:   Called dyn_compile
  ebuild.sh, line 971:   Called qa_call 'src_compile'
  environment, line 4851:   Called src_compile
  fop-0.93.ebuild, line 77:   Called eant '-Djdk14.present=true' '-Djce.present=true' 'package' 'javadocs'
  java-utils-2.eclass, line 1815:   Called die

!!! eant failed
!!! If you need support, post the topmost build error, and the call stack if relevant.
!!! A complete build log is located at '/var/tmp/portage/dev-java/fop-0.93/temp/build.log'.

!!! When you file a bug report, please include the following information:
GENTOO_VM=blackdown-jdk-1.4.2  CLASSPATH="" JAVA_HOME="/opt/blackdown-jdk-1.4.2.03"
JAVACFLAGS="-source 1.4 -target 1.4" COMPILER="javac"
and of course, the output of emerge --info


Reproducible: Always

Steps to Reproduce:
1. emerge =dev-java/fop-0.93
2.
3.

Actual Results:  
fop was not installed

Expected Results:  
fop should be installed
Comment 1 Petteri Räty (RETIRED) gentoo-dev 2007-05-08 07:02:09 UTC
How much memory do you have?
Comment 2 menschmeier 2007-05-08 07:07:38 UTC
physical: 2 GB
free RAM: about 1 GB
SWAP: 3 GB
Comment 3 Alistair Bush (RETIRED) gentoo-dev 2007-05-08 07:14:36 UTC
3Gb Swap !!!  dam thats a lot.

Just in process of hunting down optimal amount of to pass to thru -Xmx
currently looks like 256 is good.
Comment 4 Alistair Bush (RETIRED) gentoo-dev 2007-05-08 11:17:27 UTC
Ok.  so here is the sad sad story.

fop's javadocs will not build on amd64.  I tried cranking Xmx over 1g still with no luck and using ecj-3.2.

Currently I have package.use.mask'd the doc use flag for >=fop-0.93. so sorry no javadocs will be available.  I quick look on the web page did not show them to be downloadable separately.  As it looks like we will have to use upstream produced javadocs for amd64.

the ebuild is now depending on eclipse-ecj-3.2 and has ANT_OPTS="-Xmx256M" set.

I have just committed, so this fix should hit the rsync mirrors in a couple of hours.

This bug will stay open until doc are available for amd64.
Comment 5 Petteri Räty (RETIRED) gentoo-dev 2007-05-08 15:48:44 UTC
(In reply to comment #4)
> 
> fop's javadocs will not build on amd64.  I tried cranking Xmx over 1g still
> with no luck and using ecj-3.2.

ecj does not have anything to do with javadocs. Could try how well gjdoc does.
Comment 6 Nick Fortino 2009-07-17 07:00:46 UTC
I just built this with the doc flag, and after addressing an unreasonable 2.3G of virtual memory to create the javadocs, it seemed to build just fine. I'm not sure if 2.3G is still considered a DOS on a 64-bit system, so the mask probably still makes some sense.
Comment 7 Ralph Sennhauser (RETIRED) gentoo-dev 2010-03-07 09:51:38 UTC
Just built fop-0.95 with the doc useflag enabled on an amd64.

Valgrind segfaults, so the numbers below are taken from top.

Virtal size < 1.1GB
Residual size < 270MB

Seems like the mask could be removed and this bug be closed.
Comment 8 Patrice Clement gentoo-dev 2015-07-06 13:16:16 UTC
Package has undergone an update. Consider using fop-2.0.