umutex.h:52:17: error: 'dllexport' attribute ignored on explicit instantiation definition [-Werror,-Wignored-attributes]

Description

Android upgrade LLVM toolchain to r365631 and we got this error.

1 2 3 4 5 6 7 8 9 10 11 In file included from external/icu/icu4c/source/common/putil.cpp:68: external/icu/icu4c/source/common/umutex.h:52:17: error: 'dllexport' attribute ignored on explicit instantiation definition [-Werror,-Wignored-attributes] template struct U_COMMON_API std::atomic<int32_t>; ^ external/icu/icu4c/source/common/unicode/utypes.h:316:24: note: expanded from macro 'U_COMMON_API' #define U_COMMON_API U_EXPORT ^ external/icu/icu4c/source/common/unicode/platform.h:790:32: note: expanded from macro 'U_EXPORT' # define U_EXPORT __declspec(dllexport) ^ 1 error generated.

We temporarily suppress new ignored-attributes warning in Android: https://r.android.com/c/platform/external/icu/+/1102131

Status

Assignee

Jeff Genovy

Reporter

Victor Chang

Labels

Reviewer

None

Time Needed

None

Start date

None

Components

Fix versions

Priority

assess