LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-10-2017, 12:35 AM   #1
rahuls333369
LQ Newbie
 
Registered: Jan 2017
Posts: 3

Rep: Reputation: Disabled
configure and build the kernel 4.9


Hello All,

I am following README that comes with package.I run following command to configure and build
make O=/home/name/build/kernel menuconfig

I didnt changed any parameter and went for default settings.After running following command
make O=/home/name/build/kernel

I got this issue:
make[1]: Entering directory `/home/rahul/build/kernel'
arch/x86/Makefile:140: CONFIG_X86_X32 enabled but no binutils support
GEN ./Makefile
HOSTCC scripts/kconfig/conf.o
HOSTLD scripts/kconfig/conf
scripts/kconfig/conf --silentoldconfig Kconfig
#
# configuration written to .config
#
make[1]: Leaving directory `/home/rahul/build/kernel'
make[1]: Entering directory `/home/rahul/build/kernel'
HOSTCC arch/x86/tools/relocs_32.o
HOSTCC arch/x86/tools/relocs_64.o
HOSTCC arch/x86/tools/relocs_common.o
HOSTLD arch/x86/tools/relocs
CHK include/config/kernel.release
Using /home/rahul/linux-4.9 as source for kernel
Cannot use CONFIG_CC_STACKPROTECTOR_REGULAR: -fstack-protector not supported by compiler
make[1]: *** [prepare-compiler-check] Error 1
make[1]: Leaving directory `/home/rahul/build/kernel'
make: *** [sub-make] Error 2

I installed binutils:
binutils 2.24-5ubuntu14.1
binutils-aarch64-linux-gnu 2.24-5ubuntu14cross0.11.2
binutils-arm-linux-gnueabi 2.24-5ubuntu13cross1.97.1

GCC compiler version is:gcc (Ubuntu 4.8.4-2ubuntu1~14.04.3) 4.8.4
 
Old 01-10-2017, 01:53 AM   #2
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,871
Blog Entries: 19

Rep: Reputation: 4551Reputation: 4551Reputation: 4551Reputation: 4551Reputation: 4551Reputation: 4551Reputation: 4551Reputation: 4551Reputation: 4551Reputation: 4551Reputation: 4551
You have some kernel flags set which do not match your system. You need to use the menuconfig stage of the build to unset these two flags before building.

When you are in menuconfig, enter a / and then type the name of the flag you wish to change.
Code:
 /CONFIG_X86_X32
You will be taken automatically to the right part of the menu. Unset both flags, then try make again.
 
Old 01-10-2017, 03:21 AM   #3
rahuls333369
LQ Newbie
 
Registered: Jan 2017
Posts: 3

Original Poster
Rep: Reputation: Disabled
Hello Hazel,

I tried but it simply gives "No matches found".
 
Old 01-10-2017, 03:25 AM   #4
rahuls333369
LQ Newbie
 
Registered: Jan 2017
Posts: 3

Original Poster
Rep: Reputation: Disabled
one more input i want to compile linux 4.9 and i am having following version
linux 3.19.0-25-generic #26~14.04.1-Ubuntu SMP Fri Jul 24 21:16:20 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

Is it due to version i am getting issue??
 
Old 01-10-2017, 05:52 AM   #5
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,871
Blog Entries: 19

Rep: Reputation: 4551Reputation: 4551Reputation: 4551Reputation: 4551Reputation: 4551Reputation: 4551Reputation: 4551Reputation: 4551Reputation: 4551Reputation: 4551Reputation: 4551
Quote:
Originally Posted by rahuls333369 View Post
Hello Hazel,

I tried but it simply gives "No matches found".
That's strange! I just tried it out with 4.7.9 kernel source and found both flags without difficulty. The search isn't even case-sensitive.

The X86_X32 flag is in the "Executable file formats" section. The other one comes under "General setup".

Last edited by hazel; 01-10-2017 at 05:55 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
How to configure & build kernel tree on kernel version 2.6.X(RHEL-5)? pops13 Linux - Software 1 08-14-2009 11:48 PM
TrueCrypt: problem running build.sh; cannot configure kernel source wakawaka Linux - Software 1 04-09-2007 07:03 AM
Which is the kernel build directory? I Can't find kernel build files crabsody Debian 7 01-09-2007 04:48 AM
LXer: Howto: build Linux kernel module against installed kernel w/o full kernel source tree LXer Syndicated Linux News 0 09-03-2006 08:21 PM
Need to 'configure' my kernel to build a driver for my wireless NIC 2016 Linux - Newbie 5 01-01-2003 02:51 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:35 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