I meet a syntax error in compilation when migrate freeRTOS to riscv core chip, here is a part of error log:
heap_4-112b34.s:505: error: (ASE1): Syntactic analysis error: syntax error, unexpected decimal constant.
#...
queue-f175f0.s:2380: error: (ASE1): Syntactic analysis error: syntax error, unexpected decimal constant.
In this case, I’m using clang and the version of freeRTOS is 10.6.0. I’m not sure if I get something wrong with Makefile or freeRTOS configuration. I share some parts of my Makefile below to see if it would help:
CLANG = $(clang_path)/clang
#Object confirm
OBJ = ...(other .o files) heap_4.o list.o queue.o task.o timers.o port.o portASM.o
CFLAGS = -o3 -g0 -Wall -I $(RTOS)/Include
all: $(OBJS)
#linker command here
.c.o:
$(CLANG) -c $< -o $@ $(CFLAGS)
.s.o:
$(CLANG) -c $< -o $@ $(CFLAGS)
#... clean code
I tried to change the compiler but it didn’t work.
And in the heap_4.c file, I didn’t find the unexpected decimal symbol.
Starter_Zhang is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.