Re: [問題] 手動安裝gcc 發生 no such file,但改뤠…
※ 引述《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
討論串 (同標題文章)
LinuxDev 近期熱門文章
PTT數位生活區 即時熱門文章