hi ~ all i am tring to compile binutils2.17 for my lfs env: vmware5.5 liveCD:lfslivecd-x86-6.3-r2160.iso i do like this: 我參考的文檔 http://www.linuxfromscratch.org/ ... binutils-pass1.html
tar xvf /lfs-sources/binutils-2.17.tar.bz2 cd binutils-2.17 mkdir -v ../binutils-build cd ../binutils-build CC="gcc -B/usr/bin/" ../binutils-2.17/configure \ --prefix=/tools --disable-nls --disable-werror
then vi config.log ************************************************** configure:2317: checking for correct version of gmp.h configure:2330: gcc -B/usr/bin/ -c -g -O2 conftest.c 1>&5 configure:2320:17: error: gmp.h: No such file or directory configure: In function 'main': configure:2324: error: 'choke' undeclared (first use in this function) configure:2324: error: (Each undeclared identifier is reported only once configure:2324: error: for each function it appears in.) configure:2324: error: expected ';' before 'me' configure: failed program was: #line 2319 "configure" #include "confdefs.h" #include "gmp.h" int main() {
#if __GNU_MP_VERSION < 3 choke me #endif
; return 0; } **************************************************** and what i have to do this?? Where do I get gmp.h? Do I need it? What else can be wrong? thank you.