Firefox since 120.0b1 fails to find <dbus/dbus.h>
Categories
(Firefox Build System :: General, defect)
Tracking
(firefox122 fixed)
| Tracking | Status | |
|---|---|---|
| firefox122 | --- | fixed |
People
(Reporter: martin+mozilla, Assigned: sergesanspaille)
Details
Attachments
(3 files, 1 external file)
Steps to reproduce:
I'm building the beta/devedition of Firefox on NixOS. After upgrading from 119.0b9 to 120.0b1 it fails to find dbus/dbus.h.
Actual results:
firefox-devedition-unwrapped> In file included from /build/firefox-120.0/toolkit/components/remote/nsRemoteService.cpp:10:
firefox-devedition-unwrapped> In file included from /build/firefox-120.0/toolkit/components/remote/nsDBusRemoteServer.h:13:
firefox-devedition-unwrapped> In file included from /build/firefox-120.0/mozobj/dist/include/mozilla/DBusHelpers.h:10:
firefox-devedition-unwrapped> /build/firefox-120.0/mozobj/dist/system_wrappers/dbus/dbus.h:3:15: fatal error: 'dbus/dbus.h' file not found
firefox-devedition-unwrapped> #include_next <dbus/dbus.h>
firefox-devedition-unwrapped> ^~~~~~~~~~~~~
Expected results:
The dbus header file should have been found using pkg-config, which has the following definitions
includedir=/nix/store/wlnnj1r9vld4bd0v21n9ajwm34y042mc-dbus-1.14.10-dev/include
Cflags: -I${includedir}/dbus-1.0 -I${libdir}/dbus-1.0/include
The header file is therefore availabe at
/nix/store/wlnnj1r9vld4bd0v21n9ajwm34y042mc-dbus-1.14.10-dev/include/dbus-1.0/dbus/dbus.h
| Reporter | ||
Updated•2 years ago
|
Updated•2 years ago
|
| Reporter | ||
Comment 1•2 years ago
|
||
This is the clang cmdline that fails. Notice that it includes
-isystem /nix/store/wlnnj1r9vld4bd0v21n9ajwm34y042mc-dbus-1.14.10-dev/include
but that completely ignores the Cflags value in the pkg-config file.
| Assignee | ||
Updated•2 years ago
|
| Assignee | ||
Comment 2•2 years ago
•
|
||
The configure step correctly shows checking MOZ_DBUS_CFLAGS... -I/nix/store/wlnnj1r9vld4bd0v21n9ajwm34y042mc-dbus-1.14.10-dev/include/dbus-1.0 -I/nix/store/7yq59rdhqbcb9m1mj84dnq2bmhbajvpl-dbus-1.14.10-lib/lib/dbus-1.0/include so it's not the configure step
Indeed, it seems related to https://phabricator.services.mozilla.com/D187208, we should likely add the missing cflags in some places.
| Assignee | ||
Comment 3•2 years ago
|
||
| Assignee | ||
Comment 4•2 years ago
|
||
Martin, could you give a try to the attached patch. I fixed the bug without a reproducer, so I'd like a confirmation. It's possible we're missing a few extra spots, but the basic idea should be the same as the one in the patch.
| Reporter | ||
Comment 5•2 years ago
|
||
I tried the attached patch, and it is still failing. Attached the new build log.
Comment 6•2 years ago
|
||
Can you ./mach build --keep-going and attach the log, that will avoid patch ping-pong, where a patch is written that fixes your one error, and then another patch to fix the next one, etc.
Updated•2 years ago
|
| Assignee | ||
Comment 7•2 years ago
|
||
Martin, I've updated the patch, but I second Mike's suggestion :-)
| Reporter | ||
Comment 8•2 years ago
|
||
Thanks for the suggestion. The latest patch version made it work. Thank you, Serge.
| Assignee | ||
Comment 9•2 years ago
|
||
great new! Thanks for your proactive answers we'll land that soon.
Comment 10•2 years ago
|
||
Comment 11•2 years ago
|
||
| bugherder | ||
Description
•