作者noonee (feynman511)
看板Linux
標題[問題] ld: cannot find crt1.o: No such file or directory
時間Sun Aug 7 22:35:51 2011
我用的是 debian testing
當安裝了 g95 去 complie 一個程式的時候出現
ld: cannot find crt1.o: No such file or directory
ld: cannot find crti.o: No such file or directory
google的結論是說 要裝 libc6-dev 裡面就有
可是我檢查過 系統裡當然有裝這個程式 可是就是沒有這兩個檔案
(/usr/lib/ 下沒有 用whereis 也找過沒有)
然而 反倒是如果裝了 lib6-dev-amd64 就會在 /usr/lib64 裡面出現這幾個檔
可是這幾個檔是給64的用的 所以即使硬 cp 到 /usr/lib 下 也只是出現
ld: i386:x86-64 architecture of input file `/usr/lib///crt1.o' is
incompatible with i386 output
ld: i386:x86-64 architecture of input file `/usr/lib///crti.o' is
incompatible with i386 output
請問有沒有什麼建議?
感謝
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 175.180.111.162
→ kira925:我記得好像是gfortran在4.x已經把這部分支援拿掉了 08/07 22:45
→ kira925:所以你編譯的時候要把那個參數拿掉 08/07 22:45
→ noonee:我剛剛 用synaptic直接看libc6-dev裝了什麼 08/07 22:49
→ noonee:結果發現他裝到 /usr/lib/i386-linux-gnu/下去了 orz 08/07 22:50
→ noonee:cp 了一份到 /usr/lib就解決了 不過compile還是沒過 orz 08/07 22:50
→ noonee:別的問題 08/07 22:50
推 Adama:現在debian在/lib, /usr/lib/下開始改用arch來區分函式庫 08/08 00:09
→ Adama:有些套件還沒來得及更新對應新的目錄結構 08/08 00:10
→ noonee:所以我剛好遇到過渡期嗎? 謝謝 08/08 00:24
→ noonee:不過真希望linux 不同版本間關於哪個東西放哪裡的定義能夠 08/08 00:24
→ noonee:稍微一致一點~ 08/08 00:24