Closed Bug 1810508 Opened 1 year ago Closed 4 months ago

Broken Build when compiling with MSVS 2022

Categories

(NSS :: Build, defect, P3)

3.87
Desktop
Windows

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: djackson, Unassigned)

Details

(Whiteboard: [nss-ci])

Attachments

(1 file)

As reported by Burak Arslan:

The coreconf/msvc.sh that ships with NSS 3.87 doesn't work with MSVS 2022.

The full build logs are attached (but are admittedly not too useful). There's one type of error, here's a sample:

D:\buildtrees\nss\x86-windows-dbg\nss\lib\util\secport.c(37): fatal error C1083: Cannot open include file: 'wtypes.h': No such file or directory

wtypes.h is there of course, just cl.exe can't find it. investigation showed that its list of include folders is incomplete and doesn't contain the folder of wtypes.h (among other ones, I imagine).

The workaround is to prevent msvc.sh from doing any damage by setting the environment variables VSPATH, GYP_MSVS_OVERRIDE_PATH and GYP_MSVS_VERSION before running the build script inside a msvc dev shell.

Also, no gyp-next release contains support for MSVS 2022 so I had to use the latest git checkout instead of a stable version.

The full nss 3.87 build script can be found here: https://github.com/microsoft/vcpkg/pull/28933

Severity: -- → S4
Priority: -- → P3
Whiteboard: [nss-ci]

It seems that the MSVS 2022 build works if a recent gyp-next is configured properly
https://github.com/beurdouche/nss/actions/runs/7139099956/workflow

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

Attachment

General

Creator:
Created:
Updated:
Size: