← Back to team overview

bazel-team team mailing list archive

Bug#1027112: bazel-bootstrap: /usr/include/absl/synchronization/mutex.h:550: error: undefined reference to 'absl::debian3::Mutex::Unlock()'

 

Hello, FWIW I think I crafted a patch that might fix the issue (in a ugly and hard-coded way)

at debian/patches/new-grpc.patch
Description: Add result of pkg-config --libs grpc++_unsecure call to the BUILD file
Author: Gianfranco Costamagna <locutusofborg@xxxxxxxxxx>
Bug-Debian: https://bugs.debian.org/1027112
Last-Update: 2023-01-04

--- bazel-bootstrap-4.2.3+ds.orig/tools/distributions/debian/debian_cc.BUILD
+++ bazel-bootstrap-4.2.3+ds/tools/distributions/debian/debian_cc.BUILD
@@ -39,6 +39,6 @@ cc_library(
 # libgrpc++-dev
 cc_library(
     name = "grpc++_unsecure",
-    linkopts = ["-lgrpc++_unsecure", "-lgrpc_unsecure", "-lgpr"],
+    linkopts = ["-lgrpc++_unsecure", "-lgrpc_unsecure", "-lgpr", "-labsl_throw_delegate", "-labsl_raw_logging_internal", "-labsl_throw_delegate", "-labsl_raw_logging_internal", "-labsl_raw_logging_internal", "-labsl_raw_logging_internal", "-labsl_raw_logging_internal", "-labsl_throw_delegate", "-labsl_raw_logging_internal", "-labsl_raw_logging_internal", "-labsl_throw_delegate", "-labsl_raw_logging_internal", "-labsl_throw_delegate", "-labsl_raw_logging_internal", "-labsl_raw_logging_internal", "-labsl_raw_logging_internal", "-labsl_raw_logging_internal", "-labsl_throw_delegate", "-labsl_raw_logging_internal", "-labsl_raw_logging_internal", "-labsl_raw_hash_set", "-labsl_hashtablez_sampler", "-labsl_hash", "-labsl_city", "-labsl_low_level_hash", "-labsl_random_distributions", "-labsl_throw_delegate", "-labsl_raw_logging_internal", "-labsl_throw_delegate", "-labsl_raw_logging_internal", "-labsl_raw_logging_internal", "-labsl_raw_logging_internal", "-labsl_random_seed_sequences", "-labsl_random_internal_pool_urbg", "-labsl_random_internal_randen", "-labsl_random_internal_randen_hwaes", "-labsl_random_internal_randen_hwaes_impl", "-labsl_random_internal_randen_slow", "-labsl_random_internal_platform", "-labsl_raw_logging_internal", "-labsl_throw_delegate", "-labsl_raw_logging_internal", "-labsl_random_internal_seed_material", "-labsl_raw_logging_internal", "-labsl_random_seed_gen_exception", "-labsl_statusor", "-labsl_status", "-labsl_cord", "-labsl_cordz_info", "-labsl_cord_internal", "-labsl_cordz_functions", "-labsl_exponential_biased", "-labsl_cordz_handle", "-labsl_bad_optional_access", "-labsl_strerror", "-labsl_str_format_internal", "-labsl_synchronization", "-labsl_graphcycles_internal", "-labsl_stacktrace", "-labsl_symbolize", "-labsl_debugging_internal", "-labsl_demangle_internal", "-labsl_malloc_internal", "-labsl_time", "-labsl_civil_time", "-labsl_strings", "-labsl_strings_internal", "-Wl,--push-state,--as-needed", "-latomic", "-Wl,--pop-state", "-lrt", "-labsl_base", "-labsl_spinlock_wait", "-labsl_int128", "-labsl_throw_delegate", "-labsl_time_zone", "-labsl_bad_variant_access", "-labsl_raw_logging_internal", "-labsl_log_severity"],
     visibility = ["//visibility:public"],
 )

I just uploaded it in Ubuntu, lets see how the build goes.

G.

Attachment: OpenPGP_signature
Description: OpenPGP digital signature


Follow ups

References