Bug 1460420

Summary: error building arm-trusted-firmware on F-26 aarch64
Product: [Fedora] Fedora Reporter: Peter Robinson <pbrobinson>
Component: binutilsAssignee: Nick Clifton <nickc>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 26CC: fweimer, jakub, nickc
Target Milestone: ---   
Target Release: ---   
Hardware: aarch64   
OS: Unspecified   
Whiteboard:
Fixed In Version: binutils-2.27-24.fc26 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-06-15 03:02:07 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 245418    
Attachments:
Description Flags
full build log from scratch build none

Description Peter Robinson 2017-06-10 08:36:30 UTC
Created attachment 1286595 [details]
full build log from scratch build

This builds fine on F-27 and there's minimal deps. It fails on F-26. The only real difference is the binutils version (2.27-23.fc26 vs 2.28-8.fc27).

Full log attached.

  AS      lib/cpus/aarch64/cortex_a53.S
  AS      lib/cpus/aarch64/cortex_a57.S
  AS      lib/cpus/aarch64/cortex_a72.S
  AS      bl31/aarch64/bl31_entrypoint.S
  AS      bl31/aarch64/runtime_exceptions.S
bl31/aarch64/runtime_exceptions.S: Assembler messages:
bl31/aarch64/runtime_exceptions.S:156: Error: non-constant expression in ".if" statement
bl31/aarch64/runtime_exceptions.S:164: Error: non-constant expression in ".if" statement
bl31/aarch64/runtime_exceptions.S:169: Error: non-constant expression in ".if" statement
bl31/aarch64/runtime_exceptions.S:174: Error: non-constant expression in ".if" statement
bl31/aarch64/runtime_exceptions.S:188: Error: non-constant expression in ".if" statement
bl31/aarch64/runtime_exceptions.S:192: Error: non-constant expression in ".if" statement
bl31/aarch64/runtime_exceptions.S:196: Error: non-constant expression in ".if" statement
bl31/aarch64/runtime_exceptions.S:200: Error: non-constant expression in ".if" statement
bl31/aarch64/runtime_exceptions.S:214: Error: non-constant expression in ".if" statement
bl31/aarch64/runtime_exceptions.S:218: Error: non-constant expression in ".if" statement
bl31/aarch64/runtime_exceptions.S:222: Error: non-constant expression in ".if" statement
bl31/aarch64/runtime_exceptions.S:230: Error: non-constant expression in ".if" statement
bl31/aarch64/runtime_exceptions.S:244: Error: non-constant expression in ".if" statement
bl31/aarch64/runtime_exceptions.S:248: Error: non-constant expression in ".if" statement
bl31/aarch64/runtime_exceptions.S:252: Error: non-constant expression in ".if" statement
bl31/aarch64/runtime_exceptions.S:260: Error: non-constant expression in ".if" statement
make: *** [Makefile:548: build/juno/release/bl31/runtime_exceptions.o] Error 1

F=26 failed scratch build: https://koji.fedoraproject.org/koji/taskinfo?taskID=19945792
F-27 successful build: https://koji.fedoraproject.org/koji/buildinfo?buildID=906690

Comment 1 Nick Clifton 2017-06-12 11:08:32 UTC
Hi Peter,

  FYI - this bug has been fixed upstream:

https://sourceware.org/bugzilla/show_bug.cgi?id=20364

  I have copied the patch from there and added it to the F26 binutils.
  Please try: binutils-2.27-24.fc26

Cheers
  Nick

Comment 2 Peter Robinson 2017-06-12 12:48:52 UTC
Hi Nick,

Did a scratch build and it LGTM, not sure why I didn't find that bug when I searched for the issue but thanks! Can we have it submitted as an update?

Comment 3 Fedora Update System 2017-06-12 15:09:52 UTC
binutils-2.27-24.fc26 has been submitted as an update to Fedora 26. https://bodhi.fedoraproject.org/updates/FEDORA-2017-bbc17e349e

Comment 4 Nick Clifton 2017-06-12 15:11:00 UTC
Hi Peter.

> Can we have it submitted as an update?

Here you go:

  https://bodhi.fedoraproject.org/updates/binutils-2.27-24.fc26

Cheers
  Nick

Comment 5 Fedora Update System 2017-06-14 01:35:25 UTC
binutils-2.27-24.fc26 has been pushed to the Fedora 26 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-2017-bbc17e349e

Comment 6 Fedora Update System 2017-06-15 03:02:07 UTC
binutils-2.27-24.fc26 has been pushed to the Fedora 26 stable repository. If problems still persist, please make note of it in this bug report.