[Gems-users] Error in NUCAProfiler.C


Date: Fri, 03 Mar 2006 16:52:15 -0500
From: Liping Xue <lxue@xxxxxxxxxxx>
Subject: [Gems-users] Error in NUCAProfiler.C
Hi, All,
 I try to install GEMS 1.2 on SPARC.
It works well until "Generating ruby objects"
I think the main reason is that in the "NUCAProfiler.C", something like "sqrt(int)", "sqrt(double)" is ambiguous.
I think "NUCAProfiler.C" is a c file generated by other component. So my question is that how to fix this problem so
that "NUCAProfiler.C" can be generated correctly.

Thanks !!

-- Liping

-----------------------------------------------------------------------------------------------------------------
......

ruby: Generating ruby objects
make v9-sol8-64/generated/MOSI_SMP_bcast/bin/tester.exec
make[1]: Entering directory `/home/mdl/lxue/prideth/simics-2.2/ruby'
g++ -I/s/getopt-0/include -o v9-sol8-64/generated/MOSI_SMP_bcast/obj/NUCAProfiler.o -c nuca/NUCAProfiler.C -DIS_RUBY -DTARGET_SPARC_V9 -DTARGET_VA_BITS=64 -DTARGET_PA_BITS=64 -Wall -W -Wwrite-strings -Woverloaded-virtual -Wno-unused  -mcpu=v9 -DUSE_DIRENT -g -ggdb -g3 -O0 -w -DSIMICS_2_0  -DRUBY_DEBUG=false  -Inetwork/simple -I. -I../common -I../common/gzstream -Ibuffers -Icommon -Islicc_interface -Iprofiler -Iconfig -Ieventqueue -Isystem -Iinterfaces -Isimics -Itester -Irecorder -Ilog_tm -Inuca -Igenerated/MOSI_SMP_bcast -I../common/ioutil -Inetwork -I../simics/v9-sol8-64/obj/include/ -I../simics/v9-sol8-64/obj/include/simics -I../simics/v9-sol8-64/obj/include/simics-api-1 -I../simics/v9-sol8-64/config
nuca/NUCAProfiler.C: In member function `void
  NUCAProfiler::printStats(std::ostream&) const':
  nuca/NUCAProfiler.C:92: error: call of overloaded `sqrt(int)' is ambiguous
  /usr/include/iso/math_iso.h:57: error: candidates are: double sqrt(double)
/usr/local/include/c++/3.3/cmath:550: error:                 long double
std::sqrt(long double)
/usr/local/include/c++/3.3/cmath:546: error:                 float
std::sqrt(float)
nuca/NUCAProfiler.C:103: error: call of overloaded `sqrt(int)' is ambiguous
/usr/include/iso/math_iso.h:57: error: candidates are: double sqrt(double)
/usr/local/include/c++/3.3/cmath:550: error:                 long double
std::sqrt(long double)
/usr/local/include/c++/3.3/cmath:546: error:                 float
std::sqrt(float)
nuca/NUCAProfiler.C:113: error: call of overloaded `sqrt(int)' is ambiguous
/usr/include/iso/math_iso.h:57: error: candidates are: double sqrt(double)
/usr/local/include/c++/3.3/cmath:550: error:                 long double
std::sqrt(long double)
 /usr/local/include/c++/3.3/cmath:546: error:                 float
 std::sqrt(float)
 nuca/NUCAProfiler.C:123: error: call of overloaded `sqrt(int)' is ambiguous
/usr/include/iso/math_iso.h:57: error: candidates are: double sqrt(double)
/usr/local/include/c++/3.3/cmath:550: error:                 long double
 std::sqrt(long double)
/usr/local/include/c++/3.3/cmath:546: error:                 float
std::sqrt(float)
nuca/NUCAProfiler.C:133: error: call of overloaded `sqrt(int)' is ambiguous
/usr/include/iso/math_iso.h:57: error: candidates are: double sqrt(double)
/usr/local/include/c++/3.3/cmath:550: error:                 long double
std::sqrt(long double)
/usr/local/include/c++/3.3/cmath:546: error:                 float
std::sqrt(float)
nuca/NUCAProfiler.C:149: error: call of overloaded `sqrt(int)' is ambiguous
/usr/include/iso/math_iso.h:57: error: candidates are: double sqrt(double)
/usr/local/include/c++/3.3/cmath:550: error:                 long double
std::sqrt(long double)
/usr/local/include/c++/3.3/cmath:546: error:                 float
std::sqrt(float)
nuca/NUCAProfiler.C:162: error: call of overloaded `sqrt(int)' is ambiguous
/usr/include/iso/math_iso.h:57: error: candidates are: double sqrt(double)
/usr/local/include/c++/3.3/cmath:550: error:                 long double
std::sqrt(long double)
/usr/local/include/c++/3.3/cmath:546: error:                 float
std::sqrt(float)
nuca/NUCAProfiler.C:175: error: call of overloaded `sqrt(int)' is ambiguous
/usr/include/iso/math_iso.h:57: error: candidates are: double sqrt(double)
/usr/local/include/c++/3.3/cmath:550: error:                 long double
std::sqrt(long double)
/usr/local/include/c++/3.3/cmath:546: error:                 float
std::sqrt(float)
nuca/NUCAProfiler.C:188: error: call of overloaded `sqrt(int)' is ambiguous
/usr/include/iso/math_iso.h:57: error: candidates are: double sqrt(double)
/usr/local/include/c++/3.3/cmath:550: error:                 long double
std::sqrt(long double)
/usr/local/include/c++/3.3/cmath:546: error:                 float
std::sqrt(float)
make[1]: *** [v9-sol8-64/generated/MOSI_SMP_bcast/obj/NUCAProfiler.o] Error 1
make[1]: Leaving directory `/home/mdl/lxue/prideth/simics-2.2/ruby'
							 make: *** [all] Error 2


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