Closed Bug 1724278 Opened 4 years ago Closed 4 years ago

firefox nightly fails to compile with --enable-system-nss{nspr} with: ../include/mozilla/ResultExtensions.h:15:10: fatal error: 'prtypes.h' file not found

Categories

(Core :: MFBT, defect)

Firefox 92
defect

Tracking

()

RESOLVED FIXED
93 Branch
Tracking Status
firefox-esr78 --- unaffected
firefox-esr91 --- unaffected
firefox90 --- unaffected
firefox91 --- unaffected
firefox92 --- fixed
firefox93 --- fixed

People

(Reporter: herrtimson, Assigned: glandium)

References

(Regression)

Details

(Keywords: regression)

Attachments

(2 files)

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

Steps to reproduce:

I tried to compile latest firefox from git on aarch64-unknown-linux-gnu

Actual results:

I got some errors complaining about a missing header, I believe it's from nspr:

3:33.03 [gecko-profiler 0.1.0] /usr/aarch64-unknown-linux-gnu/tmp/portage/www-client/firefox-92.0/work/firefox_build/dist/include/mozilla/ResultExtensions.h:15:10: fatal error: 'prtypes.h' file not found
3:33.06 [gecko-profiler 0.1.0] /usr/aarch64-unknown-linux-gnu/tmp/portage/www-client/firefox-92.0/work/firefox_build/dist/include/mozilla/ResultExtensions.h:15:10: fatal error: 'prtypes.h' file not found, err: true
3:33.10 /usr/aarch64-unknown-linux-gnu/tmp/portage/www-client/firefox-92.0/work/firefox_build/dist/include/mozilla/ResultExtensions.h:15:10: fatal error: 'prtypes.h' file not found
3:33.11 /usr/aarch64-unknown-linux-gnu/tmp/portage/www-client/firefox-92.0/work/firefox_build/dist/include/mozilla/ResultExtensions.h:15:10: fatal error: 'prtypes.h' file not found, err: true

Expected results:

I expect the compile to pass smoothly.

my crypto libs are =nspr-4.32 and =nss-3.69

there was a similar error related to the use of system-pixman, solved in https://bugzilla.mozilla.org/show_bug.cgi?id=1723389 , maybe it has a similar reason?

the compressed build log is attached

The Bugbug bot thinks this bug should belong to the 'Core::Gecko Profiler' component, and is moving the bug to that component. Please revert this change in case you think the bot is wrong.

Component: Untriaged → Gecko Profiler
Product: Firefox → Core

The error is in mfbt: is in https://searchfox.org/mozilla-central/source/mfbt/ResultExtensions.h#15
Unfortunately the log is not very clear about what the chain of #includes is.

Forwarding bug to mfbt.

And NI: glandium, you fixed similar bug 1723389, could you please have a look at this? TIA

Component: Gecko Profiler → MFBT
Flags: needinfo?(mh+mozilla)
Assignee: nobody → mh+mozilla
Flags: needinfo?(mh+mozilla)
Regressed by: 1722652
Has Regression Range: --- → yes

the patch fixed the issue for me, thank you

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

did you forgot to push it to the nightly branch?

Pushed by mh@glandium.org: https://hg.mozilla.org/integration/autoland/rev/8b055e7ad584 Fix --with-system-nspr build after bug 1722652 r=firefox-build-system-reviewers,mhentges

Comment on attachment 9235015 [details]
Bug 1724278 - Fix --with-system-nspr build after bug 1722652

Beta/Release Uplift Approval Request

  • User impact if declined: Build failure in some setups
  • 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
  • String changes made/needed: N/A
Attachment #9235015 - Flags: approval-mozilla-beta?
Status: UNCONFIRMED → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → 93 Branch

Comment on attachment 9235015 [details]
Bug 1724278 - Fix --with-system-nspr build after bug 1722652

Approved for 92.0b2.

Attachment #9235015 - 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

Creator:
Created:
Updated:
Size: