Windows MSYS2 build failure: use of deprecated -lzlib over -lz
Bug #1894350 reported by
Fredrick Brennan
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
lxml |
New
|
Undecided
|
Unassigned |
Bug Description
C:/msys64/
collect2.exe: error: ld returned 1 exit status
When doing `pip install lxml` via the MINGW64 pip3 in a venv.
Quick fix:
$ ln -s /mingw64/lib/libz.a /mingw64/
$ ln -s /mingw64/
But I was told in #msys2 on OFTC:
10:12:16 dwfreed copypaste: fix the python library, no packaging of zlib ships libzlib, it's all libz
So, -lzlib should become -lz
To post a comment you must log in.
Thanks for the report. pip should normally download a wheel, and even for a local build, it should download the depdendencies automatically and not use locally installed libs.
Could you provide the complete command that you used for installing, the pip build log, and anything else that may help understand what's different in your system?