cygnus host,powerpc target how to use cross compiler

diego diego_liu@263.net
Mon Dec 3 00:03:00 GMT 2001


hi.
i have succeed in building the toolchain for powerpc target on cygwin1.3.5/win2000.
here,i will say thanks to everybody who have helped me. After this stage, i want to
summarize the obstacle i have met and the procedure to be taken, wish it will help
others. 
i want to know when i use the cross compiler to compile applications for the target,
what compile and link option should i use. That is, i don't know what each library
contain. can anyone give me a typical example?.

.....
ya...when i building gdb, i encounter the following error,i have not finished yet.:(

gcc -c -g -O2 -DDEFAULT_INLINE=INLINE_LOCALS     -DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN -DWITH_SMP=5              -DHAVE_TERMIOS_STRUCTURE -DHAVE_TERMIOS_CLINE -DHAVE_DEVZERO     -I. -I../../../gdb-5.0/sim/ppc -I../../../gdb-5.0/sim/ppc/../../include -I../../bfd -I../../../gdb-5.0/sim/ppc/../../bfd -I../../gdb -I../../../gdb-5.0/sim/ppc/../../gdb  -I../../../gdb-5.0/sim/ppc/../../gdb/config -I../../../gdb-5.0/sim/ppc/../../mmalloc ../../../gdb-5.0/sim/ppc/sim_calls.c
In file included from ../../../gdb-5.0/sim/ppc/sim_calls.c:43:
./../../gdb-5.0/sim/ppc/../../gdb/defs.h:60: conflicting types for `strsignal'
/usr/include/string.h:70: previous declaration of `strsignal'
make[2]: *** [sim_calls.o] Error 1
make[2]: Leaving directory `/home/lws/stock/ppc/build-gdb/sim/ppc'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/lws/stock/ppc/build-gdb/sim'
make: *** [all-sim] Error 2


Regards


            diego
            diego_liu@263.net


------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com



More information about the crossgcc mailing list