Closed Bug 1660828 Opened 4 years ago Closed 4 years ago

libffi 3.3 update breaks under clang-11

Categories

(Core :: js-ctypes, defect)

defect

Tracking

()

RESOLVED FIXED
82 Branch
Tracking Status
firefox-esr68 --- unaffected
firefox-esr78 --- unaffected
firefox80 --- unaffected
firefox81 --- fixed
firefox82 --- fixed

People

(Reporter: away, Assigned: froydnj)

References

(Regression)

Details

(Keywords: regression)

Attachments

(1 file)

On x86 Linux (and x86 Android) builds:

js/src/ctypes/libffi/src/x86/sysv.S:830:1: error: changed section type for .eh_frame, expected: 0x1

https://searchfox.org/mozilla-central/rev/19c23d725f27d0989e4a60f36d64004cebb39736/js/src/ctypes/libffi/src/x86/sysv.S#830

This error was added in clang-11: https://github.com/llvm/llvm-project/commit/75af9da755721123e62b45cd0bc0c5e688a9722a

If this only happens on 32-bit builds, how come we satisfied #elif defined(HAVE_AS_X86_64_UNWIND_SECTION_TYPE) ?

Flags: needinfo?(mh+mozilla)

Somehow we have had it be a general define, but it has not mattered...at
least it won't matter until we upgrade to clang 11, at which point the
compiler will start to complain at us about the codepaths this define
activates.

Assignee: nobody → nfroyd
Status: NEW → ASSIGNED
Pushed by nfroyd@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/d809d55636b6 move `HAVE_AS_X86_64_UNWIND_SECTION_TYPE` to be x86-64 Unix-specific; r=firefox-build-system-reviewers,rstewart

Confirmed the patch fixes the build, thanks Nathan!

Flags: needinfo?(mh+mozilla)
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 82 Branch

Set release status flags based on info from the regressing bug 1659906

Can you request uplift?

Flags: needinfo?(dmajor)
Flags: needinfo?(dmajor) → needinfo?(nfroyd)

Comment on attachment 9171763 [details]
Bug 1660828 - move HAVE_AS_X86_64_UNWIND_SECTION_TYPE to be x86-64 Unix-specific; r=#build

Beta/Release Uplift Approval Request

  • User impact if declined: No user impact, but people building with clang 11 will be able to complete their builds.
  • Is this code covered by automated tests?: Yes
  • 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): This is purely a build-time fix and its effects are well-understood.
  • String changes made/needed: None
Flags: needinfo?(nfroyd)
Attachment #9171763 - Flags: approval-mozilla-beta?

Comment on attachment 9171763 [details]
Bug 1660828 - move HAVE_AS_X86_64_UNWIND_SECTION_TYPE to be x86-64 Unix-specific; r=#build

approved for 81.0b3

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

Attachment

General

Created:
Updated:
Size: