为什么还要 gcc4.1.2 ?
编译gcc的这个版本,就是为了装 TFS(http://tfs.taobao.org/),淘宝开源的这东西,不想说了,好不好装弄过的人知道!
下面是我成功安装的记录:
1、安装一些依赖包
yum install -y texinfo glibc-devel.i686
2、解压gcc4.1.2
先下载 gcc4.1.2 , 我这里文件名是 gcc-4.1.2.tar.bz2 , 放到 /usr/local/src 目录
#工作目录
cd /usr/local/src
#解压gcc4.1.2
tar -xvf gcc-4.1.2.tar.bz2
#进入到它的目录
cd gcc-4.1.2
3、修改gcc的一个文件
vi ./gcc/config/i386/linux-unwind.h
struct rt_sigframe {
int sig;
struct siginfo *pinfo;
void *puc;