Re: [Gems-users] RUBY compilation error


Date: Wed, 24 Oct 2007 20:56:07 +0530 (IST)
From: anup_m@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Gems-users] RUBY compilation error
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.
>
>
>



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