Bug#950983: clickhouse FTBFS in bullseye/sid

2020-03-04 Thread Alexander Gerasiov
On Tue, 3 Mar 2020 08:49:27 -0800
Stefano Rivera  wrote:

> Hi Jochen (2020.02.09_00:40:36_-0800)
> 
> Control: tag -1 + patch
> 
> I notice that Ubuntu has a patch for this:
> https://launchpadlibrarian.net/466815449/clickhouse_18.16.1+ds-5_18.16.1+ds-5ubuntu1.diff.gz
> 
> It's building on amd64 and ppc64el:
> https://launchpad.net/ubuntu/+source/clickhouse/18.16.1+ds-5ubuntu1
> 
> SR
> 

Thanks, I'll take a look on it on weekend.

-- 
Best regards,
 Alexander Gerasiov

 Contacts:
 e-mail: a...@gerasiov.net  WWW: http://gerasiov.net  TG/Skype: gerasiov
 PGP fingerprint: 04B5 9D90 DF7C C2AB CD49  BAEA CA87 E9E8 2AAC 33F1



Bug#950983: clickhouse FTBFS in bullseye/sid

2020-03-03 Thread Stefano Rivera
Hi Jochen (2020.02.09_00:40:36_-0800)

Control: tag -1 + patch

I notice that Ubuntu has a patch for this:
https://launchpadlibrarian.net/466815449/clickhouse_18.16.1+ds-5_18.16.1+ds-5ubuntu1.diff.gz

It's building on amd64 and ppc64el:
https://launchpad.net/ubuntu/+source/clickhouse/18.16.1+ds-5ubuntu1

SR

-- 
Stefano Rivera
  http://tumbleweed.org.za/
  +1 415 683 3272



Bug#950983: clickhouse FTBFS in bullseye/sid

2020-02-09 Thread Jochen Sprickerhof
Source: clickhouse
Version: 18.16.1+ds-5
Severity: serious
Tags: ftbfs

Hi,

clickhouse fails to build from source in bullseye/sid:

https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/clickhouse.html

/build/1st/clickhouse-18.16.1+ds/dbms/src/Functions/intDiv.cpp:55:75: error: no 
match for 'operator/' (operand types are '__m128i' {aka '__vector(2) long long 
int'} and 'libdivide::divider')
   55 | _mm_loadu_si128(reinterpret_cast(a_pos)) / divider);
  | 
~~^
In file included from 
/build/1st/clickhouse-18.16.1+ds/dbms/src/Functions/intDiv.cpp:9:
/usr/include/libdivide.h:2039:3: note: candidate: 'template 
T libdivide::operator/(T, const libdivide::divider&)'
 2039 | T operator/(T n, const divider& div) {
  |   ^~~~
/usr/include/libdivide.h:2039:3: note:   template argument 
deduction/substitution failed:
/build/1st/clickhouse-18.16.1+ds/dbms/src/Functions/intDiv.cpp:55:75: note:   
deduced conflicting types for parameter 'T' ('__vector(2) long long int' and 
'unsigned int')
   55 | _mm_loadu_si128(reinterpret_cast(a_pos)) / divider);
  | 
~~^

I was able to reproduce this on my own system as well.
Would be great if you could fix this soon as it's blocking the poco
transition. One simple workaround would be to remove the #if __SSE2__
block (line 48-60) in intDiv.cpp as it's only a SSE2 optimization and
the generic case is below.

Cheers Jochen

-- System Information:
Debian Release: bullseye/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.4.0-3-amd64 (SMP w/8 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), 
LANGUAGE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled