Closed Bug 1915578 Opened 1 year ago Closed 1 year ago

fails to detect architectures where -latomic is needed

Categories

(Firefox Build System :: General, defect)

Firefox 128
defect

Tracking

(firefox-esr115 unaffected, firefox-esr128 fixed, firefox130 wontfix, firefox131 fixed, firefox132 fixed)

RESOLVED FIXED
132 Branch
Tracking Status
firefox-esr115 --- unaffected
firefox-esr128 --- fixed
firefox130 --- wontfix
firefox131 --- fixed
firefox132 --- fixed

People

(Reporter: smcv, Assigned: sergesanspaille)

References

(Regression)

Details

(Keywords: regression)

Attachments

(4 files, 1 obsolete file)

Steps to reproduce:

Build SpiderMonkey JavaScript library (mozjs128, as used by gjs) on Debian armel (armv5te little-endian EABI softfloat).

Actual results:

"checking whether 64-bits std::atomic requires -latomic... do not know; assuming no"

(This happens when linking a 64-bit atomic operation without -latomic fails, but linking the same code with -latomic also fails. Perhaps this should be a fatal error?)

Expected results:

The build system should be able to detect that -latomic is required.

This seems to be a bug in the detection code. When it tries to link with arguments that end with ["-latomic"], a single string is passed where a sequence of strings is expected, so what actually happens is that it tries to link with arguments that end with ["-", "l", "a", "t", "o", "m", "i", "c"] which is not going to work.

proposed patch (I haven't verified that the whole build finishes successfully, but it does successfully detect that -latomic is required)

The build does succeed with the patch above. There are test failures, but they seem to be unrelated.

Keywords: regression
Regressed by: 1883940

:sergesanspaille, since you are the author of the regressor, bug 1883940, could you take a look? Also, could you set the severity field?

For more information, please visit BugBot documentation.

Flags: needinfo?(sguelton)

Original patch by Simon McVittie <smcv@debian.org>

Assignee: nobody → sguelton
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true

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

Flags: needinfo?(sguelton)
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 132 Branch

The patch landed in nightly and beta is affected.
:sergesanspaille, is this bug important enough to require an uplift?

  • If yes, please nominate the patch for beta approval.
  • If no, please set status-firefox131 to wontfix.

For more information, please visit BugBot documentation.

Flags: needinfo?(sguelton)

Original patch by Simon McVittie <smcv@debian.org>

Original Revision: https://phabricator.services.mozilla.com/D220988

Attachment #9423179 - Flags: approval-mozilla-beta?

beta Uplift Approval Request

  • User impact if declined: Architecture requiring libatomic won't compile
  • Code covered by automated testing: no
  • Fix verified in Nightly: yes
  • Needs manual QE test: no
  • Steps to reproduce for manual QE testing: run ./mach build and make sur it builds. If it fails on libatomic then we have an issue.
  • Risk associated with taking this patch: None
  • Explanation of risk level: tested on nightly and by the original bug reporter
  • String changes made/needed: No
  • Is Android affected?: no
Flags: needinfo?(sguelton)
Attachment #9423179 - Flags: approval-mozilla-beta? → approval-mozilla-beta+

Please nominate this for ESR128 also.

Flags: needinfo?(sguelton)

Original patch by Simon McVittie <smcv@debian.org>

Original Revision: https://phabricator.services.mozilla.com/D220988

Original patch by Simon McVittie <smcv@debian.org>

Original Revision: https://phabricator.services.mozilla.com/D220988

Attachment #9426171 - Flags: approval-mozilla-esr128?
Attachment #9426170 - Flags: approval-mozilla-esr128?

esr128 Uplift Approval Request

  • User impact if declined: Cannot build on some architecture (eg. armel)
  • Code covered by automated testing: no
  • Fix verified in Nightly: yes
  • Needs manual QE test: no
  • Steps to reproduce for manual QE testing: Build SpiderMonkey JavaScript library (mozjs128, as used by gjs) on Debian armel (armv5te little-endian EABI softfloat).
  • Risk associated with taking this patch: none
  • Explanation of risk level: tested on bookmarks/central
  • String changes made/needed: no
  • Is Android affected?: no
Attachment #9426170 - Attachment description: WIP: Bug 1915578 - Fix libatomic configure check → Bug 1915578 - Fix libatomic configure check
Attachment #9426171 - Attachment is obsolete: true
Attachment #9426171 - Flags: approval-mozilla-esr128? → approval-mozilla-esr128-
Attachment #9426170 - Flags: approval-mozilla-esr128? → approval-mozilla-esr128+
Flags: needinfo?(sguelton)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: