Closed
Bug 1304869
Opened 9 years ago
Closed 9 years ago
Windows fails to configure with custom CFLAGS: memory\jemalloc\src> configure: error: Cannot build without ffsl(3) or __builtin_ffsl()
Categories
(Firefox Build System :: General, defect)
Firefox Build System
General
Tracking
(firefox52 fixed)
RESOLVED
FIXED
mozilla52
| Tracking | Status | |
|---|---|---|
| firefox52 | --- | fixed |
People
(Reporter: jgilbert, Assigned: chmanchester)
References
Details
Attachments
(1 file)
Custom CFLAGS worked before bug 1262155 landed.
| Reporter | ||
Comment 1•9 years ago
|
||
Alternatively, custom CFLAGS support should explicitly be deprecated and removed.
| Assignee | ||
Updated•9 years ago
|
Assignee: nobody → cmanchester
| Comment hidden (mozreview-request) |
Comment 3•9 years ago
|
||
| mozreview-review | ||
Comment on attachment 8793980 [details]
Bug 1304869 - Unset CFLAGS when invoking jemalloc's configure to accomodate setting CFLAGS in mozconfig.
https://reviewboard.mozilla.org/r/80548/#review79900
::: build/autoconf/jemalloc.m4:75
(Diff revision 1)
> fi
> unset CONFIG_FILES
> if test -z "$MOZ_TLS"; then
> ac_configure_args="$ac_configure_args --disable-tls"
> fi
> EXTRA_CFLAGS="$CFLAGS"
This line puts our non-reset-by-ffi.m4 CFLAGS into EXTRA_FLAGS, that is appended to CFLAGS in jemalloc's configure. Doesn't that break configure the same way?
Attachment #8793980 -
Flags: review?(mh+mozilla)
| Assignee | ||
Comment 4•9 years ago
|
||
| mozreview-review-reply | ||
Comment on attachment 8793980 [details]
Bug 1304869 - Unset CFLAGS when invoking jemalloc's configure to accomodate setting CFLAGS in mozconfig.
https://reviewboard.mozilla.org/r/80548/#review79900
> This line puts our non-reset-by-ffi.m4 CFLAGS into EXTRA_FLAGS, that is appended to CFLAGS in jemalloc's configure. Doesn't that break configure the same way?
Aha, no. The issue isn't that we have CFLAGS set that are incompatible with jemalloc's configure, the issue is that jemalloc's configure neglects to set some (necessary) things if it sees the CFLAGS _variable_ has been set at all, as described here: http://searchfox.org/mozilla-central/rev/767e1e9b118269f957ca1817138472146278a29e/memory/jemalloc/src/configure.ac#117
It looks like the relavant thing that ends up missing is the line `CPPFLAGS="$CPPFLAGS -I${srcdir}/include/msvc_compat"` a bit further down.
| Assignee | ||
Comment 5•9 years ago
|
||
Comment on attachment 8793980 [details]
Bug 1304869 - Unset CFLAGS when invoking jemalloc's configure to accomodate setting CFLAGS in mozconfig.
Re-requesting review based on comment 4 so this discussion doesn't get lost along the way.
Attachment #8793980 -
Flags: review?(mh+mozilla)
Comment 6•9 years ago
|
||
| mozreview-review | ||
Comment on attachment 8793980 [details]
Bug 1304869 - Unset CFLAGS when invoking jemalloc's configure to accomodate setting CFLAGS in mozconfig.
https://reviewboard.mozilla.org/r/80548/#review81536
Attachment #8793980 -
Flags: review?(mh+mozilla) → review+
Pushed by cmanchester@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/3166f22eca26
Unset CFLAGS when invoking jemalloc's configure to accomodate setting CFLAGS in mozconfig. r=glandium
Comment 8•9 years ago
|
||
| bugherder | ||
Status: NEW → RESOLVED
Closed: 9 years ago
status-firefox52:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla52
Updated•8 years ago
|
Product: Core → Firefox Build System
You need to log in
before you can comment on or make changes to this bug.
Description
•