Summary: | app-arch/pbzip2-1.1.12: with clang: pbzip2.cpp: error: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wreserved-user-defined-literal] | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Frederik Pfautsch <bugs> |
Component: | Current packages | Assignee: | Lars Wendler (Polynomial-C) (RETIRED) <polynomial-c> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | bugs, jstein |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
URL: | https://bugs.launchpad.net/pbzip2/+bug/1746369 | ||
See Also: | https://launchpad.net/bugs/1746369 | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
app-arch:pbzip2 build log
emerge info |
Created attachment 636188 [details]
emerge info
this was fixed in 1.1.13 years ago https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5d73a5b4db1ef7c34466b82807be8e28af0a44de |
Created attachment 636186 [details] app-arch:pbzip2 build log From the compile log: <...> clang++ -O2 -pipe -fsanitize=safe-stack -fuse-ld=ld -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -DUSE_STACKSIZE_CUSTOMIZATION -pthread -D_POSIX_PTHREAD_SEMANTICS -fsanitize=safe-stack pbzip2.cpp BZ2StreamScanner.cpp ErrorContext.cpp -o pbzip2 -lbz2 -lpthread pbzip2.cpp:1226:75: error: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wreserved-user-defined-literal] fprintf(stderr, "pbzip2: *WARNING: Compressed block size is large [%"PRIuMAX" bytes].\n", ^ pbzip2.cpp:1836:39: error: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wreserved-user-defined-literal] fprintf(stderr, " Output Size: %"PRIuMAX" bytes\n", (uintmax_t)CompressedSize); ^ pbzip2.cpp:2079:39: error: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wreserved-user-defined-literal] fprintf(stderr, " Output Size: %"PRIuMAX" bytes\n", (uintmax_t)CompressedSize); ^ pbzip2.cpp:2814:80: error: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wreserved-user-defined-literal] fprintf(stderr, "pbzip2: *ERROR: Could not initialize (OutputBuffer); size=%"PRIuMAX"! Aborting...\n", (uintmax_t)size); ^ pbzip2.cpp:4120:41: error: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wreserved-user-defined-literal] fprintf(stderr, " Input Size: %"PRIuMAX" bytes\n", (uintmax_t)InFileSize); ^ pbzip2.cpp:4242:65: error: invalid suffix on literal; C++11 requires a space between literal and identifier [-Wreserved-user-defined-literal] fprintf(stderr, "*Warning* Max memory limit increased to %"PRIuMAX" MB to support %d CPUs\n", (uintmax_t)((NumBufferedBlocksMax + (numCPU * 2)) * blockSize)/100000... ^ <...> Builds fine when using gcc instead of clang. clang --version: clang version 9.0.1 Target: x86_64-pc-linux-gnu Thread model: posix InstalledDir: /usr/lib/llvm/9/bin gcc --version: gcc (Gentoo 9.2.0-r2 p3) 9.2.0 Copyright (C) 2019 Free Software Foundation, Inc.