-
Type:
Task
-
Resolution: Fixed
-
Priority:
Unknown
-
Affects Version/s: None
-
Component/s: None
-
None
-
Not Needed
-
-
None
-
None
-
None
-
None
-
None
-
None
The test suite no longer catches when C extension fail to compile:
[2023/06/08 18:45:43.058] creating build\temp.win-amd64-cpython-39\Release [2023/06/08 18:45:43.058] creating build\temp.win-amd64-cpython-39\Release\bson [2023/06/08 18:45:43.058] "C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -Ibson -IC:\python\Python39\include -IC:\python\Python39\Include "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.29.30133\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.29.30133\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\cppwinrt" /Tcbson/_cbsonmodule.c /Fobuild\temp.win-amd64-cpython-39\Release\bson/_cbsonmodule.obj [2023/06/08 18:45:43.358] _cbsonmodule.c [2023/06/08 18:45:43.358] bson/_cbsonmodule.c(2964): warning C4267: '=': conversion from 'size_t' to 'uint32_t', possible loss of data [2023/06/08 18:45:43.546] "C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -Ibson -IC:\python\Python39\include -IC:\python\Python39\Include "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.29.30133\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.29.30133\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\cppwinrt" /Tcbson/buffer.c /Fobuild\temp.win-amd64-cpython-39\Release\bson/buffer.obj [2023/06/08 18:45:43.676] buffer.c [2023/06/08 18:45:43.676] "C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -Ibson -IC:\python\Python39\include -IC:\python\Python39\Include "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.29.30133\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.29.30133\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\cppwinrt" /Tcbson/time64.c /Fobuild\temp.win-amd64-cpython-39\Release\bson/time64.obj [2023/06/08 18:45:43.794] time64.c [2023/06/08 18:45:43.794] "C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\link.exe" /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:C:\python\Python39\libs /LIBPATH:C:\python\Python39 /LIBPATH:C:\python\Python39\PCbuild\amd64 "/LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.29.30133\ATLMFC\lib\x64" "/LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.29.30133\lib\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\lib\um\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.19041.0\ucrt\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.19041.0\um\x64" /EXPORT:PyInit__cbson build\temp.win-amd64-cpython-39\Release\bson/_cbsonmodule.obj build\temp.win-amd64-cpython-39\Release\bson/buffer.obj build\temp.win-amd64-cpython-39\Release\bson/time64.obj /OUT:C:\data\mci\1d0aa1810b44d5c0db7339465296b895\src\bson\_cbson.cp39-win_amd64.pyd /IMPLIB:build\temp.win-amd64-cpython-39\Release\bson\_cbson.cp39-win_amd64.lib [2023/06/08 18:45:43.840] Creating library build\temp.win-amd64-cpython-39\Release\bson\_cbson.cp39-win_amd64.lib and object build\temp.win-amd64-cpython-39\Release\bson\_cbson.cp39-win_amd64.exp [2023/06/08 18:45:44.155] Generating code [2023/06/08 18:45:44.155] Finished generating code [2023/06/08 18:45:44.155] building 'pymongo._cmessage' extension [2023/06/08 18:45:44.155] creating build\temp.win-amd64-cpython-39\Release\pymongo [2023/06/08 18:45:44.155] "C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -Ibson -IC:\python\Python39\include -IC:\python\Python39\Include "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.29.30133\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.29.30133\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\cppwinrt" /Tcbson/buffer.c /Fobuild\temp.win-amd64-cpython-39\Release\bson/buffer.obj [2023/06/08 18:45:44.256] buffer.c [2023/06/08 18:45:44.256] "C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\cl.exe" /c /nologo /O2 /W3 /GL /DNDEBUG /MD -Ibson -IC:\python\Python39\include -IC:\python\Python39\Include "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.29.30133\ATLMFC\include" "-IC:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.29.30133\include" "-IC:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\include\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\ucrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\shared" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\um" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\winrt" "-IC:\Program Files (x86)\Windows Kits\10\include\10.0.19041.0\cppwinrt" /Tcpymongo/_cmessagemodule.c /Fobuild\temp.win-amd64-cpython-39\Release\pymongo/_cmessagemodule.obj [2023/06/08 18:45:44.362] _cmessagemodule.c [2023/06/08 18:45:44.362] "C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.29.30133\bin\HostX86\x64\link.exe" /nologo /INCREMENTAL:NO /LTCG /DLL /MANIFEST:EMBED,ID=2 /MANIFESTUAC:NO /LIBPATH:C:\python\Python39\libs /LIBPATH:C:\python\Python39 /LIBPATH:C:\python\Python39\PCbuild\amd64 "/LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.29.30133\ATLMFC\lib\x64" "/LIBPATH:C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\VC\Tools\MSVC\14.29.30133\lib\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\NETFXSDK\4.8\lib\um\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.19041.0\ucrt\x64" "/LIBPATH:C:\Program Files (x86)\Windows Kits\10\lib\10.0.19041.0\um\x64" /EXPORT:PyInit__cmessage build\temp.win-amd64-cpython-39\Release\bson/buffer.obj build\temp.win-amd64-cpython-39\Release\pymongo/_cmessagemodule.obj /OUT:C:\data\mci\1d0aa1810b44d5c0db7339465296b895\src\pymongo\_cmessage.cp39-win_amd64.pyd /IMPLIB:build\temp.win-amd64-cpython-39\Release\bson\_cmessage.cp39-win_amd64.lib [2023/06/08 18:45:44.391] Creating library build\temp.win-amd64-cpython-39\Release\bson\_cmessage.cp39-win_amd64.lib and object build\temp.win-amd64-cpython-39\Release\bson\_cmessage.cp39-win_amd64.exp [2023/06/08 18:45:44.401] _cmessagemodule.obj : error LNK2001: unresolved external symbol cbson_long_long_to_str [2023/06/08 18:45:44.404] C:\data\mci\1d0aa1810b44d5c0db7339465296b895\src\pymongo\_cmessage.cp39-win_amd64.pyd : fatal error LNK1120: 1 unresolved externals [2023/06/08 18:45:44.412] C:\data\mci\1d0aa1810b44d5c0db7339465296b895\src\setup.py:248: UserWarning: [2023/06/08 18:45:44.412] ******************************************************************** [2023/06/08 18:45:44.412] WARNING: The pymongo._cmessage extension module could not [2023/06/08 18:45:44.412] be compiled. No C extensions are essential for PyMongo to run, [2023/06/08 18:45:44.412] although they do result in significant speed improvements. [2023/06/08 18:45:44.412] The output above this warning shows how the compilation failed. [2023/06/08 18:45:44.412] Please see the installation docs for solutions to build issues: [2023/06/08 18:45:44.412] https://pymongo.readthedocs.io/en/stable/installation.html [2023/06/08 18:45:44.412] Here are some hints for popular operating systems: [2023/06/08 18:45:44.412] If you are seeing this message on Linux you probably need to [2023/06/08 18:45:44.412] install GCC and/or the Python development package for your [2023/06/08 18:45:44.412] version of Python. [2023/06/08 18:45:44.412] Debian and Ubuntu users should issue the following command: [2023/06/08 18:45:44.412] $ sudo apt-get install build-essential python-dev [2023/06/08 18:45:44.412] Users of Red Hat based distributions (RHEL, CentOS, Amazon Linux, [2023/06/08 18:45:44.412] Oracle Linux, Fedora, etc.) should issue the following command: [2023/06/08 18:45:44.412] $ sudo yum install gcc python-devel [2023/06/08 18:45:44.412] If you are seeing this message on Microsoft Windows please install [2023/06/08 18:45:44.412] PyMongo using pip. Modern versions of pip will install PyMongo [2023/06/08 18:45:44.412] from binary wheels available on pypi. If you must install from [2023/06/08 18:45:44.412] source read the documentation here: [2023/06/08 18:45:44.412] https://pymongo.readthedocs.io/en/stable/installation.html#installing-from-source-on-windows [2023/06/08 18:45:44.412] If you are seeing this message on macOS / OSX please install PyMongo [2023/06/08 18:45:44.412] using pip. Modern versions of pip will install PyMongo from binary [2023/06/08 18:45:44.412] wheels available on pypi. If wheels are not available for your version [2023/06/08 18:45:44.412] of macOS / OSX, or you must install from source read the documentation [2023/06/08 18:45:44.412] here: [2023/06/08 18:45:44.412] https://pymongo.readthedocs.io/en/stable/installation.html#osx [2023/06/08 18:45:44.412] ******************************************************************** [2023/06/08 18:45:44.412] warnings.warn( [2023/06/08 18:45:52.455] Running tests... [2023/06/08 18:45:52.455] ---------------------------------------------------------------------- [2023/06/08 18:45:52.455] command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Professional\\VC\\Tools\\MSVC\\14.29.30133\\bin\\HostX86\\x64\\link.exe' failed with exit code 1120 ... [2023/06/08 18:45:53.419] test_uri_options (test_auth.TestAuthURIOptions) ... ok (0.961s) [2023/06/08 18:45:53.498] test_cache (test_auth.TestSCRAM) ... ok (0.077s) [2023/06/08 18:45:54.735] test_scram (test_auth.TestSCRAM) ... ok (1.237s)