Summary: | sys-apps/readahead-list-1.20060421.1016-r1 : filelist-order.cxx:276:37: error: unable to find string literal operator ‘operator""fmt’ with ‘const char [3]’, ‘long unsigned int’ arguments | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Toralf Förster <toralf> |
Component: | Current packages | Assignee: | Robin Johnson <robbat2> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | base-system, gcc-porting, plevine457, rhill |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
See Also: | https://bugs.gentoo.org/show_bug.cgi?id=614624 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 582084 | ||
Attachments: |
emerge-history.txt
environment sys-apps:readahead-list-1.20060421.1016-r1:20160917-100545.log readahead-list-1.20060421.1016-gcc6.patch readahead-list-1.20060421.1016-warnings.patch readahead-list-1.20060421.1016-gcc6.patch |
Description
Toralf Förster
2016-09-17 12:25:32 UTC
Created attachment 446156 [details]
emerge-history.txt
Created attachment 446158 [details]
environment
Created attachment 446160 [details]
sys-apps:readahead-list-1.20060421.1016-r1:20160917-100545.log
toolchain: can you please point me to some useful document describing why the macro is no longer valid in GCC6? The C++11 "user-defined literals" feature allows custom suffixes to be added to literals, so that for example "Hello, world!"s creates a std::string object. This means that code relying on string concatenation of string literals and macros might fail to compile, for example using printf("%"PRIu64, uint64_value) is not valid in C++11, because PRIu64 is parsed as a literal suffix. To fix the code to compile in C++11 add whitespace between the string literal and the macro: printf("%" PRIu64, uint64_value). https://gcc.gnu.org/gcc-6/porting_to.html Created attachment 446306 [details, diff]
readahead-list-1.20060421.1016-gcc6.patch
Created attachment 446308 [details, diff]
readahead-list-1.20060421.1016-warnings.patch
Here's an untested patch that fixes most of the warnings.
Created attachment 447292 [details, diff]
readahead-list-1.20060421.1016-gcc6.patch
Only one space needs to be added to one line.
[master 47aaf00] sys-apps/readahead-list: Fix gcc6 support, bug #594092 by Peter Levine, also stop using base.eclass 3 files changed, 77 insertions(+), 2 deletions(-) create mode 100644 sys-apps/readahead-list/files/readahead-list-1.20060421.1016-gcc6.patch create mode 100644 sys-apps/readahead-list/readahead-list-1.20060421.1016-r2.ebuild |