Forum Discussion

IAlar's avatar
IAlar
Icon for New Contributor rankNew Contributor
6 years ago

my first fpga makefile error

Hello,

I'm just trying to run my_first_hps makefile, from the Cyclone V SoC datasheet, but when I try make in the SoC EDS shell I get the following error:

process_begin: CreateProcess(NULL, arm-linux-gnueabihf-gcc -g -Wall -I $path_to_include -c main.c -o main.o, ...) failed.

make (e=2): The system cannot find the file specified.

make: *** [main.o] Error 2

I'm sure that the path is correct, I'm not sure what it going on. This is the makefile:

#

TARGET = my_first_hps

#

CROSS_COMPILE = arm-linux-gnueabihf-

CFLAGS = -static -g -Wall -I ${SOCEDS_DEST_ROOT}/ip/altera/hps/altera_hps/hwlib/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 *~

Please help me resolve this issue

2 Replies

  • Hi,

    Just making sure, can you provide the Quartus and SOC EDS version that you are using? And are you using windows/linux?

    Based on my experience, the error is seen because of the SoC EDS could not find the specific file, in my case I was using Windows 10 and I had to open the SoC EDS with "Run as Admin", that solved my issue.

    Regards.