Boost\libs\python failed to build due to link error on MSVC
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 25/100
- issue の種類
- バグ
- 明瞭さ
- 説明が足りない
- 活発さ
- 停滞
- 領域
- build-system
調査の方向性
VS 2019 x64 のコマンド プロンプトで .\bootstrap、2 つの .\b2 ビルド コマンド、および最後の .\b2 ... libs\python\test コマンドを使用して失敗を再現します。生成されたリンク応答と Boost.Python のビルド構成を調査します。報告された MSVC ビルドとテスト ターゲットが正常にリンクされれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Issue description:
Boost\libs\python failed to build due to link error on MSVC. Could you please take a look?
Build step:
- git clone -c core.autocrlf=true --recursive https://github.com/boostorg/boost.git D:\Boost\src
- open a VS 2019 x64 command prompt and browse to D:\Boost\src
- .\bootstrap
- .\b2 headers variant=release --build-dir=..\out\x64rel address-model=64
- .\b2 variant=release --build-dir=..\out\x64rel address-model=64
- .\b2 -j4 variant=release --build-dir=..\out\x64rel libs\python\test
Error info:
F:\gitP\boostorg\boost\linkrepro>link @link.rsp
Creating library .\builtin_converters_ext.lib and object .\builtin_converters_ext.exp
builtin_converters.obj : error LNK2001: unresolved external symbol __std_terminate
builtin_converters.obj : error LNK2019: unresolved external symbol __imp__invalid_parameter_noinfo_noreturn referenced in function "void * __cdecl std::_Allocate_manually_vector_aligned(unsigned __int64)" (??$_Allocate_manually_vector_aligned@U_Default_allocate_traits@std@@@std@@YAPEAX_K@Z)
builtin_converters.obj : error LNK2019: unresolved external symbol __std_exception_copy referenced in function "public: __cdecl std::bad_alloc::bad_alloc(class std::bad_alloc const &)" (??0bad_alloc@std@@QEAA@AEBV01@@Z)
MSVCRT.lib(throw_bad_alloc.obj) : error LNK2001: unresolved external symbol __std_exception_copy
builtin_converters.obj : error LNK2019: unresolved external symbol __std_exception_destroy referenced in function "public: virtual __cdecl std::bad_array_new_length::~bad_array_new_length(void)" (??1bad_array_new_length@std@@UEAA@XZ)
MSVCRT.lib(throw_bad_alloc.obj) : error LNK2001: unresolved external symbol __std_exception_destroy
builtin_converters.obj : error LNK2019: unresolved external symbol __std_type_info_name referenced in function "struct boost::python::detail::signature_element const * __cdecl boost::python::detail::get_ret<struct boost::python::default_call_policies,struct boost::mpl::vector1 >(void)" (??$get_ret@Udefault_call_policies@python@boost@@U?$vector1@H@mpl@3@@detail@python@boost@@YAPEBUsignature_element@012@XZ)
builtin_converters.obj : error LNK2019: unresolved external symbol _CxxThrowException referenced in function "void __cdecl std::_Throw_bad_array_new_length(void)" (?_Throw_bad_array_new_length@std@@YAXXZ)
MSVCRT.lib(throw_bad_alloc.obj) : error LNK2001: unresolved external symbol _CxxThrowException
builtin_converters.obj : error LNK2001: unresolved external symbol __CxxFrameHandler4
MSVCRT.lib(gshandlereh4.obj) : error LNK2001: unresolved external symbol __CxxFrameHandler4
builtin_converters.obj : error LNK2019: unresolved external symbol memcpy referenced in function "public: __cdecl std::basic_string<char,struct std::char_traits,class std::allocator >::basic_string<char,struct std::char_traits,class std::allocator >(class std::basic_string<char,struct std::char_traits,class std::allocator > const &)" (??0?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAA@AEBV01@@Z)
MSVCRT.lib(new_scalar.obj) : error LNK2019: unresolved external symbol _callnewh referenced in function "void * __cdecl operator new(unsigned __int64)" (??2@YAPEAX_K@Z)
MSVCRT.lib(new_scalar.obj) : error LNK2019: unresolved external symbol malloc referenced in function "void * __cdecl operator new(unsigned __int64)" (??2@YAPEAX_K@Z)
MSVCRT.lib(utility.obj) : error LNK2019: unresolved external symbol __vcrt_initialize referenced in function __scrt_initialize_crt
MSVCRT.lib(utility.obj) : error LNK2019: unresolved external symbol __vcrt_uninitialize referenced in function __scrt_initialize_crt
MSVCRT.lib(utility.obj) : error LNK2019: unresolved external symbol __vcrt_uninitialize_critical referenced in function __scrt_dllmain_uninitialize_critical
MSVCRT.lib(utility.obj) : error LNK2019: unresolved external symbol __vcrt_thread_attach referenced in function __scrt_dllmain_crt_thread_attach
MSVCRT.lib(utility.obj) : error LNK2019: unresolved external symbol __vcrt_thread_detach referenced in function __scrt_dllmain_crt_thread_attach
MSVCRT.lib(utility.obj) : error LNK2019: unresolved external symbol _seh_filter_dll referenced in function __scrt_dllmain_exception_filter
MSVCRT.lib(utility.obj) : error LNK2019: unresolved external symbol _is_c_termination_complete referenced in function __scrt_dllmain_uninitialize_c
MSVCRT.lib(utility.obj) : error LNK2019: unresolved external symbol _configure_narrow_argv referenced in function "public: static int __cdecl __scrt_narrow_argv_policy::configure_argv(void)" (?configure_argv@__scrt_narrow_argv_policy@@SAHXZ)
MSVCRT.lib(utility.obj) : error LNK2019: unresolved external symbol _initialize_narrow_environment referenced in function "public: static int __cdecl __scrt_narrow_environment_policy::initialize_environment(void)" (?initialize_environment@__scrt_narrow_environment_policy@@SAHXZ)
MSVCRT.lib(utility.obj) : error LNK2019: unresolved external symbol _initialize_onexit_table referenced in function __scrt_initialize_onexit_tables
MSVCRT.lib(utility.obj) : error LNK2019: unresolved external symbol _register_onexit_function referenced in function _onexit
MSVCRT.lib(utility.obj) : error LNK2019: unresolved external symbol _execute_onexit_table referenced in function __scrt_dllmain_uninitialize_c
MSVCRT.lib(utility.obj) : error LNK2019: unresolved external symbol _crt_atexit referenced in function _onexit
MSVCRT.lib(utility.obj) : error LNK2019: unresolved external symbol _crt_at_quick_exit referenced in function at_quick_exit
MSVCRT.lib(utility.obj) : error LNK2019: unresolved external symbol __acrt_initialize referenced in function __scrt_initialize_crt
MSVCRT.lib(utility.obj) : error LNK2019: unresolved external symbol __acrt_uninitialize referenced in function __scrt_uninitialize_crt
MSVCRT.lib(utility.obj) : error LNK2019: unresolved external symbol __acrt_uninitialize_critical referenced in function __scrt_dllmain_uninitialize_critical
MSVCRT.lib(utility.obj) : error LNK2019: unresolved external symbol __acrt_thread_attach referenced in function __scrt_dllmain_crt_thread_attach
MSVCRT.lib(utility.obj) : error LNK2019: unresolved external symbol __acrt_thread_detach referenced in function __scrt_dllmain_crt_thread_detach
MSVCRT.lib(utility.obj) : error LNK2019: unresolved external symbol _cexit referenced in function __scrt_dllmain_uninitialize_c
MSVCRT.lib(utility.obj) : error LNK2001: unresolved external symbol __C_specific_handler
MSVCRT.lib(thread_safe_statics.obj) : error LNK2019: unresolved external symbol __imp_CloseHandle referenced in function "void __cdecl __scrt_uninitialize_thread_safe_statics(void)" (?__scrt_uninitialize_thread_safe_statics@@YAXXZ)
MSVCRT.lib(thread_safe_statics.obj) : error LNK2019: unresolved external symbol __imp_EnterCriticalSection referenced in function _Init_thread_abort
MSVCRT.lib(thread_safe_statics.obj) : error LNK2019: unresolved external symbol __imp_LeaveCriticalSection referenced in function _Init_thread_abort
MSVCRT.lib(thread_safe_statics.obj) : error LNK2019: unresolved external symbol __imp_InitializeCriticalSectionAndSpinCount referenced in function "int __cdecl __scrt_initialize_thread_safe_statics(void)" (?__scrt_initialize_thread_safe_statics@@YAHXZ)
MSVCRT.lib(thread_safe_statics.obj) : error LNK2019: unresolved external symbol __imp_DeleteCriticalSection referenced in function "void __cdecl __scrt_uninitialize_thread_safe_statics(void)" (?__scrt_uninitialize_thread_safe_statics@@YAXXZ)
MSVCRT.lib(thread_safe_statics.obj) : error LNK2019: unresolved external symbol __imp_SetEvent referenced in function _Init_thread_notify
MSVCRT.lib(thread_safe_statics.obj) : error LNK2019: unresolved external symbol __imp_ResetEvent referenced in function _Init_thread_notify
MSVCRT.lib(thread_safe_statics.obj) : error LNK2019: unresolved external symbol __imp_WaitForSingleObjectEx referenced in function _Init_thread_wait
MSVCRT.lib(thread_safe_statics.obj) : error LNK2019: unresolved external symbol __imp_CreateEventW referenced in function "int __cdecl __scrt_initialize_thread_safe_statics(void)" (?__scrt_initialize_thread_safe_statics@@YAHXZ)
MSVCRT.lib(thread_safe_statics.obj) : error LNK2019: unresolved external symbol __imp_GetModuleHandleW referenced in function "int __cdecl __scrt_initialize_thread_safe_statics(void)" (?__scrt_initialize_thread_safe_statics@@YAHXZ)
MSVCRT.lib(utility_desktop.obj) : error LNK2001: unresolved external symbol __imp_GetModuleHandleW
MSVCRT.lib(thread_safe_statics.obj) : error LNK2019: unresolved external symbol __imp_GetProcAddress referenced in function "int __cdecl __scrt_initialize_thread_safe_statics(void)" (?__scrt_initialize_thread_safe_statics@@YAHXZ)
MSVCRT.lib(tncleanup.obj) : error LNK2019: unresolved external symbol __imp_InitializeSListHead referenced in function "void __cdecl __scrt_initialize_type_info(void)" (?__scrt_initialize_type_info@@YAXXZ)
MSVCRT.lib(tncleanup.obj) : error LNK2019: unresolved external symbol __std_type_info_destroy_list referenced in function "void __cdecl __scrt_uninitialize_type_info(void)" (?__scrt_uninitialize_type_info@@YAXXZ)
MSVCRT.lib(delete_scalar.obj) : error LNK2019: unresolved external symbol free referenced in function "void __cdecl operator delete(void *)" (??3@YAXPEAX@Z)
MSVCRT.lib(utility_desktop.obj) : error LNK2019: unresolved external symbol __imp_RtlCaptureContext referenced in function __scrt_fastfail
MSVCRT.lib(gs_report.obj) : error LNK2001: unresolved external symbol __imp_RtlCaptureContext
MSVCRT.lib(utility_desktop.obj) : error LNK2019: unresolved external symbol __imp_RtlLookupFunctionEntry referenced in function __scrt_fastfail
MSVCRT.lib(gs_report.obj) : error LNK2001: unresolved external symbol __imp_RtlLookupFunctionEntry
MSVCRT.lib(utility_desktop.obj) : error LNK2019: unresolved external symbol __imp_RtlVirtualUnwind referenced in function __scrt_fastfail
MSVCRT.lib(gs_report.obj) : error LNK2001: unresolved external symbol __imp_RtlVirtualUnwind
MSVCRT.lib(utility_desktop.obj) : error LNK2019: unresolved external symbol __imp_IsDebuggerPresent referenced in function __scrt_fastfail
MSVCRT.lib(utility_desktop.obj) : error LNK2019: unresolved external symbol __imp_UnhandledExceptionFilter referenced in function __scrt_fastfail
MSVCRT.lib(gs_report.obj) : error LNK2001: unresolved external symbol __imp_UnhandledExceptionFilter
MSVCRT.lib(utility_desktop.obj) : error LNK2019: unresolved external symbol __imp_SetUnhandledExceptionFilter referenced in function __scrt_fastfail
MSVCRT.lib(gs_report.obj) : error LNK2001: unresolved external symbol __imp_SetUnhandledExceptionFilter
MSVCRT.lib(utility_desktop.obj) : error LNK2019: unresolved external symbol __imp_GetStartupInfoW referenced in function __scrt_get_show_window_mode
MSVCRT.lib(utility_desktop.obj) : error LNK2019: unresolved external symbol __imp_IsProcessorFeaturePresent referenced in function __scrt_fastfail
MSVCRT.lib(gs_report.obj) : error LNK2001: unresolved external symbol __imp_IsProcessorFeaturePresent
MSVCRT.lib(utility_desktop.obj) : error LNK2019: unresolved external symbol terminate referenced in function __scrt_unhandled_exception_filter
MSVCRT.lib(utility_desktop.obj) : error LNK2019: unresolved external symbol __current_exception referenced in function __scrt_unhandled_exception_filter
MSVCRT.lib(utility_desktop.obj) : error LNK2019: unresolved external symbol __current_exception_context referenced in function __scrt_unhandled_exception_filter
MSVCRT.lib(utility_desktop.obj) : error LNK2019: unresolved external symbol memset referenced in function __scrt_fastfail
MSVCRT.lib(gs_report.obj) : error LNK2019: unresolved external symbol __imp_GetCurrentProcess referenced in function __raise_securityfailure
MSVCRT.lib(gs_report.obj) : error LNK2019: unresolved external symbol __imp_TerminateProcess referenced in function __raise_securityfailure
.\builtin_converters_ext.pyd : fatal error LNK1120: 59 unresolved externals
- 主要言語
- C++
- スター
- 537
- フォーク
- 223
- 平均マージ
- 11時間 22分
- マージ済み PR(30日)
- 2
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
boostorg/python のほかの issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 84/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 64/100
-
BoostDetectToolset-1.90.0.cmake file not found in an include() call in boost_python-config.cmake オープン
難易度 3/5 1〜2日 初心者へのやさしさ 48/100
-
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
boostorg/python の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
objectionary/eo-graphs#74 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 95/100
-
enhancement
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
QuantStack/git2cpp#187 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100