作者FFz (澎湖.仙人掌.234)
站内LinuxDev
标题Re: [问题] 手动安装gcc 发生 no such file,但改뤠…
时间Sat Apr 14 18:04:01 2007
※ 引述《aprotoss (咖啡阿宅)》之铭言:
: ※ 引述《FFz (澎湖.仙人掌.234)》之铭言:
: : 回 aprotoss大
: : 我安装套件的顺序是
: : binutils-2.16.1.tar.gz,其configure的参数如下
: : ../binutils-2.16.1/configure --target=arm-elf --prefix=/foo
: : 接着安装gcc-3.3.6.tar.gz,其configure的参数如下
: : ../gcc-3.3.6/configure --target=arm-elf --prefix=/foo
: : --enable-languages=c,c++ --with-newlibCI.jpg
: ^^^^^^^^^^^^^^^^^^^^^^^
: 印象中看过的资料,许多都是先做出中介compiler(bootstrap compiler),
: 而bootstrap compiler一般只需用到c compiler... --enable-languages=c ,
: 再做full compiler的!
请问 "许多都是先做出中介complier(bootstrap complier)" 这句的意思
说要先装 toolchain的gcc前先得在 toolchain安装目录里
安装好一个complier是吗?
就如
gcc安装手册中 (gcc-3.4.3/INSTALL/prerequisites.html)
的 Prerequisites for GCCtool 此节中有一段讲到
Tools/packages necessary for building GCC
ISO C90 compiler
Necessary to bootstrap the GCC package,
although versions of GCC prior to 3.4 also allow bootstrapping
with a traditional (K&R) C compiler.
To make all languages in a cross-compiler or
other configuration where 3-stage bootstrap is not performed,
you need to start with an existing GCC binary (version 2.95 or later)
because source code for language frontends other
than C might use GCC extensions.
没错吧?
还有我看 Linux From Scratch 的教学
(
http://man.chinaunix.net/linux/lfs/htmlbook/index.html)
里头也是前前後後安装了几次的gcc
那麽这些都是在说同样的事情吗
我在安装toolchain时到时没有先装一个中介complier
而是直接装只有 c 或 c,c++ 的 gcc
接着就装 newlib 及 gdb
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 211.74.251.159