Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 916994 - app-crypt/moolticute-1.01.0 - [slibtool] src/MPDeviceBleImpl.cpp: error: invalid conversion from int to const char [-fpermissive]
Summary: app-crypt/moolticute-1.01.0 - [slibtool] src/MPDeviceBleImpl.cpp: error: inva...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Pierre-Olivier Mercier
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks: gcc-14
  Show dependency tree
 
Reported: 2023-11-07 09:22 UTC by Toralf Förster
Modified: 2023-12-12 02:50 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,17.88 KB, text/plain)
2023-11-07 09:22 UTC, Toralf Förster
Details
app-crypt:moolticute-1.01.0:20231106-224707.log.xz (app-crypt:moolticute-1.01.0:20231106-224707.log.xz,10.42 KB, application/x-xz)
2023-11-07 09:22 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,59.08 KB, text/plain)
2023-11-07 09:22 UTC, Toralf Förster
Details
environment (environment,70.87 KB, text/plain)
2023-11-07 09:22 UTC, Toralf Förster
Details
etc.clang.tar.xz (etc.clang.tar.xz,1.04 KB, application/x-xz)
2023-11-07 09:22 UTC, Toralf Förster
Details
etc.portage.tar.xz (etc.portage.tar.xz,20.66 KB, application/x-xz)
2023-11-07 09:22 UTC, Toralf Förster
Details
qlist-info.txt (qlist-info.txt,131.99 KB, text/plain)
2023-11-07 09:22 UTC, Toralf Förster
Details
temp.tar.xz (temp.tar.xz,26.34 KB, application/x-xz)
2023-11-07 09:22 UTC, Toralf Förster
Details
casts 0 to char* using QByteArray::number() (fix-return-type.patch,439 bytes, patch)
2023-12-10 21:15 UTC, Christopher Fore
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2023-11-07 09:22:29 UTC
too long lines were shrinked:

x86_64-pc-linux-gnu-g++ -c -O2 -pipe -march=native -fno-diagnostics-color -std=gnu++11 -Wall -Wextra -D_REENTRANT -fPIC -DMC_INSTALL_PREFIX=\"/usr\" -DQT_NO_DEBUG -DQT_WEBSOCKETS_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I. -Isrc -Isrc/MessageProtocol -Isrc/Mooltipass -Isrc/Settings -Isrc/CyoEncode -Isrc/
x86_64-pc-linux-gnu-g++ -c -O2 -pipe -march=native -fno-diagnostics-color -std=gnu++11 -Wall -Wextra -D_REENTRANT -fPIC -DQT_DEPRECATED_WARNINGS -DSRCDIR=\"/var/tmp/portage/app-crypt/moolticute-1.01.0/work/moolticute-1.01.0/tests/\" -DQT_NO_DEBUG -DQT_TESTLIB_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_N
x86_64-pc-linux-gnu-g++ -c -O2 -pipe -march=native -fno-diagnostics-color -std=gnu++11 -Wall -Wextra -D_REENTRANT -fPIC -DQT_DEPRECATED_WARNINGS -DSRCDIR=\"/var/tmp/portage/app-crypt/moolticute-1.01.0/work/moolticute-1.01.0/tests/\" -DQT_NO_DEBUG -DQT_TESTLIB_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_N
x86_64-pc-linux-gnu-g++ -c -O2 -pipe -march=native -fno-diagnostics-color -std=gnu++11 -Wall -Wextra -D_REENTRANT -fPIC -DQT_DEPRECATED_WARNINGS -DSRCDIR=\"/var/tmp/portage/app-crypt/moolticute-1.01.0/work/moolticute-1.01.0/tests/\" -DQT_NO_DEBUG -DQT_TESTLIB_LIB -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_N
x86_64-pc-linux-gnu-g++ -c -O2 -pipe -march=native -fno-diagnostics-color -std=gnu++11 -Wall -Wextra -D_REENTRANT -fPIC -DMC_INSTALL_PREFIX=\"/usr\" -DQT_NO_DEBUG -DQT_WEBSOCKETS_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -I. -Isrc -Isrc/MessageProtocol -Isrc/Mooltipass -Isrc/Settings -Isrc/CyoEncode -Isrc/
src/MPDeviceBleImpl.cpp: In member function QVector<QByteArray> MPDeviceBleImpl::processReceivedStartNodes(const QByteArray&) const:
src/MPDeviceBleImpl.cpp:738:18: error: invalid conversion from int to const char* [-fpermissive]
  738 |         return {0};
      |                  ^

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop-20231105-210116

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-10
 [2] x86_64-pc-linux-gnu-14 *
clang/llvm (if any):
clang version 17.0.4
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/17/bin
Configuration file: /etc/clang/x86_64-pc-linux-gnu-clang.cfg
/usr/lib/llvm/17
17.0.4
Python 3.11.6
Available Ruby profiles:
  [1]   ruby31 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.73.0 *
The following VMs are available for generation-2:
1)	Eclipse Temurin JDK 21.0.1_p12 [openjdk-bin-21]
*)	Eclipse Temurin JDK 8.382_p05 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8  system-vm
  [2]   openjdk-bin-21 

The Glorious Glasgow Haskell Compilation System, version 9.2.8
php cli (if any):
go version go1.21.3 linux/amd64

  HEAD of ::gentoo
commit 62f30d3f4c34af2774b2007bd91203fa1c291cbc
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Mon Nov 6 21:46:59 2023 +0000

    2023-11-06 21:46:59 UTC

emerge -qpvO app-crypt/moolticute
[ebuild  N    ] app-crypt/moolticute-1.01.0  USE="-systemd"
Comment 1 Toralf Förster gentoo-dev 2023-11-07 09:22:30 UTC
Created attachment 874201 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2023-11-07 09:22:31 UTC
Created attachment 874202 [details]
app-crypt:moolticute-1.01.0:20231106-224707.log.xz
Comment 3 Toralf Förster gentoo-dev 2023-11-07 09:22:32 UTC
Created attachment 874203 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2023-11-07 09:22:34 UTC
Created attachment 874204 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2023-11-07 09:22:34 UTC
Created attachment 874205 [details]
etc.clang.tar.xz
Comment 6 Toralf Förster gentoo-dev 2023-11-07 09:22:35 UTC
Created attachment 874206 [details]
etc.portage.tar.xz
Comment 7 Toralf Förster gentoo-dev 2023-11-07 09:22:37 UTC
Created attachment 874207 [details]
qlist-info.txt
Comment 8 Toralf Förster gentoo-dev 2023-11-07 09:22:38 UTC
Created attachment 874208 [details]
temp.tar.xz
Comment 9 Christopher Fore 2023-12-10 21:15:58 UTC
Created attachment 878652 [details, diff]
casts 0 to char* using QByteArray::number()

I'll check to see if this is fixed upstream and if not, send it there to see if that is the proper way to convert it.
Comment 10 Christopher Fore 2023-12-12 01:54:39 UTC
PR upstream was merged so hopefully it will be in the next release.
Comment 11 Larry the Git Cow gentoo-dev 2023-12-12 02:50:24 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=be9bca3aeee5a738aefa50b2b4e6bf7e8a00a003

commit be9bca3aeee5a738aefa50b2b4e6bf7e8a00a003
Author:     Christopher Fore <csfore@posteo.net>
AuthorDate: 2023-12-10 22:10:47 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-12-12 02:49:23 +0000

    app-crypt/moolticute: add 1.03.0, fix compile on GCC 14
    
    The patch attached fixes compilation on GCC 14 and has been sent
    upstream.
    
    Upstream PR: https://github.com/mooltipass/moolticute/pull/1204
    
    Closes: https://bugs.gentoo.org/916994
    Signed-off-by: Christopher Fore <csfore@posteo.net>
    Closes: https://github.com/gentoo/gentoo/pull/34225
    Signed-off-by: Sam James <sam@gentoo.org>

 app-crypt/moolticute/Manifest                      |  1 +
 .../files/moolticute-1.03.0-fix-return-type.patch  | 13 ++++
 app-crypt/moolticute/moolticute-1.03.0.ebuild      | 72 ++++++++++++++++++++++
 3 files changed, 86 insertions(+)