[PTLsim-devel] compiling ptlsim problem
Sasa Tomic
Mon Apr 30 04:55:31 EDT 2007
Hi!
I've wanted to try the PTLSim, so I downloaded the stable version from
the site, unpacked it on Ubuntu Feisty
(with gcc-4.1.2 and g++-4.1.2), tried to compile and got the following
error:
============================
stomic at stomic-laptop:~/projects/ptlsim$ make
g++ -O99 -g -fomit-frame-pointer -march=pentium4 -falign-functions=16
-fno-trapping-math -fno-exceptions -fno-rtti -funroll-loops
-mpreferred-stack-boundary=4 -fno-strict-aliasing -Wreturn-type
-D__PTLSIM_OOO_ONLY__ -I. -DBUILDHOST="`hostname -f`" -DSVNREV="`svn
info | grep "Last Changed Rev" | cut -d " " -f4`" -DSVNDATE="`svn info |
grep "Last Changed Date" | cut -d " " -f4`" -MM ptlsim.cpp kernel.cpp
mm.cpp superstl.cpp ptlhwdef.cpp decode-core.cpp decode-fast.cpp
decode-complex.cpp decode-x87.cpp decode-sse.cpp lowlevel-64bit.S
lowlevel-32bit.S linkstart.S linkend.S uopimpl.cpp dcache.cpp config.cpp
datastore.cpp injectcode.cpp ptlcalls.c cpuid.cpp ptlstats.cpp klibc.cpp
glibc.cpp mathlib.cpp syscalls.cpp makeusage.cpp ooocore.cpp
ooopipe.cpp oooexec.cpp smtcore.cpp smtpipe.cpp smtexec.cpp seqcore.cpp
branchpred.cpp > .depend
g++ -O99 -g -fomit-frame-pointer -march=pentium4 -falign-functions=16
-fno-trapping-math -fno-exceptions -fno-rtti -funroll-loops
-mpreferred-stack-boundary=4 -fno-strict-aliasing -Wreturn-type
-D__PTLSIM_OOO_ONLY__ -I. -DBUILDHOST="`hostname -f`" -DSVNREV="`svn
info | grep "Last Changed Rev" | cut -d " " -f4`" -DSVNDATE="`svn info |
grep "Last Changed Date" | cut -d " " -f4`" -c linkstart.S
g++ -c -O99 -g -fomit-frame-pointer -march=pentium4 -falign-functions=16
-fno-trapping-math -fno-exceptions -fno-rtti -funroll-loops
-mpreferred-stack-boundary=4 -fno-strict-aliasing -Wreturn-type
-D__PTLSIM_OOO_ONLY__ -I. -DBUILDHOST="`hostname -f`" -DSVNREV="`svn
info | grep "Last Changed Rev" | cut -d " " -f4`" -DSVNDATE="`svn info |
grep "Last Changed Date" | cut -d " " -f4`" -g -O3 lowlevel-32bit.S
g++ -O99 -g -fomit-frame-pointer -march=pentium4 -falign-functions=16
-fno-trapping-math -fno-exceptions -fno-rtti -funroll-loops
-mpreferred-stack-boundary=4 -fno-strict-aliasing -Wreturn-type
-D__PTLSIM_OOO_ONLY__ -I. -DBUILDHOST="`hostname -f`" -DSVNREV="`svn
info | grep "Last Changed Rev" | cut -d " " -f4`" -DSVNDATE="`svn info |
grep "Last Changed Date" | cut -d " " -f4`" -c ptlsim.cpp
./ptlhwdef.h:838: error: array bound is not an integer constant
./kernel.h: In member function ‘Waddr AddressSpace::pageid(void*) const’:
./kernel.h:145: error: ‘long int sysconf(int)’ cannot appear in a
constant-expression
./kernel.h:145: error: a function call cannot appear in a
constant-expression
./kernel.h:145: error: template argument 1 is invalid
make: *** [ptlsim.o] Error 1
============================
my machine is 32-bit Intel-based T60.
can somebody help me with this?
--
Saša Tomić
BSC - Barcelona SuperComputing Center
c\ Jordi Girona 29, Nexus I, 08034 Barcelona, España
Tel.: ,
http://www.bsc.es
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3237 bytes
Desc: S/MIME Cryptographic Signature
Url : https://ptlsim.org/pipermail/ptlsim-devel/attachments/20070430/e568b8c9/attachment.bin
More information about the PTLsim-devel mailing list