This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: I would like to build a gcc that don's search /lib and /usr/lib when compiling others.


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@google.com> åéï

> åää: Ian Lance Taylor <iant@google.com>
> äé: Re: I would like to build a gcc that don's search /lib and /usr/lib when compiling others.
> æää: duanxun@yahoo.com.cn
> æé: gcc-help@gcc.gnu.org
> ææ: 2009å3æ25æ,åä,äå1:18
> duanxun <duanxun@yahoo.com.cn>
> 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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]