[Bug 669669] New: Factory Kernel lets building Kernel modules fail
https://bugzilla.novell.com/show_bug.cgi?id=669669 https://bugzilla.novell.com/show_bug.cgi?id=669669#c0 Summary: Factory Kernel lets building Kernel modules fail Classification: openSUSE Product: openSUSE 11.4 Version: Factory Platform: Other OS/Version: Other Status: NEW Severity: Critical Priority: P5 - None Component: Kernel AssignedTo: kernel-maintainers@forge.provo.novell.com ReportedBy: johannesobermayr@gmx.de QAContact: qa@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; U; Linux i686; de-DE) AppleWebKit/533.3 (KHTML, like Gecko) rekonq Safari/533.3 Output at end of process: Processing files: drm-intel-kmp-xen-20110202_kUpdating-7.1.i586 error: File not found: /usr/src/packages/BUILDROOT/drm-intel-20110202-7.1.i386/lib/modules/Updating-xen error: File must begin with "/": 2.6.37-20 See: https://build.opensuse.org/package/live_build_log?arch=i586&package=drm-intel&project=home%3Ajobermayr&repository=openSUSE_Factory Reproducible: Always -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=669669
https://bugzilla.novell.com/show_bug.cgi?id=669669#c1
--- Comment #1 from Marcus Meissner
https://bugzilla.novell.com/show_bug.cgi?id=669669
https://bugzilla.novell.com/show_bug.cgi?id=669669#c2
--- Comment #2 from Marcus Meissner
https://bugzilla.novell.com/show_bug.cgi?id=669669
https://bugzilla.novell.com/show_bug.cgi?id=669669#c3
--- Comment #3 from Kshitij Kulshreshtha
https://bugzilla.novell.com/show_bug.cgi?id=669669
https://bugzilla.novell.com/show_bug.cgi?id=669669#c
Jeff Mahoney
https://bugzilla.novell.com/show_bug.cgi?id=669669
https://bugzilla.novell.com/show_bug.cgi?id=669669#c4
--- Comment #4 from Michal Marek
https://bugzilla.novell.com/show_bug.cgi?id=669669
https://bugzilla.novell.com/show_bug.cgi?id=669669#c5
--- Comment #5 from Michal Marek
https://bugzilla.novell.com/show_bug.cgi?id=669669
https://bugzilla.novell.com/show_bug.cgi?id=669669#c6
Kshitij Kulshreshtha
BTW, I'm aware of the build failures, but it's quite tricky, because this time I am not able to reproduce them locally :-(.
Take any out-of-tree kernel module as source code in your home directory and try to compile it without rpm just by doing something like: make -C /usr/src/linux-obj/i586/desktop M=${PWD} modules you will see the errors in comment 2. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=669669
https://bugzilla.novell.com/show_bug.cgi?id=669669#c7
--- Comment #7 from Kshitij Kulshreshtha
kernelrelease has to depend on .config, because it has to reflect CONFIG_LOCALVERSION.
CONFIG_LOCALVERSION is present in include/config/auto.conf which is sourced by scripts/setlocalversion, or it exits if this file is not present saying kernelrelease is not valid. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=669669
https://bugzilla.novell.com/show_bug.cgi?id=669669#c8
--- Comment #8 from Michal Marek
https://bugzilla.novell.com/show_bug.cgi?id=669669
https://bugzilla.novell.com/show_bug.cgi?id=669669#c9
--- Comment #9 from Kshitij Kulshreshtha
https://bugzilla.novell.com/show_bug.cgi?id=669669
https://bugzilla.novell.com/show_bug.cgi?id=669669#c10
--- Comment #10 from Kshitij Kulshreshtha
https://bugzilla.novell.com/show_bug.cgi?id=669669
https://bugzilla.novell.com/show_bug.cgi?id=669669#c11
Michal Marek
https://bugzilla.novell.com/show_bug.cgi?id=669669
https://bugzilla.novell.com/show_bug.cgi?id=669669#c12
Kshitij Kulshreshtha
https://bugzilla.novell.com/show_bug.cgi?id=669669
https://bugzilla.novell.com/show_bug.cgi?id=669669#c13
--- Comment #13 from Kshitij Kulshreshtha
Re comment #10 - could try with V=2 instead? That should help us find the culprit. BTW, my theory is that it is the %fdupes call at the end of %install again, I'm inclined to shoot it without proof this time. But if you are able to reproduce it locally, that the V=2 output would help indeed.
since fdupes uses md5sums followed by a byte-by-byte comparison I checked the md5sums of .config and include/config/auto.conf $ md5sum /usr/src/linux-2.6.37-20-obj/i586/desktop/.config f649c2fe8274b0220f2bb70c9cf31569 /usr/src/linux-2.6.37-20-obj/i586/desktop/.config $ md5sum /usr/src/linux-2.6.37-20-obj/i586/desktop/include/config/auto.conf 22b0f65e9c808a1ff8ae72d242343112 /usr/src/linux-2.6.37-20-obj/i586/desktop/include/config/auto.conf A visual inspection shows that the entries in include/config/auto.conf are not even in the same order as in .config -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=669669
https://bugzilla.novell.com/show_bug.cgi?id=669669#c14
--- Comment #14 from Kshitij Kulshreshtha
https://bugzilla.novell.com/show_bug.cgi?id=669669
https://bugzilla.novell.com/show_bug.cgi?id=669669#c15
--- Comment #15 from Michal Marek
https://bugzilla.novell.com/show_bug.cgi?id=669669
https://bugzilla.novell.com/show_bug.cgi?id=669669#c16
--- Comment #16 from Kshitij Kulshreshtha
https://bugzilla.novell.com/show_bug.cgi?id=669669
https://bugzilla.novell.com/show_bug.cgi?id=669669#c17
--- Comment #17 from Michal Marek
https://bugzilla.novell.com/show_bug.cgi?id=669669
https://bugzilla.novell.com/show_bug.cgi?id=669669#c18
Michal Marek
https://bugzilla.novell.com/show_bug.cgi?id=669669
https://bugzilla.novell.com/show_bug.cgi?id=669669#c19
--- Comment #19 from Kshitij Kulshreshtha
The failure here was caused by using a i386 kernel config on x86_64: $ uname -m x86_64 $ cd /usr/src/linux-obj/i586/desktop $ make -s kernelrelease /usr/src/linux-2.6.37-20/scripts/basic/fixdep.c:398:1: fatal error: opening dependency file scripts/basic/.fixdep.d: Permission denied compilation terminated. make[4]: *** [scripts/basic/fixdep] Error 1 make[3]: *** [scripts_basic] Error 2 2.6.37-20-desktop $ linux32 make -s kernelrelease 2.6.37-20-desktop
In the first case, kbuild detects an architecture change and forces a refresh of the configuration.
Kshitij, are you seeing the errors on a 32bit install or are you trying to build 32bit modules on a 64bit system?
Yes in fact I was building 32bit modules on a x86_64 system with i586 packages installed. Somehow I was under the impression that Kbuild uses the .config file and adds -m32 or -m64 to the compile commands. In the obs logs for i586 I did not see the linux32 command. There the call to make -s kernelrelease from macros.kernel-source produces these errors and also returns kver=Updating in the xen case. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=669669
https://bugzilla.novell.com/show_bug.cgi?id=669669#c20
--- Comment #20 from Kshitij Kulshreshtha
https://bugzilla.novell.com/show_bug.cgi?id=669669
https://bugzilla.novell.com/show_bug.cgi?id=669669#c
Michal Marek
https://bugzilla.novell.com/show_bug.cgi?id=669669
https://bugzilla.novell.com/show_bug.cgi?id=669669#c21
Stephan Kulow
https://bugzilla.novell.com/show_bug.cgi?id=669669
https://bugzilla.novell.com/show_bug.cgi?id=669669#c22
--- Comment #22 from Adrian Schröter
https://bugzilla.novell.com/show_bug.cgi?id=669669
https://bugzilla.novell.com/show_bug.cgi?id=669669#c23
--- Comment #23 from Michal Marek
https://bugzilla.novell.com/show_bug.cgi?id=669669
https://bugzilla.novell.com/show_bug.cgi?id=669669#c24
--- Comment #24 from Adrian Schröter
https://bugzilla.novell.com/show_bug.cgi?id=669669
https://bugzilla.novell.com/show_bug.cgi?id=669669#c25
--- Comment #25 from Michal Marek
https://bugzilla.novell.com/show_bug.cgi?id=669669
https://bugzilla.novell.com/show_bug.cgi?id=669669#c26
--- Comment #26 from Michal Marek
https://bugzilla.novell.com/show_bug.cgi?id=669669
https://bugzilla.novell.com/show_bug.cgi?id=669669#c27
--- Comment #27 from Kshitij Kulshreshtha
https://bugzilla.novell.com/show_bug.cgi?id=669669
https://bugzilla.novell.com/show_bug.cgi?id=669669#c28
--- Comment #28 from Stephan Kulow
https://bugzilla.novell.com/show_bug.cgi?id=669669
https://bugzilla.novell.com/show_bug.cgi?id=669669#c29
--- Comment #29 from Michal Marek
https://bugzilla.novell.com/show_bug.cgi?id=669669
https://bugzilla.novell.com/show_bug.cgi?id=669669#c30
--- Comment #30 from Michal Marek
the server builds i586 against i586, osc pulls noarch packages from a not defined architecture - in this case you get the x86_64 "noarch" package.
Ah, ok, that explains things. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=669669
https://bugzilla.novell.com/show_bug.cgi?id=669669#c31
--- Comment #31 from Michal Marek
https://bugzilla.novell.com/show_bug.cgi?id=669669
https://bugzilla.novell.com/show_bug.cgi?id=669669#c32
Michal Marek
participants (1)
-
bugzilla_noreply@novell.com