Install failing on Ubuntu 64-bit

3 views
Skip to first unread message

Dustin Withers

unread,
Aug 14, 2007, 9:23:27 PM8/14/07
to liftweb
I've installed all of the requirements detailed on
http://blog.circleshare.com/index.php?/archives/62-lift-QuickStart.html#extended

When I run mvn -e clean:clean install and pipe the output to a file I
get the following:

+ Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO] Reactor build order:
[INFO] Lift
[INFO] Lift Core
[INFO] Lift Example
[INFO] Skittr Example
[INFO] Searching repository for plugin with prefix: 'clean'.
[INFO]
----------------------------------------------------------------------------
[INFO] Building Lift
[INFO] task-segment: [clean:clean, install]
[INFO]
----------------------------------------------------------------------------
[INFO] [clean:clean]
[INFO] Deleting directory /home/dustin/liftweb/liftweb/target
[INFO] Deleting directory /home/dustin/liftweb/liftweb/target/classes
[INFO] Deleting directory /home/dustin/liftweb/liftweb/target/test-
classes
[INFO] Deleting directory /home/dustin/liftweb/liftweb/target/site
[INFO] [site:attach-descriptor]
[INFO] [install:install]
[INFO] Installing /home/dustin/liftweb/liftweb/pom.xml to /root/.m2/
repository/net/liftweb/lift/0.2.0/lift-0.2.0.pom
[INFO]
----------------------------------------------------------------------------
[INFO] Building Lift Core
[INFO] task-segment: [clean:clean, install]
[INFO]
----------------------------------------------------------------------------
[INFO] [clean:clean]
[INFO] Deleting directory /home/dustin/liftweb/liftweb/lift/target
[INFO] Deleting directory /home/dustin/liftweb/liftweb/lift/target/
classes
[INFO] Deleting directory /home/dustin/liftweb/liftweb/lift/target/
test-classes
[INFO] Deleting directory /home/dustin/liftweb/liftweb/lift/target/
site
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
[INFO] Nothing to compile - all classes are up to date
[INFO] [scala:compile {execution: default}]
[INFO] Exception in thread "main" java.lang.OutOfMemoryError: Java
heap space
[INFO]
------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
------------------------------------------------------------------------
[INFO] scala compiler returned non-zero value.
[INFO]
------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: scala compiler
returned non-zero value.
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:
564)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:
480)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:
459)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:
311)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:
278)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:
143)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:280)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:
315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:
430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.MojoExecutionException: scala
compiler returned non-zero value.
at iodp.usio.CommandMojo.runCommand(CommandMojo.java:70)
at iodp.usio.ScalaCompileMojo.execute(ScalaCompileMojo.java:40)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:
443)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:
539)
... 16 more
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 2 minutes 2 seconds
[INFO] Finished at: Tue Aug 14 19:41:13 CDT 2007
[INFO] Final Memory: 13M/31M
[INFO]
------------------------------------------------------------------------

Any ideas?

Thanks,
-dustin

Dustin Withers

unread,
Aug 14, 2007, 9:42:21 PM8/14/07
to liftweb

Dustin Withers

unread,
Aug 15, 2007, 1:03:34 AM8/15/07
to liftweb
Figured out the problem. 64-bit JVM. Installed the 32-bit and it
solved the out of memory problem.

-dustin

David Pollak

unread,
Aug 15, 2007, 8:57:15 AM8/15/07
to lif...@googlegroups.com
Dustin,

Thanks for the post. I'll increase the memory size for the compiler
and also start testing on my 64 bit machine.

David

--
David Pollak
http://blog.lostlake.org

Michael Campbell

unread,
Aug 15, 2007, 10:23:49 AM8/15/07
to lif...@googlegroups.com
On 8/15/07, Dustin Withers <fade...@gmail.com> wrote:
>
> Figured out the problem. 64-bit JVM. Installed the 32-bit and it
> solved the out of memory problem.


You must have been SO close, only needing that extra 32 bits of memory
to get it to work! =)

David Pollak

unread,
Aug 15, 2007, 11:33:54 AM8/15/07
to lif...@googlegroups.com
Dustin,

I've committed a change to head that bumps the heap size during
compilation from 1024M to 1525M. This should work. I don't
currently have a 64 bit machine to test on (I'm on vacation and only
have my Mac laptop.) If you have a chance to test it, I'd like to
see the results.

Thanks,

David

On Aug 14, 2007, at 10:03 PM, Dustin Withers wrote:

--
David Pollak
http://blog.lostlake.org

octoberdan

unread,
Aug 31, 2007, 3:16:17 AM8/31/07
to liftweb
After reading that you needed some one to test it, I gave it a whirl.

daniel@octobertop:/share/lift/liftweb/liftweb$ mvn --version && java -
version
Maven version: 2.0.7
Java version: 1.6.0
OS name: "linux" version: "2.6.20-16-generic" arch: "amd64"
java version "1.6.0"
Java(TM) SE Runtime Environment (build 1.6.0-b105)
Java HotSpot(TM) 64-Bit Server VM (build 1.6.0-b105, mixed mode)

daniel@octobertop:/share/lift/liftweb/liftweb$ mvn -e clean:clean
install


+ Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO] Reactor build order:
[INFO] Lift
[INFO] Lift Core
[INFO] Lift Example
[INFO] Skittr Example
[INFO] Searching repository for plugin with prefix: 'clean'.
[INFO]
----------------------------------------------------------------------------
[INFO] Building Lift
[INFO] task-segment: [clean:clean, install]
[INFO]
----------------------------------------------------------------------------
[INFO] [clean:clean]

[INFO] Deleting directory /share/lift/liftweb/liftweb/target
[INFO] Deleting directory /share/lift/liftweb/liftweb/target/classes
[INFO] Deleting directory /share/lift/liftweb/liftweb/target/test-
classes
[INFO] Deleting directory /share/lift/liftweb/liftweb/target/site


[INFO] [site:attach-descriptor]
[INFO] [install:install]

[INFO] Installing /share/lift/liftweb/liftweb/pom.xml to /home/
daniel/.m2/repository/net/liftweb/lift/0.2.0/lift-0.2.0.pom


[INFO]
----------------------------------------------------------------------------
[INFO] Building Lift Core
[INFO] task-segment: [clean:clean, install]
[INFO]
----------------------------------------------------------------------------
[INFO] [clean:clean]

[INFO] Deleting directory /share/lift/liftweb/liftweb/lift/target
[INFO] Deleting directory /share/lift/liftweb/liftweb/lift/target/
classes
[INFO] Deleting directory /share/lift/liftweb/liftweb/lift/target/test-
classes
[INFO] Deleting directory /share/lift/liftweb/liftweb/lift/target/site


[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
[INFO] Nothing to compile - all classes are up to date
[INFO] [scala:compile {execution: default}]
[INFO] Exception in thread "main" java.lang.OutOfMemoryError: Java
heap space

[INFO] at java.util.Arrays.copyOf(Arrays.java:2882)
[INFO] at
java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:
100)
[INFO] at
java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:390)
[INFO] at java.lang.StringBuffer.append(StringBuffer.java:224)
[INFO] at scala.compat.StringBuilder.append(StringBuilder.scala:35)
[INFO] at scala.tools.nsc.backend.icode.GenICode$ICodePhase
$Context.toString(GenICode.scala:1723)
[INFO] at java.lang.String.valueOf(String.java:2827)
[INFO] at java.lang.StringBuffer.append(StringBuffer.java:219)
[INFO] at scala.tools.nsc.backend.icode.GenICode
$ICodePhase.genLoadArguments(GenICode.scala:1044)
[INFO] at scala.tools.nsc.backend.icode.GenICode$ICodePhase.scala
$tools$nsc$backend$icode$GenICode$ICodePhase$$genLoad(GenICode.scala:
795)
[INFO] at scala.tools.nsc.backend.icode.GenICode
$ICodePhase.gen(GenICode.scala:114)
[INFO] at scala.tools.nsc.backend.icode.GenICode$ICodePhase$$anonfun
$0.apply(GenICode.scala:73)
[INFO] at scala.tools.nsc.backend.icode.GenICode$ICodePhase$$anonfun
$0.apply(GenICode.scala:73)
[INFO] at scala.List.foreach(List.scala:699)
[INFO] at scala.tools.nsc.backend.icode.GenICode
$ICodePhase.gen(GenICode.scala:73)
[INFO] at scala.tools.nsc.backend.icode.GenICode
$ICodePhase.gen(GenICode.scala:136)
[INFO] at scala.tools.nsc.backend.icode.GenICode
$ICodePhase.gen(GenICode.scala:91)
[INFO] at scala.tools.nsc.backend.icode.GenICode$ICodePhase$$anonfun
$0.apply(GenICode.scala:73)
[INFO] at scala.tools.nsc.backend.icode.GenICode$ICodePhase$$anonfun
$0.apply(GenICode.scala:73)
[INFO] at scala.List.foreach(List.scala:699)
[INFO] at scala.tools.nsc.backend.icode.GenICode
$ICodePhase.gen(GenICode.scala:73)
[INFO] at scala.tools.nsc.backend.icode.GenICode
$ICodePhase.gen(GenICode.scala:83)
[INFO] at scala.tools.nsc.backend.icode.GenICode$ICodePhase$$anonfun
$0.apply(GenICode.scala:73)
[INFO] at scala.tools.nsc.backend.icode.GenICode$ICodePhase$$anonfun
$0.apply(GenICode.scala:73)
[INFO] at scala.List.foreach(List.scala:699)
[INFO] at scala.tools.nsc.backend.icode.GenICode
$ICodePhase.gen(GenICode.scala:73)
[INFO] at scala.tools.nsc.backend.icode.GenICode
$ICodePhase.gen(GenICode.scala:83)
[INFO] at scala.tools.nsc.backend.icode.GenICode$ICodePhase$$anonfun
$0.apply(GenICode.scala:73)
[INFO] at scala.tools.nsc.backend.icode.GenICode$ICodePhase$$anonfun
$0.apply(GenICode.scala:73)
[INFO] at scala.List.foreach(List.scala:699)
[INFO] at scala.tools.nsc.backend.icode.GenICode
$ICodePhase.gen(GenICode.scala:73)
[INFO] at scala.tools.nsc.backend.icode.GenICode
$ICodePhase.gen(GenICode.scala:83)

at java.lang.reflect.Method.invoke(Method.java:597)


at
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.MojoExecutionException: scala
compiler returned non-zero value.
at iodp.usio.CommandMojo.runCommand(CommandMojo.java:70)
at iodp.usio.ScalaCompileMojo.execute(ScalaCompileMojo.java:
40)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:
443)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:
539)
... 16 more
[INFO]
------------------------------------------------------------------------

[INFO] Total time: 2 minutes 59 seconds
[INFO] Finished at: Fri Aug 31 02:14:45 GMT-05:00 2007
[INFO] Final Memory: 13M/32M
[INFO]
------------------------------------------------------------------------

David Pollak

unread,
Aug 31, 2007, 11:54:31 AM8/31/07
to lif...@googlegroups.com
Any change you could try it with head rather than the 0.2.0 tag? I
made a change to increase the amount of memory available for
compilation.

Thanks!

David


--
lift, the fast, powerful, easy web framework
http://liftweb.net

Daniel Green

unread,
Aug 31, 2007, 12:05:22 PM8/31/07
to lif...@googlegroups.com
Oh, whoops. Sure. I test the wrong code by mistake. Would that be the code found in http://liftweb.googlecode.com/svn/trunk/ ?

> [INFO]  at scala.compat.StringBuilder.append (StringBuilder.scala:35)
> org.codehaus.classworlds.Launcher.mainWithExitCode (Launcher.java:430)

Daniel Green

unread,
Aug 31, 2007, 12:39:53 PM8/31/07
to lif...@googlegroups.com
Works :-) "BUILD SUCCESSFUL"

David Pollak

unread,
Aug 31, 2007, 4:55:40 PM8/31/07
to lif...@googlegroups.com
On 8/31/07, Daniel Green <octob...@gmail.com> wrote:
Oh, whoops. Sure. I test the wrong code by mistake. Would that be the code found in http://liftweb.googlecode.com/svn/trunk/ ?

Yep
Reply all
Reply to author
Forward
0 new messages