[問題] Simplescalar跑mibench的問題

看板Linux作者 (0.0)時間12年前 (2013/04/27 14:31), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
各位好 最近我在使用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 但我還是想解決這個問題 再請大家賜教一下 謝謝!!!! -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.118.20.222
文章代碼(AID): #1HUt2w9t (Linux)