LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 01-26-2014, 10:38 AM   #1
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Costa Rica
Distribution: Kubuntu, Debian, Knoppix
Posts: 2,092
Blog Entries: 1

Rep: Reputation: 90
problem compiling linux kernel - undefined reference to `__stack_chk_fail'


Hi!

I'm trying to build linux to run it as a process for some experiments.

I get this:

Code:
$ LANG=en make vmlinux
make[1]: Nothing to be done for `all'.
make[1]: Nothing to be done for `relocs'.
  CHK     include/generated/uapi/linux/version.h
  CHK     include/generated/utsrelease.h
  CALL    scripts/checksyscalls.sh
  CHK     include/generated/compile.h
  PASYMS  arch/x86/realmode/rm/pasyms.h
  LDS     arch/x86/realmode/rm/realmode.lds
  LD      arch/x86/realmode/rm/realmode.elf
  RELOCS  arch/x86/realmode/rm/realmode.relocs
  OBJCOPY arch/x86/realmode/rm/realmode.bin
  AS      arch/x86/realmode/rmpiggy.o
  LD      arch/x86/realmode/built-in.o
  VDSOSYM arch/x86/vdso/vdso-syms.lds
  LD      arch/x86/vdso/built-in.o
  LD      arch/x86/built-in.o
  LINK    vmlinux
  LD      vmlinux.o
  MODPOST vmlinux.o
  GEN     .version
  CHK     include/generated/compile.h
  UPD     include/generated/compile.h
  CC      init/version.o
  LD      init/built-in.o
init/built-in.o: In function `name_to_dev_t':
(.text+0x411): undefined reference to `__stack_chk_fail'
init/built-in.o: In function `do_one_initcall':
(.init.text+0x758): undefined reference to `__stack_chk_fail'
init/built-in.o: In function `mount_block_root':
(.init.text+0xb63): undefined reference to `__stack_chk_fail'
arch/x86/built-in.o: In function `enable_step':
step.c:(.text+0xb35a): undefined reference to `__stack_chk_fail'
arch/x86/built-in.o: In function `intel_pmu_lbr_read':
(.text+0x13227): undefined reference to `__stack_chk_fail'
arch/x86/built-in.o:perf_event_intel_ds.c:(.text+0x13992): more undefined references to `__stack_chk_fail' follow
make: *** [vmlinux] Error 1
I'm running kubuntu 13.10 (updated). What's going on?

Thanks in advance.
 
Old 01-26-2014, 10:43 AM   #2
eantoranz
Senior Member
 
Registered: Apr 2003
Location: Costa Rica
Distribution: Kubuntu, Debian, Knoppix
Posts: 2,092

Original Poster
Blog Entries: 1

Rep: Reputation: 90
By they way, I'm trying to compile linux vanilla 3.10.11 (alldefconfig)
 
Old 01-29-2014, 01:58 PM   #3
smeezekitty
Senior Member
 
Registered: Sep 2009
Location: Washington U.S.
Distribution: M$ Windows / Debian / Ubuntu / DSL / many others
Posts: 2,339

Rep: Reputation: 231Reputation: 231Reputation: 231
What happens if you do
Code:
make CFLAGS+="-fno-stack-protector"
 
  


Reply

Tags
linux, vmlinux



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] compiling gcc undefined reference to orcaja Linux - Software 1 08-20-2013 08:48 AM
[SOLVED] Compiling Nitrogen: undefined reference to symbol Lennie Linux From Scratch 2 11-27-2012 01:06 PM
undefined reference to `yywrap' compiling PAM Mahonri Debian 5 12-30-2011 06:00 PM
[SOLVED] kernel compiling undefined reference error bahhti Programming 5 04-01-2010 11:00 PM
undefined reference to `cfb_fillrect' and more when compiling kernel KR-data Linux - Software 0 09-03-2005 01:56 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 06:45 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration