Missing sources when trying to import unicode-org/icu #23694
Unanswered
ddassie-texa
asked this question in
Q&A
Replies: 1 comment
-
You are on the right path.
strip_prefix = "icu",
configure_make(
name = "icu",
args = ["-j16"],
configure_command = "source/configure",
configure_in_place = True,
configure_options = [
"--enable-option-checking",
"--enable-static",
"--enable-tools", # needed to build data
"--disable-shared",
"--disable-dyload",
"--disable-extras",
"--disable-plugins",
"--disable-tests",
"--disable-samples",
"--with-data-packaging=static",
],
lib_source = ":all_srcs",
out_static_libs = [
"libicudata.a",
"libicui18n.a",
"libicuio.a",
"libicutu.a",
"libicuuc.a",
],
) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm trying to compile https://github.com/unicode-org/icu.git from source using Bazel 7.3, my project is using the bzlmod system and I'm trying to get the sources for icu using
bazel_dep
, in myMODULE.bazel
I have defined this:Than I have a
BUILD.bazel
file in "./libs/icu/BUILD.bazel" with the following content:and I build with:
bazel build --sandbox_debug //libs/icu
but the build fails, it says:
error: cannot find sources (common/unicode/utypes.h)
, if I look inside the sandbox the entire "common/" directory is missing, but if I extract the tar by hand everything is fine so clearly Bazel is doing something strage, I initially thought it was because of the presence of someBUILD.bazel
files, so I added a patch inhttp_archive
to remove them but the issue still persists.Does anyone know why I'm missing files or even if there is a better way for me to compile ICU using Bazel?
Beta Was this translation helpful? Give feedback.
All reactions