Code Monkey home page Code Monkey logo

Comments (2)

sbates130272 avatar sbates130272 commented on June 24, 2024

There is an issue compiling for ppc64el as of 62bbb67.

batesste@ubuntu-ppc:~/nvme-cli$ make nvme
cc -c -I -m64 -std=gnu99 -O2 -g -pthread -D_GNU_SOURCE -D_REENTRANT -Wall -Werror ./src/argconfig.c
cc -c -I -m64 -std=gnu99 -O2 -g -pthread -D_GNU_SOURCE -D_REENTRANT -Wall -Werror ./src/suffix.c
cc -I -m64 -std=gnu99 -O2 -g -pthread -D_GNU_SOURCE -D_REENTRANT -Wall -Werror nvme.c -lm -o nvme argconfig.o suffix.o
nvme.c: In function ‘show_error_log’:
nvme.c:167:3: error: format ‘%lld’ expects argument of type ‘long long int’, but argument 2 has type ‘__u64’ [-Werror=format=]
printf("error_count : %lld\n", err_log[i].error_count);
^
nvme.c:172:3: error: format ‘%llx’ expects argument of type ‘long long unsigned int’, but argument 2 has type ‘__u64’ [-Werror=format=]
printf("lba : %#llx\n", err_log[i].lba);
^
nvme.c: In function ‘show_nvme_resv_report’:
nvme.c:195:3: error: format ‘%llx’ expects argument of type ‘long long unsigned int’, but argument 2 has type ‘__le64’ [-Werror=format=]
printf(" hostid : %llx\n", le64toh(status->regctl_ds[i].hostid));
^
nvme.c:196:3: error: format ‘%llx’ expects argument of type ‘long long unsigned int’, but argument 2 has type ‘__le64’ [-Werror=format=]
printf(" rkey : %llx\n", le64toh(status->regctl_ds[i].rkey));
^
nvme.c: In function ‘show_fw_log’:
nvme.c:222:7: error: format ‘%llx’ expects argument of type ‘long long unsigned int’, but argument 3 has type ‘__u64’ [-Werror=format=]
fw_to_string(fw_log->frs[i]));
^
nvme.c: In function ‘show_lba_range’:
nvme.c:753:3: error: format ‘%llx’ expects argument of type ‘long long unsigned int’, but argument 2 has type ‘__u64’ [-Werror=format=]
printf("slba : %#llx", lbrt[i].slba);
^
nvme.c:754:3: error: format ‘%llx’ expects argument of type ‘long long unsigned int’, but argument 2 has type ‘__u64’ [-Werror=format=]
printf("nlb : %#llx", lbrt[i].nlb);
^
nvme.c: In function ‘show_nvme_id_ns’:
nvme.c:903:2: error: format ‘%llx’ expects argument of type ‘long long unsigned int’, but argument 2 has type ‘__le64’ [-Werror=format=]
printf("nsze : %#llx\n", ns->nsze);
^
nvme.c:904:2: error: format ‘%llx’ expects argument of type ‘long long unsigned int’, but argument 2 has type ‘__le64’ [-Werror=format=]
printf("ncap : %#llx\n", ns->ncap);
^
nvme.c:905:2: error: format ‘%llx’ expects argument of type ‘long long unsigned int’, but argument 2 has type ‘__le64’ [-Werror=format=]
printf("nuse : %#llx\n", ns->nuse);
^
cc1: all warnings being treated as errors
Makefile:25: recipe for target 'nvme' failed
make: *** [nvme] Error 1

from nvme-cli.

keithbusch avatar keithbusch commented on June 24, 2024

I think all the le*toh's are in place now. Will close this.

from nvme-cli.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.