gcc 編譯安裝 - Linux

By Suhail Hany
at 2011-02-25T22:11
at 2011-02-25T22:11
Table of Contents
在編譯 gcc-4.5.2 的過程中,出現下列錯誤訊息
checking whether ln -s works... yes
checking for x86_64-unknown-linux-gnu-gcc... /usr1/wzlu/download/gcc/gccobj/./gcc/xgcc -B/usr1/wzlu/download/gcc/gccobj/./gcc/ -B/usr1/wzlu/gcc/x86_64-unknown-linux-gnu/bin/ -B/usr1/wzlu/gcc/x86_64-unknown-linux-gnu/lib/ -isystem /usr1/wzlu/gcc/x86_64-unknown-linux-gnu/include -isystem /usr1/wzlu/gcc/x86_64-unknown-linux-gnu/sys-include
checking for suffix of object files... configure: error: in `/usr1/wzlu/download/gcc/gccobj/x86_64-unknown-linux-gnu/libgcc':
configure: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.
make[2]: *** [configure-stage1-target-libgcc] Error 1
make[2]: Leaving directory `/usr1/wzlu/download/gcc/gccobj'
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory `/usr1/wzlu/download/gcc/gccobj'
make: *** [all] Error 2
依照說明文件的指示 另開一個新目錄進行編譯
而不在 source code 的目錄中編譯 應該就能避免出現上面的錯誤
但依照指示做了 仍出現上述的錯誤
請問 還有其他建議嘛 謝謝
--
checking whether ln -s works... yes
checking for x86_64-unknown-linux-gnu-gcc... /usr1/wzlu/download/gcc/gccobj/./gcc/xgcc -B/usr1/wzlu/download/gcc/gccobj/./gcc/ -B/usr1/wzlu/gcc/x86_64-unknown-linux-gnu/bin/ -B/usr1/wzlu/gcc/x86_64-unknown-linux-gnu/lib/ -isystem /usr1/wzlu/gcc/x86_64-unknown-linux-gnu/include -isystem /usr1/wzlu/gcc/x86_64-unknown-linux-gnu/sys-include
checking for suffix of object files... configure: error: in `/usr1/wzlu/download/gcc/gccobj/x86_64-unknown-linux-gnu/libgcc':
configure: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.
make[2]: *** [configure-stage1-target-libgcc] Error 1
make[2]: Leaving directory `/usr1/wzlu/download/gcc/gccobj'
make[1]: *** [stage1-bubble] Error 2
make[1]: Leaving directory `/usr1/wzlu/download/gcc/gccobj'
make: *** [all] Error 2
依照說明文件的指示 另開一個新目錄進行編譯
而不在 source code 的目錄中編譯 應該就能避免出現上面的錯誤
但依照指示做了 仍出現上述的錯誤
請問 還有其他建議嘛 謝謝
--
Tags:
Linux
All Comments

By Olive
at 2011-02-28T12:25
at 2011-02-28T12:25

By Ina
at 2011-02-28T21:19
at 2011-02-28T21:19

By Joe
at 2011-03-03T22:39
at 2011-03-03T22:39
Related Posts
apache的virtual host設定

By Anonymous
at 2011-02-24T22:16
at 2011-02-24T22:16
shell script輸出結果 存至 變數

By Elizabeth
at 2011-02-24T15:43
at 2011-02-24T15:43
sever接收client檔案

By Steve
at 2011-02-24T09:11
at 2011-02-24T09:11
請問網路介面 連線狀態

By Odelette
at 2011-02-24T01:30
at 2011-02-24T01:30
apt-get的安裝死結

By Cara
at 2011-02-23T23:18
at 2011-02-23T23:18