[PTLsim-devel] compile error

Yusuf
Wed Sep 26 06:03:33 EDT 2007


Hello,
I am very new to PTLsim, I will use it for academic research and tried to
compile it today. But I have taken the following error while compiling:

g++ -O99 -g -fomit-frame-pointer -march=pentium4 -falign-functions=16
-fno-trapping-math -fno-stack-protector -fno-exceptions -fno-rtti
-funroll-loops -mpreferred-stack-boundary=4 -fno-strict-aliasing
-Wreturn-type  -D__PTLSIM_OOO_ONLY__ -I. -DBUILDHOST="`hostname -f`"
-DSVNREV="`LANG=C; svn info | grep "Last Changed Rev" | cut -d " " -f4`"
-DSVNDATE="`LANG=C; svn info | grep "Last Changed Date" | cut -d " " -f4`"
-c seqcore.cpp
./kernel.h: In member function 'Waddr Context::check_and_translate(Waddr,
int, bool, bool, int&, PageFaultErrorCode&, PTEUpdate&, Level1PTE&)':
./kernel.h:363: warning: converting to non-pointer type 'Waddr' from NULL
seqcore.cpp: In member function 'int SequentialCore::issuestore(const
TransOp&, SFR&, Waddr&, W64, W64, W64, PTEUpdate&)':
seqcore.cpp:775: error: no matching function for call to 'inrange(Waddr&,
W64&, W64&)'
seqcore.cpp: In member function 'int SequentialCore::issueload(const
TransOp&, SFR&, Waddr&, W64, W64, W64, PTEUpdate&)':
seqcore.cpp:897: error: no matching function for call to 'inrange(Waddr&,
W64&, W64&)'
make: *** [seqcore.o] Error 1

inrange function is located in globals.h and it is included by the
seqcore.cpp. So everything seems to be OK. I couldn't understand the
problem.
I have  downloaded the "ptlsim-20070921-r225.tar.bz2" . This is the latest
stable version.
I have gcc 4.1.2 and g++ 4.1.2 installed on my ubuntu 7.0.
What may be the problem?
Thanks in advance
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://ptlsim.org/pipermail/ptlsim-devel/attachments/20070926/f3b8d1eb/attachment.htm 


More information about the PTLsim-devel mailing list