Forum Discussion
4 Replies
- FawazJ_Altera
Frequent Contributor
Hello,
Can you share with me the full compilation log?
the error message you sent is generic.
Thank you
- FawazJ_Altera
Frequent Contributor
Can you please try the code below for your makefile:
#
TARGET = my_first_hps
ALT_DEVICE_FAMILY ?= soc_cv_av
SOCEDS_ROOT ?= $(SOCEDS_DEST_ROOT)
HWLIBS_ROOT = $(SOCEDS_ROOT)/ip/altera/hps/altera_hps/hwlib
CROSS_COMPILE = arm-linux-gnueabihfCFLAGS = -g -Wall -D$(ALT_DEVICE_FAMILY)
-I$(HWLIBS_ROOT)/include/$(ALT_DEVICE_FAMILY)
-I$(HWLIBS_ROOT)/include/LDFLAGS = -g -Wall
CC = $(CROSS_COMPILE)gcc
ARCH= arm
build: $(TARGET)
$(TARGET): main.o
$(CC) $(LDFLAGS) $^ -o $@
%.o : %.c
$(CC) $(CFLAGS) -c $< -o $@
.PHONY: clean
clean:
rm -f $(TARGET) *.a *.o *~
I found some spaces in your code, please try the above one and let me know if it helped.
Thank you