Sync scala 2.7.7.dfsg-4 (universe) from Debian unstable (main)

Bug #545975 reported by Mehdi
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
scala (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: scala

Please sync scala 2.7.7.dfsg-4 (universe) from Debian unstable (main)

Changelog entries since current lucid version 2.7.7.dfsg-2:

scala (2.7.7.dfsg-4) unstable; urgency=low

  * Fix scaladoc script to use $CLASSPATH variable

 -- Mehdi Dogguy <email address hidden> Tue, 23 Mar 2010 13:20:41 +0100

scala (2.7.7.dfsg-3) unstable; urgency=low

  * Fix scalac script (use $CLASSPATH variable), (LP: #544481)
  * Adjust the JRE/JVM depends (Closes: #573384)

 -- Mehdi Dogguy <email address hidden> Tue, 23 Mar 2010 12:53:15 +0100

Revision history for this message
Fabrice Coutadeur (fabricesp) wrote :

Hi,

I'm not able to build the package: I'm getting this error:
...
BUILD FAILED
/build/fabrice-scala_2.7.7.dfsg-4-amd64-ebqjml/scala-2.7.7.dfsg/debian/simpbuild.xml:447: Execute failed: java.io.IOException: Cannot run program "chmod" (in directory "/build/fabrice-scala_2.7.7.dfsg-4-amd64-ebqjml/scala-2.7.7.dfsg/debian"): java.io.IOException: error=12, Cannot allocate memory

Could you please check you are able to actually build it?

Thank,
Fabrice

Revision history for this message
Mehdi (mehdid) wrote : Re: [Bug 545975] Re: Sync scala 2.7.7.dfsg-4 (universe) from Debian unstable (main)

Fabrice Coutadeur wrote:
> Hi,
>
> I'm not able to build the package: I'm getting this error:
> ...
> BUILD FAILED
> /build/fabrice-scala_2.7.7.dfsg-4-amd64-ebqjml/scala-2.7.7.dfsg/debian/simpbuild.xml:447: Execute failed: java.io.IOException: Cannot run program "chmod" (in directory "/build/fabrice-scala_2.7.7.dfsg-4-amd64-ebqjml/scala-2.7.7.dfsg/debian"): java.io.IOException: error=12, Cannot allocate memory
>
> Could you please check you are able to actually build it?
>

Yes, I'm able to build it without any problem. Your error seems strange.
What's your JVM? On which architecture did you try to build it? with how
much memory?

Cheers,

--
Mehdi Dogguy مهدي الدڤي
http://www.pps.jussieu.fr/~dogguy
Tel.: (+33).1.44.27.28.38

Revision history for this message
Fabrice Coutadeur (fabricesp) wrote :

Hi,

I'm building the package with sbuild, on Lucid, on an amd64 desktop, with 2Gb of RAM..
Here is the full build log.

Fabrice

Revision history for this message
Mehdi (mehdid) wrote :

Fabrice Coutadeur wrote:
> Hi,
>
> I'm building the package with sbuild, on Lucid, on an amd64 desktop, with 2Gb of RAM..
> Here is the full build log.
>

I just tested on a "Debian" amd64 box and it compiles fine. I'll check
what's going on in Lucid when I find time for that, if you don't do it
before :)

Cheers,

--
Mehdi Dogguy مهدي الدڤي
http://www.pps.jussieu.fr/~dogguy
Tel.: (+33).1.44.27.28.38

Revision history for this message
Fabrice Coutadeur (fabricesp) wrote :

Hi,

I've been able to build it by reducing the max memory allocated to Java to 521 instead of 1024:
override_dh_auto_build:
        ANT_OPTS="-Xmx512M -Xss64M" ant -f debian/simpbuild.xml build docs dist

I read somewhere that fork sometime tries to allocate the same amount of memory than used in the JVM.

Could you actually check that you can still build it with 512M?

Thanks,
Fabrice

Revision history for this message
Mehdi (mehdid) wrote :

Fabrice Coutadeur wrote:
> Hi,
>
> I've been able to build it by reducing the max memory allocated to Java to 521 instead of 1024:
> override_dh_auto_build:
> ANT_OPTS="-Xmx512M -Xss64M" ant -f debian/simpbuild.xml build docs dist
>
> I read somewhere that fork sometime tries to allocate the same amount of
> memory than used in the JVM.
>
> Could you actually check that you can still build it with 512M?
>

It does work for me. Thanks for the time you've dedicated to this build
failure.

Regards,

--
Mehdi Dogguy مهدي الدڤي
http://www.pps.jussieu.fr/~dogguy
Tel.: (+33).1.44.27.28.38

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package scala - 2.7.7.dfsg-4ubuntu1

---------------
scala (2.7.7.dfsg-4ubuntu1) lucid; urgency=low

  * New version from Debian (LP: #545975)
  * debian/rules: reduce max memory to 512 by modifying Java params to avoid a
    "Cannot allocate memory" error during build with less than 2Gb
 -- Fabrice Coutadeur <email address hidden> Sun, 28 Mar 2010 19:54:55 +0200

Changed in scala (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.