Sent: Monday, October 09, 2017 at 9:26 AM From: doiggl@velocitynet.com.au To: opensuse-packaging@opensuse.org Cc: opensuse-kernel@opensuse.org Subject: [opensuse-packaging] Why does the build for succeed[i586] and fail[x86_64] on platforms ? Hello,
Questions: Why does the build for succeed[i586] and fail[x86_64] on platforms ? Why does x86_64 fail ,how is spec fixed so build completes. ? Thanks --Glenn
[urls] https://build.opensuse.org/package/show/home:doiggl/kernel-vanilla1
https://build.opensuse.org/public/build/home:doiggl/openSUSE_Factory/i586/ke... https://build.opensuse.org/public/build/home:doiggl/openSUSE_Factory/x86_64/...
from logs:
https://build.opensuse.org/package/live_build_log/home:doiggl/kernel-vanilla/openSUSE_Factory/x86_64[https://build.opensuse.org/package/live_build_log/home:doiggl/kernel-vanilla/openSUSE_Factory/x86_64] [ 58s] CC arch/x86/purgatory/sha256.o [ 59s] AS arch/x86/purgatory/entry64.o [ 59s] CC arch/x86/purgatory/string.o [ 59s] LD arch/x86/purgatory/purgatory.ro [ 59s] BIN2C arch/x86/purgatory/kexec-purgatory.c [ 59s] CC kernel/bounds.s [ 59s] cc1: error: code model kernel does not support PIC mode [ 59s] make[2]: *** [kernel/bounds.s] Error 1 [ 59s] make[1]: *** [prepare0] Error 2 [ 59s] make[1]: Leaving directory `/home/abuild/rpmbuild/BUILD/kernel-vanilla-4.2.1/linux-4.2/linux-obj' [ 59s] make: *** [sub-make] Error 2 [ 59s] make: Leaving directory `/home/abuild/rpmbuild/BUILD/kernel-vanilla-4.2.1/linux-4.2' [ 59s] error: Bad exit status from /var/tmp/rpm-tmp.bXHOnk (%prep) [ 59s] [ 59s] [ 59s] RPM build errors: [ 59s] Bad exit status from /var/tmp/rpm-tmp.bXHOnk (%prep) [ 59s] [ 59s] lamb27 failed "build kernel-vanilla.spec" at Sun Oct 8 13:36:55 UTC 2017. [ 59s]
or ## https://build.opensuse.org/public/build/home:doiggl/openSUSE_Factory/i586/kernel-vanilla/_log[https://build.opensuse.org/public/build/home:doiggl/openSUSE_Factory/i586/kernel-vanilla/_log] [ 1967s] ... saving statistics [ 1967s] ... saving built packages [ 1967s] RPMS/i686/kernel-vanilla-devel-4.2.1-2.1.gd2bbe7f.i686.rpm [ 1967s] RPMS/i686/kernel-vanilla-4.2.1-2.1.gd2bbe7f.i686.rpm [ 1967s] SRPMS/kernel-vanilla-4.2.1-2.1.gd2bbe7f.nosrc.rpm [ 1967s] OTHER/_statistics [ 1967s] OTHER/rpmlint.log [ 1967s] [ 1967s] lamb70 finished "build kernel-vanilla.spec" at Sun Oct 8 14:08:44 UTC 2017. [ 1967s] [ 1967s] ### VM INTERACTION START ### [ 1970s] [ 1962.791243] sysrq: SysRq : Power Off [ 1970s] [ 1962.798089] reboot: Power down [ 1970s] ### VM INTERACTION END ### [ 1970s] build: extracting built packages... [ 1970s] RPMS/i686/kernel-vanilla-devel-4.2.1-2.1.gd2bbe7f.i686.rpm [ 1970s] RPMS/i686/kernel-vanilla-4.2.1-2.1.gd2bbe7f.i686.rpm [ 1970s] SRPMS/kernel-vanilla-4.2.1-2.1.gd2bbe7f.nosrc.rpm [ 1970s] OTHER/_statistics [ 1970s] OTHER/rpmlint.log
If you look closer you can see why. The i686 arch builds only 3 packages: [ 1970s] RPMS/i686/kernel-vanilla-4.2.1-2.1.gd2bbe7f.i686.rpm <-- 1 [ 1970s] RPMS/i686/kernel-vanilla-devel-4.2.1-2.1.gd2bbe7f.i686.rpm <-- 2 [ 1970s] SRPMS/kernel-vanilla-4.2.1-2.1.gd2bbe7f.nosrc.rpm <-- 3 [ 1970s] OTHER/rpmlint.log [ 1970s] OTHER/_statistics Now, the x86_64 builds, at least, 6 packages: [ 5048s] RPMS/x86_64/kernel-vanilla-4.2.1-2.1.gd2bbe7f.x86_64.rpm <-- 1 [ 5048s] RPMS/x86_64/kernel-vanilla-debuginfo-4.2.1-2.1.gd2bbe7f.x86_64.rpm <-- 2 [ 5048s] RPMS/x86_64/kernel-vanilla-debugsource-4.2.1-2.1.gd2bbe7f.x86_64.rpm <-- 3 [ 5048s] RPMS/x86_64/kernel-vanilla-devel-4.2.1-2.1.gd2bbe7f.x86_64.rpm <-- 4 [ 5048s] SRPMS/kernel-vanilla-4.2.1-2.1.gd2bbe7f.nosrc.rpm <-- 5 [ 5048s] OTHER/_statistics [ 5048s] OTHER/pesign-repackage.spec <-- 6 [ 5048s] OTHER/kernel-vanilla.cpio.rsasign [ 5048s] OTHER/rpmlint.log As you can see, the kernel has been built just fine, the problem lies under the 6th package: OTHER/pesign-repackage.spec. And since i686 arch doesn't build this package, the overall build succeeds. I don't know why only the x86_64 build this OTHER/pesign-repackage.spec but it's this guy that's giving you headaches. If I'm wrong somebody please correct me. Cheers, Luciano Santos. -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org