Hi,
icu4c 78.1 fails to build on clang-cl with the error:
../subprojects/icu/source/common\umutex.h(210,18): error: attribute
'dllexport' cannot be applied to a deleted function
I've pasted more logs below. icu4c 77.1 builds without issue. I'm
building with the Meson wrap
(
https://github.com/mesonbuild/wrapdb/pull/2546), so this is
potentially an issue with compiler flags, but it seems likely that
commit 5c95e37c6a is buggy.
I tried reporting an issue but Jira says I'm not authorized to do that.
Best,
--Benjamin Gilbert
"clang-cl" "-Isubprojects\icu\source\common\icuuc-78.dll.p"
"-Isubprojects\icu\source\common" "-I..\subprojects\icu\source\common"
"/MDd" "/nologo" "/showIncludes" "/utf-8" "/W2" "/EHsc" "/std:c++17"
"/permissive-" "/Od" "/Z7" "-DU_PLATFORM_USES_ONLY_WIN32_API"
"-DWIN32" "-DWIN64" "-D_MBCS" "-D_CRT_SECURE_NO_WARNINGS"
"-DWINVER=0x0601" "-D_WIN32_WINNT=0x0601" "-DU_ATTRIBUTE_DEPRECATED="
"-DU_COMMON_IMPLEMENTATION"
"/Fdsubprojects\icu\source\common\icuuc-78.dll.p\brkiter.cpp.pdb"
/Fosubprojects/icu/source/common/icuuc-78.dll.p/brkiter.cpp.obj "/c"
../subprojects/icu/source/common/brkiter.cpp
In file included from ../subprojects/icu/source/common/brkiter.cpp:37:
../subprojects/icu/source/common\umutex.h(210,18): error: attribute
'dllexport' cannot be applied to a deleted function
210 | U_COMMON_API UMutex(const UMutex& other) = delete;
../subprojects/icu/source/common\umutex.h(211,26): error: attribute
'dllexport' cannot be applied to a deleted function
211 | U_COMMON_API UMutex& operator=(const UMutex& other) = delete;
../subprojects/icu/source/common\umutex.h(212,24): error: attribute
'dllexport' cannot be applied to a deleted function
212 | U_COMMON_API void* operator new(size_t) = delete;
3 errors generated.