From 3f41db0efced4dd8ec320ed5842e8dd5b2308d2a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Soko=C5=82owski?= Date: Fri, 12 Apr 2024 01:08:21 +0300 Subject: [PATCH] fix(status-go): skip Nix shell use to avoid Glibc errors MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Linux builds on desktop are stuck with: ``` /usr/bin/ld: .../libstatus.so: undefined reference to `pthread_mutexattr_init@GLIBC_2.34' /usr/bin/ld: .../libstatus.so: undefined reference to `dlclose@GLIBC_2.34' /usr/bin/ld: .../libstatus.so: undefined reference to `pthread_detach@GLIBC_2.34' ``` Due to using old Glibc 2.34 from Ubuntu 22.04 while Nix uses 2.38. Signed-off-by: Jakub SokoĊ‚owski --- Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 585bfe8d5..b63451fb9 100644 --- a/Makefile +++ b/Makefile @@ -429,8 +429,9 @@ export STATUSGO_LIBDIR $(STATUSGO): | deps echo -e $(BUILD_MSG) "status-go" - + cd vendor/status-go && \ - $(MAKE) statusgo-shared-library $(STATUSGO_MAKE_PARAMS) $(HANDLE_OUTPUT) + # FIXME: Nix shell usage breaks builds due to Glibc mismatch. + $(MAKE) -C vendor/status-go statusgo-shared-library SHELL=/bin/sh \ + $(STATUSGO_MAKE_PARAMS) $(HANDLE_OUTPUT) status-go: $(STATUSGO)