Re: [Gems-users] Ruby compile error


Date: Fri, 29 Jan 2010 14:21:17 -0500
From: Edward Lee <edwl202@xxxxxxxxx>
Subject: Re: [Gems-users] Ruby compile error
Thanks, Abdullah. It works now.

On Fri, Jan 29, 2010 at 11:10 AM, Abdullah Kayi <apokayi@xxxxxxxxxxxxxx> wrote:
> You can try the following hack in case compiler gets confused with previous
> Address declarations although I think this should be a valid function call.
>
> So go to $GEMS/ruby/log_tm/LazyTransactionVersionManager.C and change line
> 283 as follows;
>
> Address ad(request_address);
>
>   CacheMsg storeMsg(ad,
>                     ad,
>                     CacheRequestType_ST_XACT,
> SIMICS_get_program_counter(getLogicalProcID(thread)),
>                     AccessModeType_UserMode,
>                     g_DATA_BLOCK_BYTES,
>                     PrefetchBit_No,
>                     0,
>                     Address(0),
>                     thread,
>                     g_eventQueue_ptr->getTime(),
>                     should_escape
>                     );
>
> I am not sure if this would cause any other problems though :)
>
> Hope this helps.
>
> ~ AK
>
>
>
>
> Edward Lee wrote:
>>
>> Hi,
>>
>> I am trying to make compile Ruby (gems 2.1.1) on a new machine (amd64,
>> ubuntu 9.10).
>>
>> Here is the error I am getting:
>>
>> log_tm/LazyTransactionVersionManager.C: In member function ‘void
>> LazyTransactionVersionManager::issueWriteRequests(int)’:
>> log_tm/LazyTransactionVersionManager.C:284: error: redefinition of
>> ‘Address request_address’
>> log_tm/LazyTransactionVersionManager.C:283: error: ‘Address
>> request_address’ previously declared here
>> make[1]: ***
>> [amd64-linux/generated/MOESI_SMP_directory/obj/LazyTransactionVersionManager.o]
>> Error 1
>>
>> I couldn't install gcc3.4 on this system so I am stuck with newer gcc/g++.
>>
>> Any advice?
>>
>> Regards,
>>
>> Ed
>> _______________________________________________
>> 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.
>
>
[← Prev in Thread] Current Thread [Next in Thread→]