[PTLsim-devel] Further problem with installation of ptlsim

Matt T. Yourst
Mon Aug 27 21:11:26 EDT 2007


On Monday 27 August 2007 08:30, Sutirtha Sanyal wrote:
> Hi All,
>
> As per previous suggestion i changed the definition of PAGE_SIZE from
> sysconf call to a fixed number in sys/user.h.
>
> But now the following error is coming:
>
> undefined references to `__stack_chk_fail' follow
> make: *** [ptlsim] Error 1
>
> Though there is no function called __stack_chk_fail in ptlsim.cpp. Compiler
> is g++ 4.1
>

Apparently the Ubuntu version of gcc has stack checking enabled by default. 
Add "-fno-stack-check" to the CFLAGS options in the Makefile and this should 
fix it.

If you keep on having problems, you should look up "__stack_chk_fail Ubuntu" 
on Google - this problem apparently affects many programs, not just PTLsim.

- Matt

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


More information about the PTLsim-devel mailing list