Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warning escalated to error when cross-compiling with arm-linux-gnueabihf-gcc version 9.3.0 #22

Open
Th3Fanbus opened this issue Sep 23, 2020 · 0 comments

Comments

@Th3Fanbus
Copy link

I'm forwarding someone else's report. There's a warning which breaks building because of -Werror. Build log without -Werror:

[~/Projects/iotools]>ARCHFLAGS="-mfloat-abi=hard" CROSS_COMPILE=arm-linux-gnueabihf- make arm-linux-gnueabihf-gcc -Wall -D_GNU_SOURCE -DVER_MAJOR=1 -DVER_MINOR=6 -mfloat-abi=hard -static -O0 -ggdb -c -o cmos_rw.o cmos_rw.c arm-linux-gnueabihf-gcc -Wall -D_GNU_SOURCE -DVER_MAJOR=1 -DVER_MINOR=6 -mfloat-abi=hard -static -O0 -ggdb -c -o commands.o commands.c arm-linux-gnueabihf-gcc -Wall -D_GNU_SOURCE -DVER_MAJOR=1 -DVER_MINOR=6 -mfloat-abi=hard -static -O0 -ggdb -c -o io_rw.o io_rw.c arm-linux-gnueabihf-gcc -Wall -D_GNU_SOURCE -DVER_MAJOR=1 -DVER_MINOR=6 -mfloat-abi=hard -static -O0 -ggdb -c -o logic.o logic.c arm-linux-gnueabihf-gcc -Wall -D_GNU_SOURCE -DVER_MAJOR=1 -DVER_MINOR=6 -mfloat-abi=hard -static -O0 -ggdb -c -o misc.o misc.c In file included from misc.c:33: misc.c:261:29: warning: ‘cpuid_params’ defined but not used [-Wunused-const-variable=] 261 | MAKE_PREREQ_PARAMS_VAR_ARGS(cpuid_params, 3, 4, "<cpu> <function> [index]", 0); | ^~~~~~~~~~~~ commands.h:77:36: note: in definition of macro ‘MAKE_PREREQ_PARAMS_VAR_ARGS’ 77 | static const struct prereq_params name_ = \ | ^~~~~ arm-linux-gnueabihf-gcc -Wall -D_GNU_SOURCE -DVER_MAJOR=1 -DVER_MINOR=6 -mfloat-abi=hard -static -O0 -ggdb -c -o mmio_rw.o mmio_rw.c arm-linux-gnueabihf-gcc -Wall -D_GNU_SOURCE -DVER_MAJOR=1 -DVER_MINOR=6 -mfloat-abi=hard -static -O0 -ggdb -c -o msr.o msr.c arm-linux-gnueabihf-gcc -Wall -D_GNU_SOURCE -DVER_MAJOR=1 -DVER_MINOR=6 -mfloat-abi=hard -static -O0 -ggdb -c -o pci_rw.o pci_rw.c arm-linux-gnueabihf-gcc -Wall -D_GNU_SOURCE -DVER_MAJOR=1 -DVER_MINOR=6 -mfloat-abi=hard -static -O0 -ggdb -c -o scom.o scom.c arm-linux-gnueabihf-gcc -Wall -D_GNU_SOURCE -DVER_MAJOR=1 -DVER_MINOR=6 -mfloat-abi=hard -static -O0 -ggdb -c -o smbus_rw.o smbus_rw.c arm-linux-gnueabihf-gcc -Wall -D_GNU_SOURCE -DVER_MAJOR=1 -DVER_MINOR=6 -mfloat-abi=hard -static -O0 -ggdb -c -o iotools.o iotools.c arm-linux-gnueabihf-gcc -Wall -D_GNU_SOURCE -DVER_MAJOR=1 -DVER_MINOR=6 -mfloat-abi=hard -static -O0 -ggdb -o iotools iotools.o cmos_rw.o commands.o io_rw.o logic.o misc.o mmio_rw.o msr.o pci_rw.o scom.o smbus_rw.o

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant