Bug 1291091 - kBuild FTBFS on aarch64
kBuild FTBFS on aarch64
Status: NEW
Product: Fedora
Classification: Fedora
Component: kBuild (Show other bugs)
27
aarch64 Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Sergio Monteiro Basto
Fedora Extras Quality Assurance
: Reopened
Depends On:
Blocks: ARMTracker epel7aarch64
  Show dependency treegraph
 
Reported: 2015-12-13 12:46 EST by Yaakov Selkowitz
Modified: 2017-08-15 03:41 EDT (History)
5 users (show)

See Also:
Fixed In Version: kBuild-0.1.9998-6.r2784.fc23 kBuild-0.1.9998-6.r2784.fc22 kBuild-0.1.9998-6.r2784.el7
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2016-01-03 15:22:27 EST
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
Patch for rawhide/f23/epel7 (3.21 KB, patch)
2015-12-21 17:39 EST, Yaakov Selkowitz
no flags Details | Diff

  None (edit)
Description Yaakov Selkowitz 2015-12-13 12:46:12 EST
Attempting to build kBuild on aarch64 results in the following error:

+ kBuild/env.sh --full make -f bootstrap.gmk -j8 'CFLAGS=-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches  ' KBUILD_VERBOSE=2 KBUILD_VERSION_PATCH=9998
kBuild/env.sh: unknown cpu/arch - aarch64
error: Bad exit status from /var/tmp/rpm-tmp.AxDTyq (%build)
    Bad exit status from /var/tmp/rpm-tmp.AxDTyq (%build)

It looks like this needs some porting work.
Comment 1 Sergio Monteiro Basto 2015-12-13 21:35:46 EST

https://build.opensuse.org/package/view_file/devel:tools:building/kbuild/ppc64le.patch?expand=1


we need something like this for aarch64 ?
Comment 2 Yaakov Selkowitz 2015-12-13 23:07:24 EST
(In reply to Sergio Monteiro Basto from comment #1)
> https://build.opensuse.org/package/view_file/devel:tools:building/kbuild/
> ppc64le.patch?expand=1
> 
> we need something like this for aarch64 ?

Yes, something like that.
Comment 3 Sergio Monteiro Basto 2015-12-21 01:49:55 EST
(In reply to Yaakov Selkowitz from comment #2)
> (In reply to Sergio Monteiro Basto from comment #1)
> > https://build.opensuse.org/package/view_file/devel:tools:building/kbuild/
> > ppc64le.patch?expand=1
> > 
> > we need something like this for aarch64 ?
> 
> Yes, something like that.

I forgot to tell you sooner, I'm just a package maintainer, I haven't much knowledge or time to do the patch, but I accept patches to include in package.
Well while I was writing this, I found a new patch in Debian: http://anonscm.debian.org/cgit/pkg-virtualbox/kbuild.git/tree/debian/patches/12_arm64.diff

I already reported upstream http://trac.netlabs.org/kbuild/ticket/118#comment:1

Before apply and submit a new build, I'd like know your opinion about this Debian patch , looks good ?
Comment 4 Yaakov Selkowitz 2015-12-21 17:39 EST
Created attachment 1108519 [details]
Patch for rawhide/f23/epel7

(In reply to Sergio Monteiro Basto from comment #3)
> Well while I was writing this, I found a new patch in Debian:
> http://anonscm.debian.org/cgit/pkg-virtualbox/kbuild.git/tree/debian/patches/12_arm64.diff
> 
> Before apply and submit a new build, I'd like know your opinion about this
> Debian patch , looks good ?

It needs a few adjustments to apply on top of our patch set.  The attached
patch for rawhide (which can be merged into f23 and epel7) builds successfully
on aarch64.

Thanks for looking into this.
Comment 5 Sergio Monteiro Basto 2015-12-22 10:04:55 EST
Cool! I'm going commit it now (after finish basic tests) 
Thanks.
Comment 6 Fedora Update System 2015-12-22 13:26:51 EST
kBuild-0.1.9998-6.r2784.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2015-9c71fa56d2
Comment 7 Fedora Update System 2015-12-22 13:48:51 EST
kBuild-0.1.9998-6.r2784.fc22 has been submitted as an update to Fedora 22. https://bodhi.fedoraproject.org/updates/FEDORA-2015-39cb897a2c
Comment 8 Fedora Update System 2015-12-22 13:49:11 EST
kBuild-0.1.9998-6.r2784.el7 has been submitted as an update to Fedora EPEL 7. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2015-c4e77a82fb
Comment 9 Fedora Update System 2015-12-24 20:58:43 EST
kBuild-0.1.9998-6.r2784.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-9c71fa56d2
Comment 10 Fedora Update System 2015-12-26 22:20:58 EST
kBuild-0.1.9998-6.r2784.el7 has been pushed to the Fedora EPEL 7 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2015-c4e77a82fb
Comment 11 Fedora Update System 2015-12-30 15:57:53 EST
kBuild-0.1.9998-6.r2784.fc22 has been pushed to the Fedora 22 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-39cb897a2c
Comment 12 Fedora Update System 2016-01-03 15:22:21 EST
kBuild-0.1.9998-6.r2784.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report.
Comment 13 Fedora Update System 2016-01-13 01:24:50 EST
kBuild-0.1.9998-6.r2784.fc22 has been pushed to the Fedora 22 stable repository. If problems still persist, please make note of it in this bug report.
Comment 14 Fedora Update System 2016-02-02 17:07:41 EST
kBuild-0.1.9998-6.r2784.el7 has been pushed to the Fedora EPEL 7 stable repository. If problems still persist, please make note of it in this bug report.
Comment 15 Sergio Monteiro Basto 2017-08-05 23:11:59 EDT
Hello , recent changes on kBuild makes that we need refactor these patches [2], any help is appreciate [1] 

Cheers,

[1]
http://trac.netlabs.org/kbuild/ticket/128#comment:2
http://trac.netlabs.org/kbuild/ticket/118#comment:2

[2] 

https://koji.fedoraproject.org/koji/taskinfo?taskID=20992024
Comment 16 Sergio Monteiro Basto 2017-08-05 23:16:03 EDT
Dennis Gilmore I added you because you opened bug #925624, I'm just looking for some help.
Comment 17 Jan Kurik 2017-08-15 03:41:56 EDT
This bug appears to have been reported against 'rawhide' during the Fedora 27 development cycle.
Changing version to '27'.

Note You need to log in before you can comment on or make changes to this bug.