Closed Bug 1868266 Opened 1 year ago Closed 1 year ago

ERROR: Cannot find a Visual C++ install for e.g. ATL headers.

Categories

(Firefox Build System :: General, defect)

defect

Tracking

(firefox123 fixed)

RESOLVED FIXED
123 Branch
Tracking Status
firefox123 --- fixed

People

(Reporter: jhnsmth1052, Assigned: glandium)

References

Details

Attachments

(2 files)

Attached file config.log

Steps to reproduce:

I followed these guides:
https://firefox-source-docs.mozilla.org/setup/windows_build.html#building-firefox-on-windows
https://firefox-source-docs.mozilla.org/mobile/android/geckoview/contributor/geckoview-quick-start.html#geckoview-contributor-guide

Actual results:

The "mach build" command failed for android builds on Windows with the error:

ERROR: Cannot find a Visual C++ install for e.g. ATL headers.

Workaround: add ac_add_options --target=aarch64 to your mozconfig.

The severity field is not set for this bug.
:rsainani, could you have a look please?

For more information, please visit BugBot documentation.

Flags: needinfo?(rsainani)
Assignee: nobody → mh+mozilla
Status: UNCONFIRMED → ASSIGNED
Component: Android Studio and Gradle Integration → General
Ever confirmed: true
Severity: -- → S3
Flags: needinfo?(rsainani)
Depends on: 1871219

The first thing is that the target CPU may not be supported by Visual
C++, so using that, we don't find the path to a Visual C++ compiler.
By using the host CPU in that case, we can find it.

For ATL and MFC libraries, we may not be able to find them for similar
reasons, but we don't actually need them when cross-compiling, so just
return nothing for those when the target OS is not Windows.

Pushed by mh@glandium.org: https://hg.mozilla.org/integration/autoland/rev/df83a374edc0 Properly handle the Visual C++ situation when cross-compiling on Windows. r=firefox-build-system-reviewers,nalexander
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 123 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: