← 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()'

 

Hi there,

On 1/4/23 09:51, Gianfranco Costamagna wrote:
Hello, FWIW I think I crafted a patch that might fix the issue (in a ugly and hard-coded way)

Thanks! It's always good to have options.

--- 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",
<snip>
"-labsl_str_format_internal", "-labsl_synchronization",
<snip>
"-labsl_log_severity"],
      visibility = ["//visibility:public"],
  )

Ah, I see. So you added the missing absl_synchronization linker flag to the bazel-bootstrap build process. I'm really curious to see if this works because from my (admittedly inexperienced) troubleshooting the problems seemed to be in the grpc package[1].

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

Well, I didn't have to wait long. From what I can see that build succeeded! Can you tell me if the autopkgtest succeeded?

-Olek

[1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1026937#15

Attachment: OpenPGP_signature
Description: OpenPGP digital signature


Follow ups

References