From: "pradeep singh rautela" Subject: Re: compilation fails with __stack_check_fail in xen-3.0.4 Date: Fri, 27 Apr 2007 12:46:43 +0530 Message-ID: <6bc632150704270016l363e2fbahefd5466cc60747e2@mail.gmail.com> References: <6bc632150704260747p4716d99bqa10e61dd55084f03@mail.gmail.com> <4630C85C.1040807@sit.fraunhofer.de> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1693401519==" Return-path: In-Reply-To: <4630C85C.1040807@sit.fraunhofer.de> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Mime-version: 1.0 Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Jan Peter Stotz Cc: xen-devel List-Id: xen-devel@lists.xenproject.org --===============1693401519== Content-Type: multipart/alternative; boundary="----=_Part_467922_12480713.1177658203099" ------=_Part_467922_12480713.1177658203099 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline On 4/26/07, Jan Peter Stotz 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 (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. ~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//Makefile > > Jan > > -- --- pradeep singh rautela "Genius is 1% inspiration, and 99% perspiration" - not me :) ------=_Part_467922_12480713.1177658203099 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline

On 4/26/07, Jan Peter Stotz <Jan-Peter.Stotz@sit.fraunhofer.de> 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:

Thanks a lot, it fixed my problem.

~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 :) ------=_Part_467922_12480713.1177658203099-- --===============1693401519== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============1693401519==--