This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Cross compiling for vxworks
Hi,
I understand that you first compile the binutils, no?
>
> $>../gcc-3.4.3/configure --prefix=/home/jf/cross --program-
> prefix=powerpc-wrs-vxworks- --target=powerpc-wrs-vxworks --with-cpu=604
> --with-headers=/home/jf/gcc/h/ --enable-languages=c
OK,
--with-cpu=.... is important?
--program-prefix= ...is important?
>
> then
> $>make
>
> I got somme errors with vxTypesBase.h (ptrdiff_t and wchar_t where
> defined twice, maybe because of fixinc) that were easy to fix...
>
> But could you give some more details about your host system (I had hard
> time because of a buggy gcc in Mandrake community 10.1) ?
I'm using a Debian Sarge with with a gcc3.3 as primari compiler. I'm using two
box, one with a P4 and another with an AMD64, but using only by now as a
32bits host. The target is a PC Pentium class (at least the information that
the manomfacturer have written. It's a controller of a Robot), so I interpret
then as a i586.
Merci,
Leo
> Jean-Fraçois
>
> Le vendredi 03 décembre 2004 à 10:19 +0100, Leopold Palomo-Avellaneda a
>
> écrit :
> > Bon jour,
> >
> > thank's for the answer. My problem is that the target isn't ppc, is i686.
> > Howeber I have tried it, my the result also was wrong.
> >
> > Could you explain what did you do? Is the same that i have done but with
> > ths sources of 3.4.3?
> >
> > Best regards,
> >
> > Leo