Hi Ian, I tried to using --target=i686-pc-linux-gnu --host=i586-pc-linux-gnu But it compain the following error: --------------------------------------- cc -O2 -g -g -O2 -O2 -O2 -g -g -O2 -DIN_GCC -DCROSS_DIRECTORY_STRUCTURE -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -fPIC -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc -I. -I. -I../.././gcc -I../../../gcc-4.3.3/libgcc -I../../../gcc-4.3.3/libgcc/. -I../../../gcc-4.3.3/libgcc/../gcc -I../../../gcc-4.3.3/libgcc/../include -DHAVE_CC_TLS -DUSE_TLS -o _muldi3.o -MT _muldi3.o -MD -MP -MF _muldi3.dep -DL_muldi3 -c ../../../gcc-4.3.3/libgcc/../gcc/libgcc2.c \ -fvisibility=hidden -DHIDE_EXPORTS In file included from ../../../gcc-4.3.3/libgcc/../gcc/libgcc2.c:65: ../../../gcc-4.3.3/libgcc/../gcc/libgcc2.h:161: error: no data type for mode `SC' ../../../gcc-4.3.3/libgcc/../gcc/libgcc2.h:165: error: no data type for mode `DC' ../../../gcc-4.3.3/libgcc/../gcc/libgcc2.h:169: error: no data type for mode `XC' ../../../gcc-4.3.3/libgcc/../gcc/libgcc2.h:176: error: unknown machine mode `libgcc_cmp_return' ../../../gcc-4.3.3/libgcc/../gcc/libgcc2.h:177: error: unknown machine mode `libgcc_shift_count' make[2]: *** [_muldi3.o] Error 1 make[2]: Leaving directory `/localdisk/data/exp_gcc/__install_gcc__/i686-pc-linux-gnu/libgcc' make[1]: *** [all-target-libgcc] Error 2 make[1]: Leaving directory `/localdisk/data/exp_gcc/__install_gcc__' make: *** [all] Error 2 --------------------------------------- Could you please give me you suggesion about this errors? --- 09年3月25日,周三, Ian Lance Taylor <iant@xxxxxxxxxx> 写道: > 发件人: Ian Lance Taylor <iant@xxxxxxxxxx> > 主题: Re: I would like to build a gcc that don's search /lib and /usr/lib when compiling others. > 收件人: duanxun@xxxxxxxxxxxx > 抄送: gcc-help@xxxxxxxxxxx > 日期: 2009年3月25日,周三,上午1:18 > duanxun <duanxun@xxxxxxxxxxxx> > writes: > > > When passing --target option: i686-pc-linux-gnu, this > macro will not be defined, Because my pc is the same. > > So, pass something else, e.g., --target=i386-pc-linux-gnu > . Or use > explicit --build, --host and --target options, and make > --build and > --host the same but --target different. > > Ian > ___________________________________________________________ 好玩贺卡等你发,邮箱贺卡全新上线! http://card.mail.cn.yahoo.com/