u-boot icon indicating copy to clipboard operation
u-boot copied to clipboard

build error on new version gcc

Open matianfu opened this issue 5 years ago • 2 comments

On Ubuntu 19.10 or Debian 10, where aarch64-linux-gnu-gcc version is 8.3.

In file included from drivers/mtd/spi/spi_flash.c:18:
include/linux/log2.h:19:1: error: ignoring attribute ‘noreturn’ because it conflicts with attribute ‘const’ [-Werror=attributes]
 int ____ilog2_NaN(void);
 ^~~

https://patchwork.ozlabs.org/patch/909905/

This patch is required. Other problem could be supressed by modifying CFLAGS in Makefile.

matianfu avatar Jul 05 '19 07:07 matianfu