Under gcc 4.8.1 on Lubuntu, (commit 9cfb7c36), I have compilation issues.
After running "make cstyle" then "make" the make
command throws a lot of warnings regarding print formatting, e.g.
btt.c:768:3: error: format ‘%zu’ expects argument of type ‘size_t’, but argument 6 has type ‘uint64_t’ [-Werror=format=]
Since the standard compilation includes the Werror flag, these
warnings get upgraded to errors and the build fails...
Obviously, I'd rather not start touching the code before I get a working compilation.
I'm assuming this is by design as part of the (ongoing?) redesign mentioned last week. Is there a stable version I should roll back to? Or am I just doing something dumb?
Joe
Seems like you're trying to compile it for 32-bit platform, are you?
Well, maybe it's not clearly stated in README and/or manpage, but 32-bit Linux is not our target. For now, we're focused on 64-bit platforms.
So, try to use 64-bit platform/compiler...
Anyway, I've noticed this problem already...
Obviously, "%zu" should not be used for "uint64_t" (%llu" would be better, I guess), but the actual problem is with "off_t", which - depending on the platform - can be "%ld" or "%lld".
Hmmm, seems like the best option is the explicit casting to "long long int" and "%lld" format.
I'll try to prepare an appropriate patch tomorrow.
Thans for feedback,
krzycz
--
You received this message because you are subscribed to the Google Groups "pmem" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
pmem+uns...@googlegroups.com.
To post to this group, send email to pm...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/pmem/2e079e22-0cc5-41fe-be51-33fc6bf85e73%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
---------------------------------------------------------------------
Intel
Technology Poland sp. z o.o.
ul. Słowackiego 173 | 80-298 Gdańsk | Sąd Rejonowy Gdańsk
Północ
| VII Wydział Gospodarczy Krajowego Rejestru Sądowego - KRS 101882 | NIP
957-07-52-316 | Kapitał zakładowy 200.000 PLN.
Ta wiadomość wraz z załącznikami jest przeznaczona dla określonego
adresata i może zawierać informacje poufne. W razie przypadkowego otrzymania
tej wiadomości, prosimy o powiadomienie nadawcy oraz trwałe jej usunięcie;
jakiekolwiek przeglądanie lub rozpowszechnianie jest zabronione.
This e-mail and any attachments may contain confidential material for the sole
use of the intended recipient(s). If you are not the intended recipient,
please
contact the sender and delete all copies; any review or distribution by others
is strictly prohibited.