Closed Bug 1619449 Opened 4 years ago Closed 4 years ago

Firefox build fails on Windows 10 - SDK 10.0.18362.0 - checking for rust target triplet

Categories

(Firefox Build System :: Bootstrap Configuration, defect)

68 Branch
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1587913

People

(Reporter: nhtest, Unassigned)

Details

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.122 Safari/537.36

Steps to reproduce:

source code version 68.5.0 esr (ef373efc995d9350a676c4c231b344d173423e8a)
platform : windows 10 64
Visual studio 2019
SDK Version : 10.0.18362.0
build environment : mingw
./mach bootstrap and then ./mach build

mozconfig :

ac_add_options --enable-application=browser
ac_add_options --target=x86_64-pc-mingw32
ac_add_options --host=x86_64-pc-mingw32

ac_add_options --enable-release
ac_add_options --enable-optimize
ac_add_options --enable-strip
ac_add_options --disable-updater
ac_add_options --enable-official-branding

ac_add_options --disable-tests
ac_add_options --disable-debug
ac_add_options --disable-debug-symbols
ac_add_options --disable-profiling
ac_add_options --enable-chrome-format=omni

ac_add_options --disable-necko-wifi

mk_add_options MOZILLA_OFFICIAL=1
mk_add_options BUILD_OFFICIAL=1

Actual results:

0:13.16 checking for rust target triplet...
0:13.16 DEBUG: Creating c:\users\nadi\appdata\local\temp\conftesthj6dgq.rs with content:
0:13.16 DEBUG: | pub extern fn hello() { println!("Hello world"); }
0:13.16 DEBUG: Executing: 'C:\Users\Nadi\.rustup\toolchains\stable-x86_64-pc-windows-msvc\bin\rustc.exe' --crate-type staticlib --target=x86_64-uwp-windows-msvc -o 'c:\users\nadi\appdata\local\temp\conftest_p2zdd.rlib' 'c:\users\nadi\appdata\local\temp\conftesthj6dgq.rs'
0:13.16 DEBUG: The command returned non-zero exit status 1.
0:13.16 DEBUG: Its error output was:
0:13.16 DEBUG: | error[E0463]: can't find crate for std
0:13.16 DEBUG: | |
0:13.16 DEBUG: | = note: the x86_64-uwp-windows-msvc target may not be installed
0:13.16 DEBUG: |
0:13.16 DEBUG: | error: aborting due to previous error
0:13.16 DEBUG: |
0:13.16 DEBUG: | For more information about this error, try rustc --explain E0463.
0:13.16 ERROR: Cannot compile for x86_64-pc-mingw32 with C:\Users\Nadi.rustup\toolchains\stable-x86_64-pc-windows-msvc\bin\rustc.exe
0:13.16 The target may be unsupported, or you may not have
0:13.16 a rust std library for that target installed. Try:
0:13.16
0:13.16 rustup target add x86_64-uwp-windows-msvc
0:13.16
0:13.25 *** Fix above errors and then restart with
0:13.25 "./mach build"
0:13.27 mozmake.EXE: *** [client.mk;115: configure] Error 1

Expected results:

build successfully

Status: UNCONFIRMED → RESOLVED
Closed: 4 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.