Date: | Sun, 16 Mar 2008 16:26:55 -0400 |
---|---|
From: | "Konstantinos Aisopos" <kaisopos@xxxxxxxxx> |
Subject: | Re: [Gems-users] RUBY compilation error |
Derek,
I am having exactly the same problem with Anup (ie: overloaded pow), but my problem was not solved with "make clean". I also tried to delete these .d files ($GEMS/slicc/x86-linux/obj/) and configure again my simics, but I had no luck:( My system is simics-2.2.19, gcc 3.3.3, Red Hat Linux 3.3.3-7. Any ideas how to solve the problem?
-Kostas
> 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. > > > |
[← Prev in Thread] | Current Thread | [Next in Thread→] |
---|---|---|
|
Previous by Date: | Re: [Gems-users] Checkpoints creation problem, Abdullah Kayi |
---|---|
Next by Date: | Re: [Gems-users] Checkpoints creation problem, Abdullah Kayi |
Previous by Thread: | Re: [Gems-users] Revenge of Adventures in duplicating LogTM results, Jim Leek |
Next by Thread: | Re: [Gems-users] RUBY compilation error, Niket Agarwal |
Indexes: | [Date] [Thread] |