About the Ubuntu compile error [-Werror=pedantic]

Hi,
I bought a VIM pro board, and I am trying to build a UBUNTU MATE img file as provided by http://www.mediafire.com/file/b6mgy8wjrkmot46/Vim_Ubuntu-mate-16.04_V170220.7z

I got an error as following:
/home/hhc/project/khadas/ubuntu/u-boot/build/include/asm/arch/ddr_define.h:120:24: error: initializer element is not a constant expression [-Werror=pedantic]
#define DDR_FUNC (DDR_FUNC_D2PLL | \

what’s wrong with it?

gcc-linaro-aarch64-none-elf-4.8-2013.11_linux replace CROSS_COMPILE

I also meet this issue. So I use ‘gcc-linaro-aarch64-none-elf-4.8-2013.11_linux’ to replace ‘gcc-linaro-7.3.1-2018.05-x86_64_aarch64-linux-gnu’. But I found another issue:
aarch64-none-elf-gcc: internal compiler error: Segmentation fault (program cc1)
I tried to increase the memory size of the virtual machine, but it didn’t work.
How to fix this issue? Hope to receive your reply. Thanks!
@Frank, @Spikerguy

https://docs.khadas.com/linux/vim3/FenixScript.html

Hi, the website that you offered doesn’t have this issue.
The uboot source code and corresponding docker emgine I used are coming from https://github.com/BPI-SINOVOIP/BPI-M5-bsp
Is it ok? @numbqq

Sorry, I don’t know what you want to do, if you use VIM1, you can follow the documentation above to build the image. If not, I think it’s better to feedback the issue to corresponding forum.

Oh, ok. Anyway, thank you!