Am 06.07.2017 um 10:14 schrieb Samuel Rakitničan:
Hi,
I am building CAMotics with cbang builds successfully for i686 and x86_64 platforms, I am
trying to make it work for other architectures, in particular armv7 and ppc64 (there is no
v8-314 available for others).
So while testing fixes on copr I've stumbled upon an issue of what I am not sure
about, the build for ppc64le pass for f24-f27 but fails on epel7.
src/cbang/tar/TarHeader.cpp:226:43: error: format '%llo' expects argument of type
'long long unsigned int', but argument 4 has type 'uint64_t {aka long unsigned
int}' [-Werror=format=]
sprintf(buf, "%0*" PRIo64, length - 1, n);
^
copr test:
https://copr.fedorainfracloud.org/coprs/srakitnican/ppc64le-tests/build/5...
cbang:
https://github.com/CauldronDevelopmentLLC/cbang/
Is this really an issue in cbang?
Best regards,
Samuel Raktiničan
Patch that line to read `sprintf(buf, "%0*" PRIo64, static_cast<long
long unsigned int>(length - 1), n);` and you're cool. It might be
related to how that particular gcc version in EPEL7 inherits those
atomic data-types.