Jump to content

Porting Cpython: Weird dependency issues.


Dibya

Recommended Posts

I am trying to port https://github.com/python/cpython/tree/3.11

I can  fix the dependencies but problem is certain API the binary calling doesnt exist in the source.

SHGetKnownFolderPath:python_uwp.cpp
GetActiveProcessorCount: Doesnt exist
GetErrorMode:exists
GetFileInformationByHandleEx:Doesnt exist in code.
GetFinalPathNameByHandleW:Doesnt exist in code.
GetTickCount64:Python/pytime.c
InitializeProcThreadAttributeList:Modules/_winapi.c
LCMapStringEx:Some Hint
UpdateProcThreadAttribute:Modules/_winapi.c
RegDeleteTreeW:Dont exist
AcquireSRWLockExclusive:Python/condvar.h
AcquireSRWLockShared:Dont exist
InitOnceExecuteOnce: Dont exist
ReleaseSRWLockExclusive:Dont Exist
ReleaseSRWLockShared:Dont Exist

 

Anyone can help me to figure it out?

Link to comment
Share on other sites


I moved the  project to LLVM Clang ,

very weird scenario

on Win32 build , Build completely fail

Build started...
1>------ Build started: Project: _asyncio, Configuration: Release Win32 ------
1>Killing any running python.exe instances...
1>Generated sources are up to date
1>Getting build info from git
1>'git' is not recognized as an internal or external command,
1>operable program or batch file.
1>C:\Users\Dibya\Desktop\Python-3.10.6\Python-3.10.6\Python-3.10.6\PCbuild\pythoncore.vcxproj(532,5): warning MSB3073: The command "git name-rev --name-only HEAD > "C:\Users\Dibya\Desktop\Python-3.10.6\Python-3.10.6\Python-3.10.6\PCbuild\obj\310win32_Release\pythoncore\gitbranch.txt"" exited with code 9009.
1>C:\Users\Dibya\Desktop\Python-3.10.6\Python-3.10.6\Python-3.10.6\PCbuild\pythoncore.vcxproj(532,5): warning MSB4181: The "Exec" task returned false but did not log an error.
1>'git' is not recognized as an internal or external command,
1>operable program or batch file.
1>C:\Users\Dibya\Desktop\Python-3.10.6\Python-3.10.6\Python-3.10.6\PCbuild\pythoncore.vcxproj(533,5): warning MSB3073: The command "git rev-parse --short HEAD > "C:\Users\Dibya\Desktop\Python-3.10.6\Python-3.10.6\Python-3.10.6\PCbuild\obj\310win32_Release\pythoncore\gitversion.txt"" exited with code 9009.
1>C:\Users\Dibya\Desktop\Python-3.10.6\Python-3.10.6\Python-3.10.6\PCbuild\pythoncore.vcxproj(533,5): warning MSB4181: The "Exec" task returned false but did not log an error.
1>'git' is not recognized as an internal or external command,
1>operable program or batch file.
1>C:\Users\Dibya\Desktop\Python-3.10.6\Python-3.10.6\Python-3.10.6\PCbuild\pythoncore.vcxproj(534,5): warning MSB3073: The command "git describe --all --always --dirty > "C:\Users\Dibya\Desktop\Python-3.10.6\Python-3.10.6\Python-3.10.6\PCbuild\obj\310win32_Release\pythoncore\gittag.txt"" exited with code 9009.
1>C:\Users\Dibya\Desktop\Python-3.10.6\Python-3.10.6\Python-3.10.6\PCbuild\pythoncore.vcxproj(534,5): warning MSB4181: The "Exec" task returned false but did not log an error.
1>Building :
1>Done building project "pythoncore.vcxproj".
1>In file included from ..\Modules\_asynciomodule.c:1:
1>In file included from C:\Users\Dibya\Desktop\Python-3.10.6\Python-3.10.6\Python-3.10.6\Include\Python.h:118:
1>C:\Users\Dibya\Desktop\Python-3.10.6\Python-3.10.6\Python-3.10.6\Include/cpython/pytime.h(120,59): warning : declaration of 'struct timeval' will not be visible outside of this function [-Wvisibility]
1>C:\Users\Dibya\Desktop\Python-3.10.6\Python-3.10.6\Python-3.10.6\Include/cpython/pytime.h(127,12): warning : declaration of 'struct timeval' will not be visible outside of this function [-Wvisibility]
1>C:\Users\Dibya\Desktop\Python-3.10.6\Python-3.10.6\Python-3.10.6\Include/cpython/pytime.h(132,12): warning : declaration of 'struct timeval' will not be visible outside of this function [-Wvisibility]
1>lld-link : error : could not open '/CGTHREADS:1': no such file or directory
1>lld-link : error : could not open '/PDBTHREADS:1': no such file or directory
1>Done building project "_asyncio.vcxproj" -- FAILED.
========== Build: 0 succeeded, 1 failed, 43 up-to-date, 0 skipped ==========

 

 

Edit : Made few changes , but got only one error with clang

Build started...
1>------ Build started: Project: pythoncore, Configuration: Release Win32 ------
2>------ Build started: Project: pyshellext, Configuration: Release Win32 ------
3>------ Build started: Project: liblzma, Configuration: Release Win32 ------
4>------ Build started: Project: sqlite3, Configuration: Release Win32 ------
5>------ Build started: Project: python3dll, Configuration: Release Win32 ------
6>------ Build started: Project: venvlauncher, Configuration: Release Win32 ------
7>------ Build started: Project: venvwlauncher, Configuration: Release Win32 ------
1>Killing any running python.exe instances...
2>   Creating library C:\Users\Dibya\Desktop\Python-3.10.7\Python-3.10.7\Python-3.10.7\PCbuild\win32\pyshellext.lib and object C:\Users\Dibya\Desktop\Python-3.10.7\Python-3.10.7\Python-3.10.7\PCbuild\win32\pyshellext.exp
2>Generating code
3>tuklib_cpucores.c
4>   Creating library C:\Users\Dibya\Desktop\Python-3.10.7\Python-3.10.7\Python-3.10.7\PCbuild\win32\sqlite3.lib and object C:\Users\Dibya\Desktop\Python-3.10.7\Python-3.10.7\Python-3.10.7\PCbuild\win32\sqlite3.exp
4>Generating code
2>Finished generating code
5>   Creating library C:\Users\Dibya\Desktop\Python-3.10.7\Python-3.10.7\Python-3.10.7\PCbuild\win32\python3.lib and object C:\Users\Dibya\Desktop\Python-3.10.7\Python-3.10.7\Python-3.10.7\PCbuild\win32\python3.exp
5>Generating code
5>Finished generating code
7>Generating code
6>Generating code
7>Finished generating code
6>Finished generating code
3>tuklib_physmem.c
5>python3dll.vcxproj -> C:\Users\Dibya\Desktop\Python-3.10.7\Python-3.10.7\Python-3.10.7\PCbuild\win32\python3.dll
2>pyshellext.vcxproj -> C:\Users\Dibya\Desktop\Python-3.10.7\Python-3.10.7\Python-3.10.7\PCbuild\win32\pyshellext.dll
8>------ Build started: Project: pylauncher, Configuration: Release Win32 ------
9>------ Build started: Project: xxlimited, Configuration: Release Win32 ------
3>check.c
8>Generating code
3>crc32_fast.c
6>venvlauncher.vcxproj -> C:\Users\Dibya\Desktop\Python-3.10.7\Python-3.10.7\Python-3.10.7\PCbuild\win32\venvlauncher.exe
7>venvwlauncher.vcxproj -> C:\Users\Dibya\Desktop\Python-3.10.7\Python-3.10.7\Python-3.10.7\PCbuild\win32\venvwlauncher.exe
9>   Creating library C:\Users\Dibya\Desktop\Python-3.10.7\Python-3.10.7\Python-3.10.7\PCbuild\win32\xxlimited.lib and object C:\Users\Dibya\Desktop\Python-3.10.7\Python-3.10.7\Python-3.10.7\PCbuild\win32\xxlimited.exp
9>Generating code
9>Finished generating code
8>Finished generating code
3>crc32_table.c
9>xxlimited.vcxproj -> C:\Users\Dibya\Desktop\Python-3.10.7\Python-3.10.7\Python-3.10.7\PCbuild\win32\xxlimited.pyd
3>crc64_fast.c
1>Generated sources are up to date
8>pylauncher.vcxproj -> C:\Users\Dibya\Desktop\Python-3.10.7\Python-3.10.7\Python-3.10.7\PCbuild\win32\py.exe
1>Getting build info from git
10>------ Build started: Project: pywlauncher, Configuration: Release Win32 ------
3>crc64_table.c
1>'git' is not recognized as an internal or external command,
1>operable program or batch file.
1>C:\Users\Dibya\Desktop\Python-3.10.7\Python-3.10.7\Python-3.10.7\PCbuild\pythoncore.vcxproj(532,5): warning MSB3073: The command "git name-rev --name-only HEAD > "C:\Users\Dibya\Desktop\Python-3.10.7\Python-3.10.7\Python-3.10.7\PCbuild\obj\310win32_Release\pythoncore\gitbranch.txt"" exited with code 9009.
1>C:\Users\Dibya\Desktop\Python-3.10.7\Python-3.10.7\Python-3.10.7\PCbuild\pythoncore.vcxproj(532,5): warning MSB4181: The "Exec" task returned false but did not log an error.
1>'git' is not recognized as an internal or external command,
1>operable program or batch file.
1>C:\Users\Dibya\Desktop\Python-3.10.7\Python-3.10.7\Python-3.10.7\PCbuild\pythoncore.vcxproj(533,5): warning MSB3073: The command "git rev-parse --short HEAD > "C:\Users\Dibya\Desktop\Python-3.10.7\Python-3.10.7\Python-3.10.7\PCbuild\obj\310win32_Release\pythoncore\gitversion.txt"" exited with code 9009.
1>C:\Users\Dibya\Desktop\Python-3.10.7\Python-3.10.7\Python-3.10.7\PCbuild\pythoncore.vcxproj(533,5): warning MSB4181: The "Exec" task returned false but did not log an error.
3>sha256.c
10>Generating code
1>'git' is not recognized as an internal or external command,
1>operable program or batch file.
1>C:\Users\Dibya\Desktop\Python-3.10.7\Python-3.10.7\Python-3.10.7\PCbuild\pythoncore.vcxproj(534,5): warning MSB3073: The command "git describe --all --always --dirty > "C:\Users\Dibya\Desktop\Python-3.10.7\Python-3.10.7\Python-3.10.7\PCbuild\obj\310win32_Release\pythoncore\gittag.txt"" exited with code 9009.
1>C:\Users\Dibya\Desktop\Python-3.10.7\Python-3.10.7\Python-3.10.7\PCbuild\pythoncore.vcxproj(534,5): warning MSB4181: The "Exec" task returned false but did not log an error.
1>Building :
3>alone_decoder.c
10>Finished generating code
3>alone_encoder.c
3>auto_decoder.c
10>pywlauncher.vcxproj -> C:\Users\Dibya\Desktop\Python-3.10.7\Python-3.10.7\Python-3.10.7\PCbuild\win32\pyw.exe
3>block_buffer_decoder.c
3>block_buffer_encoder.c
1>   Creating library C:\Users\Dibya\Desktop\Python-3.10.7\Python-3.10.7\Python-3.10.7\PCbuild\win32\python310.lib and object C:\Users\Dibya\Desktop\Python-3.10.7\Python-3.10.7\Python-3.10.7\PCbuild\win32\python310.exp
1>Generating code
3>block_decoder.c
3>block_encoder.c
3>block_header_decoder.c
3>block_header_encoder.c
3>block_util.c
3>common.c
3>easy_buffer_encoder.c
3>Compiling...
3>easy_decoder_memusage.c
3>easy_encoder.c
3>easy_encoder_memusage.c
3>easy_preset.c
3>filter_buffer_decoder.c
3>filter_buffer_encoder.c
3>filter_common.c
3>filter_decoder.c
3>filter_encoder.c
3>filter_flags_decoder.c
3>filter_flags_encoder.c
3>hardware_cputhreads.c
3>hardware_physmem.c
3>index.c
3>index_decoder.c
3>index_encoder.c
3>index_hash.c
3>outqueue.c
3>stream_buffer_decoder.c
3>stream_buffer_encoder.c
3>Compiling...
3>stream_decoder.c
3>stream_encoder.c
3>stream_encoder_mt.c
3>stream_flags_common.c
3>stream_flags_decoder.c
3>stream_flags_encoder.c
3>vli_decoder.c
3>vli_encoder.c
3>vli_size.c
3>delta_common.c
3>delta_decoder.c
3>delta_encoder.c
3>fastpos_table.c
3>lzma2_decoder.c
3>lzma2_encoder.c
3>lzma_decoder.c
3>lzma_encoder.c
3>lzma_encoder_optimum_fast.c
3>lzma_encoder_optimum_normal.c
3>lzma_encoder_presets.c
3>Compiling...
3>lz_decoder.c
3>lz_encoder.c
3>lz_encoder_mf.c
3>price_table.c
3>arm.c
3>armthumb.c
3>ia64.c
3>powerpc.c
3>simple_coder.c
3>simple_decoder.c
3>simple_encoder.c
3>sparc.c
3>x86.c
3>liblzma.vcxproj -> C:\Users\Dibya\Desktop\Python-3.10.7\Python-3.10.7\Python-3.10.7\PCbuild\win32\liblzma.lib
4>Finished generating code
4>sqlite3.vcxproj -> C:\Users\Dibya\Desktop\Python-3.10.7\Python-3.10.7\Python-3.10.7\PCbuild\win32\sqlite3.dll
1>Finished generating code
1>pythoncore.vcxproj -> C:\Users\Dibya\Desktop\Python-3.10.7\Python-3.10.7\Python-3.10.7\PCbuild\win32\python310.dll
1>Done building project "pythoncore.vcxproj".
11>------ Build started: Project: _socket, Configuration: Release Win32 ------
12>------ Build started: Project: _ctypes, Configuration: Release Win32 ------
13>------ Build started: Project: _elementtree, Configuration: Release Win32 ------
14>------ Build started: Project: _msi, Configuration: Release Win32 ------
15>------ Build started: Project: _decimal, Configuration: Release Win32 ------
16>------ Build started: Project: _sqlite3, Configuration: Release Win32 ------
17>------ Build started: Project: _testcapi, Configuration: Release Win32 ------
18>------ Build started: Project: _testinternalcapi, Configuration: Release Win32 ------
12>   Creating library C:\Users\Dibya\Desktop\Python-3.10.7\Python-3.10.7\Python-3.10.7\PCbuild\win32\_ctypes.lib and object C:\Users\Dibya\Desktop\Python-3.10.7\Python-3.10.7\Python-3.10.7\PCbuild\win32\_ctypes.exp
12>Generating code
15>   Creating library C:\Users\Dibya\Desktop\Python-3.10.7\Python-3.10.7\Python-3.10.7\PCbuild\win32\_decimal.lib and object C:\Users\Dibya\Desktop\Python-3.10.7\Python-3.10.7\Python-3.10.7\PCbuild\win32\_decimal.exp
15>Generating code
14>   Creating library C:\Users\Dibya\Desktop\Python-3.10.7\Python-3.10.7\Python-3.10.7\PCbuild\win32\_msi.lib and object C:\Users\Dibya\Desktop\Python-3.10.7\Python-3.10.7\Python-3.10.7\PCbuild\win32\_msi.exp
14>Generating code
11>   Creating library C:\Users\Dibya\Desktop\Python-3.10.7\Python-3.10.7\Python-3.10.7\PCbuild\win32\_socket.lib and object C:\Users\Dibya\Desktop\Python-3.10.7\Python-3.10.7\Python-3.10.7\PCbuild\win32\_socket.exp
14>Finished generating code
11>Generating code
13>   Creating library C:\Users\Dibya\Desktop\Python-3.10.7\Python-3.10.7\Python-3.10.7\PCbuild\win32\_elementtree.lib and object C:\Users\Dibya\Desktop\Python-3.10.7\Python-3.10.7\Python-3.10.7\PCbuild\win32\_elementtree.exp
11>Finished generating code
13>Generating code
17>   Creating library C:\Users\Dibya\Desktop\Python-3.10.7\Python-3.10.7\Python-3.10.7\PCbuild\win32\_testcapi.lib and object C:\Users\Dibya\Desktop\Python-3.10.7\Python-3.10.7\Python-3.10.7\PCbuild\win32\_testcapi.exp
17>Generating code
18>   Creating library C:\Users\Dibya\Desktop\Python-3.10.7\Python-3.10.7\Python-3.10.7\PCbuild\win32\_testinternalcapi.lib and object C:\Users\Dibya\Desktop\Python-3.10.7\Python-3.10.7\Python-3.10.7\PCbuild\win32\_testinternalcapi.exp
14>_msi.vcxproj -> C:\Users\Dibya\Desktop\Python-3.10.7\Python-3.10.7\Python-3.10.7\PCbuild\win32\_msi.pyd
18>Generating code
19>------ Build started: Project: _testimportmultiple, Configuration: Release Win32 ------
16>   Creating library C:\Users\Dibya\Desktop\Python-3.10.7\Python-3.10.7\Python-3.10.7\PCbuild\win32\_sqlite3.lib and object C:\Users\Dibya\Desktop\Python-3.10.7\Python-3.10.7\Python-3.10.7\PCbuild\win32\_sqlite3.exp
18>Finished generating code
16>Generating code
12>Finished generating code
11>_socket.vcxproj -> C:\Users\Dibya\Desktop\Python-3.10.7\Python-3.10.7\Python-3.10.7\PCbuild\win32\_socket.pyd
20>------ Build started: Project: _ssl, Configuration: Release Win32 ------
18>_testinternalcapi.vcxproj -> C:\Users\Dibya\Desktop\Python-3.10.7\Python-3.10.7\Python-3.10.7\PCbuild\win32\_testinternalcapi.pyd
21>------ Build started: Project: _tkinter, Configuration: Release Win32 ------
17>Finished generating code
19>   Creating library C:\Users\Dibya\Desktop\Python-3.10.7\Python-3.10.7\Python-3.10.7\PCbuild\win32\_testimportmultiple.lib and object C:\Users\Dibya\Desktop\Python-3.10.7\Python-3.10.7\Python-3.10.7\PCbuild\win32\_testimportmultiple.exp
19>Generating code
19>Finished generating code
16>Finished generating code
12>_ctypes.vcxproj -> C:\Users\Dibya\Desktop\Python-3.10.7\Python-3.10.7\Python-3.10.7\PCbuild\win32\_ctypes.pyd
22>------ Build started: Project: _bz2, Configuration: Release Win32 ------
17>_testcapi.vcxproj -> C:\Users\Dibya\Desktop\Python-3.10.7\Python-3.10.7\Python-3.10.7\PCbuild\win32\_testcapi.pyd
23>------ Build started: Project: select, Configuration: Release Win32 ------
20>   Creating library C:\Users\Dibya\Desktop\Python-3.10.7\Python-3.10.7\Python-3.10.7\PCbuild\win32\_ssl.lib and object C:\Users\Dibya\Desktop\Python-3.10.7\Python-3.10.7\Python-3.10.7\PCbuild\win32\_ssl.exp
21>   Creating library C:\Users\Dibya\Desktop\Python-3.10.7\Python-3.10.7\Python-3.10.7\PCbuild\win32\_tkinter.lib and object C:\Users\Dibya\Desktop\Python-3.10.7\Python-3.10.7\Python-3.10.7\PCbuild\win32\_tkinter.exp
20>Generating code
21>Generating code
19>_testimportmultiple.vcxproj -> C:\Users\Dibya\Desktop\Python-3.10.7\Python-3.10.7\Python-3.10.7\PCbuild\win32\_testimportmultiple.pyd
16>_sqlite3.vcxproj -> C:\Users\Dibya\Desktop\Python-3.10.7\Python-3.10.7\Python-3.10.7\PCbuild\win32\_sqlite3.pyd
24>------ Build started: Project: _lzma, Configuration: Release Win32 ------
25>------ Build started: Project: unicodedata, Configuration: Release Win32 ------
21>Finished generating code
22>   Creating library C:\Users\Dibya\Desktop\Python-3.10.7\Python-3.10.7\Python-3.10.7\PCbuild\win32\_bz2.lib and object C:\Users\Dibya\Desktop\Python-3.10.7\Python-3.10.7\Python-3.10.7\PCbuild\win32\_bz2.exp
22>Generating code
23>   Creating library C:\Users\Dibya\Desktop\Python-3.10.7\Python-3.10.7\Python-3.10.7\PCbuild\win32\select.lib and object C:\Users\Dibya\Desktop\Python-3.10.7\Python-3.10.7\Python-3.10.7\PCbuild\win32\select.exp
23>Generating code
23>Finished generating code
15>Finished generating code
20>Finished generating code
21>_tkinter.vcxproj -> C:\Users\Dibya\Desktop\Python-3.10.7\Python-3.10.7\Python-3.10.7\PCbuild\win32\_tkinter.pyd
23>select.vcxproj -> C:\Users\Dibya\Desktop\Python-3.10.7\Python-3.10.7\Python-3.10.7\PCbuild\win32\select.pyd
26>------ Build started: Project: pyexpat, Configuration: Release Win32 ------
27>------ Build started: Project: python, Configuration: Release Win32 ------
24>   Creating library C:\Users\Dibya\Desktop\Python-3.10.7\Python-3.10.7\Python-3.10.7\PCbuild\win32\_lzma.lib and object C:\Users\Dibya\Desktop\Python-3.10.7\Python-3.10.7\Python-3.10.7\PCbuild\win32\_lzma.exp
24>Generating code
25>   Creating library C:\Users\Dibya\Desktop\Python-3.10.7\Python-3.10.7\Python-3.10.7\PCbuild\win32\unicodedata.lib and object C:\Users\Dibya\Desktop\Python-3.10.7\Python-3.10.7\Python-3.10.7\PCbuild\win32\unicodedata.exp
25>Generating code
15>_decimal.vcxproj -> C:\Users\Dibya\Desktop\Python-3.10.7\Python-3.10.7\Python-3.10.7\PCbuild\win32\_decimal.pyd
28>------ Build started: Project: _multiprocessing, Configuration: Release Win32 ------
13>Finished generating code
20>_ssl.vcxproj -> C:\Users\Dibya\Desktop\Python-3.10.7\Python-3.10.7\Python-3.10.7\PCbuild\win32\_ssl.pyd
25>Finished generating code
29>------ Build started: Project: pythonw, Configuration: Release Win32 ------
26>   Creating library C:\Users\Dibya\Desktop\Python-3.10.7\Python-3.10.7\Python-3.10.7\PCbuild\win32\pyexpat.lib and object C:\Users\Dibya\Desktop\Python-3.10.7\Python-3.10.7\Python-3.10.7\PCbuild\win32\pyexpat.exp
26>Generating code
27>Generating code
27>Finished generating code
13>_elementtree.vcxproj -> C:\Users\Dibya\Desktop\Python-3.10.7\Python-3.10.7\Python-3.10.7\PCbuild\win32\_elementtree.pyd
30>------ Build started: Project: _testbuffer, Configuration: Release Win32 ------
25>unicodedata.vcxproj -> C:\Users\Dibya\Desktop\Python-3.10.7\Python-3.10.7\Python-3.10.7\PCbuild\win32\unicodedata.pyd
27>python.vcxproj -> C:\Users\Dibya\Desktop\Python-3.10.7\Python-3.10.7\Python-3.10.7\PCbuild\win32\python.exe
31>------ Build started: Project: winsound, Configuration: Release Win32 ------
29>Generating code
29>Finished generating code
30>   Creating library C:\Users\Dibya\Desktop\Python-3.10.7\Python-3.10.7\Python-3.10.7\PCbuild\win32\_testbuffer.lib and object C:\Users\Dibya\Desktop\Python-3.10.7\Python-3.10.7\Python-3.10.7\PCbuild\win32\_testbuffer.exp
30>Generating code
32>------ Build started: Project: _freeze_importlib, Configuration: Release Win32 ------
29>pythonw.vcxproj -> C:\Users\Dibya\Desktop\Python-3.10.7\Python-3.10.7\Python-3.10.7\PCbuild\win32\pythonw.exe
31>   Creating library C:\Users\Dibya\Desktop\Python-3.10.7\Python-3.10.7\Python-3.10.7\PCbuild\win32\winsound.lib and object C:\Users\Dibya\Desktop\Python-3.10.7\Python-3.10.7\Python-3.10.7\PCbuild\win32\winsound.exp
33>------ Build started: Project: _overlapped, Configuration: Release Win32 ------
30>Finished generating code
31>Generating code
31>Finished generating code
22>Finished generating code
30>_testbuffer.vcxproj -> C:\Users\Dibya\Desktop\Python-3.10.7\Python-3.10.7\Python-3.10.7\PCbuild\win32\_testbuffer.pyd
32>Generating code
34>------ Build started: Project: _testembed, Configuration: Release Win32 ------
32>Finished generating code
33>   Creating library C:\Users\Dibya\Desktop\Python-3.10.7\Python-3.10.7\Python-3.10.7\PCbuild\win32\_overlapped.lib and object C:\Users\Dibya\Desktop\Python-3.10.7\Python-3.10.7\Python-3.10.7\PCbuild\win32\_overlapped.exp
31>winsound.vcxproj -> C:\Users\Dibya\Desktop\Python-3.10.7\Python-3.10.7\Python-3.10.7\PCbuild\win32\winsound.pyd
33>Generating code
35>------ Build started: Project: _testmultiphase, Configuration: Release Win32 ------
32>_freeze_importlib.vcxproj -> C:\Users\Dibya\Desktop\Python-3.10.7\Python-3.10.7\Python-3.10.7\PCbuild\win32\_freeze_importlib.exe
33>Finished generating code
22>_bz2.vcxproj -> C:\Users\Dibya\Desktop\Python-3.10.7\Python-3.10.7\Python-3.10.7\PCbuild\win32\_bz2.pyd
34>Generating code
36>------ Build started: Project: _ctypes_test, Configuration: Release Win32 ------
35>   Creating library C:\Users\Dibya\Desktop\Python-3.10.7\Python-3.10.7\Python-3.10.7\PCbuild\win32\_testmultiphase.lib and object C:\Users\Dibya\Desktop\Python-3.10.7\Python-3.10.7\Python-3.10.7\PCbuild\win32\_testmultiphase.exp
34>Finished generating code
35>Generating code
33>_overlapped.vcxproj -> C:\Users\Dibya\Desktop\Python-3.10.7\Python-3.10.7\Python-3.10.7\PCbuild\win32\_overlapped.pyd
37>------ Build started: Project: _testconsole, Configuration: Release Win32 ------
35>Finished generating code
26>Finished generating code
24>Finished generating code
36>   Creating library C:\Users\Dibya\Desktop\Python-3.10.7\Python-3.10.7\Python-3.10.7\PCbuild\win32\_ctypes_test.lib and object C:\Users\Dibya\Desktop\Python-3.10.7\Python-3.10.7\Python-3.10.7\PCbuild\win32\_ctypes_test.exp
34>_testembed.vcxproj -> C:\Users\Dibya\Desktop\Python-3.10.7\Python-3.10.7\Python-3.10.7\PCbuild\win32\_testembed.exe
38>------ Build started: Project: _asyncio, Configuration: Release Win32 ------
36>Generating code
35>_testmultiphase.vcxproj -> C:\Users\Dibya\Desktop\Python-3.10.7\Python-3.10.7\Python-3.10.7\PCbuild\win32\_testmultiphase.pyd
39>------ Build started: Project: _zoneinfo, Configuration: Release Win32 ------
36>Finished generating code
26>pyexpat.vcxproj -> C:\Users\Dibya\Desktop\Python-3.10.7\Python-3.10.7\Python-3.10.7\PCbuild\win32\pyexpat.pyd
40>------ Build started: Project: _queue, Configuration: Release Win32 ------
24>_lzma.vcxproj -> C:\Users\Dibya\Desktop\Python-3.10.7\Python-3.10.7\Python-3.10.7\PCbuild\win32\_lzma.pyd
39>   Creating library C:\Users\Dibya\Desktop\Python-3.10.7\Python-3.10.7\Python-3.10.7\PCbuild\win32\_zoneinfo.lib and object C:\Users\Dibya\Desktop\Python-3.10.7\Python-3.10.7\Python-3.10.7\PCbuild\win32\_zoneinfo.exp
36>_ctypes_test.vcxproj -> C:\Users\Dibya\Desktop\Python-3.10.7\Python-3.10.7\Python-3.10.7\PCbuild\win32\_ctypes_test.pyd
41>------ Build started: Project: _hashlib, Configuration: Release Win32 ------
42>------ Build started: Project: python_uwp, Configuration: Release Win32 ------
39>Generating code
39>Finished generating code
43>------ Build started: Project: pythonw_uwp, Configuration: Release Win32 ------
40>   Creating library C:\Users\Dibya\Desktop\Python-3.10.7\Python-3.10.7\Python-3.10.7\PCbuild\win32\_queue.lib and object C:\Users\Dibya\Desktop\Python-3.10.7\Python-3.10.7\Python-3.10.7\PCbuild\win32\_queue.exp
40>Generating code
40>Finished generating code
41>   Creating library C:\Users\Dibya\Desktop\Python-3.10.7\Python-3.10.7\Python-3.10.7\PCbuild\win32\_hashlib.lib and object C:\Users\Dibya\Desktop\Python-3.10.7\Python-3.10.7\Python-3.10.7\PCbuild\win32\_hashlib.exp
41>Generating code
42>Generating code
39>_zoneinfo.vcxproj -> C:\Users\Dibya\Desktop\Python-3.10.7\Python-3.10.7\Python-3.10.7\PCbuild\win32\_zoneinfo.pyd
44>------ Build started: Project: _uuid, Configuration: Release Win32 ------
41>Finished generating code
43>Generating code
40>_queue.vcxproj -> C:\Users\Dibya\Desktop\Python-3.10.7\Python-3.10.7\Python-3.10.7\PCbuild\win32\_queue.pyd
41>_hashlib.vcxproj -> C:\Users\Dibya\Desktop\Python-3.10.7\Python-3.10.7\Python-3.10.7\PCbuild\win32\_hashlib.pyd
44>   Creating library C:\Users\Dibya\Desktop\Python-3.10.7\Python-3.10.7\Python-3.10.7\PCbuild\win32\_uuid.lib and object C:\Users\Dibya\Desktop\Python-3.10.7\Python-3.10.7\Python-3.10.7\PCbuild\win32\_uuid.exp
42>Finished generating code
38>In file included from ..\Modules\_asynciomodule.c:1:
44>Generating code
44>Finished generating code
38>In file included from C:\Users\Dibya\Desktop\Python-3.10.7\Python-3.10.7\Python-3.10.7\Include\Python.h:118:
38>C:\Users\Dibya\Desktop\Python-3.10.7\Python-3.10.7\Python-3.10.7\Include/cpython/pytime.h(120,59): warning : declaration of 'struct timeval' will not be visible outside of this function [-Wvisibility]
38>C:\Users\Dibya\Desktop\Python-3.10.7\Python-3.10.7\Python-3.10.7\Include/cpython/pytime.h(127,12): warning : declaration of 'struct timeval' will not be visible outside of this function [-Wvisibility]
38>C:\Users\Dibya\Desktop\Python-3.10.7\Python-3.10.7\Python-3.10.7\Include/cpython/pytime.h(132,12): warning : declaration of 'struct timeval' will not be visible outside of this function [-Wvisibility]
43>Finished generating code
44>_uuid.vcxproj -> C:\Users\Dibya\Desktop\Python-3.10.7\Python-3.10.7\Python-3.10.7\PCbuild\win32\_uuid.pyd
42>python_uwp.vcxproj -> C:\Users\Dibya\Desktop\Python-3.10.7\Python-3.10.7\Python-3.10.7\PCbuild\win32\python_uwp.exe
43>pythonw_uwp.vcxproj -> C:\Users\Dibya\Desktop\Python-3.10.7\Python-3.10.7\Python-3.10.7\PCbuild\win32\pythonw_uwp.exe
38>lld-link : error : could not open '/CGTHREADS:1': no such file or directory
38>lld-link : error : could not open '/PDBTHREADS:1': no such file or directory
38>Done building project "_asyncio.vcxproj" -- FAILED.
27>C:\WINDOWS\System32\ucrtbase.dll is version 10.0.19041.789
27>Wrote C:\Users\Dibya\Desktop\Python-3.10.7\Python-3.10.7\Python-3.10.7\PCbuild\win32\LICENSE.txt
========== Build: 43 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

Edited by Dibya
Link to comment
Share on other sites

On 9/8/2022 at 11:46 AM, jumper said:

Check the object files to find the source of the unwanted dependencies.

Also .cod and any other per-module output files.

 

Thanks Jumper , i am thinking of using LibC++ of LLVM instead of microsofts CRT library , and then see what happens

I haven't figure out how to link against LibC++ yet

Link to comment
Share on other sites

On 9/6/2022 at 5:27 AM, Dibya said:

I can  fix the dependencies but problem is certain API the binary calling doesnt exist in the source.

But why fix? Why is that a problem? You haven't explained what the actual problem is. Does it not compile or not run?

Also if git isn't working, download the code and compile from local source.

 

Link to comment
Share on other sites

@jumper Hi I figured out the SRW problem , looks like problem in Windows 10 SDK, patched the SDK and it is fine now.

I need implementation of following API

ConvertInterfaceLuidToNameW
FreeMibTable
GetIfTable2Ex
if_indextoname
if_nametoindex

inet_ntop
inet_pton

Link to comment
Share on other sites

The official and many of the unofficial ntdll.libs are missing certain functions like RtlGetVersion presumably because they are duplicated by kernel32 functions in practice, or possibly also because they aren't officially documented in any capacity.

The ntdll libs in this repository contain RtlNtStatusToDosError as well as everything else: https://github.com/vxiiduu/VxKex

Link to comment
Share on other sites

3 hours ago, win32 said:

The official and many of the unofficial ntdll.libs are missing certain functions like RtlGetVersion presumably because they are duplicated by kernel32 functions in practice, or possibly also because they aren't officially documented in any capacity.

The ntdll libs in this repository contain RtlNtStatusToDosError as well as everything else: https://github.com/vxiiduu/VxKex

How can add external lib in visual studio 2019? Question is stupid but i am not used to with newer VS , i am pretty fine with VS2010.

Link to comment
Share on other sites

37 minutes ago, Dibya said:

How can add external lib in visual studio 2019? Question is stupid but i am not used to with newer VS , i am pretty fine with VS2010.

I believe the property pages are quite similar. I think they just added some more options and features.

Link to comment
Share on other sites

I really hate modern Visual Studio , i am including NTStatus.h , yet not accepting NTSTATUS.h

their other problem winnt.h

https://www.mediafire.com/file/tadhxmjsqo79xmm/Compatlib.zip/file

I am frustrated , if someone helps to compile it i will be happy and i will be happy to learn from you if you point out my mistakes.

It made my mind to make a external dll instead to keep it clutter free.

@win32 It looks the same but if i add external lib to linker , still not gonna link against that ntdll_x86.lib. Visual studio became a joke.

Edited by Dibya
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...