Revision 22-kernel-3.15.1 failed to build

Asked by Manish Thatte

This is the copy of the relevant log file:

  HOSTCC scripts/basic/fixdep
  SHIPPED scripts/kconfig/zconf.tab.c
  HOSTCC scripts/kconfig/conf.o
  SHIPPED scripts/kconfig/zconf.lex.c
  SHIPPED scripts/kconfig/zconf.hash.c
  HOSTCC scripts/kconfig/zconf.tab.o
In file included from scripts/kconfig/zconf.tab.c:2537:0:
scripts/kconfig/menu.c: In function ‘get_symbol_str’:
scripts/kconfig/menu.c:590:18: warning: ‘jump’ may be used uninitialized in this function [-Wmaybe-uninitialized]
     jump->offset = strlen(r->s);
                  ^
scripts/kconfig/menu.c:551:19: note: ‘jump’ was declared here
  struct jump_key *jump;
                   ^
  HOSTLD scripts/kconfig/conf
scripts/kconfig/conf --silentoldconfig Kconfig
.config:1281:warning: symbol value 'm' invalid for CGROUP_NET_PRIO
*
* Restart config...
*
*
* General setup
*
Cross-compiler tool prefix (CROSS_COMPILE) []
Compile also drivers which will not load (COMPILE_TEST) [N/y/?] n
Local version - append to kernel release (LOCALVERSION) []
Automatically append version information to the version string (LOCALVERSION_AUTO) [N/y/?] n
Kernel compression mode
  1. Gzip (KERNEL_GZIP)
  2. Bzip2 (KERNEL_BZIP2)
  3. LZMA (KERNEL_LZMA)
> 4. XZ (KERNEL_XZ)
  5. LZO (KERNEL_LZO)
  6. LZ4 (KERNEL_LZ4)
choice[1-6?]: 4
Default hostname (DEFAULT_HOSTNAME) [(none)] (none)
Support for paging of anonymous memory (swap) (SWAP) [Y/n/?] y
System V IPC (SYSVIPC) [Y/n/?] y
POSIX Message Queues (POSIX_MQUEUE) [Y/n/?] y
open by fhandle syscalls (FHANDLE) [Y/n/?] y
uselib syscall (USELIB) [Y/n/?] (NEW) aborted!

Console input/output is redirected. Run 'make oldconfig' to update configuration.

/sources/builddir/linux-3.15.1/scripts/kconfig/Makefile:36: recipe for target 'silentoldconfig' failed
make[2]: *** [silentoldconfig] Error 1
/sources/builddir/linux-3.15.1/Makefile:527: recipe for target 'silentoldconfig' failed
make[1]: *** [silentoldconfig] Error 2
  SYSTBL arch/x86/syscalls/../include/generated/asm/syscalls_32.h
make: *** No rule to make target 'include/config/auto.conf', needed by 'include/config/kernel.release'. Stop.
make: *** Waiting for unfinished jobs....
  SYSHDR arch/x86/syscalls/../include/generated/uapi/asm/unistd_32.h
  SYSHDR arch/x86/syscalls/../include/generated/uapi/asm/unistd_64.h
  SYSHDR arch/x86/syscalls/../include/generated/uapi/asm/unistd_x32.h

    *** BUILD_PROBLEM_DETECTED ***

scripts/kconfig/conf --silentoldconfig Kconfig
.config:1281:warning: symbol value 'm' invalid for CGROUP_NET_PRIO
*
* Restart config...
*
*
* General setup
*
Cross-compiler tool prefix (CROSS_COMPILE) []
Compile also drivers which will not load (COMPILE_TEST) [N/y/?] n
Local version - append to kernel release (LOCALVERSION) []
Automatically append version information to the version string (LOCALVERSION_AUTO) [N/y/?] n
Kernel compression mode
  1. Gzip (KERNEL_GZIP)
  2. Bzip2 (KERNEL_BZIP2)
  3. LZMA (KERNEL_LZMA)
> 4. XZ (KERNEL_XZ)
  5. LZO (KERNEL_LZO)
  6. LZ4 (KERNEL_LZ4)
choice[1-6?]: 4
Default hostname (DEFAULT_HOSTNAME) [(none)] (none)
Support for paging of anonymous memory (swap) (SWAP) [Y/n/?] y
System V IPC (SYSVIPC) [Y/n/?] y
POSIX Message Queues (POSIX_MQUEUE) [Y/n/?] y
open by fhandle syscalls (FHANDLE) [Y/n/?] y
uselib syscall (USELIB) [Y/n/?] (NEW) aborted!

Console input/output is redirected. Run 'make oldconfig' to update configuration.

/sources/builddir/linux-3.15.1/scripts/kconfig/Makefile:36: recipe for target 'silentoldconfig' failed
make[2]: *** [silentoldconfig] Error 1
/sources/builddir/linux-3.15.1/Makefile:527: recipe for target 'silentoldconfig' failed
make[1]: *** [silentoldconfig] Error 2

The present kernel configuration has modules disabled.
Type 'make config' and enable loadable module support.
Then build a kernel with module support enabled.

Makefile:1086: recipe for target 'modules_install' failed
make: *** [modules_install] Error 1

    *** BUILD_PROBLEM_DETECTED ***

cp: cannot stat ‘arch/x86/boot/bzImage’: No such file or directory

    *** BUILD_PROBLEM_DETECTED ***

cp: cannot stat ‘System.map’: No such file or directory

    *** BUILD_PROBLEM_DETECTED ***

‘.config’ -> ‘/sources/buildmgr/pkgroot/boot/config-3.15.1’
install: creating directory ‘/sources/buildmgr/pkgroot/etc/modprobe.d’

Question information

Language:
English Edit question
Status:
Solved
For:
LFScript Edit question
Assignee:
No assignee Edit question
Solved by:
Marcel van den Boer
Solved:
Last query:
Last reply:
Revision history for this message
Marcel van den Boer (synthehol) said :
#1

Are you using a custom kernel configuration file? Could you post the first 10 lines of that .config file?

Revision history for this message
Manish Thatte (manishjagdishthatte) said :
#2

Yes. I am using a custom kernel. Here are the first 10 lines:

#
# Automatically generated file; DO NOT EDIT.
# Linux/x86 3.14.7 Kernel Configuration
#
CONFIG_64BIT=y
CONFIG_X86_64=y
CONFIG_X86=y
CONFIG_INSTRUCTION_DECODER=y
CONFIG_OUTPUT_FORMAT="elf64-x86-64"
CONFIG_ARCH_DEFCONFIG="arch/x86/configs/x86_64_defconfig" <========================
CONFIG_LOCKDEP_SUPPORT=y
CONFIG_STACKTRACE_SUPPORT=y

OK. I got the problem.

What do you suggest? Shall I let the script build the default kernel with just the -k swicth?

Revision history for this message
Manish Thatte (manishjagdishthatte) said :
#3

One more suggestion to your "already excellent lfscript" I would like to make is:

It would be nice if there is some sort of a status message after each script finishes installing as to the number of completed scripts and the remaining number of scripts yet to be completed.

That way we can have a rough estimate as to how many tasks are yet to be completed.

Revision history for this message
Best Marcel van den Boer (synthehol) said :
#4

As I suspected, you are using a kernel configuration file for Linux 3.14.7. So, when the script starts building Linux 3.15.1, it tries (but fails) to upgrade your configuration for the new version.

You should upgrade your configuration file using 'make oldconfig' as described here: http://lfscript.org/wiki/index.php/Kernel_configuration

By the way, I like the idea of showing the number of scripts remaining. I'm thinking about combining it with the SBU indication in LFS to calculate a rough estimate of build time remaining.

Revision history for this message
Manish Thatte (manishjagdishthatte) said :
#5

Dear Marcel,

The compilation is still going on on m small samsung netbook(basic sys and xorg). 48 hrs have passed. I am inclined to use lfscript to compile the kernel too.

I hope just using the resume switch will do the needful.

Revision history for this message
Marcel van den Boer (synthehol) said :
#6

You should abort, upgrade your kernel config like I suggested, and add the -u switch to lfscript to resume with building.

Revision history for this message
Manish Thatte (manishjagdishthatte) said :
#7

I aborted but could not resume. It ended up with a lot of errors and in the
end made my system unbootable :) . So now reinstalled the os and starting
fresh incorporating all the changes suggested by you. Hope
it works out this time.

On Thu, Jul 3, 2014 at 4:17 PM, Marcel van den Boer <
<email address hidden>> wrote:

> Your question #251085 on LFScript changed:
> https://answers.launchpad.net/lfscript/+question/251085
>
> Marcel van den Boer posted a new comment:
> You should abort, upgrade your kernel config like I suggested, and add
> the -u switch to lfscript to resume with building.
>
> --
> You received this question notification because you asked the question.
>

Revision history for this message
Manish Thatte (manishjagdishthatte) said :
#8

Kernel compilation problem solved !!!

Revision history for this message
Manish Thatte (manishjagdishthatte) said :
#9

Thanks Marcel van den Boer, that solved my question.