Skip to main content

Thread: kernel compilation Ubuntu Server 12.04 Error 2


hi
i'm fighting few days compile kernel in ubuntu 12.04 , appending grsecurity patch. tried few instructions net.
tried download new kernel kernel.org , sources. compilation ends in following error:

*** end of configuration.
*** execute ‘make’ start build or try ‘make help’
dk@dk:~/linux-3.2.0$ sudo make
scripts/config/config –silentoldconfig kconfig
make [1]: nothing done `relocs'.
chk include/linux/version.h
chk include/generated/utsrelease.h
upd include/generated/utsrelease.h
call scripts/checksyscalls.sh
cc init/main.o
in file included init/main.c:40:0:
include/linux/cpuset.h: in function put_mems_allowed:
include/linux/cpuset.h:121:2: error: dekrement of read-only location *(const volatile
rrent()->mems_allowed_change_disable
init/main.c: @ top level:
init/main.c:335:19: warning: pass_unknown_bootoptions defined not used [-wunused-
make[1]: *** [init/main.o] error 1
make: *** [init] error 2

it? not understand error means?

please help

d80k

did kernel compile issues sorted out?

thread might seen more kernel compile types on over "development & programming" - "packaging , compiling prgrams" forum.

error because code trying modify constant. why, don't know, have @ code.

fisrt step kernel compiling, recommend not making changes or applying patches. gives basline compile, know compile (and load , run) works.

many "how compile kernel" references incorrect, or confusing, or obsolete. process can very frustrating trying learn. kernels kernel.org, have had success these steps (i can not recall reference):
code:
1. kernel history, if don't have it:   git clone \     git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 2. point releases:   cd linux   git remote add stable \     git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git   git fetch stable 3. apply patch, test:   git checkout stable/linux-3.2.y   #<<< yes, use "y". wasted few days thinking meant subsitute "22" or "23" or whatever (which can specific kernel).   git -3sc /path/to/the/patch   #<<< me works. manually apply.   cp /boot/config-$(uname -r) .config; # current configuration   cp  /boot/config-3.2.0-26-generic .config  #<<< or specific config   scripts/config --disable debug_info   make localmodconfig; # optional: minimize configuration #<<< don't bother   make deb-pkg; # optionally -j<num> parallel build   dpkg -i ../<name of package>; # root   reboot
i had tried before without git, had troubles, before above (i had build-essential):
code:
sudo apt-get install git build-essential
for compling ubuntu kernel source, recommend: https://help.ubuntu.com/community/kernel/compile

think grsecurity patch pretty complicated (i don't know it, though) want sure patch , kernel matched each other (i.e. have grief trying manually apply patch.)

hope helps.


Forum The Ubuntu Forum Community Ubuntu Specialised Support Ubuntu Servers, Cloud and Juju Server Platforms [ubuntu] kernel compilation Ubuntu Server 12.04 Error 2


Ubuntu

Comments

Popular posts from this blog

Thread: Can not create raid array: mdadm: no raid-devices specified.

Thread: HOW TO: Package and theme GTK+ / Gtkmm apps in Linux for Windows

Thread: Twinview issues