Re: [Gems-users] RUBY compilation error


Date: Thu, 25 Oct 2007 11:53:17 +0530 (IST)
From: anup_m@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Gems-users] RUBY compilation error
Derek,
      I forgot to do "make clean". Now it is not showing the same error.
But I am getting new sets of errors as attached in the file. Will you
please help me out with this.


Regards,
Anup




> Anup-
>
> Show me how you overloaded it and the error message you get after
> overloading.
>
> -Derek
>
> anup_m@xxxxxxxxxxxxxxxxxxx wrote:
>> Derek,
>> I typecast with double but getting same error.
>> which math library version should I use.
>>
>> Regards,
>> ANup
>>
>>> You just need to typecast the parameters to the pow function as double
>>> since it appears your version of the math library/compiler doesn't like
>>> integer parameters.
>>>
>>> -Derek
>>>
>>> anup_m@xxxxxxxxxxxxxxxxxxx wrote:
>>>> Hi All,
>>>>
>>>> I am getting following error while compiling ruby on redhat 9.0,
>>>> simics
>>>> 3.0 & gcc 3.2 version.
>>>>
>>>> Please help me with solution.
>>>>
>>>> Regards,
>>>> Anup
>>>>
>>>>
>>>> ***************************************************************
>>>> simics/util
>>>> In file included from system/CacheMemory.h:78,
>>>>                  from generated/MOSI_SMP_bcast/Types.h:51,
>>>>                  from generated/MOSI_SMP_bcast/Chip.h:9,
>>>>                  from generated/MOSI_SMP_bcast/Chip.C:3:
>>>> system/PseudoLRUPolicy.h: In constructor
>>>> `PseudoLRUPolicy::PseudoLRUPolicy(long
>>>>    long int, long long int)':
>>>> system/PseudoLRUPolicy.h:58: call of overloaded `pow(int, unsigned
>>>> int&)' is
>>>>    ambiguous
>>>> /usr/include/bits/mathcalls.h:154: candidates are: double pow(double,
>>>> double)
>>>> /usr/include/c++/3.2.2/cmath:427:                 long double
>>>> std::pow(long
>>>>    double, int)
>>>> /usr/include/c++/3.2.2/cmath:423:                 float
>>>> std::pow(float,
>>>> int)
>>>> /usr/include/c++/3.2.2/cmath:419:                 double
>>>> std::pow(double,
>>>> int)
>>>> /usr/include/c++/3.2.2/cmath:410:                 long double
>>>> std::pow(long
>>>>    double, long double)
>>>> /usr/include/c++/3.2.2/cmath:401:                 float
>>>> std::pow(float,
>>>> float)
>>>> make[1]: *** [x86-linux/generated/MOSI_SMP_bcast/obj/Chip.o] Error 1
>>>> make[1]: Leaving directory `/home/anup/workspace/gems-2.0/ruby'
>>>> make: *** [all] Error 2
>>>>
>>>> ************************************************************
>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> 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.
>
> _______________________________________________
> 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.
>
>
>


log_tm/LazyTransactionVersionManager.C: In member function `void
   LazyTransactionVersionManager::issueWriteRequests(int)':
log_tm/LazyTransactionVersionManager.C:242: type specifier omitted for
   parameter `CacheRequestType_ST_XACT'
log_tm/LazyTransactionVersionManager.C:243: type specifier omitted for
   parameter `SIMICS_get_program_counter()'
log_tm/LazyTransactionVersionManager.C:244: type specifier omitted for
   parameter `AccessModeType_UserMode'
log_tm/LazyTransactionVersionManager.C:245: type specifier omitted for
   parameter `g_DATA_BLOCK_BYTES'
log_tm/LazyTransactionVersionManager.C:246: type specifier omitted for
   parameter `PrefetchBit_No'
log_tm/LazyTransactionVersionManager.C:247: type specifier omitted for
   parameter
log_tm/LazyTransactionVersionManager.C:247: parse error before numeric
constant
log_tm/LazyTransactionVersionManager.C:250: parse error before `->' token
log_tm/LazyTransactionVersionManager.C:253: no matching function for call to `
   Sequencer::makeRequest(CacheMsg (&)(...))'
system/Sequencer.h:138: candidates are: void Sequencer::makeRequest(const
   CacheMsg&)
log_tm/LazyTransactionVersionManager.C:254: no match for `
   Vector<Vector<Map<physical_address_t, uint8> > >& [CacheMsg&]' operator
../common/Vector.h:108: candidates are: const TYPE&
   Vector<TYPE>::operator[](int) const [with TYPE =
   Vector<Map<physical_address_t, uint8> >]
../common/Vector.h:109:                 TYPE& Vector<TYPE>::operator[](int)
   [with TYPE = Vector<Map<physical_address_t, uint8> >]
log_tm/LazyTransactionVersionManager.C:257: base operand of `->' has
   non-pointer type `CacheMsg'
log_tm/LazyTransactionVersionManager.C:257: no matching function for call to `
   LazyTransactionVersionManager::getLogicalProcID(CacheMsg&)'
log_tm/LazyTransactionVersionManager.C:99: candidates are: int
   LazyTransactionVersionManager::getLogicalProcID(int) const
log_tm/LazyTransactionVersionManager.C:259: no matching function for call to `
   LazyTransactionVersionManager::getLogicalProcID(CacheMsg&)'
log_tm/LazyTransactionVersionManager.C:99: candidates are: int
   LazyTransactionVersionManager::getLogicalProcID(int) const
log_tm/LazyTransactionVersionManager.C:261: base operand of `->' has
   non-pointer type `CacheMsg'
log_tm/LazyTransactionVersionManager.C:261: no matching function for call to `
   LazyTransactionVersionManager::getLogicalProcID(CacheMsg&)'
log_tm/LazyTransactionVersionManager.C:99: candidates are: int
   LazyTransactionVersionManager::getLogicalProcID(int) const
log_tm/LazyTransactionVersionManager.C:263: no matching function for call to `
   LazyTransactionVersionManager::getLogicalProcID(CacheMsg&)'
log_tm/LazyTransactionVersionManager.C:99: candidates are: int
   LazyTransactionVersionManager::getLogicalProcID(int) const
make[1]: ***
[x86-linux/generated/MOSI_SMP_bcast/obj/LazyTransactionVersionManager.o] Error
1
make[1]: Leaving directory `/home/anup/workspace/gems-2.0/ruby'
make: *** [all] Error 2
[← Prev in Thread] Current Thread [Next in Thread→]