configure thinks Windows hosts are 32-bit when they are in fact 64-bit
Categories
(Firefox Build System :: General, defect)
Tracking
(firefox67 fixed)
| Tracking | Status | |
|---|---|---|
| firefox67 | --- | fixed |
People
(Reporter: denispal, Assigned: glandium)
References
Details
Attachments
(4 files)
When cross-compiling for arm64 on an x64 Windows 10 machine, the configure step believes that the host is a 32 bit system. Attached is the config.log.
| Assignee | ||
Comment 1•6 years ago
|
||
| Assignee | ||
Updated•6 years ago
|
| Assignee | ||
Updated•6 years ago
|
| Assignee | ||
Updated•6 years ago
|
| Assignee | ||
Comment 2•6 years ago
|
||
- We assume the output from config.guess is sufficiently normalized for
our needs. - If we partially derive the target from the host (with only the cpu
given for --target), we assume the derived value doesn't need
canonicalization.
| Assignee | ||
Comment 3•6 years ago
|
||
config.guess doesn't actually figure out the real host system on
Windows. All it does is end up finding the CPU for which the msys used
for the shell is built for. Which has the unfortunate effect that if you
build on a 64-bits host, configure pretends the host is 32-bits.
So instead, rely on some environment variables that should be set
mostly everywhere, and derive the corresponding triplet.
This has two effects:
- configure now knows that the host is 64-bits when it is.
- consequently, configure will build a 64-bits Firefox on 64-bits hosts
by default (since by default, the target is derived from the host), and
that's actually a desired side effect.
Depends on D17620
| Assignee | ||
Comment 4•6 years ago
|
||
Depends on D17621
Comment 7•6 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/008b78c1e2b2
https://hg.mozilla.org/mozilla-central/rev/ad5f8b0171be
https://hg.mozilla.org/mozilla-central/rev/268134627d91
Description
•