Simplescalar跑mibench的問題 - Linux

Table of Contents

各位好

最近我在使用Simplescalar跑mibench

Simplescalar我已經安裝成功了

也可以跑helloworld檔

但是 我下載了mibench來編譯

像是其中的susan testbench

我修改了它的Makefile

把gcc 改成simplescalar的gcc

Makefile變成

FILE1 = basicmath_small.c rad2deg.c cubic.c isqrt.c
FILE2 = basicmath_large.c rad2deg.c cubic.c isqrt.c
CC = /home/lucien/sim_tool/bin/sslittle-na-sstrix-gcc

all: basicmath_small basicmath_large
basicmath_small: ${FILE1} Makefile
${CC} -static -O3 ${FILE1} -o basicmath_small -lm
basicmath_large: ${FILE2} Makefile
${CC} -static -O3 ${FILE2} -o basicmath_large -lm
clean:
rm -rf basicmath_small basicmath_large output*

但是執行make的時候

會出現 /sslittle-na-sstrix/bin/ld: cannot find -lm

然後 我在Makefile又加上

LIB = -L /lib這個參數 同時也加在 -lm前面


但是還是編不過

請問各位先進 這該如何解決呢?

若直接蓋掉-lm 就跑完了XD

但我還是想解決這個問題

再請大家賜教一下 謝謝!!!!

--

All Comments