Why does the build for succeed[i586] and fail[x86_64] on platforms ?

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

Why does the build for succeed[i586] and fail[x86_64] on platforms ?

doiggl
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/kernel-vanilla/_log
https://build.opensuse.org/public/build/home:doiggl/openSUSE_Factory/x86_64/kernel-vanilla/_log

from logs:

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
[ 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

mixed-succeeded[i586]-failed[x86_64]-p01.png (150K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Why does the build for succeed[i586] and fail[x86_64] on platforms ?

Luciano Santos
>Sent: Monday, October 09, 2017 at 9:26 AM
>From: [hidden email]
>To: [hidden email]
>Cc: [hidden email]
>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/kernel-vanilla/_log
>https://build.opensuse.org/public/build/home:doiggl/openSUSE_Factory/x86_64/kernel-vanilla/_log

>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: [hidden email]
To contact the owner, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Why does the build for succeed[i586] and fail[x86_64] on platforms ?

Luciano Santos
In reply to this post by doiggl
>Why does x86_64 fail ,how is spec fixed so build completes. ?

As already said by Dominique:

>You will need to patch the code to change '{' to '\{' - the position where
>this is wrong is given in the error message as well.

So you'll only change the spec to add the patch. If you don't know how to
make a patch you can start by here:
https://en.opensuse.org/openSUSE:Build_Service_Tutorial#Patches
and since the kernel can make your head spin if you don't know where to start,
I'll try to make the patch too and if I succeed you can take some notes.
--
To unsubscribe, e-mail: [hidden email]
To contact the owner, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Why does the build for succeed[i586] and fail[x86_64] on platforms ?

Luciano Santos
In reply to this post by doiggl
>Sent: Monday, October 09, 2017 at 9:26 AM
>From: [hidden email]
>To: [hidden email]
>Cc: [hidden email]
>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

The issue your facing is being caused by the package 'pesign-obs-integration' that delivers
pesign-gen-repackage-spec, the very one spec that generate the already known error:

[   39s] Unescaped left brace in regex is illegal here in regex; marked by <-- HERE in m/\%{ <-- HERE -n\*}/ at /usr/lib/rpm/pesign/pesign-gen-repackage-spec line 477.

Now, 'pesign-obs-integration' package is used to sign the kernel in OBS, as its README
says:

  The pesign-repackage.spec takes the original RPMs, unpacks them and
  appends the signatures to the files. It then uses the
  pesign-gen-repackage-spec script to generate another specfile, which
  builds new RPMs with signed files.

So you only need make a patch to turn the '{' in '\{' if you are making a kernel to be
officially redistributed in OBS. If this is not the case you just need to erase the
pesign-obs-integration from your spec.

If I'm wrong someone please correct me.

Cheers,
Luciano.
--
To unsubscribe, e-mail: [hidden email]
To contact the owner, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Why does the build for succeed[i586] and fail[x86_64] on platforms ?

doiggl
In reply to this post by Luciano Santos
On Mon, 9 Oct 2017 23:26:16 +0200, "Luciano de O. Santos"
<[hidden email]> wrote:
>>Why does x86_64 fail ,how is spec fixed so build completes. ?
>
> As already said by Dominique:
>

##>>You will need to patch the code to change '{' to '\{' - the position
where this is wrong is given in the error message as well.
>
> So you'll only change the spec to add the patch. If you don't know how
to
> make a patch you can start by here:
> https://en.opensuse.org/openSUSE:Build_Service_Tutorial#Patches
> and since the kernel can make your head spin if you don't know where to
> start,
> I'll try to make the patch too and if I succeed you can take some notes.

#
Thanks,
filing copy of this.
--Glenn
--
To unsubscribe, e-mail: [hidden email]
To contact the owner, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Why does the build for succeed[i586] and fail[x86_64] on platforms ?

Luciano Santos
In reply to this post by doiggl
>Sent: Monday, October 09, 2017 at 10:26 AM
>From: [hidden email]
>To: [hidden email]
>Cc: [hidden email]
>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

I don't know if you saw my request but here it is the easiest way to make the build succeeds:
https://build.opensuse.org/package/show/home:luc14n0:branches:home:doiggl/kernel-vanilla
you just need to get rid of pesign-obs-integration package and its entries in the spec file.
When I get a chance I'll try to make a patch as well, just for the sake of it.
--
To unsubscribe, e-mail: [hidden email]
To contact the owner, e-mail: [hidden email]