This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Cannot find -lrt and -lpthread during make build for coremark-pro with "gcc-arm-none-eabi-10.3-2021.10"

Not able to make CoreMark-Pro build with "gcc-arm-none-eabi-10.3-2021.10". 

CoreMark®-PRO (2015) is an industry-standard benchmark that measures the multi-processor performance of central processing units (CPU) and embedded microcrontrollers (MCU) 

github.com/.../coremark-pro

I changed gcc64.mak and common.mak file to add gcc-arm-none-eabi-10.3-2021.10 path. 

Changes mainly for below lines:
TOOLS = ./coremark-pro-main/gcc-arm/x86_64/gcc-arm-none-eabi-10.3-2021.10
CC = $(TOOLS)/bin/arm-none-eabi-gcc
AS = $(TOOLS)/bin/arm-none-eabi-as
LD = $(TOOLS)/bin/arm-none-eabi-gcc
AR = $(TOOLS)/bin/arm-none-eabi-ar
INCLUDE = $(TOOLS)/arm-none-eabi/include

ARM gcc-arm-none-eabi-10.3-2021.10 package installed from ARM download link

Command= make TARGET=linux64 build-all

Error Message=
make[3]: Leaving directory ./coremark-pro-main/builds/linux64/gcc64/obj/bench/darkmark/zip' ./coremark-pro-main/gcc-arm/x86_64/gcc-arm-none-eabi-10.3-2021.10/bin/arm-none-eabi-gcc -o./coremark-pro-main/builds/linux64/gcc64/bin/zip-test.exe zip-test.o ./coremark-pro-main/builds/linux64/gcc64/obj/bench/darkmark/zip/*.o ./coremark-pro-main/builds/linux64/gcc64/obj/mith.a -lm -lrt -lpthread -lm -lrt -lpthread ./coremark-pro-main/gcc-arm/x86_64/gcc-arm-none-eabi-10.3-2021.10/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld: cannot find -lrt ./coremark-pro-main/gcc-arm/x86_64/gcc-arm-none-eabi-10.3-2021.10/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld: cannot find -lpthread ./coremark-pro-main/gcc-arm/x86_64/gcc-arm-none-eabi-10.3-2021.10/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld: cannot find -lrt ./coremark-pro-main/gcc-arm/x86_64/gcc-arm-none-eabi-10.3-2021.10/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld: cannot find -lpthread collect2: error: ld returned 1 exit status make[2]: *** [./coremark-pro-main/builds/linux64/gcc64/bin/zip-test.exe] Error 1 make[2]: Leaving directory ./coremark-pro-main/builds/linux64/gcc64/obj/workloads/zip-test'
make[1]: *** [build-all] Error 2
make[1]: Leaving directory `./coremark-pro-main'
make: *** [build] Error 2

Thanks,
SK