Skip to content

Exclude stubdata and i18n BUILD.bazel from ICU 77 repository archive - #1543

Merged
cantonios merged 1 commit into
tensorflow:2.21from
dmiltr3:fix-icu-undefined-symbol-2.21
Aug 24, 2026
Merged

Exclude stubdata and i18n BUILD.bazel from ICU 77 repository archive#1543
cantonios merged 1 commit into
tensorflow:2.21from
dmiltr3:fix-icu-undefined-symbol-2.21

Conversation

@dmiltr3

@dmiltr3 dmiltr3 commented Aug 24, 2026

Copy link
Copy Markdown
Contributor

In ICU 77, BUILD.bazel files were added upstream under icu4c/source/stubdata/ and icu4c/source/i18n/. Because custom_http_archive only excluded icu4c/source/common/BUILD.bazel, Bazel treated icu4c/source/stubdata/ as a separate package, preventing glob(["icu4c/source/stubdata/*.cpp"]) in //third_party/icu:BUILD.bzl from matching stubdata.cpp. Consequently, U_ICUDATA_ENTRY_POINT (icudt77_dat) was omitted from the build, resulting in undefined symbol errors upon importing tensorflow_text on systems without ICU 77.

Excluding stubdata/BUILD.bazel and i18n/BUILD.bazel and including stubdata/*.h in hdrs allows stubdata.cpp to be cleanly compiled into icuuc, resolving icudt77_dat.

Fixes #1541

In ICU 77, BUILD.bazel files were added upstream under icu4c/source/stubdata/ and icu4c/source/i18n/. Because custom_http_archive only excluded icu4c/source/common/BUILD.bazel, Bazel treated icu4c/source/stubdata/ as a separate package, preventing glob(["icu4c/source/stubdata/*.cpp"]) in //third_party/icu:BUILD.bzl from matching stubdata.cpp. Consequently, U_ICUDATA_ENTRY_POINT (icudt77_dat) was omitted from the build, resulting in undefined symbol errors upon importing tensorflow_text.

Excluding stubdata/BUILD.bazel and i18n/BUILD.bazel and including stubdata/*.h in hdrs allows stubdata to be cleanly compiled into icuuc, resolving icudt77_dat.

Fixes tensorflow#1541
@cantonios
cantonios merged commit 8018370 into tensorflow:2.21 Aug 24, 2026
1 of 2 checks passed
Steboss added a commit to NVIDIA/JAX-Toolbox that referenced this pull request Aug 25, 2026
Next `tensorflow-text` version introduces [this
bug](tensorflow/text#1541). The issue was
fixed in [1543](tensorflow/text#1543), but it's
not been released yet as a new version.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants