[opensuse-kernel] compilation config help needed
Hello, How can the configuration or .spec file be fixed to solve these errors [1] Im using the 2.6.35.4 kernel. Project and log details at [2][3]. Seems to be prompting for various items. Thanks for your help Glenn a). Im applying a patch , looks like it applied ok. + /usr/src/packages/SOURCES/apply-patches --vanilla /usr/src/packages/SOURCES/series.conf .. + patch -s -F0 -E -p1 --no-backup-if-mismatch -i ../patches.rpmify/reiser4-for-2.6.35.patch b). Added CONFIG_REISER4=m to config.addon/x86_64/vanilla, tar it up into config.addon.tar.bz2 Constructed as follows: # cd / # md config.addon # md config.addon/x86_64/ # echo CONFIG_REISER4=m > config.addon/x86_64/vanilla # tar -cvf config.addon.tar config.addon config.addon/ config.addon/x86_64/ config.addon/x86_64/vanilla # bzip2 -v config.addon.tar config.addon.tar: 43.207:1, 0.185 bits/byte, 97.69% saved, 10240 in, 237 out. [1] last part of log + sort -u + cd linux-2.6.35.4 + /usr/src/packages/SOURCES/apply-patches --vanilla /usr/src/packages/SOURCES/series.conf .. + patch -s -F0 -E -p1 --no-backup-if-mismatch -i ../patches.rpmify/reiser4-for-2.6.35.patch + cd /usr/src/packages/BUILD/kernel-vanilla-2.6.36/linux-obj + '[' -f /usr/src/packages/SOURCES/localversion ']' + test -e ../config.addon/x86_64/vanilla + /usr/src/packages/SOURCES/configtool.pl ../config/x86_64/vanilla ../config.addon/x86_64/vanilla + /usr/src/packages/BUILD/kernel-vanilla-2.6.36/linux-2.6.35.4/scripts/config --set-str CONFIG_LOCALVERSION -10-vanilla --enable CONFIG_SUSE_KERNEL --disable CONFIG_DEBUG_INFO + MAKE_ARGS=' -C /usr/src/packages/BUILD/kernel-vanilla-2.6.36/linux-2.6.35.4 O=/usr/src/packages/BUILD/kernel-vanilla-2.6.36/linux-obj' + test -e /usr/src/packages/SOURCES/TOLERATE-UNKNOWN-NEW-CONFIG-OPTIONS + echo '##list content of /./usr/src/packages/BUILD/kernel-vanilla-2.6.36/config.addon/x86_64/vanilla - added in ###' ##list content of /./usr/src/packages/BUILD/kernel-vanilla-2.6.36/config.addon/x86_64/vanilla - added in ### + cat /./usr/src/packages/BUILD/kernel-vanilla-2.6.36/config.addon/x86_64/vanilla CONFIG_REISER4=m + make silentoldconfig -C /usr/src/packages/BUILD/kernel-vanilla-2.6.36/linux-2.6.35.4 O=/usr/src/packages/BUILD/kernel-vanilla-2.6.36/linux-obj make: Entering directory `/usr/src/packages/BUILD/kernel-vanilla-2.6.36/linux-2.6.35.4' HOSTCC scripts/basic/fixdep HOSTCC scripts/basic/docproc HOSTCC scripts/basic/hash GEN /usr/src/packages/BUILD/kernel-vanilla-2.6.36/linux-obj/Makefile HOSTCC scripts/kconfig/conf.o HOSTCC scripts/kconfig/kxgettext.o SHIPPED scripts/kconfig/zconf.tab.c SHIPPED scripts/kconfig/lex.zconf.c SHIPPED scripts/kconfig/zconf.hash.c HOSTCC scripts/kconfig/zconf.tab.o HOSTLD scripts/kconfig/conf scripts/kconfig/conf -s arch/x86/Kconfig .config:4379:warning: symbol value 'm' invalid for VIDEO_TM6000_DVB * * Restart config... * * * General setup * Prompt for development and/or incomplete code/drivers (EXPERIMENTAL) [Y/n/?] y Cross-compiler tool prefix (CROSS_COMPILE) [] Local version - append to kernel release (LOCALVERSION) [-10-vanilla] -10-vanilla 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. LZO (KERNEL_LZO) choice[1-4?]: 1 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 BSD Process Accounting (BSD_PROCESS_ACCT) [Y/n/?] y BSD Process Accounting version 3 file format (BSD_PROCESS_ACCT_V3) [Y/n/?] y Export task/process statistics through netlink (EXPERIMENTAL) (TASKSTATS) [Y/n/?] y Enable per-task delay accounting (EXPERIMENTAL) (TASK_DELAY_ACCT) [Y/n/?] y Enable extended accounting over taskstats (EXPERIMENTAL) (TASK_XACCT) [Y/n/?] y Enable per-task storage I/O accounting (EXPERIMENTAL) (TASK_IO_ACCOUNTING) [Y/n/?] y Auditing support (AUDIT) [Y/n/?] y Enable system-call auditing support (AUDITSYSCALL) [Y/n/?] y Kernel .config support (IKCONFIG) [Y/n/m/?] y Enable access to .config through /proc/config.gz (IKCONFIG_PROC) [Y/n/?] y Kernel log buffer size (16 => 64KB, 17 => 128KB) (LOG_BUF_SHIFT) [18] 18 enable deprecated sysfs features to support old userspace tools (SYSFS_DEPRECATED_V2) [N/y/?] n Kernel->user space relay support (formerly relayfs) (RELAY) [Y/?] y Namespaces support (NAMESPACES) [Y/?] y UTS namespace (UTS_NS) [Y/n/?] y IPC namespace (IPC_NS) [Y/n/?] y User namespace (EXPERIMENTAL) (USER_NS) [Y/n/?] y PID Namespaces (EXPERIMENTAL) (PID_NS) [Y/n/?] y Network namespace (NET_NS) [Y/n/?] y Initial RAM filesystem and RAM disk (initramfs/initrd) support (BLK_DEV_INITRD) [Y/n/?] y Initramfs source file(s) (INITRAMFS_SOURCE) [] Optimize for size (CC_OPTIMIZE_FOR_SIZE) [N/y/?] n Disable heap randomization (COMPAT_BRK) [Y/n/?] y Choose SLAB allocator 1. SLAB (SLAB) 2. SLUB (Unqueued Allocator) (SLUB) choice[1-2?]: 1 Profiling support (PROFILING) [Y/n/?] y OProfile system profiling (OPROFILE) [M/n/y/?] m OProfile multiplexing support (EXPERIMENTAL) (OPROFILE_EVENT_MULTIPLEX) [N/y/?] n Kprobes (KPROBES) [Y/n/?] y Slow work debugging through debugfs (SLOW_WORK_DEBUG) [N/y/?] (NEW) aborted!
Console input/output is redirected. Run 'make oldconfig' to update configuration. make[2]: *** [silentoldconfig] Error 1 make[1]: *** [silentoldconfig] Error 2 make: *** [sub-make] Error 2 make: Leaving directory `/usr/src/packages/BUILD/kernel-vanilla-2.6.36/linux-2.6.35.4' error: Bad exit status from /var/tmp/rpm-tmp.tdOUaD (%prep) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.tdOUaD (%prep) SysRq : Power Off Power down. ===================== ===================== [2] project -> https://build.opensuse.org/package/show?package=kernel-vanilla&project=home%3Adoiggl [3] last log ->https://build.opensuse.org/package/live_build_log?arch=x86_64&package=kernel-vanilla&project=home%3Adoiggl&repository=openSUSE_11.3 -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-kernel+help@opensuse.org
On Monday 06 September 2010 03:38:57 doiggl@velocitynet.com.au wrote:
Hello,
How can the configuration or .spec file be fixed to solve these errors [1] Im using the 2.6.35.4 kernel. Project and log details at [2][3]. Seems to be prompting for various items. Thanks for your help
Both problems seem to come from your .config not 100% matching your kernel sources. This is normal and not sever. Your first case is somewhat special however and might need special treating, see below. ...
SHIPPED scripts/kconfig/zconf.hash.c HOSTCC scripts/kconfig/zconf.tab.o HOSTLD scripts/kconfig/conf scripts/kconfig/conf -s arch/x86/Kconfig .config:4379:warning: symbol value 'm' invalid for VIDEO_TM6000_DVB * * Restart config... * I expect new code for the driver VIDEO_TM6000_DVB has been added and you cannot compile it as a module anymore. Just remove it, I doubt you have such a device anyway? CONFIG_VIDEO_TM6000_DVB=m to # CONFIG_VIDEO_TM6000_DVB is not set Or dependencies to other configs exist which cannot be solved automatically, not sure, just remove it. ... OProfile multiplexing support (EXPERIMENTAL) (OPROFILE_EVENT_MULTIPLEX) [N/y/?] n Kprobes (KPROBES) [Y/n/?] y Slow work debugging through debugfs (SLOW_WORK_DEBUG) [N/y/?] (NEW) aborted!
Console input/output is redirected. Run 'make oldconfig' to update configuration.
make[2]: *** [silentoldconfig] Error 1 make[1]: *** [silentoldconfig] Error 2 make: *** [sub-make] Error 2 make: Leaving directory `/usr/src/packages/BUILD/kernel-vanilla-2.6.36/linux-2.6.35.4' error: Bad exit status from /var/tmp/rpm-tmp.tdOUaD (%prep) This often happens. E.g. you get the latest kernel sources, copy your current .config: zcat /proc/config.gz >.config and run make. You will then be asked how to configure new options that where added to the kernel meanwhile (old ones should get removed automatically). You should be fine with just hitting the return button very often: A default exists (above it's "n/N", not compiling it in, it's debug anyway) You could also go through these more slowly and you see the latest features/ drivers which got added to the kernel.
Thomas -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-kernel+help@opensuse.org
On Mon, 6 Sep 2010 12:56:13 +0200, Thomas Renninger <trenn@suse.de> wrote:
On Monday 06 September 2010 03:38:57 doiggl@velocitynet.com.au wrote:
Hello,
How can the configuration or .spec file be fixed to solve these errors [1] Im using the 2.6.35.4 kernel. Project and log details at [2][3]. Seems to be prompting for various items. Thanks for your help
Both problems seem to come from your .config not 100% matching your kernel sources. This is normal and not sever. Your first case is somewhat special however and might need special treating, see below.
...
SHIPPED scripts/kconfig/zconf.hash.c HOSTCC scripts/kconfig/zconf.tab.o HOSTLD scripts/kconfig/conf scripts/kconfig/conf -s arch/x86/Kconfig
.config:4379:warning: symbol value 'm' invalid for VIDEO_TM6000_DVB
* * Restart config... * I expect new code for the driver VIDEO_TM6000_DVB has been added and you cannot compile it as a module anymore. Just remove it, I doubt you have such a device anyway? CONFIG_VIDEO_TM6000_DVB=m to # CONFIG_VIDEO_TM6000_DVB is not set Or dependencies to other configs exist which cannot be solved automatically, not sure, just remove it. ...
OProfile multiplexing support (EXPERIMENTAL) (OPROFILE_EVENT_MULTIPLEX) [N/y/?] n
Kprobes (KPROBES) [Y/n/?] y
Slow work debugging through debugfs (SLOW_WORK_DEBUG) [N/y/?] (NEW) aborted!
Console input/output is redirected. Run 'make oldconfig' to update configuration.
make[2]: *** [silentoldconfig] Error 1 make[1]: *** [silentoldconfig] Error 2 make: *** [sub-make] Error 2
make: Leaving directory `/usr/src/packages/BUILD/kernel-vanilla-2.6.36/linux-2.6.35.4'
error: Bad exit status from /var/tmp/rpm-tmp.tdOUaD (%prep) This often happens. E.g. you get the latest kernel sources, copy your current .config: zcat /proc/config.gz >.config and run make. You will then be asked how to configure new options that where added to the kernel meanwhile (old ones should get removed automatically). You should be fine with just hitting the return button very often: A default exists (above it's "n/N", not compiling it in, it's debug anyway) You could also go through these more slowly and you see the latest features/ drivers which got added to the kernel.
Thomas
Since this is in the opensuse build service it looks like set all the options non-interactively as its a remote compilation. Would the option work if the parameters were set and added into config.addon.tar.bz2 I use this to create the config.addon.tar.bz2 file and set parameters. cd / mkdir config.addon mkdir config.addon/x86_64/ echo CONFIG_REISER4=m > config.addon/x86_64/vanilla echo SLOW_WORK_DEBUG=n >> config.addon/x86_64/vanilla echo CONFIG_VIDEO_TM6000_DVB=n >> config.addon/x86_64/vanilla tar -cvf config.addon.tar config.addon bzip2 -v config.addon.tar -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-kernel+help@opensuse.org
participants (2)
-
doiggl@velocitynet.com.au
-
Thomas Renninger