|
|
发表于 2006-2-19 20:07:54
|
显示全部楼层
呵呵,一步是可以搞定,不过是要你的 toolchain 都齐全的情况下。你现在是要建立 toolchain,:)。鸡和蛋的问题。
你试试用gcc这么做一次,肯定失败。
--build --host --target 都存在,怎么可能不存在呢。呵呵。
给你看看你所想的结果:
[html]
# ../gcc-4.0.2/configure \
--build=i686-pc-linux-gnu \
--host=x86_64-pc-linux-gnu \
--target=i386-pc-linux-gnu
loading cache ./config.cache
checking host system type... x86_64-pc-linux-gnu
checking target system type... i386-pc-linux-gnu
checking build system type... i686-pc-linux-gnu
checking for a BSD compatible install... /usr/bin/install -c
checking whether ln works... yes
checking whether ln -s works... yes
checking for x86_64-pc-linux-gnu-gnatbind... no
checking for gnatbind... gnatbind
checking whether compiler driver understands Ada... no
checking how to compare bootstrapped objects... cmp --ignore-initial=16 $$f1 $$f2
checking for correct version of gmp.h... no
The following languages will be built: c,c++,java,objc
*** This configuration is not supported in the following subdirectories:
target-libada target-libgfortran
(Any other directories should still work fine.)
checking for bison... bison
checking for bison... bison -y
checking for gm4... no
checking for gnum4... no
checking for m4... m4
checking for flex... flex
checking for flex... flex
checking for makeinfo... makeinfo
../gcc-4.0.2/configure: line 3020: x86_64-pc-linux-gnu-gcc: command not found
*** The command 'x86_64-pc-linux-gnu-gcc -o conftest -g -O2 conftest.c' failed.
*** You must set the environment variable CC to a working compiler.
[/html] |
|