Compilation with AMR toolchain for Raspberry PI
Hello,
I try to compile a demo application of FreeRTOS on arm-non-eabi tool chain.
I install arm-none-eabi tool chain throught the command "sudo apt install gcc-arm-non-eabi.
When I run the make, I have "arm-none-eabi-ld: cannot find -lc"
The make file is the following :
#
# Makefile for FreeRTOS demo on Raspberry Pi
#
BASE=$(shell pwd)/
BUILD_DIR=$(shell pwd)/build/
MODULE_
TARGETS=kernel.img kernel.list kernel.syms kernel.elf
LINKER_
-include .dbuild/dbuild.mk
all: kernel.list kernel.img kernel.syms
@$(SIZE) kernel.elf
kernel.img: kernel.elf
$(Q)$(PRETTY) IMAGE $(MODULE_NAME) $@
$(Q)$(OBJCOPY) kernel.elf -O binary $@
kernel.list: kernel.elf
$(Q)$(PRETTY) LIST $(MODULE_NAME) $@
$(Q)$(OBJDUMP) -D -S kernel.elf > $@
kernel.syms: kernel.elf
$(Q)$(PRETTY) SYMS $(MODULE_NAME) $@
$(Q)$(OBJDUMP) -t kernel.elf > $@
kernel.elf: LDFLAGS += -L "/home/
kernel.elf: LDFLAGS += -L "/home/
kernel.elf: $(OBJECTS)
$(Q)$(LD) $(OBJECTS) -Map kernel.map -o $@ -T $(LINKER_SCRIPT) $(LDFLAGS)
Question information
- Language:
- English Edit question
- Status:
- Solved
- Assignee:
- No assignee Edit question
- Solved by:
- Manfred Hampl
- Solved:
- Last query:
- Last reply: