[PTLsim-devel] Problem of installing ptlsim

Matt T. Yourst
Fri Jul 20 21:10:22 EDT 2007


On Friday 20 July 2007 18:15, Yan Luo wrote:
> Hello,
>
> I was trying to install ptlsim on my dual xeon 64-bit machine, but got
> these error messages when compiling.
>
> 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
> ptlsim.cpp:0: error: CPU you selected does not support x86-64 instruction
> set

Fedora doesn't properly define MACHTYPE=x86_64, so the Makefile fails to 
define __x86_64__ and tries to compile PTLsim for a regular Pentium 4 instead 
of the Core 2 based Xeon chip you have (which obviously does support 64-bit).

The easy workaround is to change the first part of the Makefile to comment 
this test out:

# ifeq ($(findstring x86_64,$(MACHTYPE)),x86_64)
__x86_64__=1
# endif

This should force it to compile for 64-bit.

- Matt

-------------------------------------------------------
 Matt T. Yourst                    yourst at peptidal.com
 Peptidal Research Inc., Co-Founder and Lead Architect
-------------------------------------------------------


More information about the PTLsim-devel mailing list