Closed
Bug 1136958
Opened 10 years ago
Closed 10 years ago
gfx/layers/basic/BasicCompositor.cpp:20:56: fatal error: skia/SkCanvas.h: No such file or directory when skia is disabled
Categories
(Core :: Graphics: Layers, defect)
Tracking
()
RESOLVED
FIXED
mozilla39
People
(Reporter: glandium, Assigned: glandium)
References
Details
(Whiteboard: gfx-noted)
Attachments
(3 files, 1 obsolete file)
6.10 KB,
patch
|
gps
:
review+
glandium
:
checkin+
|
Details | Diff | Splinter Review |
10.01 KB,
patch
|
jrmuizel
:
review+
Sylvestre
:
approval-mozilla-aurora+
|
Details | Diff | Splinter Review |
1.31 KB,
patch
|
Details | Diff | Splinter Review |
When building on non-i386, non-x86-64, non-arm, MOZ_ENABLE_SKIA defaults to "". This is equivalent to --disable-skia.
This yields the error in the summary.
Assignee | ||
Comment 1•10 years ago
|
||
And to do so, cleanup gfx/skia/generate_mozbuild.py a little.
See bug #1137044 for what it takes to use generate_mozbuild.py to generate the same moz.build as what the patch yields.
Assignee: nobody → mh+mozilla
Attachment #8569614 -
Flags: review?(gps)
Assignee | ||
Comment 2•10 years ago
|
||
The code that unconditionally includes skia headers has been added in bug 1097776, and aiui, removed the alternative, making akia mandatory.
So here is one way to deal with the problem: remove the option to do disable skia, considering building skia seems to work on the platforms it is currently disabled on (modulo the duplicate SkDiscardableMemory_none.cpp in gfx/skia/moz.build that is addressed in the other patch).
The alternative would be to half-backout bug 1097776, reintroducing the pixman code path when skia is not enabled.
I don't know which one is better, but at least the former is less involved for me.
Attachment #8569616 -
Flags: review?(gwright)
Comment 3•10 years ago
|
||
(In reply to Mike Hommey [:glandium] from comment #2)
> So here is one way to deal with the problem: remove the option to do disable
> skia, considering building skia seems to work on the platforms it is
> currently disabled on (modulo the duplicate SkDiscardableMemory_none.cpp in
> gfx/skia/moz.build that is addressed in the other patch).
>
> The alternative would be to half-backout bug 1097776, reintroducing the
> pixman code path when skia is not enabled.
>
> I don't know which one is better, but at least the former is less involved
> for me.
I think we need to talk to the gfx team as to whether we are interested in supporting non-skia enabled builds anymore. If not, then let's remove the --disable-skia option entirely. If we do, then let's half-backout bug 1097776.
Flags: needinfo?(milan)
Comment 4•10 years ago
|
||
Comment on attachment 8569614 [details] [diff] [review]
Remove duplicate SkDiscardableMemory_none.cpp from gfx/skia/moz.build
Review of attachment 8569614 [details] [diff] [review]:
-----------------------------------------------------------------
::: gfx/skia/generate_mozbuild.py
@@ +197,1 @@
> f.close()
might as well use the context manager version of open while you are here.
Attachment #8569614 -
Flags: review?(gps) → review+
Comment 5•10 years ago
|
||
Comment on attachment 8569616 [details] [diff] [review]
Always enable skia
Review of attachment 8569616 [details] [diff] [review]:
-----------------------------------------------------------------
I'm ok with this if we think dropping --disable-skia is ok (I have no opposition to it personally).
Attachment #8569616 -
Flags: review?(gwright) → review+
Comment 6•10 years ago
|
||
So I'm not sure I understand here. I get the error as in the summary for some platforms on version 36 but the patch(es) neither do apply to 36 nor do they work there.
At this moment I'm more interested to fix version 36. Any hints?
Assignee | ||
Comment 7•10 years ago
|
||
(In reply to Wolfgang Rosenauer [:wolfiR] from comment #6)
> So I'm not sure I understand here. I get the error as in the summary for
> some platforms on version 36 but the patch(es) neither do apply to 36 nor do
> they work there.
The patch works... on aarch64 (but then the build fails somewhere else)
> At this moment I'm more interested to fix version 36. Any hints?
See comment 2.
Assignee | ||
Comment 8•10 years ago
|
||
Assignee | ||
Updated•10 years ago
|
Keywords: leave-open
Assignee | ||
Updated•10 years ago
|
Attachment #8569614 -
Flags: checkin+
Comment 9•10 years ago
|
||
Assignee | ||
Comment 10•10 years ago
|
||
Skia simply doesn't build on non-arm, non-x86, so until it does, it's simpler to just half-backout bug 1097776.
Attachment #8569616 -
Attachment is obsolete: true
Attachment #8574516 -
Flags: review?(jmuizelaar)
Updated•10 years ago
|
Whiteboard: gfx-noted
Comment 11•10 years ago
|
||
Confirming that skia doesnt build on sparc64... testing att 8574516
Comment 12•10 years ago
|
||
Related: bug 1005535 tries to enable gpu for skia on ppc, hopefully fixing big endian platforms..
Updated•10 years ago
|
Attachment #8574516 -
Flags: review?(jmuizelaar) → review+
Comment 13•10 years ago
|
||
With attachment 8574516 [details] [diff] [review], i still get a build failure on OpenBSD/sparc64.
error: #error "SK_*32_SHFIT values must correspond to BGRA or RGBA byte order"
Cf tail of http://buildbot.rhaalovely.net/builders/mozilla-central-sparc64/builds/1001/steps/build/logs/stdio
Comment 14•10 years ago
|
||
Sounds like --disable-skia wasn't honoured?
Assignee | ||
Comment 15•10 years ago
|
||
Assignee | ||
Updated•10 years ago
|
Keywords: leave-open
Comment 16•10 years ago
|
||
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla39
Comment 17•10 years ago
|
||
(In reply to Landry Breuil (:gaston) from comment #13)
> With attachment 8574516 [details] [diff] [review], i still get a build
> failure on OpenBSD/sparc64.
>
> error: #error "SK_*32_SHFIT values must correspond to BGRA or RGBA byte
> order"
Try this patch I use for Fedora.
Comment 18•10 years ago
|
||
Mike, is this something that could be uplifted to 38 so that it makes the ESR?
Flags: needinfo?(mh+mozilla)
Assignee | ||
Updated•10 years ago
|
Flags: needinfo?(mh+mozilla)
Assignee | ||
Updated•10 years ago
|
Flags: needinfo?(milan)
Assignee | ||
Comment 19•10 years ago
|
||
Comment on attachment 8574516 [details] [diff] [review]
Reintroduce pixman code path removed in bug 1097776 for --disable-skia builds
Approval Request Comment
[Feature/regressing bug #]: bug 1097776
[User impact if declined]: Can't build Firefox without skia, while skia doesn't support all esoteric platforms.
[Describe test coverage new/current, TreeHerder]: Landed on m-c yesterday, used on Debian for a few weeks.
[Risks and why]: In practice, this patch doesn't change anything for Mozilla builds, and restores the non-skia code path that was removed in bug 1097776.
[String/UUID change made/needed]: None
Attachment #8574516 -
Flags: approval-mozilla-aurora?
Updated•10 years ago
|
Updated•10 years ago
|
Attachment #8574516 -
Flags: approval-mozilla-aurora? → approval-mozilla-aurora+
Comment 21•10 years ago
|
||
You need to log in
before you can comment on or make changes to this bug.
Description
•