Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 639554 - dev-embedded/cpik-0.7.2_p4 - In file included from lexer.cpp:21:0: utility.h:78:20: error: cannot convert 'std::basic_istream<char>::__istream_type {aka std::basic_istream<char>}' to 'bool' in return
Summary: dev-embedded/cpik-0.7.2_p4 - In file included from lexer.cpp:21:0: utility.h:...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Rafael Martins (RETIRED)
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2017-12-03 03:08 UTC by Thomas Posch
Modified: 2018-04-08 20:50 UTC (History)
0 users

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


Attachments
cast.patch (cast.patch,441 bytes, patch)
2017-12-03 03:08 UTC, Thomas Posch
Details | Diff
emerge --info (emerge-info.txt,21.08 KB, text/plain)
2017-12-03 03:08 UTC, Thomas Posch
Details
dev-embedded:cpik-0.7.2_p4:20171202-092416.log (dev-embedded:cpik-0.7.2_p4:20171202-092416.log,10.11 KB, text/plain)
2017-12-03 03:09 UTC, Thomas Posch
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Posch 2017-12-03 03:08:25 UTC
Created attachment 507802 [details, diff]
cast.patch

dev-embedded/cpik-0.7.2_p4 fails to build with gcc-6.4.0:

In file included from lexer.cpp:21:0:
utility.h: In instantiation of static bool utility::stringTo(const string&, T&) [with T = float; std::__cxx11::string = std::__cxx11::basic_string<char>]:
lexer.cpp:255:58:   required from here
utility.h:78:20: error: cannot convert 'std::basic_istream<char>::__istream_type {aka std::basic_istream<char>}' to 'bool' in return
        return is >> result ;

Attached patch fixes the problem.
Comment 1 Thomas Posch 2017-12-03 03:08:57 UTC
Created attachment 507804 [details]
emerge --info
Comment 2 Thomas Posch 2017-12-03 03:09:27 UTC
Created attachment 507806 [details]
dev-embedded:cpik-0.7.2_p4:20171202-092416.log
Comment 3 Larry the Git Cow gentoo-dev 2018-04-08 20:50:14 UTC
The bug has been closed via the following commit(s):

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

commit 1257a57be6a6d27551914d9d37490a1ef9755fd0
Author:     Andreas Sturmlechner <asturm@gentoo.org>
AuthorDate: 2018-04-08 20:46:55 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2018-04-08 20:49:58 +0000

    dev-embedded/cpik: 0.7.4_p4 version bump, use qtcore:5, fix GCC-6
    
    Thanks-to: Thomas Posch <bugs.gentoo.org@online.posch.name>
    Bug: https://bugs.gentoo.org/644402
    Closes: https://bugs.gentoo.org/639554
    Package-Manager: Portage-2.3.28, Repoman-2.3.9

 dev-embedded/cpik/Manifest                       |  1 +
 dev-embedded/cpik/cpik-0.7.4_p4.ebuild           | 46 ++++++++++++++++++++++++
 dev-embedded/cpik/files/cpik-0.7.4_p4-gcc6.patch | 12 +++++++
 3 files changed, 59 insertions(+)