WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

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

To: "Jan Peter Stotz" <Jan-Peter.Stotz@xxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-devel] compilation fails with __stack_check_fail in xen-3.0.4
From: "pradeep singh rautela" <rautelap@xxxxxxxxx>
Date: Fri, 27 Apr 2007 09:37:15 +0530
Cc: xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Thu, 26 Apr 2007 21:05:49 -0700
Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=OhbVeyCWRbNFj5nsochNpslcFWGTcWwlwWx1d2CcSrt/Sef5zJ528PiYD6Xc7Yv0BwU6xLj1hn6bys4s/IH1ut3VWoFdCjGVS64y7pbQz0kfuzw7ti7Q51nOk1Rw9khlLGqvWmS9kY24TZZDEY1H4w7aG7bCNEoLiqvoMkIEWgE=
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=s3VL/U+oUiO6/eDfCsa31Oyt5aWKNznKmeHJRY1WIrFeWwGjUKr1pTKnw+h/2MjRU1huy98T2B2fCwHYryhxRiDkKQgutSOxAp1ISpFXIpnxUKnF8kGY6/HkCOBkr5rgVYhTbZ7dN8lvaavaAe9iWw6lh2H7yvv5uKH7N2dFtbA=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <4630C85C.1040807@xxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <6bc632150704260747p4716d99bqa10e61dd55084f03@xxxxxxxxxxxxxx> <4630C85C.1040807@xxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx


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 2.6.20.1 <http://2.6.20.1> (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:

eh... pretty creepy stuff :-).
Will do that and get back if problem persists.

Thanks a lot Jan.

~psr

Config.mk
pristine-linux-2.6.16.33/Makefile
ref-linux-2.6.16.33/Makefile
linux-2.6.16.33-xen/Makefile
linux-2.6-xen-sparse/arch/<your architecture>/Makefile

Jan




--
---
pradeep singh rautela

"Genius is 1% inspiration, and 99% perspiration" - not me :)
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>