All of lore.kernel.org
 help / color / mirror / Atom feed
* compilation fails with __stack_check_fail in xen-3.0.4
@ 2007-04-26 14:47 pradeep singh rautela
  2007-04-26 15:42 ` Jan Peter Stotz
  2007-05-06 16:19 ` Kendrick
  0 siblings, 2 replies; 6+ messages in thread
From: pradeep singh rautela @ 2007-04-26 14:47 UTC (permalink / raw)
  To: xen-devel, xenkernelnewbies


[-- Attachment #1.1: Type: text/plain, Size: 1674 bytes --]

Hi All,

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'
init/built-in.o: In function `name_to_dev_t':
(.text+0x8db): undefined reference to `__stack_chk_fail'
init/built-in.o: In function `change_floppy':
(.init.text+0xa61): undefined reference to `__stack_chk_fail'
init/built-in.o: In function `mount_block_root':
(.init.text+0xca8): undefined reference to `__stack_chk_fail'
init/built-in.o: In function `md_run_setup':
(.init.text+0x4176): undefined reference to `__stack_chk_fail'
init/built-in.o:initramfs.c:(.init.text+0x4d73): more undefined references
to `__stack_chk_fail' follow
make[4]: *** [.tmp_vmlinux1] Error 1
make[4]: Leaving directory `/opt/xen-3.0.4_1-src/linux-2.6.16.33-xen'
make[3]: *** [build] Error 2
make[3]: Leaving directory `/opt/xen-3.0.4_1-src'
make[2]: *** [linux-2.6-xen-install] Error 2
make[2]: Leaving directory `/opt/xen-3.0.4_1-src'
make[1]: *** [install-kernels] Error 1

I am not able to understand the error messages and their intended purpose in
built-in.o .
Also i am not able to find the __stack_chk_fail being referred from any of
these functions.
Are these some linker specific symbols or similar?

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. :-(

Any help?

Thanks
~psr

-- 
---
pradeep singh rautela

"Genius is 1% inspiration, and 99% perspiration" - not me :)

[-- Attachment #1.2: Type: text/html, Size: 1932 bytes --]

[-- Attachment #2: Type: text/plain, Size: 138 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: compilation fails with __stack_check_fail in xen-3.0.4
  2007-04-26 14:47 compilation fails with __stack_check_fail in xen-3.0.4 pradeep singh rautela
@ 2007-04-26 15:42 ` Jan Peter Stotz
  2007-04-27  4:07   ` pradeep singh rautela
  2007-04-27  7:16   ` pradeep singh rautela
  2007-05-06 16:19 ` Kendrick
  1 sibling, 2 replies; 6+ messages in thread
From: Jan Peter Stotz @ 2007-04-26 15:42 UTC (permalink / raw)
  To: pradeep singh rautela; +Cc: xen-devel


[-- Attachment #1.1: Type: text/plain, Size: 930 bytes --]

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:

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

[-- Attachment #1.2: S/MIME Cryptographic Signature --]
[-- Type: application/x-pkcs7-signature, Size: 3758 bytes --]

[-- Attachment #2: Type: text/plain, Size: 138 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: compilation fails with __stack_check_fail in xen-3.0.4
  2007-04-26 15:42 ` Jan Peter Stotz
@ 2007-04-27  4:07   ` pradeep singh rautela
  2007-04-27  7:16   ` pradeep singh rautela
  1 sibling, 0 replies; 6+ messages in thread
From: pradeep singh rautela @ 2007-04-27  4:07 UTC (permalink / raw)
  To: Jan Peter Stotz; +Cc: xen-devel


[-- Attachment #1.1: Type: text/plain, Size: 1255 bytes --]

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:


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 :)

[-- Attachment #1.2: Type: text/html, Size: 1961 bytes --]

[-- Attachment #2: Type: text/plain, Size: 138 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: compilation fails with __stack_check_fail in xen-3.0.4
  2007-04-26 15:42 ` Jan Peter Stotz
  2007-04-27  4:07   ` pradeep singh rautela
@ 2007-04-27  7:16   ` pradeep singh rautela
  1 sibling, 0 replies; 6+ messages in thread
From: pradeep singh rautela @ 2007-04-27  7:16 UTC (permalink / raw)
  To: Jan Peter Stotz; +Cc: xen-devel


[-- Attachment #1.1: Type: text/plain, Size: 1193 bytes --]

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 :)

[-- Attachment #1.2: Type: text/html, Size: 1889 bytes --]

[-- Attachment #2: Type: text/plain, Size: 138 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: compilation fails with __stack_check_fail in xen-3.0.4
  2007-04-26 14:47 compilation fails with __stack_check_fail in xen-3.0.4 pradeep singh rautela
  2007-04-26 15:42 ` Jan Peter Stotz
@ 2007-05-06 16:19 ` Kendrick
  2007-05-09  3:56   ` pradeep singh rautela
  1 sibling, 1 reply; 6+ messages in thread
From: Kendrick @ 2007-05-06 16:19 UTC (permalink / raw)
  To: xen-devel

pradeep singh rautela <rautelap <at> gmail.com> writes:

> 
> Hi All,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'init/built-in.o: In function `name_to_dev_t':(.text+0x8db):
undefined reference to `__stack_chk_fail'
> init/built-in.o: In function `change_floppy':(.init.text+0xa61): undefined
reference to `__stack_chk_fail'init/built-in.o: In function
`mount_block_root':(.init.text+0xca8): undefined reference to `__stack_chk_fail'
> init/built-in.o: In function `md_run_setup':(.init.text+0x4176): undefined
reference to `__stack_chk_fail'init/built-in.o:initramfs.c:(.init.text+0x4d73):
more undefined references to `__stack_chk_fail' follow
> make[4]: *** [.tmp_vmlinux1] Error 1make[4]: Leaving directory
`/opt/xen-3.0.4_1-src/linux-2.6.16.33-xen'make[3]: *** [build] Error 2make[3]:
Leaving directory `/opt/xen-3.0.4_1-src'make[2]: *** [
> linux-2.6-xen-install] Error 2make[2]: Leaving directory
`/opt/xen-3.0.4_1-src'make[1]: *** [install-kernels] Error 1I am not able to
understand the error messages and their intended purpose in built-in.o
>  . Also i am not able to find the __stack_chk_fail being referred from any of
these functions. Are these some linker specific symbols or similar? 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.  Any help?Thanks~psr-- ---pradeep singh rautela
> "Genius is 1% inspiration, and 99% perspiration" - not me :)
> 
> 
> _______________________________________________
> Xen-devel mailing list
> Xen-devel <at> lists.xensource.com
> http://lists.xensource.com/xen-devel
> 

http://ubuntuforums.org/showthread.php?t=303541

-fno-stack-protector  ran in to it with my x86_64 system.  since 4.1 has ssp it
has to be turned off for the kernel as i under stand it. 

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Re: compilation fails with __stack_check_fail in xen-3.0.4
  2007-05-06 16:19 ` Kendrick
@ 2007-05-09  3:56   ` pradeep singh rautela
  0 siblings, 0 replies; 6+ messages in thread
From: pradeep singh rautela @ 2007-05-09  3:56 UTC (permalink / raw)
  To: Kendrick; +Cc: xen-devel


[-- Attachment #1.1: Type: text/plain, Size: 2532 bytes --]

On 5/6/07, Kendrick <gmane@ken.linux2themax.com> wrote:
>
> pradeep singh rautela <rautelap <at> gmail.com> writes:
>
> >
> > Hi All,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'init/built-in.o: In function
> `name_to_dev_t':(.text+0x8db):
> undefined reference to `__stack_chk_fail'
> > init/built-in.o: In function `change_floppy':(.init.text+0xa61):
> undefined
> reference to `__stack_chk_fail'init/built-in.o: In function
> `mount_block_root':(.init.text+0xca8): undefined reference to
> `__stack_chk_fail'
> > init/built-in.o: In function `md_run_setup':(.init.text+0x4176):
> undefined
> reference to `__stack_chk_fail'init/built-in.o:initramfs.c:
> (.init.text+0x4d73):
> more undefined references to `__stack_chk_fail' follow
> > make[4]: *** [.tmp_vmlinux1] Error 1make[4]: Leaving directory
> `/opt/xen-3.0.4_1-src/linux-2.6.16.33-xen'make[3]: *** [build] Error
> 2make[3]:
> Leaving directory `/opt/xen-3.0.4_1-src'make[2]: *** [
> > linux-2.6-xen-install] Error 2make[2]: Leaving directory
> `/opt/xen-3.0.4_1-src'make[1]: *** [install-kernels] Error 1I am not able
> to
> understand the error messages and their intended purpose in built-in.o
> >  . Also i am not able to find the __stack_chk_fail being referred from
> any of
> these functions. Are these some linker specific symbols or similar? 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.1is
> playing the spoilsport here.  Any help?Thanks~psr-- ---pradeep singh
> rautela
> > "Genius is 1% inspiration, and 99% perspiration" - not me :)
> >
> >
> > _______________________________________________
> > Xen-devel mailing list
> > Xen-devel <at> lists.xensource.com
> > http://lists.xensource.com/xen-devel
> >
>
> http://ubuntuforums.org/showthread.php?t=303541
>
> -fno-stack-protector  ran in to it with my x86_64 system.  since 4.1 has
> ssp it
> has to be turned off for the kernel as i under stand it.



Thank you, i just changed the toplevel .mk  and it worked.

~psr

_______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xensource.com
> http://lists.xensource.com/xen-devel
>



-- 
---
pradeep singh rautela

"Genius is 1% inspiration, and 99% perspiration" - not me :)

[-- Attachment #1.2: Type: text/html, Size: 3546 bytes --]

[-- Attachment #2: Type: text/plain, Size: 138 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2007-05-09  3:56 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-04-26 14:47 compilation fails with __stack_check_fail in xen-3.0.4 pradeep singh rautela
2007-04-26 15:42 ` Jan Peter Stotz
2007-04-27  4:07   ` pradeep singh rautela
2007-04-27  7:16   ` pradeep singh rautela
2007-05-06 16:19 ` Kendrick
2007-05-09  3:56   ` pradeep singh rautela

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.