作者zxvc (zxvc)
看板LinuxDev
标题Re: [问题] internal compiler error: Segmentatio …
时间Sun Apr 15 13:08:38 2007
昨天玩了半天的binutils + gcc + newlib好像知道怎麽灌了。
网路上有许多组态方法,不过似乎会随着版本改变而变得不行使用。
让我浪费了好多时间 T_T
有时候多看一点资料再实际去试才不会到处碰壁。
我试出来的方法newlib官方网站其实就有提到了:
http://sourceware.org/newlib/faq.html
我把binutils 1.14.0 + gcc 3.3.6 + newlib 1.14.0 的安装步骤贴出来
不过我也不是很确定我是不是真的完全编成功了,
我只是业余的玩家。
1.安装binutils
su
wget ftp://sources.redhat.com/pub/gcc/releases/gcc-3.3.6/gcc-3.3.6.tar.gz &
wget ftp://sources.redhat.com/pub/binutils/releases/binutils-2.16.1.tar.gz &
wget ftp://sources.redhat.com/pub/newlib/newlib-1.14.0.tar.gz
ls *.tar.gz|xargs -nl tar -zxf
mkdir binutils gcc
cd binutils
../binutils-2.16.1/configure --target=arm-elf --prefix=/foo
make all
make install
cd ..
2.安装gcc with newlib
export PATH=/foo/bin:$PATH
ln -s ../newlib-1.14.0/newlib .
ln -s ../newlib-1.14.0/libgloss .
cd gcc
../gcc-3.3.6/configure --target=arm-elf --prefix=/foo --enable-languages=c,c++
--with-newlib
make all
make install
二、Building a cross debugger
1.安装GDB
wget ftp://sources.redhat.com/pub/insight/releases/insight-6.4.tar.bz2
export PATH=/foo/bin:$PATH
# You must install texinfo, bison and flex package before continue.
wget ftp://ftp.gnu.org/gnu/termcap/termcap-1.3.1.tar.gz
tar zxf termcap-1.3.1.tar.gz
cd termcap-1.3.1
./configure --prefix=/usr --target=arm-elf
make
make install
tar jxf insight-6.4.tar.bz2
mkdir insight
cd insight
../insight-6.4/configure --target=arm-elf --prefix=/foo --enable-sim
make all
make install
--
Albert Einstein :
If there is any religion that could cope with modern scientific needs it
would be Buddhism.
《金刚经》一切有为法 如梦幻泡影 如露亦如电 应作如是观
http://web.cc.ncu.edu.tw/~93501025/jg.doc
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 140.115.130.69
※ 编辑: zxvc 来自: 140.115.130.69 (04/15 13:09)
1F:→ zxvc:这是insight的模拟图: 04/15 14:16
※ 编辑: zxvc 来自: 140.115.130.69 (04/15 14:37)
3F:推 FFz:这样不需要设定Makefile里头的变数吗? 04/15 15:38
※ 编辑: zxvc 来自: 140.115.200.121 (04/15 18:34)