Open cdecker opened 3 years ago
Interestingly this is detected only on Ubuntu 21.10, which may have a new version of gcc
(gcc-11-base armhf 11.2.0-1ubuntu2
) so most likely this is just a new warning that was added.
I get the same thing in:
❯ $CC --version
arm-unknown-linux-gnueabi-gcc (crosstool-NG 1.24.0.538_a21748b) 11.2.0
Do you happen to know how to ignore this warning? Since it is being treated as an error, it halts my compilation. Thanks.
If you want just to try to compile it, you can remove all the flags at compile time with ./configure BASE_WARNFLAGS=""
Hi @vincenzopalazzo , thank you very much! Since I got:
❯ ./configure BASE_WARNFLAGS=""
Unknown option 'BASE_WARNFLAGS='
Usage: ./configure [--reconfigure] [setting=value] [options]
If --reconfigure is specified, config.vars will set defaults.
Default settings:
CC (default arm-unknown-linux-gnueabi-gcc)
CWARNFLAGS (default -Wall -Wundef -Wmissing-prototypes -Wmissing-declarations -Wstrict-prototypes -Wold-style-definition -Werror -Wno-maybe-uninitialized)
COPTFLAGS (default -Og)
CDEBUGFLAGS (default -std=gnu11 -g -fstack-protector-strong)
CONFIGURATOR_CC (default arm-unknown-linux-gnueabi-gcc)
To override compile line for configurator itself
I used this instead:
./configure CWARNFLAGS=""
Thanks for opening my eyes to this flag.
@mxrtos sorry the suggestion contains a copy and paste typo, I hope you fix it :)
Issue and Steps to Reproduce
While building the PPA for armhf the following error was thrown:
[full logs]
This is at https://github.com/ElementsProject/lightning/tree/v0.10.1