Closed Bug 1770111 Opened 2 years ago Closed 2 years ago

GLContextProviderLinux.cpp:16:35: error: aggregate mozilla::gl::GLContextProviderGLX mozilla::gl::sGLContextProviderGGLX has incomplete type and cannot be defined

Categories

(Core :: Graphics, defect)

defect

Tracking

()

RESOLVED FIXED
102 Branch
Tracking Status
firefox-esr91 --- unaffected
firefox100 --- unaffected
firefox101 --- unaffected
firefox102 --- fixed

People

(Reporter: petr.sumbera, Assigned: stransky)

References

(Regression)

Details

(Keywords: regression)

Attachments

(2 files)

Steps to reproduce:

Build on Solaris fails with:

13:16.29 /builds/psumbera/mozilla-central-build/gfx/gl/GLContextProviderLinux.cpp:16:35: error: aggregate mozilla::gl::GLContextProviderGLX mozilla::gl::sGLContextProviderGGLX has incomplete type and cannot be defined
13:16.29    16 | static class GLContextProviderGLX sGLContextProviderGLX;
13:16.29       |                                   ^~~~~~~~~~~~~~~~~~~~~
13:16.29 /builds/psumbera/mozilla-central-build/gfx/gl/GLContextProviderLinux.cpp:19:29: error: GLContextProviderLinux has not been declared
13:16.29    19 | already_AddRefed<GLContext> GLContextProviderLinux::CreateForCompositorWidget(
13:16.29       |                             ^~~~~~~~~~~~~~~~~~~~~~
13:16.29 /builds/psumbera/mozilla-central-build/gfx/gl/GLContextProviderLinux.cpp:32:29: error: GLContextProviderLinux has not been declared
13:16.29    32 | already_AddRefed<GLContext> GLContextProviderLinux::CreateHeadless(
13:16.29       |                             ^~~~~~~~~~~~~~~~~~~~~~
13:16.29 /builds/psumbera/mozilla-central-build/gfx/gl/GLContextProviderLinux.cpp:42:12: error: GLContextProviderLinux has not been declared
13:16.29    42 | GLContext* GLContextProviderLinux::GetGlobalContext() {
13:16.29       |            ^~~~~~~~~~~~~~~~~~~~~~
13:16.29 /builds/psumbera/mozilla-central-build/gfx/gl/GLContextProviderLinux.cpp:51:6: error: GLContextProviderLinux has not been declared

The first bad revision is:
changeset: 618109:0a64e06c72f0
user: stransky <stransky@redhat.com>
date: Wed May 18 05:01:50 2022 -0700
description:
Bug 1769710 [Linux] Remove GLContextProviderX11 r=jgilbert

Differential Revision: https://phabricator.services.mozilla.com/D146548
Keywords: regression
Regressed by: 1769710

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

Component: Untriaged → Graphics
Product: Firefox → Core

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

:stransky, since you are the author of the regressor, bug 1769710, could you take a look?
For more information, please visit auto_nag documentation.

Flags: needinfo?(stransky)

Please provide full build log. I need to know what's defined on Solaris.
Thanks.

Flags: needinfo?(stransky) → needinfo?(petr.sumbera)
Attached file build log
Flags: needinfo?(petr.sumbera)
Has Regression Range: --- → yes

The bug has a release status flag that shows some version of Firefox is affected, thus it will be considered confirmed.

Status: UNCONFIRMED → NEW
Ever confirmed: true
Assignee: nobody → stransky
Status: NEW → ASSIGNED
Pushed by stransky@redhat.com:
https://hg.mozilla.org/integration/autoland/rev/cde097a49a39
[Linux] Build GLContextProviderLinux on other unix systems r=jgilbert

Backed out for causing build bustages on GLContextProvider.h

Backout link

Push with failures

Failure log

Flags: needinfo?(stransky)

(In reply to Darkspirit from comment #8)

Shouldn't it rather be MOZ_WIDGET_GTK?
XP_UNIX also includes Darwin:
https://wiki.mozilla.org/Platform/Platform-specific_build_defines
https://searchfox.org/mozilla-central/rev/7f729f601c0b738f870ae0ed49098f9268e250f9/js/src/builtin/TestingFunctions.cpp#37

Yes, that's correct, Thanks.

Flags: needinfo?(stransky)
Flags: needinfo?(stransky)
Pushed by stransky@redhat.com:
https://hg.mozilla.org/integration/autoland/rev/27059949874a
[Linux] Build GLContextProviderLinux on other unix systems r=jgilbert

(In reply to Pulsebot from comment #13)

Pushed by stransky@redhat.com:
https://hg.mozilla.org/integration/autoland/rev/27059949874a
[Linux] Build GLContextProviderLinux on other unix systems r=jgilbert

fwiw this also fixes the m-c build issue i was seeing on OpenBSD, thanks !

Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 102 Branch
Flags: needinfo?(stransky)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: