[clang] [clang-tools-extra] [libcxx] [clang] Enable sized deallocation by default in C++14 onwards (PR #83774)
Pengcheng Wang via cfe-commits
cfe-commits at lists.llvm.org
Sat Apr 27 00:13:23 PDT 2024
wangpc-pp wrote:
> This change is also causing a failure on our internal Windows builder, and a public Windows bot:
> https://lab.llvm.org/buildbot/#/builders/119/builds/17634
> ```
> 88.872 [191/66/4550] Linking CXX executable bin\clang-repl.exe
> FAILED: bin/clang-repl.exe
> cmd.exe /C "cd . && "C:\Program Files\CMake\bin\cmake.exe" -E vs_link_exe --intdir=tools\clang\tools\clang-repl\CMakeFiles\clang-repl.dir --rc=C:\PROGRA~2\WINDOW~4\10\bin\100226~1.0\x64\rc.exe --mt=C:\PROGRA~2\WINDOW~4\10\bin\100226~1.0\x64\mt.exe --manifests -- C:\PROGRA~1\MICROS~2\2022\COMMUN~1\VC\Tools\MSVC\1439~1.335\bin\Hostx64\x64\link.exe /nologo @CMakeFiles\clang-repl.rsp /out:bin\clang-repl.exe /implib:lib\clang-repl.lib /pdb:bin\clang-repl.pdb /version:0.0 /machine:x64 /STACK:10000000 /INCREMENTAL:NO /subsystem:console /EXPORT:??_7type_info@@6B@ /EXPORT:?__type_info_root_node@@3U__type_info_node@@A /EXPORT:?nothrow at std@@3Unothrow_t at 1@B /EXPORT:_Init_thread_abort /EXPORT:_Init_thread_epoch /EXPORT:_Init_thread_footer /EXPORT:_Init_thread_header /EXPORT:_tls_index /EXPORT:??2 at YAPEAX_K@Z /EXPORT:??3 at YAXPEAX@Z /EXPORT:??_U at YAPEAX_K@Z /EXPORT:??_V at YAXPEAX@Z /EXPORT:??3 at YAXPEAX_K@Z /EXPORT:??6?$basic_ostream at DU?$char_traits at D@std@@@std@@QEAAAEAV01 at H@Z /EXPORT:??6?$basic_ostream at DU?$char_traits at D@std@@@std@@QEAAAEAV01 at M@Z /EXPORT:??6?$basic_ostream at DU?$char_traits at D@std@@@std@@QEAAAEAV01 at N@Z /EXPORT:??6?$basic_ostream at DU?$char_traits at D@std@@@std@@QEAAAEAV01 at PEBX@Z /EXPORT:??6?$basic_ostream at DU?$char_traits at D@std@@@std@@QEAAAEAV01 at P6AAEAV01@AEAV01@@Z at Z /EXPORT:??$?6U?$char_traits at D@std@@@std@@YAAEAV?$basic_ostream at DU?$char_traits at D@std@@@0 at AEAV10@D at Z /EXPORT:??$?6U?$char_traits at D@std@@@std@@YAAEAV?$basic_ostream at DU?$char_traits at D@std@@@0 at AEAV10@PEBD at Z /EXPORT:?_Facet_Register at std@@YAXPEAV_Facet_base at 1@@Z -Wl,--long-plt && cd ."
> LINK: command "C:\PROGRA~1\MICROS~2\2022\COMMUN~1\VC\Tools\MSVC\1439~1.335\bin\Hostx64\x64\link.exe /nologo @CMakeFiles\clang-repl.rsp /out:bin\clang-repl.exe /implib:lib\clang-repl.lib /pdb:bin\clang-repl.pdb /version:0.0 /machine:x64 /STACK:10000000 /INCREMENTAL:NO /subsystem:console /EXPORT:??_7type_info@@6B@ /EXPORT:?__type_info_root_node@@3U__type_info_node@@A /EXPORT:?nothrow at std@@3Unothrow_t at 1@B /EXPORT:_Init_thread_abort /EXPORT:_Init_thread_epoch /EXPORT:_Init_thread_footer /EXPORT:_Init_thread_header /EXPORT:_tls_index /EXPORT:??2 at YAPEAX_K@Z /EXPORT:??3 at YAXPEAX@Z /EXPORT:??_U at YAPEAX_K@Z /EXPORT:??_V at YAXPEAX@Z /EXPORT:??3 at YAXPEAX_K@Z /EXPORT:??6?$basic_ostream at DU?$char_traits at D@std@@@std@@QEAAAEAV01 at H@Z /EXPORT:??6?$basic_ostream at DU?$char_traits at D@std@@@std@@QEAAAEAV01 at M@Z /EXPORT:??6?$basic_ostream at DU?$char_traits at D@std@@@std@@QEAAAEAV01 at N@Z /EXPORT:??6?$basic_ostream at DU?$char_traits at D@std@@@std@@QEAAAEAV01 at PEBX@Z /EXPORT:??6?$basic_ostream at DU?$char_traits at D@std@@@std@@QEAAAEAV01 at P6AAEAV01@AEAV01@@Z at Z /EXPORT:??$?6U?$char_traits at D@std@@@std@@YAAEAV?$basic_ostream at DU?$char_traits at D@std@@@0 at AEAV10@D at Z /EXPORT:??$?6U?$char_traits at D@std@@@std@@YAAEAV?$basic_ostream at DU?$char_traits at D@std@@@0 at AEAV10@PEBD at Z /EXPORT:?_Facet_Register at std@@YAXPEAV_Facet_base at 1@@Z -Wl,--long-plt /MANIFEST /MANIFESTFILE:bin\clang-repl.exe.manifest" failed (exit code 1120) with the following output:
> LINK : warning LNK4044: unrecognized option '/Wl,--long-plt'; ignored
> Creating library lib\clang-repl.lib and object lib\clang-repl.exp
> LIBCMT.lib(initializers.obj) : warning LNK4098: defaultlib 'msvcrt.lib' conflicts with use of other libs; use /NODEFAULTLIB:library
> LINK : warning LNK4217: symbol 'free' defined in 'libucrt.lib(free.obj)' is imported by 'zlibstatic.lib(zutil.obj)' in function 'zcfree'
> LINK : warning LNK4217: symbol 'malloc' defined in 'libucrt.lib(malloc.obj)' is imported by 'zlibstatic.lib(zutil.obj)' in function 'zcalloc'
> clang-repl.exp : error LNK2001: unresolved external symbol "public: class std::basic_ostream<char,struct std::char_traits<char> > & __cdecl std::basic_ostream<char,struct std::char_traits<char> >::operator<<(float)" (??6?$basic_ostream at DU?$char_traits at D@std@@@std@@QEAAAEAV01 at M@Z)
> clang-repl.exp : error LNK2001: unresolved external symbol "public: class std::basic_ostream<char,struct std::char_traits<char> > & __cdecl std::basic_ostream<char,struct std::char_traits<char> >::operator<<(class std::basic_ostream<char,struct std::char_traits<char> > & (__cdecl*)(class std::basic_ostream<char,struct std::char_traits<char> > &))" (??6?$basic_ostream at DU?$char_traits at D@std@@@std@@QEAAAEAV01 at P6AAEAV01@AEAV01@@Z at Z)
> clang-repl.exp : error LNK2001: unresolved external symbol "public: class std::basic_ostream<char,struct std::char_traits<char> > & __cdecl std::basic_ostream<char,struct std::char_traits<char> >::operator<<(void const *)" (??6?$basic_ostream at DU?$char_traits at D@std@@@std@@QEAAAEAV01 at PEBX@Z)
> bin\clang-repl.exe : fatal error LNK1120: 3 unresolved externals
>
> ```
It seems that we need to remove these symbols from the CMakeLists.txt of clang-repl.
https://github.com/llvm/llvm-project/pull/83774
More information about the cfe-commits
mailing list