[opensuse-factory] Kernel module fails in OBS for openSUSE_Factory and openSUSE_12.2
I have two kernel modules that are built in OBS. Up to and including 12.1 the build works fine. A while back, the build for both Factory and 12.2 started to fail with this error: /home/abuild/rpmbuild/BUILD/vmic_enable-0.10/obj/default/vmic_enable.c:42:24: fatal error: asm/system.h: No such file or directory So, I checked to see if such a file exists. Oddly, the only file is: -rw-r--r-- 1 root root 232 Jul 26 09:36 /usr/src/linux/arch/arm/include/asm/system.h The drivers are being built for the i586 and x86_64 architectures. The arm includes are not useful. One simple driver module that has the issue is: https://build.opensuse.org/package/show?package=vmic_enable&project=home%3Arogeroberholtzer I have a feeling I might now need to specify something in my spec file that is different as of Factory. But what? (I checked the list archives, but either my search tags were not correct, or this has bot been discussed before. I am new to this list...) Yours sincerely, Roger Oberholtzer OPQ Systems / Ramböll RST Office: Int +46 10-615 60 20 Mobile: Int +46 70-815 1696 roger.oberholtzer@ramboll.se ________________________________________ Ramböll Sverige AB Krukmakargatan 21 P.O. Box 17009 SE-104 62 Stockholm, Sweden www.rambollrst.se -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 08/16/2012 04:33 PM, Roger Oberholtzer wrote:
I have two kernel modules that are built in OBS. Up to and including 12.1 the build works fine. A while back, the build for both Factory and 12.2 started to fail with this error:
/home/abuild/rpmbuild/BUILD/vmic_enable-0.10/obj/default/vmic_enable.c:42:24: fatal error: asm/system.h: No such file or directory
So, I checked to see if such a file exists. Oddly, the only file is:
-rw-r--r-- 1 root root 232 Jul 26 09:36 /usr/src/linux/arch/arm/include/asm/system.h
Yes, that header was removed from the kernel. Simply don't include that. (You may need to include other headers, the contents was moved to other headers.) regards, - -- js suse labs -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.18 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQIcBAEBAgAGBQJQLSv6AAoJEL0lsQQGtHBJ2mEP/0+3kYmRhbLtVybxM5bv8t7S wiMdYlhmeoc75w1+fBcKRBQVjLe77PCItBeEUuzWDlpJQ/2dtsw+xx4I2EE4GWQ6 O4fwKBMJZcVksRnhKctcPBH8Zx6yWoEeGg9niVc3dpDMVzoMerz57Gf7cWnGZCGU EU7TCt8NB9suOlN/IvVssZmKLCldGtL8eacyUqyeROGe3JNK3SnLNPMceYyprWYV H5/8dt8dyD3qyjzFQ0UJb4FcK9zvG53e2ICHOrKXBGkzkyT/Hy8QXkKu+JhFBSA1 Ck6blPCnEMOqudDvskCz3TW+YLddDUD2oZcR1Gf6kNpwFl+yPlsvXN732CcjlzRE a31nKBMQ7uKCwbCDyVSdPuoDE6AYUgqzLMN6p0GJYtegKO+WyNddDvHEt/6bHiXv TP9R/LGdk654QNEnmPNnmDYnWNLOuN9W9I14XGnl0bsjRCf4ntdsT4+Esz8dJjzL q1y4K+h4GImaGhNmMPslpcAaHs+tLWOjN8iAcksZaFB6+F6kAOndPYrdpSSgt7Da ugMf3dRCwiJ4FWcd2h03wmR9BJoTt0gTrcFEmoxjlfPU7K5b+qVh68IiQAvBgB8f ilzAIwz9aX//nK2TyE/04wn3KpduyUfuAe1fXMNnO6AZx5UdvbgqiyYYhdSq7S/m eLKkWu+oBhRZ2W8J28nf =Dlrv -----END PGP SIGNATURE----- -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org
On Thu, 2012-08-16 at 19:20 +0200, Jiri Slaby wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On 08/16/2012 04:33 PM, Roger Oberholtzer wrote:
I have two kernel modules that are built in OBS. Up to and including 12.1 the build works fine. A while back, the build for both Factory and 12.2 started to fail with this error:
/home/abuild/rpmbuild/BUILD/vmic_enable-0.10/obj/default/vmic_enable.c:42:24: fatal error: asm/system.h: No such file or directory
So, I checked to see if such a file exists. Oddly, the only file is:
-rw-r--r-- 1 root root 232 Jul 26 09:36 /usr/src/linux/arch/arm/include/asm/system.h
Yes, that header was removed from the kernel. Simply don't include that. (You may need to include other headers, the contents was moved to other headers.)
Seems the content is elsewhere. So the thing to do is not include it in
3.4 and newer kernels.
#if LINUX_VERSION_CODE < KERNEL_VERSION(3, 4, 0)
# include
participants (2)
-
Jiri Slaby
-
Roger Oberholtzer