[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] compilation fails with __stack_check_fail in xen-3.0.4

  • To: "Jan Peter Stotz" <Jan-Peter.Stotz@xxxxxxxxxxxxxxxxx>
  • From: "pradeep singh rautela" <rautelap@xxxxxxxxx>
  • Date: Fri, 27 Apr 2007 12:46:43 +0530
  • Cc: xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
  • Delivery-date: Fri, 27 Apr 2007 00:15:16 -0700
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=AMgZCkdjdEXDxeBCT7q7XZjpJGZw0ErLfknFn9kHGbvIshxJ/n+iMlXDrNMjMbyycViFce7Xg+s4a3f3Pv5pxc/GW/j55csbLZfAB8vDiZ5qveUNepGbXwwbh1fhXHDvQBjSF88xBoqpA7U9HfDRG+AlSuFsUlvYFXlRMrAFdeA=
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

On 4/26/07, Jan Peter Stotz <Jan-Peter.Stotz@xxxxxxxxxxxxxxxxx> wrote:
pradeep singh rautela wrote:

> I downloaded the xen-3.0.4 source from xensource site and compiled it
> from source.
> On giving a make world , the make fails after almost finishing the
> compilation.
> The error i got is -
> init/built- in.o: In function `try_name':
> do_mounts.c:(.text+0x5f3): undefined reference to `__stack_chk_fail'

> Please note i am running Ubuntu6.10 Edgy Eft.
> GCC 4.1
> Kernel <> (This is not required i guess)
> Somehow i suspect gcc4.1 is playing the spoilsport here. :-(

Right, your gcc sets by default the stack-protector flag. You have to
manually disable it by editing some makefiles.
According to my experience you have add "-fno-stack-protector" to the
CFLAGS within all of the following files:

Thanks a lot, it fixed my problem.


linux-2.6-xen-sparse/arch/<your architecture>/Makefile


pradeep singh rautela

"Genius is 1% inspiration, and 99% perspiration" - not me :)
Xen-devel mailing list



Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.