Bug #78950 FTBFS: narrowing conversion of '-1' from 'int' to 'char'
Submitted: 24 Oct 2015 1:51 Modified: 5 Feb 2018 8:53
Reporter: Dmitry Smirnov Email Updates:
Status: Won't fix Impact on me:
None 
Category:MySQL Workbench Severity:S1 (Critical)
Version:6.3.4 OS:Debian ("unstable")
Assigned to: CPU Architecture:Any

[24 Oct 2015 1:51] Dmitry Smirnov
Description:
FTBFS on non-x86 architectures (arm64, armel, armhf, powerpc, ppc64el, s390c) with multiple errors:

~~~~
    library/sql.parser/source/ctype-utf8.cpp:3890:3: error: narrowing conversion of '-1' from 'int' to 'char' inside { } [-Wnarrowing]
~~~~

It may (or may not be) related to added build option "-std=c++11".

How to repeat:
See build logs at https://buildd.debian.org/status/package.php?p=mysql-workbench&suite=sid

also 

https://buildd.debian.org/status/fetch.php?pkg=mysql-workbench&arch=arm64&ver=6.3.4%2Bdfsg...

https://buildd.debian.org/status/fetch.php?pkg=mysql-workbench&arch=s390x&ver=6.3.4%2Bdfsg...
[1 Nov 2015 2:22] Dmitry Smirnov
Corresponding Debian bug: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=803618
[1 Nov 2015 5:37] Dmitry Smirnov
proposed patch

Attachment: specify-char-signedness.patch (text/x-diff), 777 bytes.

[5 Feb 2018 8:53] Mike Lischke
This comes from MySQL server code we copied over to the Workbench repo. If at all it must be fixed by the server team. However, we plan to remove the yacc based parser (for which this code is required), so it makes no sense to spend much time on that code in Workbench.