Re: [問題] MAKE發生錯誤

看板Linux作者 (偷拿程式碼的八卦)時間16年前 (2010/04/10 20:42), 編輯推噓1(106)
留言7則, 1人參與, 最新討論串2/3 (看更多)
※ 引述《nkbnkbab (TEMPO)》之銘言: : 各位大大不好意思,想請問一個問題,我在MAKE一個檔案時,它產生了這個錯誤, : /usr/bin/ld: skipping incompatible /usr/lib/libc.so when searching for -lc : /usr/bin/ld: skipping incompatible /usr/lib/libc.a when searching for -lc : /root/opensees//lib/libBlas.a(dnrm2.o): In function `dnrm2_': : dnrm2.f:(.text+0xaa): undefined reference to `_gfortran_runtime_error_at' : collect2: ld returned 1 exit status : make[1]: *** [tcl] Error 1 : make[1]: Leaving directory `/root/opensees/OpenSees/SRC/modelbuilder/tcl' : make: *** [all] Error 2 你的centos是裝 x86_64 還是x86版本的? 用uname -a 確認一下 或是 file /usr/lib/libc.so 確認之後看一下你的 opensees的makefile 把裡面有 -m32 或 -m64 之類的參數都刪掉。 或如果你是x86版本就加上 -m32, x86-64版本就加上 -m64 加在 CFLAGS CXXFLAGS LDFLAGS -- 2008年 台灣國 愛滋感染人數統計 異性性行為女 40 異性性行為男 296 同性性行為男 866 2009年 台灣國 愛滋感染人數統計 異性性行為女 42 異性性行為男 273 同性性行為男 895 詳情請看ptt.cc L_BoyMeetsGi 版 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 59.104.181.102

04/10 22:00, , 1F
大大你好,我的centos是x86_64版本,我有一樣的四台電腦
04/10 22:00, 1F

04/10 22:01, , 2F
我都用一樣的配備,裝一樣的OS,只有這一台會有問題
04/10 22:01, 2F

04/10 22:01, , 3F
我的每個Makefile.def也都是用一樣的
04/10 22:01, 3F

04/10 22:03, , 4F
它現在都會出現/root/opensees//lib/libBlas.a(dnrm2.o):
04/10 22:03, 4F

04/10 22:03, , 5F
dnrm2.f:(.text+0xaa): undefined reference to `_gfortr
04/10 22:03, 5F

04/10 22:04, , 6F
ran_runtime_error_at'
04/10 22:04, 6F

04/10 22:05, , 7F
這個錯誤
04/10 22:05, 7F
文章代碼(AID): #1Bm78OyO (Linux)
討論串 (同標題文章)
文章代碼(AID): #1Bm78OyO (Linux)