[Debian-med-packaging] Bug#895259: libzstd: FTBFS on riscv64: undefined reference to `__atomic_compare_exchange_1'

Adam Borowski kilobyte at angband.pl
Mon Apr 9 01:09:44 BST 2018


Source: libzstd
Version: 1.3.3+dfsg-1
Severity: normal
Tags: patch
User: debian-riscv at lists.debian.org
Usertags: riscv64

Hi!
Here's a patch to fix FTBFS on riscv64.

Submitted upstream as https://github.com/facebook/zstd/pull/1103, but as
this library has some interesting rbdeps, it'd be nice if you could apply
this without waiting for an official release.


Meow!
-- System Information:
Debian Release: buster/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: riscv64

Kernel: Linux 4.16.1+ (SMP w/6 CPU cores)
Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE=C.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: unable to detect
-------------- next part --------------
--- libzstd-1.3.3+dfsg.orig/contrib/pzstd/Makefile
+++ libzstd-1.3.3+dfsg/contrib/pzstd/Makefile
@@ -50,7 +50,7 @@ GTEST_LIB  = -L googletest/build/googlem
 LIBS       =
 
 # Compilation commands
-LD_COMMAND  = $(CXX) $^          $(ALL_LDFLAGS) $(LIBS) -lpthread -o $@
+LD_COMMAND  = $(CXX) $^          $(ALL_LDFLAGS) $(LIBS) -pthread -o $@
 CC_COMMAND  = $(CC)  $(DEPFLAGS) $(ALL_CFLAGS)   -c $<  -o $@
 CXX_COMMAND = $(CXX) $(DEPFLAGS) $(ALL_CXXFLAGS) -c $<  -o $@
 


More information about the Debian-med-packaging mailing list