Closed Bug 1287326 Opened 8 years ago Closed 8 years ago

Misleading error messages in Linux builds

Categories

(Firefox Build System :: General, defect)

50 Branch
All
Linux
defect
Not set
normal

Tracking

(firefox47 unaffected, firefox48 unaffected, firefox49 unaffected, firefox50 wontfix, firefox51 fixed)

RESOLVED FIXED
mozilla51
Tracking Status
firefox47 --- unaffected
firefox48 --- unaffected
firefox49 --- unaffected
firefox50 --- wontfix
firefox51 --- fixed

People

(Reporter: wgianopoulos, Assigned: acomminos)

References

Details

(Keywords: regression, Whiteboard: [gfx-noted])

Attachments

(1 file)

Since the landing of bug 1286649, I can no longer build 32-bit Linux under 64-bit OS.  I get the following error:

DEBUG: configure: error:  Could not find the following X libraries:  -lX11 -lXext -lX11-xcb -lxcb-shm -lxcb
I do this by defining the environment variable "PKG_CONFIG_PATH".  It would seem that the modified code does not respect this setting.
Nevermind, installing the 32-bit version of libxcb-devel fixed the issue.
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → INVALID
OF course this does still leave the questions, why does this say none of these libraries was defined when the only issue was with lX11-xcb and lXcb-shm and -lxcb.  Misreporting that -lX11 and -lXext were also not found delayed figuring this up substantially.
Status: RESOLVED → REOPENED
Resolution: INVALID → ---
Summary: Can no longer cross-compile 32-bit linux under a 64-bit linux OS → Misleading error messages in Linux builds
Status: REOPENED → NEW
This error message:

DEBUG: configure: error:  Could not find the following X libraries:  -lX11 -lXext -lX11-xcb -lxcb-shm -lxcb

implies that none of the listed libraries could be found, when in fact, it is really trying to say that one or more of the listed libraries could not be found.
Severity: blocker → normal
Hardware: x86_64 → All
Whiteboard: [gfx-noted]
Version: Trunk → 50 Branch
(In reply to Bill Gianopoulos [:WG9s] from comment #2)
> Nevermind, installing the 32-bit version of libxcb-devel fixed the issue.

How did you install the 32-bit version of libxcb-devel ? I am using Ubuntu and am unable to resolve the error.
Andrew, can we improve the error message here?
Flags: needinfo?(andrew)
(In reply to Andrew Overholt [:overholt] from comment #6)
> Andrew, can we improve the error message here?

I am not sure it is specifically a gfx issue or if this question needs to go to build-config.
(In reply to Andrew Overholt [:overholt] from comment #6)
> Andrew, can we improve the error message here?

We could, sure; currently we just throw all of our linker flags for missing X libraries into $MISSING_X and then spew it later during configure. We could potentially terminate early and suggest to the user packages that may provide said libraries.
Flags: needinfo?(andrew)
Component: Graphics → Build Config
Assignee: nobody → andrew
Status: NEW → ASSIGNED
So the core issue here of misreporting linker flags is caused by `-lX11-xcb -lxcb-shm -lxcb` being specified in the `other-libraries` AC_CHECK_LIB parameter for all X dependencies, causing the call to fail if xcb is not present, and thus reporting every X library into MISSING_X.

I'll fix up the missing symbol dependencies to make more sense.
Comment on attachment 8782543 [details]
Bug 1287326 - Construct XLIBS incrementally to avoid incorrect dependency failures.

https://reviewboard.mozilla.org/r/72666/#review70490
Attachment #8782543 - Flags: review?(mh+mozilla) → review+
Pushed by acomminos@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/0110fe4b2090
Construct XLIBS incrementally to avoid incorrect dependency failures. r=glandium
https://hg.mozilla.org/mozilla-central/rev/0110fe4b2090
Status: ASSIGNED → RESOLVED
Closed: 8 years ago8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla51
I think this can ride the trains.
Product: Core → Firefox Build System
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: