Closed Bug 1827252 Opened 2 years ago Closed 2 years ago

[python 3.11] ./mach wpt fails with: src/aioquic/_crypto.c(4): fatal error C1083: Cannot open include file: 'openssl/err.h': No such file or directory

Categories

(Testing :: web-platform-tests, defect)

Default
defect

Tracking

(firefox-esr115 fixed, firefox117 fixed)

RESOLVED FIXED
117 Branch
Tracking Status
firefox-esr115 --- fixed
firefox117 --- fixed

People

(Reporter: jgilbert, Assigned: hsohaney)

References

(Blocks 1 open bug, )

Details

Attachments

(2 files)

Attached file full failure log

Log snippet:

      building 'aioquic._crypto' extension
      C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.35.32215\bin\HostX86\x64\cl.exe /c /nologo /Ox /W3 /GL /DNDEBUG /MD -IC:\dev\mozilla\gecko7\obj-x86_64-pc-windows-msvc\_virtualenvs\wpt\include -IC:\Program Files\Python311\include -IC:\Program Files\Python311\Include -IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.35.32215\include -IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.35.32215\ATLMFC\include -IC:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\VS\include -IC:\Program Files (x86)\Windows Kits\10\include\10.0.22621.0\ucrt -IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\um -IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\shared -IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\winrt -IC:\Program Files (x86)\Windows Kits\10\\include\10.0.22621.0\\cppwinrt /Tcsrc/aioquic/_crypto.c /Fobuild\temp.win-amd64-3.11\Release\src/aioquic/_crypto.obj
      _crypto.c
      src/aioquic/_crypto.c(4): fatal error C1083: Cannot open include file: 'openssl/err.h': No such file or directory
      error: command 'C:\\Program Files\\Microsoft Visual Studio\\2022\\Community\\VC\\Tools\\MSVC\\14.35.32215\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: legacy-install-failure

× Encountered error while trying to install package.
╰─> aioquic

note: This is an issue with the package mentioned above, not pip.
hint: See above for output from the failure.
git: 'cinnabar' is not a git command. See 'git --help'.
Error running mach:

    ['wpt', '--default-exclude']

It looks like bug 1762307 is trying to update aioquic, but it doesn't look like the patchnotes have anything relevant.

There is a workaround in a closed issue that involves amending env vars:
https://github.com/aiortc/aioquic/issues/56

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

For more information, please visit auto_nag documentation.

Flags: needinfo?(james)

Yeah, it seems like at the moment we can't (easily) use Python 3.11 with wpt since there's no aioquic wheel. I filed https://github.com/aiortc/aioquic/issues/372 for the alternate solution of making a release compiled against 3.11, but I strongly prefer the solution of using native Python code if possible.

Severity: -- → S3
Flags: needinfo?(james)

It's likely that aioquic will fix this upstream soon: https://github.com/aiortc/aioquic/pull/347

Summary: ./mach wpt fails with: src/aioquic/_crypto.c(4): fatal error C1083: Cannot open include file: 'openssl/err.h': No such file or directory → [python 3.11] ./mach wpt fails with: src/aioquic/_crypto.c(4): fatal error C1083: Cannot open include file: 'openssl/err.h': No such file or directory

This gets rid of the aioquic error for me:

export CFLAGS=-I$(brew --prefix openssl@3)/include
export LDFLAGS=-L$(brew --prefix openssl@3)/lib

But I'm still getting another error after that ModuleNotFoundError: No module named 'redo', which I'll investigate a bit.

Assignee: nobody → hsohaney
Status: NEW → ASSIGNED
Attachment #9346028 - Attachment description: Bug 1827252 - updating aioquic version to 0.9.21. r?jgraham → Bug 1827252 - updating aioquic version to 0.9.21.
Pushed by james@hoppipolla.co.uk: https://hg.mozilla.org/integration/autoland/rev/604d765f6ffe updating aioquic version to 0.9.21. r=jgraham
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 117 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: