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

2023-01-05 Thread Gianfranco Costamagna
Hello,

>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].

yes, indeed, fixing underlinking under grpc is the best way to move forward



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


https://autopkgtest.ubuntu.com/results/autopkgtest-lunar/lunar/amd64/b/bazel-bootstrap/20230105_131200_98a59@/log.gz

Looks like its failing in the very same way!

G.



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

2023-01-04 Thread Olek Wojnar

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", 


"-labsl_str_format_internal", "-labsl_synchronization", 



"-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


OpenPGP_signature
Description: OpenPGP digital signature


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

2023-01-04 Thread Gianfranco Costamagna

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 
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.


OpenPGP_signature
Description: OpenPGP digital signature


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

2022-12-29 Thread Debian Bug Tracking System
Processing control commands:

> tag -1 moreinfo
Bug #1027112 [src:bazel-bootstrap] bazel-bootstrap: 
/usr/include/absl/synchronization/mutex.h:550: error: undefined reference to 
'absl::debian3::Mutex::Unlock()'
Added tag(s) moreinfo.

-- 
1027112: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1027112
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems



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

2022-12-29 Thread Olek Wojnar

Control: tag -1 moreinfo

Hi Sebastian and thanks for the bug report.


On 12/27/22 18:15, Sebastian Ramacher wrote:

Source: bazel-bootstrap
Version: 4.2.3+ds-1
Severity: serious
Tags: ftbfs
Justification: fails to build from source (but built successfully in the past)
X-Debbugs-Cc: sramac...@debian.org

https://buildd.debian.org/status/fetch.php?pkg=bazel-bootstrap&arch=amd64&ver=4.2.3%2Bds-1%2Bb1&stamp=1671977092&raw=0

␛[1A␛[K␛[31m␛[1mERROR: ␛[0m/<>/src/main/cpp/BUILD:91:10: Linking 
src/main/cpp/client failed: (Exit 1): gcc failed: error executing command
   (cd /tmp/bazel_hloBSNSM/out/execroot/io_bazel && \
   exec env - \
 CCACHE_DISABLE=1 \
 CCACHE_TEMPDIR=/<>/debian/ccachetmp \
 LC_ALL=C \
 
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games \
 PWD=/proc/self/cwd \
   /usr/bin/gcc @bazel-out/k8-dbg/bin/src/main/cpp/client-2.params)
Execution platform: //:default_host_platform
␛[32m[111 / 127]␛[0m 3 actions running
 //src/main/java/com/google/devtools/build/lib/bazel:BazelServer; 5s local
 JavacBootstrap .../devtools/build/singlejar/libbootstrap.jar; 2s local
 JavacBootstrap .../devtools/build/buildjar/libstarlark-deps.jar; 2s local

␛[1A␛[K
␛[1A␛[K
␛[1A␛[K
␛[1A␛[K/usr/include/grpcpp/completion_queue.h:119: error: undefined reference 
to 'absl::debian3::Mutex::~Mutex()'
/usr/include/grpcpp/completion_queue.h:119: error: undefined reference to 
'absl::debian3::Mutex::~Mutex()'
/usr/include/grpcpp/completion_queue.h:119: error: undefined reference to 
'absl::debian3::Mutex::~Mutex()'
/usr/include/grpcpp/completion_queue.h:119: error: undefined reference to 
'absl::debian3::Mutex::~Mutex()'
/usr/include/absl/synchronization/mutex.h:533: error: undefined reference to 
'absl::debian3::Mutex::Lock()'
/usr/include/absl/synchronization/mutex.h:550: error: undefined reference to 
'absl::debian3::Mutex::Unlock()'
/usr/include/absl/synchronization/mutex.h:550: error: undefined reference to 
'absl::debian3::Mutex::Unlock()'
/usr/include/absl/synchronization/mutex.h:533: error: undefined reference to 
'absl::debian3::Mutex::Lock()'
/usr/include/absl/synchronization/mutex.h:550: error: undefined reference to 
'absl::debian3::Mutex::Unlock()'
/usr/include/absl/synchronization/mutex.h:550: error: undefined reference to 
'absl::debian3::Mutex::Unlock()'
collect2: error: ld returned 1 exit status
␛[32m[111 / 127]␛[0m 3 actions running



I'm talking to László about this because it seems to be connected to the 
ongoing grpc transition. Hopefully we can figure something out soon!



-Olek



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

2022-12-27 Thread Sebastian Ramacher
Source: bazel-bootstrap
Version: 4.2.3+ds-1
Severity: serious
Tags: ftbfs
Justification: fails to build from source (but built successfully in the past)
X-Debbugs-Cc: sramac...@debian.org

https://buildd.debian.org/status/fetch.php?pkg=bazel-bootstrap&arch=amd64&ver=4.2.3%2Bds-1%2Bb1&stamp=1671977092&raw=0

␛[1A␛[K␛[31m␛[1mERROR: ␛[0m/<>/src/main/cpp/BUILD:91:10: Linking 
src/main/cpp/client failed: (Exit 1): gcc failed: error executing command 
  (cd /tmp/bazel_hloBSNSM/out/execroot/io_bazel && \
  exec env - \
CCACHE_DISABLE=1 \
CCACHE_TEMPDIR=/<>/debian/ccachetmp \
LC_ALL=C \

PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games \
PWD=/proc/self/cwd \
  /usr/bin/gcc @bazel-out/k8-dbg/bin/src/main/cpp/client-2.params)
Execution platform: //:default_host_platform
␛[32m[111 / 127]␛[0m 3 actions running
//src/main/java/com/google/devtools/build/lib/bazel:BazelServer; 5s local
JavacBootstrap .../devtools/build/singlejar/libbootstrap.jar; 2s local
JavacBootstrap .../devtools/build/buildjar/libstarlark-deps.jar; 2s local

␛[1A␛[K
␛[1A␛[K
␛[1A␛[K
␛[1A␛[K/usr/include/grpcpp/completion_queue.h:119: error: undefined reference 
to 'absl::debian3::Mutex::~Mutex()'
/usr/include/grpcpp/completion_queue.h:119: error: undefined reference to 
'absl::debian3::Mutex::~Mutex()'
/usr/include/grpcpp/completion_queue.h:119: error: undefined reference to 
'absl::debian3::Mutex::~Mutex()'
/usr/include/grpcpp/completion_queue.h:119: error: undefined reference to 
'absl::debian3::Mutex::~Mutex()'
/usr/include/absl/synchronization/mutex.h:533: error: undefined reference to 
'absl::debian3::Mutex::Lock()'
/usr/include/absl/synchronization/mutex.h:550: error: undefined reference to 
'absl::debian3::Mutex::Unlock()'
/usr/include/absl/synchronization/mutex.h:550: error: undefined reference to 
'absl::debian3::Mutex::Unlock()'
/usr/include/absl/synchronization/mutex.h:533: error: undefined reference to 
'absl::debian3::Mutex::Lock()'
/usr/include/absl/synchronization/mutex.h:550: error: undefined reference to 
'absl::debian3::Mutex::Unlock()'
/usr/include/absl/synchronization/mutex.h:550: error: undefined reference to 
'absl::debian3::Mutex::Unlock()'
collect2: error: ld returned 1 exit status
␛[32m[111 / 127]␛[0m 3 actions running

Cheers
-- 
Sebastian Ramacher