Closed Bug 1555530 Opened 6 years ago Closed 6 years ago

[s390x] build errors: invalid operand for instruction; invalid use of length addressing

Categories

(Core :: XPCOM, defect)

68 Branch
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla69
Tracking Status
firefox68 --- fixed
firefox69 --- fixed

People

(Reporter: cgrobertson, Assigned: glandium)

Details

Attachments

(2 files)

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0

Steps to reproduce:

Build Firefox 68 ESR (beta) on s390x.

Actual results:

Build/compile errors (see attached build log file):
...
[ 553s] 6:08.70 In file included from /home/abuild/rpmbuild/BUILD/firefox-68.0/xpcom/reflect/xptcall/md/unix/xptcstubs_linux_s390x.cpp:194:
[ 553s] 6:08.70 /home/abuild/rpmbuild/BUILD/firefox-68.0/xpcom/reflect/xptcall/xptcstubsdef.inc:2:1: error: invalid use of length addressing
[ 553s] 6:08.70 STUB_ENTRY(4)
[ 553s] 6:08.70 ^
[ 553s] 6:08.70 /home/abuild/rpmbuild/BUILD/firefox-68.0/xpcom/reflect/xptcall/md/unix/xptcstubs_linux_s390x.cpp:167:9: note: expanded from macro 'STUB_ENTRY'
[ 553s] 6:08.70 "lg %0,0(15)\n\t"
[ 553s] 6:08.70 ^
[ 553s] 6:08.70 <inline asm>:1:13: note: instantiated into assembly here
[ 553s] 6:08.70 lg %r1,0(15)
[ 553s] 6:08.70 ^
[ 553s] 6:08.70 In file included from /home/abuild/rpmbuild/BUILD/firefox-68.0/xpcom/reflect/xptcall/md/unix/xptcstubs_linux_s390x.cpp:194:
[ 553s] 6:08.70 /home/abuild/rpmbuild/BUILD/firefox-68.0/xpcom/reflect/xptcall/xptcstubsdef.inc:2:1: error: invalid operand for instruction
[ 553s] 6:08.70 STUB_ENTRY(4)
[ 553s] 6:08.70 ^
[ 553s] 6:08.70 /home/abuild/rpmbuild/BUILD/firefox-68.0/xpcom/reflect/xptcall/md/unix/xptcstubs_linux_s390x.cpp:168:25: note: expanded from macro 'STUB_ENTRY'
[ 553s] 6:08.70 "aghi %0,160\n\t"
[ 553s] 6:08.70 ^
[ 553s] 6:08.70 <inline asm>:3:9: note: instantiated into assembly here
[ 553s] 6:08.70 stmg 3,6,0(%r14)
[ 553s] 6:08.70 ^
[ 553s] 6:08.70 In file included from /home/abuild/rpmbuild/BUILD/firefox-68.0/xpcom/reflect/xptcall/md/unix/xptcstubs_linux_s390x.cpp:194:
[ 553s] 6:08.70 /home/abuild/rpmbuild/BUILD/firefox-68.0/xpcom/reflect/xptcall/xptcstubsdef.inc:2:1: error: invalid operand for instruction
[ 553s] 6:08.70 STUB_ENTRY(4)
...

Expected results:

Clean build of Firefox

Still present in firefox-68.0b6

Hi, I'll set the component for this issue, but I'm not entirely sure its the correct one. Please change the component to a more suitable one in case its not correct.

Status: UNCONFIRMED → NEW
Component: Untriaged → General
Ever confirmed: true
Product: Firefox → Firefox Build System
Component: General → General: Unsupported Platforms
Component: General: Unsupported Platforms → XPCOM
Product: Firefox Build System → Core
Assignee: nobody → mh+mozilla
Pushed by mh@glandium.org: https://hg.mozilla.org/integration/autoland/rev/11427e893b96 Don't use integrated assembler with clang on ppc64 and s390x. r=froydnj

Comment on attachment 9069818 [details]
Bug 1555530 - Don't use integrated assembler with clang on ppc64 and s390x.

Beta/Release Uplift Approval Request

  • User impact if declined: Build failure on powerpc64el and s390x (tier 3 platforms) when compiling with clang. Would be nice to have for downstreams on ESR68.
  • Is this code covered by automated tests?: No
  • Has the fix been verified in Nightly?: Yes
  • Needs manual test from QE?: No
  • If yes, steps to reproduce:
  • List of other uplifts needed: None
  • Risk to taking this patch: Low
  • Why is the change risky/not risky? (and alternatives if risky): NPOTB for what Mozilla ships.
  • String changes made/needed:
Attachment #9069818 - Flags: approval-mozilla-beta?
Status: NEW → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla69

Comment on attachment 9069818 [details]
Bug 1555530 - Don't use integrated assembler with clang on ppc64 and s390x.

tier3 build fix, approved for 68.0b8

Attachment #9069818 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: