This is the mail archive of the crossgcc@cygnus.com mailing list for the crossgcc project.


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

Re: GCC as a Cross compiler i586-Linux / powerpc-vxworks


Gilbert Ramirez wrote:

> On Tue, Jun 15, 1999 at 08:58:31PM -0500, Brendan Simon wrote:
> >
> >
> > I have built a powerpc-linux and powerpc-eabi cross-compiler (with lots
> > of help from people on this list) on a ix86 linux box from
> > binutils-2.9.1, egcs-1.1.2 and newlib-1.8.1 (for powerpc-eabi).  I have
> > never used any patches though and I have never seen the error message you
> > mention.
> >
> > Brendan Simon.
>
> I am trying something similar:
>
> host=i686-pc-linux-gnu, target= powerpc-ibm-aix4.1.3.0
>
> However, I cannot compile newlib-1.8.1. The cross-gcc compiler complains
> about my endianness not declared. Does anyone know where I should
> declare it?
>
> make[3]: Entering directory
> `/home/gramirez/prj/cross/compile/aix/newlib/powerpc-ibm-aix4.1.3.0/newlib/libm/math'
> powerpc-ibm-aix4.1.3.0-gcc -g -O2  -O2 -DMISSING_SYSCALL_NAMES
> -fno-builtin
> -I/home/gramirez/prj/cross/compile/aix/newlib/powerpc-ibm-aix4.1.3.0/newlib/./targ-include
> -I/home/gramirez/prj/cross/compile/newlib-1.8.1/newlib/./libc/include -c
> ../../../../../../newlib-1.8.1/newlib/libm/math/k_standard.c
> In file included from
> /home/gramirez/prj/cross/compile/newlib-1.8.1/newlib/libc/include/math.h:10,
>                  from
> ../../../../../../newlib-1.8.1/newlib/libm/math/fdlibm.h:15,
>                  from
> ../../../../../../newlib-1.8.1/newlib/libm/math/k_standard.c:15:
> /home/gramirez/prj/cross/compile/newlib-1.8.1/newlib/libc/include/machine/ieeefp.h:130:
> #error Endianess not declared!!
>
> I'm also getting some errors/warnings about stddef.h and stdarg.h not
> being found. I followed the instructions in the Cross-GCC FAQ to build
> binutils and gcc; does it appear that I missed anything?
>
> In file included from
> ../../../../../../newlib-1.8.1/newlib/libm/math/k_standard.c:19:
> /home/gramirez/prj/cross/compile/newlib-1.8.1/newlib/libc/include/stdio.h:37:
> stddef.h: No such file or directory
> /home/gramirez/prj/cross/compile/newlib-1.8.1/newlib/libc/include/stdio.h:40:
> stdarg.h: No such file or directory

I have heard that newlib-1.8.0 compiles more successfully then newlib-1.8.1.
You could try that.  You could also try getting a newer release from the CVS repository.  I
think that sourceware.cygnus.com has info on this (click the projects link).

Brendan Simon.

_______________________________________________
New CrossGCC FAQ: http://www.objsw.com/CrossGCC
_______________________________________________
To remove yourself from the crossgcc list, send
mail to crossgcc-request@cygnus.com with the
text 'unsubscribe' (without the quotes) in the
body of the message.

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