Closed Bug 1822862 Opened 2 years ago Closed 2 years ago

fatal error: 'shared-libraries.h' file not found\n")', tools/profiler/rust-api/build.rs:104:10

Categories

(Core :: Gecko Profiler, defect, P2)

defect

Tracking

()

RESOLVED FIXED
113 Branch
Tracking Status
firefox-esr102 --- unaffected
firefox111 --- unaffected
firefox112 --- unaffected
firefox113 --- fixed

People

(Reporter: petr.sumbera, Assigned: canova)

References

(Regression)

Details

(Keywords: regression, Whiteboard: [fxp-profiler])

Attachments

(1 file)

Steps to reproduce:

Build on Solaris fails with:

 5:51.79 error: failed to run custom build command for `gecko-profiler v0.1.0 (/builds/psumbera/mozilla-central-build/tools/profiler/rust-api)`
 5:51.79 Caused by:
 5:51.79   process didn't exit successfully: `/builds/psumbera/mozilla-central-build/obj-x86_64-pc-solaris2.11/debug/build/gecko-profiler-32f9cdf8e874191d/build-script-build` (exit status: 101)
 5:51.79   --- stdout
 5:51.79   cargo:rerun-if-changed=build.rs
 5:51.79   cargo:out_dir=/builds/psumbera/mozilla-central-build/obj-x86_64-pc-solaris2.11/x86_64-pc-solaris/debug/build/gecko-profiler-12a23c36e0aadb3f/out
 5:51.79   cargo:rerun-if-changed=/builds/psumbera/mozilla-central-build/obj-x86_64-pc-solaris2.11/dist/include/mozilla-config.h
 5:51.79   cargo:rerun-if-changed=/builds/psumbera/mozilla-central-build/obj-x86_64-pc-solaris2.11/tools/profiler/rust-api/extra-bindgen-flags
 5:51.80   cargo:rerun-if-changed=/builds/psumbera/mozilla-central-build/obj-x86_64-pc-solaris2.11/dist/include/GeckoProfiler.h
 5:51.80   cargo:rerun-if-changed=/builds/psumbera/mozilla-central-build/obj-x86_64-pc-solaris2.11/dist/include/ProfilerBindings.h
 5:51.80   --- stderr
 5:51.80   /builds/psumbera/mozilla-central-build/obj-x86_64-pc-solaris2.11/dist/include/mozilla/cxxalloc.h:32:1: warning: replacement function 'operator new' cannot be declared 'inline' [-Winline-new-delete]
 5:51.80   /builds/psumbera/mozilla-central-build/obj-x86_64-pc-solaris2.11/dist/include/mozilla/cxxalloc.h:36:1: warning: replacement function 'operator new' cannot be declared 'inline' [-Winline-new-delete]
 5:51.80   /builds/psumbera/mozilla-central-build/obj-x86_64-pc-solaris2.11/dist/include/mozilla/cxxalloc.h:41:1: warning: replacement function 'operator new[]' cannot be declared 'inline' [-Winline-new-delete]
 5:51.80   /builds/psumbera/mozilla-central-build/obj-x86_64-pc-solaris2.11/dist/include/mozilla/cxxalloc.h:45:1: warning: replacement function 'operator new[]' cannot be declared 'inline' [-Winline-new-delete]
 5:51.80   /builds/psumbera/mozilla-central-build/obj-x86_64-pc-solaris2.11/dist/include/mozilla/cxxalloc.h:50:1: warning: replacement function 'operator delete' cannot be declared 'inline' [-Winline-new-delete]
 5:51.80   /builds/psumbera/mozilla-central-build/obj-x86_64-pc-solaris2.11/dist/include/mozilla/cxxalloc.h:54:1: warning: replacement function 'operator delete' cannot be declared 'inline' [-Winline-new-delete]
 5:51.80   /builds/psumbera/mozilla-central-build/obj-x86_64-pc-solaris2.11/dist/include/mozilla/cxxalloc.h:59:1: warning: replacement function 'operator delete[]' cannot be declared 'inline' [-Winline-new-delete]
 5:51.80   /builds/psumbera/mozilla-central-build/obj-x86_64-pc-solaris2.11/dist/include/mozilla/cxxalloc.h:63:1: warning: replacement function 'operator delete[]' cannot be declared 'inline' [-Winline-new-delete]
 5:51.80   /builds/psumbera/mozilla-central-build/obj-x86_64-pc-solaris2.11/dist/include/ProfileAdditionalInformation.h:17:10: fatal error: 'shared-libraries.h' file not found
 5:51.80   clang diag: /builds/psumbera/mozilla-central-build/obj-x86_64-pc-solaris2.11/dist/include/mozilla/cxxalloc.h:32:1: warning: replacement function 'operator new' cannot be declared 'inline' [-Winline-new-delete]
 5:51.80   clang diag: /builds/psumbera/mozilla-central-build/obj-x86_64-pc-solaris2.11/dist/include/mozilla/cxxalloc.h:36:1: warning: replacement function 'operator new' cannot be declared 'inline' [-Winline-new-delete]
 5:51.80   clang diag: /builds/psumbera/mozilla-central-build/obj-x86_64-pc-solaris2.11/dist/include/mozilla/cxxalloc.h:41:1: warning: replacement function 'operator new[]' cannot be declared 'inline' [-Winline-new-delete]
 5:51.80   clang diag: /builds/psumbera/mozilla-central-build/obj-x86_64-pc-solaris2.11/dist/include/mozilla/cxxalloc.h:45:1: warning: replacement function 'operator new[]' cannot be declared 'inline' [-Winline-new-delete]
 5:51.80   clang diag: /builds/psumbera/mozilla-central-build/obj-x86_64-pc-solaris2.11/dist/include/mozilla/cxxalloc.h:50:1: warning: replacement function 'operator delete' cannot be declared 'inline' [-Winline-new-delete]
 5:51.80   clang diag: /builds/psumbera/mozilla-central-build/obj-x86_64-pc-solaris2.11/dist/include/mozilla/cxxalloc.h:54:1: warning: replacement function 'operator delete' cannot be declared 'inline' [-Winline-new-delete]
 5:51.80   clang diag: /builds/psumbera/mozilla-central-build/obj-x86_64-pc-solaris2.11/dist/include/mozilla/cxxalloc.h:59:1: warning: replacement function 'operator delete[]' cannot be declared 'inline' [-Winline-new-delete]
 5:51.80   clang diag: /builds/psumbera/mozilla-central-build/obj-x86_64-pc-solaris2.11/dist/include/mozilla/cxxalloc.h:63:1: warning: replacement function 'operator delete[]' cannot be declared 'inline' [-Winline-new-delete]
 5:51.80   thread 'main' panicked at 'Unable to generate bindings: ClangDiagnostic("/builds/psumbera/mozilla-central-build/obj-x86_64-pc-solaris2.11/dist/include/ProfileAdditionalInformation.h:17:10: fatal error: 'shared-libraries.h' file not found\n")', tools/profiler/rust-api/build.rs:104:10
 5:51.80   stack backtrace:
 5:51.80      0:           0xf2d0cb - <unknown>
 5:51.80      1:           0xf8176e - <unknown>
 5:51.80      2:           0xeee9b4 - <unknown>
 5:51.80      3:           0xf2ce95 - <unknown>
 5:51.80      4:           0xef174d - <unknown>
 5:51.80      5:           0xef1400 - <unknown>
 5:51.80      6:           0xef23b5 - <unknown>
 5:51.80      7:           0xf2e2f1 - <unknown>
 5:51.80      8:           0xf2d20c - <unknown>
 5:51.80      9:           0xef1ece - <unknown>
 5:51.80     10:           0xf85fb2 - <unknown>
 5:51.80     11:           0xf86562 - <unknown>
 5:51.80     12:           0xa28af0 - <unknown>
 5:51.80     13:           0xa29b63 - <unknown>
 5:51.80     14:           0xa27359 - <unknown>
 5:51.80     15:           0xef4dd4 - <unknown>
 5:51.80     16:           0xa28d9b - <unknown>
 5:51.80     17:           0xa24cc3 - <unknown>
 5:51.80 warning: build failed, waiting for other jobs to finish...
 6:38.74 gmake[4]: *** [/builds/psumbera/mozilla-central-build/config/makefiles/rust.mk:438: force-cargo-library-build] Error 101
 6:38.74 gmake[3]: *** [/builds/psumbera/mozilla-central-build/config/recurse.mk:72: toolkit/library/rust/target] Error 2
 6:38.75 gmake[2]: *** [/builds/psumbera/mozilla-central-build/config/recurse.mk:34: compile] Error 2
 6:38.75 gmake[1]: *** [/builds/psumbera/mozilla-central-build/config/rules.mk:361: default] Error 2
 6:38.75 gmake: *** [client.mk:60: build] Error 2

The first bad revision is:
changeset: 656855:758564d35c15
user: Tom Schuster <tschuster@mozilla.com>
date: Wed Mar 15 06:53:54 2023 -0700
description:
Bug 1709867 - Add a ICU-only DateTimeInfo::timeZoneId method. r=anba,platform-i18n-reviewers,dminor

Differential Revision: https://phabricator.services.mozilla.com/D169611
Keywords: regression
Regressed by: 1709867

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

Component: Untriaged → Gecko Profiler
Product: Firefox → Core

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

For more information, please visit auto_nag documentation.

Flags: needinfo?(tschuster)

This is most likely a fallout from Bug 1776694 instead. I will look at it.

Assignee: nobody → canaltinova
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Flags: needinfo?(tschuster)
Regressed by: 1776694
No longer regressed by: 1709867
Severity: -- → S2
Priority: -- → P2

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

Hi Petr, thanks for filing the bug.
Unfortunately I don't have access to a Solaris machine. I created a patch, but could you help me verify that it fixes the issue on your end?

Flags: needinfo?(petr.sumbera)

It seems that the patch helps. But since there seems to be other two issues I wasn't able to fully build Firefox yet.

One of other issues is 1822980. This is reason of wrong bestion.

Flags: needinfo?(petr.sumbera)

Fwiw, seeing the same regression on OpenBSD (cf log at http://buildbot.rhaalovely.net/nine/#/builders/3/builds/1627/steps/8/logs/stdio)

will report later if the patch helps, thanks

Attachment #9323596 - Attachment description: WIP: Bug 1822862 - Fix profiler build errors on non-MOZ_GECKO_PROFILER platforms → Bug 1822862 - Fix profiler build errors on non-MOZ_GECKO_PROFILER platforms r?mstange

Thank you both for verifying the patch, and sorry about the issue. I asked for a review now and hopefully will land it quickly.

Whiteboard: [fxp-profiler]
Pushed by canaltinova@gmail.com: https://hg.mozilla.org/integration/autoland/rev/82cfcd041174 Fix profiler build errors on non-MOZ_GECKO_PROFILER platforms r=mstange
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 113 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: