Closed
Bug 1391127
Opened 7 years ago
Closed 7 years ago
Build error in Brotli: log2 not found in MinGW Build
Categories
(Firefox Build System :: General, defect)
Firefox Build System
General
Tracking
(firefox57 fixed)
RESOLVED
FIXED
mozilla57
Tracking | Status | |
---|---|---|
firefox57 | --- | fixed |
People
(Reporter: tjr, Assigned: tjr)
References
(Blocks 1 open bug)
Details
(Whiteboard: [tor])
Attachments
(1 file)
> backward_references_hq.c:(.text+0x104): undefined reference to `log2' I believe this is an upstream bug related to their #if here: https://github.com/google/brotli/blob/master/c/enc/fast_log.h#L131
Assignee | ||
Updated•7 years ago
|
Assignee: nobody → tom
Assignee | ||
Comment 1•7 years ago
|
||
I take it back, mingw does have log2, so I probably need to add a -lm or something somewhere...
Comment hidden (mozreview-request) |
Assignee | ||
Updated•7 years ago
|
Attachment #8898330 -
Flags: review?(jfkthame)
Comment 3•7 years ago
|
||
mozreview-review |
Comment on attachment 8898330 [details] Bug 1391127 Add -lm for brotli when compiling with gcc for Windows https://reviewboard.mozilla.org/r/169678/#review174920 Seems OK to me, but as this is a moz.build thing, we should probably ask :glandium for the actual r+, in case there's some better way to do it...
Updated•7 years ago
|
Attachment #8898330 -
Flags: review?(jfkthame) → review?(mh+mozilla)
Comment 4•7 years ago
|
||
mozreview-review |
Comment on attachment 8898330 [details] Bug 1391127 Add -lm for brotli when compiling with gcc for Windows https://reviewboard.mozilla.org/r/169678/#review175252 ::: modules/brotli/moz.build:57 (Diff revision 1) > 'enc/static_dict.c', > 'enc/utf8_util.c', > 'tools/bro.c', > ] > > -if CONFIG['OS_TARGET'] != 'WINNT': > +if CONFIG['OS_TARGET'] != 'WINNT' or CONFIG['CC_TYPE'] == 'gcc': err, in fact, CONFIG['OS_TARGET'] is wrong here too. All in all the right test here would be CONFIG['HOST_CC_TYPE'] not in ('msvc', 'clang-cl')
Attachment #8898330 -
Flags: review?(mh+mozilla)
Comment hidden (mozreview-request) |
Assignee | ||
Comment 6•7 years ago
|
||
Try run is okay (excepting broken buildbot).
Comment 7•7 years ago
|
||
mozreview-review |
Comment on attachment 8898330 [details] Bug 1391127 Add -lm for brotli when compiling with gcc for Windows https://reviewboard.mozilla.org/r/169678/#review176096
Attachment #8898330 -
Flags: review?(mh+mozilla) → review+
Assignee | ||
Updated•7 years ago
|
Keywords: checkin-needed
Pushed by ryanvm@gmail.com: https://hg.mozilla.org/integration/autoland/rev/45976ebf90f7 Add -lm for brotli when compiling with gcc for Windows r=glandium
Keywords: checkin-needed
Comment 9•7 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/45976ebf90f7
Status: NEW → RESOLVED
Closed: 7 years ago
status-firefox57:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla57
Updated•6 years ago
|
Product: Core → Firefox Build System
You need to log in
before you can comment on or make changes to this bug.
Description
•