← All tasks
pythonmhammond/pywin32 #1375Not a task: not reproduced

Build fail for python 3.7.3 on VS2017

envgap__mhammond__pywin32-1375

01 / FAILURE SIGNATURE

As reported upstream

error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.1\\VC\\Tools\\MSVC\\14.16.27023\\bin\\HostX86\\x86\\
Not a benchmark task.
  • In a clean container the reported failure did not reproduce, or the known fix did not make the project run.

02 / ENVIRONMENT RECIPE

Base commit
b2fba164e81b509b112c26205e885ccc861e6b0d
Manifest
setup.py
Reproduce
Awaiting issue-specific recipe
Run under trace
Awaiting a meaningful runtime command

03 / ORIGINAL ISSUE TEXT

mhammond/pywin32 #1375 · read the original issue
I am using python 3.7.3, VS 2017 professional edition and pywin32 224 on 64 bit OS. Build python 32bit from sources. The tried building pywin32 using this python but it is failing. It is not able to get VS 2017 path. Then I tried with both options first is make changes in msvc.py in setuptools to get correct location and second is install VS2017 on location "C:\Program Files (x86)\Microsoft Visual Studio 14.1". In both cases, getting error "LINK : fatal error LNK1161: invalid export specification".



Tried with master branch also but getting same error.



PyIServerSecurity.cpp

C:\Program Files (x86)\Microsoft Visual Studio 14.1\VC\Tools\MSVC\14.16.27023\bin\HostX86\x86\link.exe /DLL /nologo /INC

REMENTAL:NO /LIBPATH:C:\Users\sanity\Downloads\Python-3.7.3\libs /LIBPATH:C:\Users\sanity\Downloads\Python-3.7.3\PCbuild

\win32 /LIBPATH:build\temp.win32-3.7\Release "/LIBPATH:C:\Program Files (x86)\Windows Kits\8.1\lib\winv6.3\um\x86" oleau

t32.lib ole32.lib user32.lib urlmon.lib python37.lib /EXPORT:DllCanUnloadNow,@1,PRIVATE /EXPORT:DllGetClassObject,@2,PRI

VATE /EXPORT:PyCom_VariantFromPyObject /EXPORT:PyCom_PyObjectFromVariant /EXPORT:PyCom_InterfaceFromPyObject /EXPORT:PyC

om_PyObjectFromIUnknown /EXPORT:PyCom_MakeOlePythonCall /EXPORT:PyCom_CoInitializeEx /EXPORT:PyCom_CoInitialize /EXPORT:

PyCom_CoUninitialize /EXPORT:PyInit_pythoncom build\temp.win32-3.7\Release\com/win32com/src/dllmain.obj build\temp.win32

-3.7\Release\com/win32com/src/ErrorUtils.obj build\temp.win32-3.7\Release\com/win32com/src/MiscTypes.obj build\temp.win3

2-3.7\Release\com/win32com/src/oleargs.obj build\temp.win32-3.7\Release\com/win32com/src/PyComHelpers.obj build\temp.win

32-3.7\Release\com/win32com/src/PyFactory.obj build\temp.win32-3.7\Release\com/win32com/src/PyGatewayBase.obj build\temp

.win32-3.7\Release\com/win32com/src/PyIBase.obj build\temp.win32-3.7\Release\com/win32com/src/PyIClassFactory.obj build\

temp.win32-3.7\Release\com/win32com/src/PyIDispatch.obj build\temp.win32-3.7\Release\com/win32com/src/PyIUnknown.obj bui

ld\temp.win32-3.7\Release\com/win32com/src/PyRecord.obj build\temp.win32-3.7\Release\com/win32com/src/extensions/PySTGME

DIUM.obj build\temp.win32-3.7\Release\com/win32com/src/PyStorage.obj build\temp.win32-3.7\Release\com/win32com/src/Pytho

nCOM.obj build\temp.win32-3.7\Release\com/win32com/src/Register.obj build\temp.win32-3.7\Release\com/win32com/src/stdafx

.obj build\temp.win32-3.7\Release\com/win32com/src/univgw.obj build\temp.win32-3.7\Release\com/win32com/src/univgw_datac

onv.obj build\temp.win32-3.7\Release\com/win32com/src/extensions/PyFUNCDESC.obj build\temp.win32-3.7\Release\com/win32co

m/src/extensions/PyGConnectionPoint.obj build\temp.win32-3.7\Release\com/win32com/src/extensions/PyGConnectionPointConta

iner.obj build\temp.win32-3.7\Release\com/win32com/src/extensions/PyGEnumVariant.obj build\temp.win32-3.7\Release\com/wi

n32com/src/extensions/PyGErrorLog.obj build\temp.win32-3.7\Release\com/win32com/src/extensions/PyGPersist.obj build\temp

.win32-3.7\Release\com/win32com/src/extensions/PyGPersistPropertyBag.obj build\temp.win32-3.7\Release\com/win32com/src/e

xtensions/PyGPersistStorage.obj build\temp.win32-3.7\Release\com/win32com/src/extensions/PyGPersistStream.obj build\temp

.win32-3.7\Release\com/win32com/src/extensions/PyGPersistStreamInit.obj build\temp.win32-3.7\Release\com/win32com/src/ex

tensions/PyGPropertyBag.obj build\temp.win32-3.7\Release\com/win32com/src/extensions/PyGStream.obj build\temp.win32-3.7\

Release\com/win32com/src/extensions/PyIBindCtx.obj build\temp.win32-3.7\Release\com/win32com/src/extensions/PyICatInform

ation.obj build\temp.win32-3.7\Release\com/win32com/src/extensions/PyICatRegister.obj build\temp.win32-3.7\Release\com/w

in32com/src/extensions/PyIConnectionPoint.obj build\temp.win32-3.7\Release\com/win32com/src/extensions/PyIConnectionPoin

tContainer.obj build\temp.win32-3.7\Release\com/win32com/src/extensions/PyICreateTypeInfo.obj build\temp.win32-3.7\Relea

se\com/win32com/src/extensions/PyICreateTypeLib.obj build\temp.win32-3.7\Release\com/win32com/src/extensions/PyICreateTy

peLib2.obj build\temp.win32-3.7\Release\com/win32com/src/extensions/PyIDataObject.obj build\temp.win32-3.7\Release\com/w

in32com/src/extensions/PyIDropSource.obj build\temp.win32-3.7\Release\com/win32com/src/extensions/PyIDropTarget.obj buil

d\temp.win32-3.7\Release\com/win32com/src/extensions/PyIEnumCATEGORYINFO.obj build\temp.win32-3.7\Release\com/win32com/s

rc/extensions/PyIEnumConnectionPoints.obj build\temp.win32-3.7\Release\com/win32com/src/extensions/PyIEnumConnections.ob

j build\temp.win32-3.7\Release\com/win32com/src/extensions/PyIEnumFORMATETC.obj build\temp.win32-3.7\Release\com/win32co

m/src/extensions/PyIEnumGUID.obj build\temp.win32-3.7\Release\com/win32com/src/extensions/PyIEnumSTATPROPSETSTG.obj buil

d\temp.win32-3.7\Release\com/win32com/src/extensions/PyIEnumSTATPROPSTG.obj build\temp.win32-3.7\Release\com/win32com/sr

c/extensions/PyIEnumSTATSTG.obj build\temp.win32-3.7\Release\com/win32com/src/extensions/PyIEnumString.obj build\temp.wi

n32-3.7\Release\com/win32com/src/extensions/PyIEnumVARIANT.obj build\temp.win32-3.7\Release\com/win32com/src/extensions/

PyIErrorLog.obj build\temp.win32-3.7\Release\com/win32com/src/extensions/PyIExternalConnection.obj build\temp.win32-3.7\

Release\com/win32com/src/extensions/PyIGlobalInterfaceTable.obj build\temp.win32-3.7\Release\com/win32com/src/extensions

/PyILockBytes.obj build\temp.win32-3.7\Release\com/win32com/src/extensions/PyIMoniker.obj build\temp.win32-3.7\Release\c

om/win32com/src/extensions/PyIOleWindow.obj build\temp.win32-3.7\Release\com/win32com/src/extensions/PyIPersist.obj buil

d\temp.win32-3.7\Release\com/win32com/src/extensions/PyIPersistFile.obj build\temp.win32-3.7\Release\com/win32com/src/ex

tensions/PyIPersistPropertyBag.obj build\temp.win32-3.7\Release\com/win32com/src/extensions/PyIPersistStorage.obj build\

temp.win32-3.7\Release\com/win32com/src/extensions/PyIPersistStream.obj build\temp.win32-3.7\Release\com/win32com/src/ex

tensions/PyIPersistStreamInit.obj build\temp.win32-3.7\Release\com/win32com/src/extensions/PyIPropertyBag.obj build\temp

.win32-3.7\Release\com/win32com/src/extensions/PyIPropertySetStorage.obj build\temp.win32-3.7\Release\com/win32com/src/e

xtensions/PyIPropertyStorage.obj build\temp.win32-3.7\Release\com/win32com/src/extensions/PyIProvideClassInfo.obj build\

temp.win32-3.7\Release\com/win32com/src/extensions/PyIRunningObjectTable.obj build\temp.win32-3.7\Release\com/win32com/s

rc/extensions/PyIServiceProvider.obj build\temp.win32-3.7\Release\com/win32com/src/extensions/PyIStorage.obj build\temp.

win32-3.7\Release\com/win32com/src/extensions/PyIStream.obj build\temp.win32-3.7\Release\com/win32com/src/extensions/PyI

Type.obj build\temp.win32-3.7\Release\com/win32com/src/extensions/PyITypeObjects.obj build\temp.win32-3.7\Release\com/wi

n32com/src/extensions/PyTYPEATTR.obj build\temp.win32-3.7\Release\com/win32com/src/extensions/PyVARDESC.obj build\temp.w

in32-3.7\Release\com/win32com/src/extensions/PyICancelMethodCalls.obj build\temp.win32-3.7\Release\com/win32com/src/exte

nsions/PyIContext.obj build\temp.win32-3.7\Release\com/win32com/src/extensions/PyIEnumContextProps.obj build\temp.win32-

3.7\Release\com/win32com/src/extensions/PyIClientSecurity.obj build\temp.win32-3.7\Release\com/win32com/src/extensions/P

yIServerSecurity.obj /OUT:build\lib.win32-3.7\pywin32_system32\pythoncom37.dll /IMPLIB:build\temp.win32-3.7\Release\com/

win32com/src\pythoncom37.lib /MANIFEST:NO /MACHINE:x86 /BASE:0x1e200000 /DEBUG /PDB:build\temp.win32-3.7\Release\pythonc

om.pdb

LINK : fatal error LNK1161: invalid export specification

error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.1\\VC\\Tools\\MSVC\\14.16.27023\\bin\\HostX86\\x86\\

link.exe' failed with exit status 1161 
Continue on GitHub ↗

04 / LABELS

Labels from the report text only; not yet run

No supported category has been assigned.

Label rules and the text that matched
[]