ld: cannot find crt1.o: No such file or directory - Linux

Table of Contents

我用的是 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

請問有沒有什麼建議?
感謝

--

All Comments

Sandy avatarSandy2011-08-10
我記得好像是gfortran在4.x已經把這部分支援拿掉了
所以你編譯的時候要把那個參數拿掉
Suhail Hany avatarSuhail Hany2011-08-12
我剛剛 用synaptic直接看libc6-dev裝了什麼
Hazel avatarHazel2011-08-15
結果發現他裝到 /usr/lib/i386-linux-gnu/下去了 orz
cp 了一份到 /usr/lib就解決了 不過compile還是沒過 orz
別的問題
Faithe avatarFaithe2011-08-16
現在debian在/lib, /usr/lib/下開始改用arch來區分函式庫
Poppy avatarPoppy2011-08-20
有些套件還沒來得及更新對應新的目錄結構
Rae avatarRae2011-08-22
所以我剛好遇到過渡期嗎? 謝謝
不過真希望linux 不同版本間關於哪個東西放哪裡的定義能夠
稍微一致一點~