[Bug 1127769] New: virt-bootstrap ppc64le build failed 'Architecture is not included: powerpc64le'
http://bugzilla.suse.com/show_bug.cgi?id=1127769 Bug ID: 1127769 Summary: virt-bootstrap ppc64le build failed 'Architecture is not included: powerpc64le' Classification: openSUSE Product: openSUSE Tumbleweed Version: Current Hardware: PowerPC OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: Other Assignee: bnc-team-screening@forge.provo.novell.com Reporter: normand@linux.vnet.ibm.com QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- virt-bootstrap ppc64le build failed 'Architecture is not included: powerpc64le' as reported https://build.opensuse.org/package/show/openSUSE:Factory:PowerPC/virt-bootst... at least since Feb/2018 === [ 52s] + exec rpmbuild -ba --define '_srcdefattr (-,root,root)' --nosignature --define '_build_create_debug 1' --define 'disturl obs://build.opensuse.org/openSUSE:Factory:PowerPC/standard/27f99cf41cae37eee0d5093157880089-virt-bootstrap' /home/abuild/rpmbuild/SOURCES/virt-bootstrap.spec [ 52s] error: Architecture is not included: powerpc64le === $osc jobhist -l10 openSUSE:Factory:PowerPC/virt-bootstrap standard ppc64le time package reason code build time worker 2017-09-14 03:01:53 virt-bootstrap new build succeeded 0m 38s obs-power8-05:19 2017-10-05 11:04:56 virt-bootstrap source change succeeded 0m 44s obs-power8-02:1 2018-01-31 03:48:05 virt-bootstrap new build succeeded 1m 45s obs-power8-05:32 2018-02-16 21:27:21 virt-bootstrap source change failed 1m 35s obs-power8-01:3 2018-06-02 14:29:56 virt-bootstrap source change failed 2m 45s obs-power8-03:8 2018-08-27 22:22:41 virt-bootstrap new build failed 1m 23s obs-power8-05:19 2018-11-14 14:41:43 virt-bootstrap new build failed 1m 2s obs-power8-05:3 2019-02-01 04:13:24 virt-bootstrap meta change failed 1m 4s obs-power8-07:33 === I identified the source file creating the error message in rpm*/build/parsePreamble.c === static rpmRC checkForValidArchitectures(rpmSpec spec) { char *arch = rpmExpand("%{_target_cpu}", NULL); char *os = rpmExpand("%{_target_os}", NULL); rpmRC rc = RPMRC_FAIL; /* assume failure */ if (!strcmp(arch, "noarch")) { free(arch); arch = rpmExpand("%{_build_cpu}", NULL); } if (isMemberInEntry(spec->buildRestrictions, arch, RPMTAG_EXCLUDEARCH) == 1) { rpmlog(RPMLOG_ERR, _("Architecture is excluded: %s\n"), arch); goto exit; } === Does it mean the %{_target_cpu} is converted to 'powerpc64le' ? and where is it set ? -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1127769 Jiachen Zhang <jiachen.zhang@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|bnc-team-screening@forge.pr |cbosdonnat@suse.com |ovo.novell.com | -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1127769 http://bugzilla.suse.com/show_bug.cgi?id=1127769#c1 Cédric Bosdonnat <cbosdonnat@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ohering@suse.com --- Comment #1 from Cédric Bosdonnat <cbosdonnat@suse.com> --- @Olaf, any idea on that? -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1127769 http://bugzilla.suse.com/show_bug.cgi?id=1127769#c2 --- Comment #2 from Michel Normand <normand@linux.vnet.ibm.com> --- _target_cpu probably coming from /usr/lib/rpm/macros === $grep -HnE '_target_cpu|host_cpu' /usr/lib/rpm/macros /usr/lib/rpm/macros:999:%_build_cpu %{_host_cpu} /usr/lib/rpm/macros:1004:%_host_cpu powerpc64le /usr/lib/rpm/macros:1009:%_target_cpu %{_host_cpu} === but virt-bootstrap.spec is using ppc64le in ExclusiveArch as normally done for openSUSE specs, not powerpc64le. === $grep Arch virt-bootstrap.spec BuildArch: noarch ExclusiveArch: x86_64 ppc64 ppc64le s390x aarch64 === -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1127769 http://bugzilla.suse.com/show_bug.cgi?id=1127769#c3 Olaf Hering <ohering@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |mls@suse.com Flags| |needinfo?(mls@suse.com) --- Comment #3 from Olaf Hering <ohering@suse.com> --- Michael, why is ppc64le not handled properly? The same appears to be true for ppc64. Probably something does not handle BuildArch+ExclusiveArch properly. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1127769 http://bugzilla.suse.com/show_bug.cgi?id=1127769#c4 --- Comment #4 from Olaf Hering <ohering@suse.com> --- I think noarch has to be added to the list of ExclusiveArch -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1127769 http://bugzilla.suse.com/show_bug.cgi?id=1127769#c5 Michael Schröder <mls@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Flags|needinfo?(mls@suse.com) | --- Comment #5 from Michael Schröder <mls@suse.com> --- There's a hack in newer(!) rpm versions that allows to use ExclusiveArch for noarch packages (without this hack the construct would not make sense at all, because after the "BuildArch: noarch" the architecture is always "noarch". Unfortunately rpm does not canonicalize the architecture in that case, so you get a weird architecture like "powerpc64le". This may be considered a bug that needs to be fixed. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1127769 http://bugzilla.suse.com/show_bug.cgi?id=1127769#c6 Cédric Bosdonnat <cbosdonnat@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Flags| |needinfo?(mls@suse.com) --- Comment #6 from Cédric Bosdonnat <cbosdonnat@suse.com> --- (In reply to Michael Schröder from comment #5)
There's a hack in newer(!) rpm versions that allows to use ExclusiveArch for noarch packages (without this hack the construct would not make sense at all, because after the "BuildArch: noarch" the architecture is always "noarch".
Unfortunately rpm does not canonicalize the architecture in that case, so you get a weird architecture like "powerpc64le". This may be considered a bug that needs to be fixed.
Michael, is this something to be done on the virt-boostrap sepc file or is that a bug in the build chain? -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1127769 http://bugzilla.suse.com/show_bug.cgi?id=1127769#c7 Michael Schröder <mls@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Flags|needinfo?(mls@suse.com) | --- Comment #7 from Michael Schröder <mls@suse.com> --- You can add "powerpc64le" to your ExclusiveArch line as a workaround, as Olaf already said. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1127769 http://bugzilla.suse.com/show_bug.cgi?id=1127769#c8 --- Comment #8 from Michael Schröder <mls@suse.com> --- For reference: I've opened an issue upstream: https://github.com/rpm-software-management/rpm/issues/791 -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1127769 Héctor Orón Martínez <hector.oron@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |hector.oron@suse.com Hardware|PowerPC |PowerPC-64 -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1127769 https://bugzilla.suse.com/show_bug.cgi?id=1127769#c9 --- Comment #9 from Héctor Orón Martínez <hector.oron@suse.com> --- It looks like this one builds on ppc64le: https://build.opensuse.org/package/live_build_log/openSUSE:Factory:PowerPC/v... Please reopen if you are still affected by this issue. -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1127769 https://bugzilla.suse.com/show_bug.cgi?id=1127769#c10 Héctor Orón Martínez <hector.oron@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED --- Comment #10 from Héctor Orón Martínez <hector.oron@suse.com> --- Chaging status. -- You are receiving this mail because: You are on the CC list for the bug.
participants (2)
-
bugzilla_noreply@novell.com
-
bugzilla_noreply@suse.com