Forum Discussion
I am facing the same issue, I have used Quartus 18.1 and EDS SoC 16.0 to build a bare-metal project. It gives following error while compiling :
11:13:06 **** Incremental Build of configuration Debug for project DE1_SoC_demo_hps_baremetal ****
make all
Building file: ../src/utils/alt_retarget_gnu.c
Invoking: GCC C Compiler
arm-altera-eabi-gcc -Dsoc_cv_av -I"C:\altera\16.0\embedded\ip\altera\hps\altera_hps\hwlib\include" -I"C:\altera\16.0\embedded\ip\altera\hps\altera_hps\hwlib\include\soc_cv_av" -O0 -g -Wall -MMD -MP -MF"src/utils/alt_retarget_gnu.d" -MT"src/utils/alt_retarget_gnu.d" -c -o "src/utils/alt_retarget_gnu.o" "../src/utils/alt_retarget_gnu.c"
../src/utils/alt_retarget_gnu.c: In function '_write':
../src/utils/alt_retarget_gnu.c:88:20: error: 'UART_MAX_LEN' undeclared (first use in this function)
if (max_len > (UART_MAX_LEN-1))
^
../src/utils/alt_retarget_gnu.c:88:20: note: each undeclared identifier is reported only once for each function it appears in
../src/utils/alt_retarget_gnu.c:93:14: error: 'log_buf' undeclared (first use in this function)
snprintf(log_buf, max_len, ptr);
^
../src/utils/alt_retarget_gnu.c:95:5: warning: implicit declaration of function 'alt_log_printf' [-Wimplicit-function-declaration]
alt_log_printf(log_buf);
^
make: *** [src/utils/alt_retarget_gnu.o] Error 1
src/utils/subdir.mk:24: recipe for target 'src/utils/alt_retarget_gnu.o' failed
11:13:08 Build Finished (took 1s.810ms)
I am also having this same issue. Can support please advise a solution?