Skip to content

Conversation

@Manfredss
Copy link
Contributor

PR Category

Environment Adaptation

PR Types

Improvements

Description

Change the logic from "VERSION_EQUAL" to "MATCHES" for PY_VERSION in paddle/fluid/pybind/CMakeLists.txt, which allows users with python patch version, e.g., 3.12.12, to successfully build whl. Originally ONLY 3.x can be used.

build file message:

FAILED: paddle/fluid/pybind/libpaddle.dll paddle/fluid/pybind/libpaddle.lib
cmd.exe /C "cd . && "C:\Program Files\CMake\bin\cmake.exe" -E vs_link_dll --intdir=paddle\fluid\pybind\CMakeFiles\libpaddle.dir --rc=C:\PROGRA~2\WI3CF2~1\10\bin\100261~1.0\x64\rc.exe --mt=C:\PROGRA~2\WI3CF2~1\10\bin\100261~1.0\x64\mt.exe --manifests  -- C:\PROGRA~1\MIB055~1\2022\COMMUN~1\VC\Tools\MSVC\1444~1.352\bin\Hostx64\x64\link.exe /nologo @CMakeFiles\libpaddle.rsp  /out:paddle\fluid\pybind\libpaddle.dll /implib:paddle\fluid\pybind\libpaddle.lib /pdb:paddle\fluid\pybind\libpaddle.pdb /dll /version:0.0 /machine:x64 /ignore:4049 /ignore:4217 /ignore:4006 /ignore:4221 /NODEFAULTLIB:MSVCRT.LIB /INCREMENTAL:NO  && cd ."
LINK: command "C:\PROGRA~1\MIB055~1\2022\COMMUN~1\VC\Tools\MSVC\1444~1.352\bin\Hostx64\x64\link.exe /nologo @CMakeFiles\libpaddle.rsp /out:paddle\fluid\pybind\libpaddle.dll /implib:paddle\fluid\pybind\libpaddle.lib /pdb:paddle\fluid\pybind\libpaddle.pdb /dll /version:0.0 /machine:x64 /ignore:4049 /ignore:4217 /ignore:4006 /ignore:4221 /NODEFAULTLIB:MSVCRT.LIB /INCREMENTAL:NO /MANIFEST /MANIFESTFILE:paddle\fluid\pybind\libpaddle.dll.manifest" failed (exit code 1120) with the following output:
   Creating library paddle\fluid\pybind\libpaddle.lib and object paddle\fluid\pybind\libpaddle.exp
frame_proxy.c.obj : error LNK2019: unresolved external symbol Internal_PyUnstable_InterpreterFrame_GetLine referenced in function PyInterpreterFrameProxy_method_repr
eval_frame.c.obj : error LNK2019: unresolved external symbol Internal_PyEvalFrameClearAndPop referenced in function _custom_eval_frame
eval_frame.c.obj : error LNK2019: unresolved external symbol Internal_PyThreadState_PushFrame referenced in function eval_custom_code_py311_plus
eval_frame.c.obj : error LNK2019: unresolved external symbol Internal_PyFrame_FastToLocalsWithError referenced in function _custom_eval_frame
paddle\fluid\pybind\libpaddle.dll : fatal error LNK1120: 4 unresolved externals

@paddle-bot
Copy link

paddle-bot bot commented Jan 7, 2026

你的PR提交成功,感谢你对开源项目的贡献!
请关注后续CI自动化测试结果,详情请参考Paddle-CI手册
Your PR has been submitted. Thanks for your contribution!
Please wait for the result of CI firstly. See Paddle CI Manual for details.

@SigureMo
Copy link
Member

SigureMo commented Jan 7, 2026

already fixed in #77249

@SigureMo SigureMo closed this Jan 7, 2026
@Manfredss Manfredss deleted the subversionadap branch January 8, 2026 00:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants