Errors when building a kernel
Ralf Mardorf
ralf.mardorf at alice-dsl.net
Fri Aug 21 13:12:00 UTC 2015
Thank you,
but building a kernel in general isn't a problem for me.
On Fri, 21 Aug 2015 12:30:44 +0100, Robie Basak wrote:
>Are you aware of https://wiki.ubuntu.com/Kernel/MainlineBuilds? It
>should be trivial to try non-Ubuntu-modified kernels on Ubuntu as the
>kernel team build them for us. This will only help with Ubuntu patches
>though - you'll still have to deal with the config.
That's doesn't help.
This line ...
[root at moonstudio src]# export CONCURRENCY_LEVEL=2;wget
https://www.kernel.org/pub/linux/kernel/v3.x/linux-3.10.61.tar.gz
https://www.kernel.org/pub/linux/kernel/projects/rt/3.10/older/patch-3.10.61-rt65.patch.gz
&& tar zxf linux-3.10.61.tar.gz && mv linux-3.10.61 linux-3.10.61-rt65
&& cd linux-3.10.61-rt65 && gzip -dc ../patch-3.10.61-rt65.patch.gz |
patch -p1 && cp ../config-3.10.61-rt65-1-rt-lts_x86_64.Arch .config &&
make oldconfig && make oldconfig && date && make-kpkg clean &&
make-kpkg --initrd kernel-image kernel-headers && make-kpkg clean &&
date
... does the job. FWIW I'm aware about fakeroot, but such details are
irrelevant regarding the problem. The problem is to fix the config.
1. - compiling takes > 1 hour, then an error appears
- fixing an error usually is easy to do by disabling an option
(module)
- then you compile again > 1 hour to get and fix the next error
I hope that there's a way to avoid this compiling-loop-procedure.
2. - if you have bad luck, as I currently have got, then simply fixing
an issue by disabling an unneeded option (module) isn't that easy
I don't know what config settings "enable" CONFIG_MPILIB.
"CONFIG_MPILIB=n" and "CONFIG_KEYS=y"
or
"# CONFIG_MPILIB is not set"
or
"CONFIG_MPILIB is not set"
after running oldconfig becomes
CONFIG_MPILIB=m
there is the need to change other config settings.
Usually you get an error "foo" and then changing "CONFIG_FOO=m" or
"CONFIG_FOO=y" to "CONFIG_FOO is not set" does cause oldconfig to ask
you if it should be used or not, for CONFIG_MPILIB this doesn't work.
Usually I wouldn't use an Arch Linux kernel's config to compile the
same kernel for Ubuntu. I would start with an Ubuntu kernels config.
But in this case it's needed to get as close as possible to an Arch
Linux kernel's config, to test something.
Regards,
Ralf
More information about the Ubuntu-devel-discuss
mailing list