Re: [Gems-users] Error Loading Ruby Module


Date: Wed, 25 Oct 2006 17:09:40 -0400
From: "Datta, Kushal" <kdatta@xxxxxxxx>
Subject: Re: [Gems-users] Error Loading Ruby Module
No, my check file does not contain ruby object. I started simics as "./simics -stall checkpoints/<check file>" and tried to load-module ruby. Its giving me the Physical Memory object not found error.

-----Original Message-----
From: gems-users-bounces@xxxxxxxxxxx on behalf of Dan Gibson
Sent: Wed 10/25/2006 2:50 PM
To: Gems Users
Subject: Re: [Gems-users] Error Loading Ruby Module
 
Does your check file contain a ruby object? That is, did you 
write-configuration after a load-module ruby? If so, you'll have to 
manually remove ruby from the check file, as I wrote in my previous mail 
to Derin.

Regards,
Dan

Datta, Kushal wrote:
> Hi Dan,
>
> I double-checked it. Even though I read-configuration a checkpoint file (.conf), it is giving me a "Physical Memory object not found" error. Object phys_mem or phys_mem0 is not allocated.
>
>
> -----Original Message-----
> From: gems-users-bounces@xxxxxxxxxxx on behalf of mehmetderin.harmanci@xxxxxxx
> Sent: Wed 10/25/2006 2:34 PM
> To: Gems Users
> Subject: Re: [Gems-users] Error Loading Ruby Module
>  
>
>   Hello,
>
>     I have a similar problem as Kushal, however it is a slightly different
>   case. I could not solve how to solve it. The problem is as follows:
>
>   Well, what I would like to do is to store a checkpoint during my simulation
>   where Ruby is also running.
>   That's, I start simics with a checkpoint and load Ruby, set the parameters
>   I want and start the simulation. Then I stop the simulation and write the
>   simics configuration to a conf file. When I restart simics from this
>   configuration simics gives the "Physical Memory Object not found" error.
>   I guess simics tries to load ruby module before loading other parts of
>   the checkpoint which are needed by ruby. Is there a turn around for this?
>   Or should I run all my ruby simulations from the very beginning all the
>   time and can not get intermediate checkpoints?
>
>     Sorry for interrupting,
>
>       Derin Harmanci
>
>
>
>
> Quoting Dan Gibson <degibson@xxxxxxxx>:
>
>   
>>
>>
>>
>>
>>
>> Great job diagnosing the first error. I'll probably add that to the FAQ
>> sometime soon.
>>
>>
>>
>> Your new error is caused by not reading a configuration before loading
>> Ruby. At load-time, Ruby searches for a physical memory object to
>> attach itself to-- there is no physical memory object before a
>> checkpoint is loaded.
>>
>>
>>
>> Regards,
>>
>> Dan
>>
>>
>>
>> Datta, Kushal wrote:
>>
>>   Hi Dan,
>>
>> Thanks for your advice. It worked for gcc-4.0.3. Here's the deal. For every
>> makefile, I had to change the LDFLAGS and MODULE_LDFLAGS variables to point
>> to the non-native lib folder. Moreover, the SHELL variable in the
>> common/Makefile.common was set to /bin/sh whereas I was using /bin/bash. At
>> the end, I checked ruby.so, first using ldd and then objdump -T. All the
>> proper files were linked and ruby.so had just one entry for ruby_session_set
>> whereas previosuly it had two entries.
>>
>> When I first start simics from the MOSI_SMP_bcast directory, and do a
>> "load-module ruby" it gives me the error as:
>>
>> /***************************************************************************\
>>  > Physical Memory object cannot be found. If you are NOT compiling Ruby and
>> <
>>  > you see this message, something is wrong.
>> <
>>  > This message is part of the normal compilation process.
>> <
>>
>> \***************************************************************************/
>>
>> Although, the gems-1.3.1 ruby.C file has that patch, still it is throwing
>> this error for the first time. The second time it loads ruby.
>>
>> Now if I try to run the command "ruby0.setparam g_NUM_PROCESSOR 1" in simics,
>> it is giving me an error message as:
>>
>> "attribute param in object ruby0: not found"
>>
>> In fact, although it shows all the attributes of ruby0 when I press TAB, but
>> it cannot find any of them and throws the above error message for all of
>> them.
>>
>> Thanks and regards,
>> Kushal.
>>
>>
>>
>> _______________________________________________
>> Gems-users mailing list
>> Gems-users@xxxxxxxxxxx
>> https://lists.cs.wisc.edu/mailman/listinfo/gems-users
>> Use Google to search the GEMS Users mailing list by adding
>> "site:https://lists.cs.wisc.edu/archive/gems-users/"; to your search.
>>
>>
>>
>>
>>
>>
>>     
>
>
> _______________________________________________
> Gems-users mailing list
> Gems-users@xxxxxxxxxxx
> https://lists.cs.wisc.edu/mailman/listinfo/gems-users
> Use Google to search the GEMS Users mailing list by adding "site:https://lists.cs.wisc.edu/archive/gems-users/"; to your search.
>
>
>   
> ------------------------------------------------------------------------
>
> _______________________________________________
> Gems-users mailing list
> Gems-users@xxxxxxxxxxx
> https://lists.cs.wisc.edu/mailman/listinfo/gems-users
> Use Google to search the GEMS Users mailing list by adding "site:https://lists.cs.wisc.edu/archive/gems-users/"; to your search.
>
>   

-- 
http://www.cs.wisc.edu/~gibson [esc]:wq!

_______________________________________________
Gems-users mailing list
Gems-users@xxxxxxxxxxx
https://lists.cs.wisc.edu/mailman/listinfo/gems-users
Use Google to search the GEMS Users mailing list by adding "site:https://lists.cs.wisc.edu/archive/gems-users/"; to your search.



<<winmail.dat>>

[← Prev in Thread] Current Thread [Next in Thread→]