Closed Bug 1830006 Opened 2 years ago Closed 2 years ago

build failure because of missing malloc.h since skia m113 update

Categories

(Core :: Graphics, defect)

All
OpenBSD
defect

Tracking

()

RESOLVED FIXED
114 Branch
Tracking Status
firefox-esr102 --- unaffected
firefox112 --- unaffected
firefox113 --- unaffected
firefox114 --- fixed

People

(Reporter: gaston, Assigned: lsalzman)

References

(Regression)

Details

(Keywords: regression)

Attachments

(1 file)

my builds of m-c on OpenBSD started failing 9 or 10 days ago, cf http://buildbot.rhaalovely.net/nine/#/builders/3 & http://buildbot.rhaalovely.net/nine/#/builders/3/builds/1671/steps/8/logs/stdio for the full log, but the gist is:

56:06.72 In file included from Unified_cpp_gfx_skia0.cpp:38:
56:06.72 In file included from /build/buildslave-amd64/mozilla-central-amd64/build/gfx/skia/skia/src/base/SkContainers.cpp:18:
56:06.72 /build/obj/buildslave/mozilla-central/dist/system_wrappers/malloc.h:3:15: fatal error: 'malloc.h' file not found
56:06.72 #include_next <malloc.h>
56:06.72               ^~~~~~~~~~
56:08.00 1 error generated.

the failing codepath is probably https://searchfox.org/mozilla-central/source/gfx/skia/skia/src/base/SkContainers.cpp#17 because of defined(SK_BUILD_FOR_UNIX).

maybe there should be a check for !OpenBSD (because there's no such malloc.h) or if there's an actual malloc.h ? i dont see a check for it in the moz.configure plumbing ?

cf bug #1112249 for a previous similar bug.

fwiw there's no such thing as malloc_usable_size on OpenBSD.

our various chromium variant ports all use this patch: https://github.com/openbsd/ports/blob/master/www/chromium/patches/patch-third_party_skia_src_base_SkContainers_cpp

would it be upstreamable in mozilla-central ?

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

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

For more information, please visit auto_nag documentation.

Assignee: nobody → lsalzman
Status: NEW → ASSIGNED
Pushed by lsalzman@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/6e632b49ccc4 Do not use malloc.h on OpenBSD. r=aosmond

thanks :lsalzman ! i had a similar diff in my tree.

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

Attachment

General

Created:
Updated:
Size: