Closed Bug 1832502 Opened 3 years ago Closed 3 years ago

Error while checking the version of the SDK in WINDOWSSDKDIR

Categories

(Firefox Build System :: General, defect)

defect

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: alexboy94, Unassigned)

Details

Attachments

(1 file)

1.75 KB, application/x-shellscript
Details
Attached file .mozconfig

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Firefox/102.0 Waterfox/102.11

Steps to reproduce:

Checked out gecko-dev, master branch, commit ee6ab6eb2d222e0004604de62206baa67cac33af.

Applied the attached mozconfig, which works when building esr102.

As of the time of this bug, the Visual C++ files (17.5.5) and Windows SDK (22621) were created the following way:

The following folders were moved over:

C:\Program Files\Microsoft Visual Studio\2022\Community\DIA SDK -> dia-sdk

cp -R /mnt/c/Program\ Files\ \(x86\)/Microsoft\ Visual\ Studio/2022/BuildTools/DIA\ SDK/ dia-sdk/
C:\Program Files\Microsoft Visual Studio\2022\Community\VC -> visual-c
cp -R /mnt/c/Program\ Files\ \(x86\)/Microsoft\ Visual\ Studio/2022/BuildTools/VC/ visual-c/
C:\Program Files (x86)\Windows Kits\10 -> win-sdk
cp -R /mnt/c/Program\ Files\ \(x86\)/Windows\ Kits/10/ win-sdk/

They were then given 777 permissions:

sudo chmod -R 777 $FOLDER

Then, each file and directory was changed to be lower case (Note: rename must be installed):

find $FOLDER -depth | xargs -n 1 rename -v 's/(.*)\/([^\/]*)/$1\/\L$2/' {} \;

Windows 10 SDK Version: 10.0.22621.0
Visual Studio 2022 Version: 17.5.5 / 14.35.32215

Actual results:

Build fails with the following error:

0:01.99 checking for Windows SDK... no
0:01.99 ERROR: Error while checking the version of the SDK in WINDOWSSDKDIR (/home/build/win-cross/win-sdk-22621). Please verify it contains a valid and complete SDK installation.
*** Fix above errors and then restart with "./mach build"

Expected results:

Configure should find the relevant SDK version, as in esr102. From esr102 configure step:

INFO: checking for Windows SDK...
DEBUG: Creating /tmp/conftest.9zpz2v00.c with content:
DEBUG: | #include <winsdkver.h>
DEBUG: | WINVER_MAXVER
DEBUG: Executing: /home/build/llvm/bin/clang-cl -Xclang -std=gnu99 -X -I /home/build/win-cross/win-sdk-22621/include/10.0.22621.0/um -I /home/build/win-cross/win-sdk-22621/include/10.0.22621.0/shared /tmp/conftest.9zpz2v00.c -E
INFO: 0x0a00 in /home/build/win-cross/win-sdk-22621
INFO: checking for Universal CRT SDK...
INFO: 10.0.22621.0 in /home/build/win-cross/win-sdk-22621

Considering you have liblowercase.so in your mozconfig, this probably comes from that. I can't guarantee this works anymore. You can (and should) now use the pristine MSVC directories/files (no lowercasing), and no liblowercase.
But really, I'd advise you empty your mozconfig, and just let the bootstrapping process get what is needed.

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

Attachment

General

Creator:
Created:
Updated:
Size: