A boot image building error

View: New views
6 Messages — Rating Filter:   Alert me  

A boot image building error

by Colin(Du Li) :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I implement a read barrier. I encounter a boot image building error as follows. Can anyone give me some clue on why this error is caused and how to fix it.
Thanks a lot!

build-bootimage:
     [echo] Building bootimage. Output redirected to : /home/dli/Jikes/working/jikesrvm-3.1.0/target/development_x86_64-linux/BootImageWriterOutput.txt
     [echo] MMTk properties = /home/dli/Jikes/working/jikesrvm-3.1.0/build/mmtk/default.properties
     [java] BootImageWriter: compiler arg: O2
     [echo] BootImageCompiler: init (opt compiler)
     [echo] Exception occurred in ConvertLIRtoMIR
     [echo] org.jikesrvm.compilers.opt.OptimizingCompilerException: ERROR produced in module:BURS
     [echo]     rule missing in   G  call                    t368sa(Lorg/vmmagic/unboxed/ObjectReference;) AF CF OF PF ZF ESP = t1104sa(Lorg/jikesrvm/ArchitectureSpecific$CodeArray;),
     [echo] virtual_exact"< BootstrapCL, Lorg/mmtk/plan/copyms/CopyMSMutator; >.readBarrier (Lorg/vmmagic/unboxed/ObjectReference;Lorg/vmmagic/unboxed/Address;Lorg/vmmagic/unboxed/Word;Lorg/vmmagic/unboxed/Word;I)Lorg/vmmagic/unboxed/ObjectReference;", <TRUEGUARD>, t362sa(Lorg/jikesrvm/scheduler/RVMThread;,p), t1149a(Lorg/jikesrvm/classloader/RVMArray;), t365sa(Lorg/vmmagic/unboxed/Address;), 68, 3673, 0 ESP
     [echo]    call                    
     [echo]       int_load                
     [echo]          int_load                
     [echo]             INT_CONSTANT 1611137632
     [echo]             INT_CONSTANT 5868
     [echo]          INT_CONSTANT 112
     [echo]       other_operand          
     [echo]          int_move                
     [echo]             register                
     [echo]          other_operand          
     [echo]             int_load                
     [echo]                INT_CONSTANT 1611137632
     [echo]                INT_CONSTANT 7684
     [echo]             other_operand          
     [echo]                int_add                
     [echo]                   INT_CONSTANT 68
     [echo]                   register                
     [echo]                other_operand          
     [echo]                   INT_CONSTANT 68
     [echo]                   other_operand          
     [echo]                      INT_CONSTANT 3673
     [echo]                      INT_CONSTANT 0
     [echo]
     [echo]
     [echo] at org.jikesrvm.compilers.opt.lir2mir.ia32.BURS_STATE.mark(BURS_STATE.java:129)
     [echo] at org.jikesrvm.compilers.opt.lir2mir.NormalBURS.labelTrees(NormalBURS.java:339)
     [echo] at org.jikesrvm.compilers.opt.lir2mir.NormalBURS.invoke(NormalBURS.java:82)
     [echo] at org.jikesrvm.compilers.opt.lir2mir.ConvertLIRtoMIR$DoBURS.perform(ConvertLIRtoMIR.java:417)
     [echo] at org.jikesrvm.compilers.opt.driver.CompilerPhase.performPhase(CompilerPhase.java:205)
     [echo] at org.jikesrvm.compilers.opt.driver.OptimizationPlanAtomicElement.perform(OptimizationPlanAtomicElement.java:88)
     [echo] at org.jikesrvm.compilers.opt.driver.OptimizationPlanCompositeElement.perform(OptimizationPlanCompositeElement.java:143)
     [echo] at org.jikesrvm.compilers.opt.driver.OptimizationPlanCompositeElement.perform(OptimizationPlanCompositeElement.java:143)
     [echo] at org.jikesrvm.compilers.opt.driver.CompilationPlan.execute(CompilationPlan.java:131)
     [echo] at org.jikesrvm.compilers.opt.driver.OptimizingCompiler.compile(OptimizingCompiler.java:224)
     [echo] at org.jikesrvm.compilers.opt.driver.OptimizingBootImageCompiler.compileMethod(OptimizingBootImageCompiler.java:119)
     [echo] at org.jikesrvm.compilers.common.BootImageCompiler.compile(BootImageCompiler.java:62)
     [echo] at org.jikesrvm.compilers.common.BootImageCompiler.compile(BootImageCompiler.java:66)
     [echo] at org.jikesrvm.classloader.NormalMethod.genCode(NormalMethod.java:180)
     [echo] at org.jikesrvm.classloader.RVMMethod.compile(RVMMethod.java:729)
     [echo] at org.jikesrvm.classloader.RVMMethod.getCurrentEntryCodeArray(RVMMethod.java:713)
     [echo] at org.jikesrvm.classloader.RVMClass.instantiate(RVMClass.java:1447)
     [echo] at org.jikesrvm.tools.bootImageWriter.BootImageWorker.run(BootImageWorker.java:44)
     [echo] at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
     [echo] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
     [echo] at java.lang.Thread.run(Thread.java:619)

      ....

Re: A boot image building error

by Colin(Du Li) :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

In the post, I showed only part of the error message.
The total error message is attached.
Hope you guys can give me some help on understand what the wrong is.

Thanks again.

Du Lierror_msg.txt
Colin(Du Li) wrote:
I implement a read barrier. I encounter a boot image building error as follows. Can anyone give me some clue on why this error is caused and how to fix it.
Thanks a lot!

build-bootimage:
     [echo] Building bootimage. Output redirected to : /home/dli/Jikes/working/jikesrvm-3.1.0/target/development_x86_64-linux/BootImageWriterOutput.txt
     [echo] MMTk properties = /home/dli/Jikes/working/jikesrvm-3.1.0/build/mmtk/default.properties
     [java] BootImageWriter: compiler arg: O2
     [echo] BootImageCompiler: init (opt compiler)
     [echo] Exception occurred in ConvertLIRtoMIR
     [echo] org.jikesrvm.compilers.opt.OptimizingCompilerException: ERROR produced in module:BURS
     [echo]     rule missing in   G  call                    t368sa(Lorg/vmmagic/unboxed/ObjectReference;) AF CF OF PF ZF ESP = t1104sa(Lorg/jikesrvm/ArchitectureSpecific$CodeArray;),
     [echo] virtual_exact"< BootstrapCL, Lorg/mmtk/plan/copyms/CopyMSMutator; >.readBarrier (Lorg/vmmagic/unboxed/ObjectReference;Lorg/vmmagic/unboxed/Address;Lorg/vmmagic/unboxed/Word;Lorg/vmmagic/unboxed/Word;I)Lorg/vmmagic/unboxed/ObjectReference;", <TRUEGUARD>, t362sa(Lorg/jikesrvm/scheduler/RVMThread;,p), t1149a(Lorg/jikesrvm/classloader/RVMArray;), t365sa(Lorg/vmmagic/unboxed/Address;), 68, 3673, 0 ESP
     [echo]    call                    
     [echo]       int_load                
     [echo]          int_load                
     [echo]             INT_CONSTANT 1611137632
     [echo]             INT_CONSTANT 5868
     [echo]          INT_CONSTANT 112
     [echo]       other_operand          
     [echo]          int_move                
     [echo]             register                
     [echo]          other_operand          
     [echo]             int_load                
     [echo]                INT_CONSTANT 1611137632
     [echo]                INT_CONSTANT 7684
     [echo]             other_operand          
     [echo]                int_add                
     [echo]                   INT_CONSTANT 68
     [echo]                   register                
     [echo]                other_operand          
     [echo]                   INT_CONSTANT 68
     [echo]                   other_operand          
     [echo]                      INT_CONSTANT 3673
     [echo]                      INT_CONSTANT 0
     [echo]
     [echo]
     [echo] at org.jikesrvm.compilers.opt.lir2mir.ia32.BURS_STATE.mark(BURS_STATE.java:129)
     [echo] at org.jikesrvm.compilers.opt.lir2mir.NormalBURS.labelTrees(NormalBURS.java:339)
     [echo] at org.jikesrvm.compilers.opt.lir2mir.NormalBURS.invoke(NormalBURS.java:82)
     [echo] at org.jikesrvm.compilers.opt.lir2mir.ConvertLIRtoMIR$DoBURS.perform(ConvertLIRtoMIR.java:417)
     [echo] at org.jikesrvm.compilers.opt.driver.CompilerPhase.performPhase(CompilerPhase.java:205)
     [echo] at org.jikesrvm.compilers.opt.driver.OptimizationPlanAtomicElement.perform(OptimizationPlanAtomicElement.java:88)
     [echo] at org.jikesrvm.compilers.opt.driver.OptimizationPlanCompositeElement.perform(OptimizationPlanCompositeElement.java:143)
     [echo] at org.jikesrvm.compilers.opt.driver.OptimizationPlanCompositeElement.perform(OptimizationPlanCompositeElement.java:143)
     [echo] at org.jikesrvm.compilers.opt.driver.CompilationPlan.execute(CompilationPlan.java:131)
     [echo] at org.jikesrvm.compilers.opt.driver.OptimizingCompiler.compile(OptimizingCompiler.java:224)
     [echo] at org.jikesrvm.compilers.opt.driver.OptimizingBootImageCompiler.compileMethod(OptimizingBootImageCompiler.java:119)
     [echo] at org.jikesrvm.compilers.common.BootImageCompiler.compile(BootImageCompiler.java:62)
     [echo] at org.jikesrvm.compilers.common.BootImageCompiler.compile(BootImageCompiler.java:66)
     [echo] at org.jikesrvm.classloader.NormalMethod.genCode(NormalMethod.java:180)
     [echo] at org.jikesrvm.classloader.RVMMethod.compile(RVMMethod.java:729)
     [echo] at org.jikesrvm.classloader.RVMMethod.getCurrentEntryCodeArray(RVMMethod.java:713)
     [echo] at org.jikesrvm.classloader.RVMClass.instantiate(RVMClass.java:1447)
     [echo] at org.jikesrvm.tools.bootImageWriter.BootImageWorker.run(BootImageWorker.java:44)
     [echo] at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
     [echo] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
     [echo] at java.lang.Thread.run(Thread.java:619)

      ....

[rvm-research] BootImageWriter: bootimage full

by Luke Terry :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi all,

I'm encountering an issue when building a boot image for a modified
version of the RVM and hoping that somebody can tell me how to increase
the allocation for the image writer:

BootImageWriter: bootimage full (need at least 940 more bytes for data)

Thanks,

Luke Terry

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Jikesrvm-researchers mailing list
Jikesrvm-researchers@...
https://lists.sourceforge.net/lists/listinfo/jikesrvm-researchers

Re: [rvm-research] BootImageWriter: bootimage full

by Laurence Hellyer :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


On 4 Nov 2009, at 13:27, Luke Terry wrote:

> Hi all,
>
> I'm encountering an issue when building a boot image for a modified
> version of the RVM and hoping that somebody can tell me how to  
> increase
> the allocation for the image writer:
>
> BootImageWriter: bootimage full (need at least 940 more bytes for  
> data)

Hi Luke,

You can increase the bootimage data limit by modifying ./rvm/src-
generated/vm-configuration/HeapLayoutConstants.template.  You will  
need to run a "ant real-clean" after modifying the limit.

Kind regards
Laurence

Laurence Hellyer
Research Student
School of Computing
University of Kent

More info: http://www.cs.kent.ac.uk/people/rpg/lh243/


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Jikesrvm-researchers mailing list
Jikesrvm-researchers@...
https://lists.sourceforge.net/lists/listinfo/jikesrvm-researchers

Re: [rvm-research] BootImageWriter: bootimage full

by Eliot Moss :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Laurence Hellyer wrote:

> On 4 Nov 2009, at 13:27, Luke Terry wrote:
>
>> Hi all,
>>
>> I'm encountering an issue when building a boot image for a modified
>> version of the RVM and hoping that somebody can tell me how to  
>> increase
>> the allocation for the image writer:
>>
>> BootImageWriter: bootimage full (need at least 940 more bytes for  
>> data)
>
> Hi Luke,
>
> You can increase the bootimage data limit by modifying ./rvm/src-
> generated/vm-configuration/HeapLayoutConstants.template.  You will  
> need to run a "ant real-clean" after modifying the limit.

Of course this may mean that you've done something that causes the
image to explode in size, and in that sense it can indicate a bug
in what you're trying to do ...

Cheers -- Eliot Moss

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Jikesrvm-researchers mailing list
Jikesrvm-researchers@...
https://lists.sourceforge.net/lists/listinfo/jikesrvm-researchers

Re: [rvm-research] A boot image building error

by David P Grove :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

"Colin(Du Li)" <dawn2004@...> wrote on 11/03/2009 03:58:07 PM:
>
> In the post, I showed only part of the error message.
> The total error message is attached.
> Hope you guys can give me some help on understand what the wrong is.
>
> Thanks again.
>

Looks to me like an HIR read barrier call got all the way into the LIR2MIR conversion (BURS).  That isn't suppose to happen.  The call should have been expanded away in the HIR2LIR expansion and not gotten into the backend.

--dave

> Du Li http://old.nabble.com/file/p26163588/error_msg.txt error_msg.txt
>
> Colin(Du Li) wrote:
> >
> > I implement a read barrier. I encounter a boot image building error as
> > follows. Can anyone give me some clue on why this error is caused and how
> > to fix it.
> > Thanks a lot!
> >
> > build-bootimage:
> >      [echo] Building bootimage. Output redirected to :
> > /home/dli/Jikes/working/jikesrvm-3.1.0/target/development_x86_64-
> linux/BootImageWriterOutput.txt
> >      [echo] MMTk properties =
> > /home/dli/Jikes/working/jikesrvm-3.1.0/build/mmtk/default.properties
> >      [java] BootImageWriter: compiler arg: O2
> >      [echo] BootImageCompiler: init (opt compiler)
> >      [echo] Exception occurred in ConvertLIRtoMIR
> >      [echo] org.jikesrvm.compilers.opt.OptimizingCompilerException: ERROR
> > produced in module:BURS
> >      [echo]     rule missing in   G  call                  
> > t368sa(Lorg/vmmagic/unboxed/ObjectReference;) AF CF OF PF ZF ESP =
> > t1104sa(Lorg/jikesrvm/ArchitectureSpecific$CodeArray;),
> >      [echo] virtual_exact"< BootstrapCL,
> > Lorg/mmtk/plan/copyms/CopyMSMutator; >.readBarrier
> > (Lorg/vmmagic/unboxed/ObjectReference;Lorg/vmmagic/unboxed/
> Address;Lorg/vmmagic/unboxed/Word;Lorg/vmmagic/unboxed/Word;I)Lorg/
> vmmagic/unboxed/ObjectReference;",
> > <TRUEGUARD>, t362sa(Lorg/jikesrvm/scheduler/RVMThread;,p),
> > t1149a(Lorg/jikesrvm/classloader/RVMArray;),
> > t365sa(Lorg/vmmagic/unboxed/Address;), 68, 3673, 0 ESP
> >      [echo]    call                    
> >      [echo]       int_load                
> >      [echo]          int_load                
> >      [echo]             INT_CONSTANT 1611137632
> >      [echo]             INT_CONSTANT 5868
> >      [echo]          INT_CONSTANT 112
> >      [echo]       other_operand          
> >      [echo]          int_move                
> >      [echo]             register                
> >      [echo]          other_operand          
> >      [echo]             int_load                
> >      [echo]                INT_CONSTANT 1611137632
> >      [echo]                INT_CONSTANT 7684
> >      [echo]             other_operand          
> >      [echo]                int_add                
> >      [echo]                   INT_CONSTANT 68
> >      [echo]                   register                
> >      [echo]                other_operand          
> >      [echo]                   INT_CONSTANT 68
> >      [echo]                   other_operand          
> >      [echo]                      INT_CONSTANT 3673
> >      [echo]                      INT_CONSTANT 0
> >      [echo]
> >      [echo]
> >      [echo]    at
> > org.jikesrvm.compilers.opt.lir2mir.ia32.BURS_STATE.mark(BURS_STATE.java:129)
> >      [echo]    at
> > org.jikesrvm.compilers.opt.lir2mir.NormalBURS.labelTrees
> (NormalBURS.java:339)
> >      [echo]    at
> > org.jikesrvm.compilers.opt.lir2mir.NormalBURS.invoke(NormalBURS.java:82)
> >      [echo]    at
> > org.jikesrvm.compilers.opt.lir2mir.ConvertLIRtoMIR$DoBURS.perform
> (ConvertLIRtoMIR.java:417)
> >      [echo]    at
> > org.jikesrvm.compilers.opt.driver.CompilerPhase.performPhase
> (CompilerPhase.java:205)
> >      [echo]    at
> >
> org.jikesrvm.compilers.opt.driver.OptimizationPlanAtomicElement.perform
> (OptimizationPlanAtomicElement.java:88)
> >      [echo]    at
> >
> org.jikesrvm.compilers.opt.driver.OptimizationPlanCompositeElement.perform
> (OptimizationPlanCompositeElement.java:143)
> >      [echo]    at
> >
> org.jikesrvm.compilers.opt.driver.OptimizationPlanCompositeElement.perform
> (OptimizationPlanCompositeElement.java:143)
> >      [echo]    at
> > org.jikesrvm.compilers.opt.driver.CompilationPlan.execute
> (CompilationPlan.java:131)
> >      [echo]    at
> > org.jikesrvm.compilers.opt.driver.OptimizingCompiler.compile
> (OptimizingCompiler.java:224)
> >      [echo]    at
> >
> org.jikesrvm.compilers.opt.driver.OptimizingBootImageCompiler.compileMethod
> (OptimizingBootImageCompiler.java:119)
> >      [echo]    at
> > org.jikesrvm.compilers.common.BootImageCompiler.compile
> (BootImageCompiler.java:62)
> >      [echo]    at
> > org.jikesrvm.compilers.common.BootImageCompiler.compile
> (BootImageCompiler.java:66)
> >      [echo]    at
> > org.jikesrvm.classloader.NormalMethod.genCode(NormalMethod.java:180)
> >      [echo]    at
> > org.jikesrvm.classloader.RVMMethod.compile(RVMMethod.java:729)
> >      [echo]    at
> > org.jikesrvm.classloader.RVMMethod.getCurrentEntryCodeArray
> (RVMMethod.java:713)
> >      [echo]    at
> > org.jikesrvm.classloader.RVMClass.instantiate(RVMClass.java:1447)
> >      [echo]    at
> > org.jikesrvm.tools.bootImageWriter.BootImageWorker.run
> (BootImageWorker.java:44)
> >      [echo]    at
> > java.util.concurrent.ThreadPoolExecutor$Worker.runTask
> (ThreadPoolExecutor.java:885)
> >      [echo]    at
> > java.util.concurrent.ThreadPoolExecutor$Worker.run
> (ThreadPoolExecutor.java:907)
> >      [echo]    at java.lang.Thread.run(Thread.java:619)
> >
> >       ....
> >
>
> --
> View this message in context: http://old.nabble.com/A-boot-image-
> building-error-tp26163585p26163588.html
> Sent from the jikesrvm-researchers mailing list archive at Nabble.com.
>
>
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay
> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
> http://p.sf.net/sfu/devconference
> _______________________________________________
> Jikesrvm-researchers mailing list
> Jikesrvm-researchers@...
> https://lists.sourceforge.net/lists/listinfo/jikesrvm-researchers

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Jikesrvm-researchers mailing list
Jikesrvm-researchers@...
https://lists.sourceforge.net/lists/listinfo/jikesrvm-researchers