Bug#895259: libzstd: FTBFS on riscv64: undefined reference to `__atomic_compare_exchange_1'

2018-04-09 Thread Andreas Tille
> 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.

libzstd_1.3.4+dfsg.orig.tar.xz is only available in NEW

=> once libzstd_1.3.4+dfsg-1 and just pushed libzstd_1.3.4+dfsg-2 have
passed new the fix should be available.

Kind regards

   Andreas.


-- 
http://fam-tille.de



Bug#895259: libzstd: FTBFS on riscv64: undefined reference to `__atomic_compare_exchange_1'

2018-04-08 Thread Adam Borowski
Source: libzstd
Version: 1.3.3+dfsg-1
Severity: normal
Tags: patch
User: debian-ri...@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
--- 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 $@