This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Compiler/AM3352: U-boot build error

Part Number: AM3352

Tool/software: TI C/C++ Compiler

Hi Team,

How to solve "cc1: error: unrecognized command line option ‘-std=gnu11"  error?


will@Workstation:~/ti-processor-sdk-linux-am335x-evm-06.00.00.07$ make u-boot
===================================
Building U-boot
===================================
make -j 8 -C /home/will/ti-processor-sdk-linux-am335x-evm-06.00.00.07/board-support/u-boot-* CROSS_COMPILE=/home/will/ti-processor-sdk-linux-am335x-evm-06.00.00.07/linux-devkit/sysroots/x86_64-arago-linux/usr/bin/arm-linux-gnueabihf- am335x_evm_config
make[1]: Entering directory `/home/will/ti-processor-sdk-linux-am335x-evm-06.00.00.07/board-support/u-boot-2019.01+gitAUTOINC+8b90adfb16-g8b90adfb16'
HOSTCC scripts/basic/fixdep
cc1: error: unrecognized command line option ‘-std=gnu11’
make[2]: *** [scripts/basic/fixdep] Error 1
make[1]: *** [scripts_basic] Error 2
make[1]: Leaving directory `/home/will/ti-processor-sdk-linux-am335x-evm-06.00.00.07/board-support/u-boot-2019.01+gitAUTOINC+8b90adfb16-g8b90adfb16'
make: *** [u-boot] Error 2

will@Workstation:~/ti-processor-sdk-linux-am335x-evm-06.00.00.07$ uname -a
Linux fone-HP-Z220-CMT-Workstation 3.5.0-23-generic #35~precise1-Ubuntu SMP Fri Jan 25 17:13:26 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux