Closed Bug 1799121 Opened 2 years ago Closed 2 years ago

FATAL ERROR PROCESSING MOZBUILD - FILE USE_LIBS contains "certdb", which does not match any LIBRARY_NAME in the tree.

Categories

(Firefox Build System :: General, defect)

Firefox 108
defect

Tracking

(firefox-esr102 unaffected, firefox106 unaffected, firefox107 unaffected, firefox108 fixed)

RESOLVED FIXED
108 Branch
Tracking Status
firefox-esr102 --- unaffected
firefox106 --- unaffected
firefox107 --- unaffected
firefox108 --- fixed

People

(Reporter: herrtimson, Assigned: jschanck)

References

(Regression)

Details

(Keywords: regression)

Attachments

(2 files)

Attached file build.log.gz

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

Steps to reproduce:

hey there, I just fetched latest git sources and tried to compile them with gcc on linux. Configure is broken for me.

Actual results:

here is what the log says:

0:08.68 Reticulating splines...
0:09.12 0:00.46 File already read. Skipping: /var/tmp/portage/www-client/firefox-108.0/work/firefox-108.0/intl/components/moz.build
0:09.55 0:00.89 File already read. Skipping: /var/tmp/portage/www-client/firefox-108.0/work/firefox-108.0/gfx/angle/targets/angle_common/moz.build
0:13.86 Traceback (most recent call last):
0:13.86 File "/var/tmp/portage/www-client/firefox-108.0/work/firefox-108.0/configure.py", line 350, in <module>
0:13.86 sys.exit(main(sys.argv))
0:13.86 File "/var/tmp/portage/www-client/firefox-108.0/work/firefox-108.0/configure.py", line 162, in main
0:13.86 return config_status(config)
0:13.86 File "/var/tmp/portage/www-client/firefox-108.0/work/firefox-108.0/configure.py", line 301, in config_status
0:13.86 return config_status(args=[], **sanitized_config)
0:13.86 File "/var/tmp/portage/www-client/firefox-108.0/work/firefox-108.0/python/mozbuild/mozbuild/config_status.py", line 162, in config_status
0:13.86 definitions = list(definitions)
0:13.86 File "/var/tmp/portage/www-client/firefox-108.0/work/firefox-108.0/python/mozbuild/mozbuild/frontend/emitter.py", line 174, in emit
0:13.86 objs = list(self._emit_libs_derived(contexts))
0:13.86 File "/var/tmp/portage/www-client/firefox-108.0/work/firefox-108.0/python/mozbuild/mozbuild/frontend/emitter.py", line 256, in _emit_libs_derived
0:13.86 self._link_libraries(context, obj, variable, idl_sources)
0:13.86 File "/var/tmp/portage/www-client/firefox-108.0/work/firefox-108.0/python/mozbuild/mozbuild/frontend/emitter.py", line 373, in _link_libraries
0:13.86 self._link_library(context, obj, variable, path)
0:13.86 File "/var/tmp/portage/www-client/firefox-108.0/work/firefox-108.0/python/mozbuild/mozbuild/frontend/emitter.py", line 464, in _link_library
0:13.86 raise SandboxValidationError(
0:13.86 mozbuild.frontend.reader.SandboxValidationError:
0:13.86 ==============================
0:13.86 FATAL ERROR PROCESSING MOZBUILD FILE
0:13.86 ==============================
0:13.86
0:13.86 The error occurred while processing the following file or one of the files it includes:
0:13.86
0:13.86 /var/tmp/portage/www-client/firefox-108.0/work/firefox-108.0/security/manager/ssl/tests/unit/tlsserver/lib/moz.build
0:13.86
0:13.86 The error occurred when validating the result of the execution. The reported error is:
0:13.86
0:13.86 USE_LIBS contains "certdb", which does not match any LIBRARY_NAME in the tree.
0:13.86

Expected results:

I expect the configure to pass smothly

This broke very recently, around the last seven days.

the full and compressed build log is attached

Regressed by: 1754746

If I revert this commit locally, the error is fixed for me:

https://hg.mozilla.org/integration/autoland/rev/7f503b2c8be5

The Bugbug bot thinks this bug should belong to the 'Firefox Build System::General' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: Untriaged → General
Product: Firefox → Firefox Build System

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

For more information, please visit auto_nag documentation.

Flags: needinfo?(valentin.gosu)

John, can this be easily fixed?

Flags: needinfo?(valentin.gosu) → needinfo?(jschanck)

I'll look into it.

For what it's worth, I think the issue is building with system NSS, not with gcc. So one quick workaround is to remove --with-system-nss from your mozconfig. Another workaround, assuming you don't actually need to build the test suite, is to add --disable-tests to your mozconfig.

thank you for having a look into it, I also believe its most likely due to system-nss, yes.

My attempt to fix it by building the source against internal nss/nspr was met with a different error, where it can't find the wasi-sysroot even though I did disable the wasm-sandboxed-libraries. I don't know if its worth another bug.

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

Could you try with the attached patch?

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

Yes, that works for me in terms of: configure is unbroken with system-nss, compile is working.

Thanks!

Flags: needinfo?(jschanck)

The 108-nightly branch will be closing soon, so if the fix is ready to land can you please push it before this happens?

Pushed by jschanck@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/2d9f62d21cc6
build a static NSS for tests when configured with system NSS. r=keeler
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 108 Branch
Regressions: 1805371
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: