安裝舊版gcc的問題 - Linux

Kama avatar
By Kama
at 2010-03-11T23:29

Table of Contents

我現在想要安裝舊版的gcc-3.2.2
(OS:CentOS 5.4, gcc版本 4.1.2)
指令:
../gcc-3.2.2/configure --enable-languages=c,c++ \
--prefix=~shinchun/util/gcc-3.2.2
make bootstrap

原本一開始會有以下錯誤
===================================================================
make[3]: *** [ada.o] Error 1
make[3]: Leaving directory
`/opt/opt/nfs_home/shinchun/opt/install/gcc-3.2.2/gcc/ada'
make[2]: *** [gnat1] Error 2 make[2]: Leaving directory
`/opt/opt/nfs_home/shinchun/opt/install/gcc-3.2.2/gcc'
make[1]: *** [stage1_build] Error 2
make[1]: Leaving directory
`/opt/opt/nfs_home/shinchun/opt/install/gcc-3.2.2/gcc'
make: *** [bootstrap] Error 2
====================================================================

後來google找到以下的解答
====================================================================
Edit the file include/obstack.h in the gcc-3.2.2 source package.
Go to line 423 and change it from:
*((void **)__o->next_free)++ = ((void *)datum); \
to:
*((void **)__o->next_free) = ((void *)datum); \
and add the line
__o->next_free += sizeof(void *); \
====================================================================

但是make clean
make bootstrap以後卻又發生另一個錯誤
這下google也沒用了 ||orz(還是沒打對關鍵字?)

=====================================================================
make[4]: *** [libstdc++.la] Error 1
make[4]: Leaving directory
`/home/shinchun/install/gcc-3.2.2/i686-pc-linux-gnu/libstdc++-v3/src'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory
`/home/shinchun/install/gcc-3.2.2/i686-pc-linux-gnu/libstdc++-v3'
make[2]: *** [all-recursive-am] Error 2
make[2]: Leaving directory
`/home/shinchun/install/gcc-3.2.2/i686-pc-linux-gnu/libstdc++-v3'
make[1]: *** [all-target-libstdc++-v3] Error 2
make[1]: Leaving directory `/home/shinchun/install/gcc-3.2.2'
make: *** [bootstrap] Error 2
======================================================================

麻煩高手解惑

--
Tags: Linux

All Comments

Tristan Cohan avatar
By Tristan Cohan
at 2010-03-12T11:53
yum install compat-gcc-34 compat-gcc-34-c++
Jack avatar
By Jack
at 2010-03-12T15:48
這兩個原本都已經裝了
Lily avatar
By Lily
at 2010-03-13T23:41
想用rpm的話,去rpm search找找
Delia avatar
By Delia
at 2010-03-15T16:08
1F是說要用舊版gcc的話直接裝那兩個,不用自己編了
Zora avatar
By Zora
at 2010-03-17T05:16
喔喔 了解

安裝KDE後,移除Gnome

Kelly avatar
By Kelly
at 2010-03-11T22:47
想請教各位一下 因為目前我在Ubuntu底下,原本是Gnome 但目前安裝了kubuntu-desktop後 一開始是正常的,但是重新開機後,會一直有問題 所以我想試著把gnome的套件移除掉 我有試過用remove ubuntu-desktop,不過似乎沒用 請問一下該怎麼處理,謝謝 -- ...

無厘頭的怪問題?

Wallis avatar
By Wallis
at 2010-03-11T20:27
我的linux明明有 nobody 群組 nobody 使用者 但是我輸入 chown nobody:nobody test 卻跑出群組無效= = 不知道該怎麼解決? - ...

vlc 開啟影像擷取卡問題

Suhail Hany avatar
By Suhail Hany
at 2010-03-10T19:53
請問一下,我在 fc-10, vlc 1.0.3 要用一張擷取卡來作 streamming 在裝好 driver, 跑過 test AP 確認OK後, 輸入下列指令: vlc -vvv v4l2:///dev/video0 --sout and#39;#standard{access=udp,mux=ts, ...

輸入任何數值,按下Button沒有反應...[Fedora 7]

Necoo avatar
By Necoo
at 2010-03-10T10:53
不好意思 其實這個問題從我安裝完後就一直存在 但是我不知道該怎麼解釋比較清楚 可是自己還是無法解決,想請教大家一下,謝謝~ 當我可能瀏覽到一個網頁必須輸入帳號和密碼的頁面時 而帳號和密碼都是輸入在Text欄位內 輸入完畢後會再按一個button(確定),照道理應該會進入下一個頁面, 但是我輸入完後 ...

Debian 504 pppoeconf無效

Belly avatar
By Belly
at 2010-03-10T08:09
※ 引述《wzch (殺很小)》之銘言: : 剛裝好了Debian 5 預設lxde版本 我的是 gnome的 不過應該沒差就是了 : 要設定adsl上網, 用pppoeconf指令,卻說comman not found 如果你目前機器沒有adsl不能上網 aptitude 請下載以下deb包 並依序安裝 ...