-
Notifications
You must be signed in to change notification settings - Fork 274
Closed
Description
For Windows 32-bit, I need to call vcvars32.bat
to switch to 32-bit compilation to link against a third party 32-bit library. This seems to work fine for the first attempted build (Python 3.5), but whatever happens before attempting Python 3.6, some environment variables change and the state set by vcvars32.bat
seem to be lost. It appears to be trying to compile using mingw64's link.exe
instead of msvc.
Any ideas? Perhaps you've seen something like this before and I'm going about it the wrong way entirely.
Here is the full build.
https://dev.azure.com/jim0585/pikepdf/_build/results?buildId=55
C:\Program Files\Git\usr\bin\link.exe /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:c:\hostedtoolcache\windows\python\3.6.8\x86\libs /LIBPATH:c:\hostedtoolcache\windows\python\3.6.8\x86\PCbuild\win32 "/LIBPATH:C:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\lib\um\x86" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.17763.0\ucrt\x86" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.17763.0\um\x86" "/LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\LIB" "/LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\ATLMFC\LIB" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.17763.0\ucrt\x86" "/LIBPATH:C:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\lib\um\x86" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.17763.0\um\x86" /LIBPATH:c:\qpdf\lib qpdf.lib /EXPORT:PyInit__qpdf build\temp.win32-3.6\Release\src/qpdf\annotation.obj build\temp.win32-3.6\Release\src/qpdf\object.obj build\temp.win32-3.6\Release\src/qpdf\object_convert.obj build\temp.win32-3.6\Release\src/qpdf\object_repr.obj build\temp.win32-3.6\Release\src/qpdf\pikepdf.obj build\temp.win32-3.6\Release\src/qpdf\qpdf.obj build\temp.win32-3.6\Release\src/qpdf\qpdf_pagelist.obj build\temp.win32-3.6\Release\src/qpdf\shims.obj build\temp.win32-3.6\Release\src/qpdf\utils.obj /OUT:build\lib.win32-3.6\pikepdf\_qpdf.cp36-win32.pyd /IMPLIB:build\temp.win32-3.6\Release\src/qpdf\_qpdf.cp36-win32.lib
/usr/bin/link: extra operand '/LTCG'
Try '/usr/bin/link --help' for more information.
error: command 'C:\\Program Files\\Git\\usr\\bin\\link.exe' failed with exit status 1
----------------------------------------
ERROR: Failed building wheel for pikepdf
Running setup.py clean for pikepdf
Metadata
Metadata
Assignees
Labels
No labels