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


Hi,

I've just succeed to build the cross compiler between i586-linux and
powerpc-wrs-vxworks. I have found a very good website at:

http://www.unm.edu/~krisinsk/gnu/

They don't talk about the "powerpc-ibm-aix4.1.3.0" but there are useful
informations and links.

There are what I have done, perhaps it could help you:

step 1)  get the "binutils291-vxworks.patch"

step 2)  install the lastest version of binutils on your host system
(should be binutils-2.9.1) -- with the patch.

step 3)  get the "crossgcc-gcc-2.8.1.patch"

step 4)  install the lastest version of GCC on your host system (should
be gcc-2.8.1).

step 5)  make sure than binutils-2.9.1 is the default binutils running
on your system (type "as -V" for example). I had some problem with
that.

step 6)  build the binutils tools as "cross tools". WARNING: you should
not install them in the same "directory tree" than you host tools.
Under Linux I have installed them in "/opt/gnu" (use the --prefix
option for "configure"). If I tried to install them in "/usr/local/GCC"
for example, the make process tried to use the "cross tools" instead of
the host tools => a big mess ...

step 8)  copy all the header files of your target in your "(cross
tools)/include" directory (for me it was "/opt/gnu/include/").

step 9)  build "gcc-2.8.1" as a cross compiler with the 
"crossgcc-gcc-2.8.1.patch". Make sure to tell "configure" where to find
the "cross tools" (under Linux I have used "--prefix=/opt/gnu" to tell
"configure" to use the tools in "/opt/gnu/").


NOTE:
o I can send you the patches if tou don't find them.

o Installing binutils-2.9.1 and gcc-2.8.1 on your host system is not
difficult (I had no problem at all -- on ix86 Linux). The only thing is
to read the INSTALL file __VERY__ carefully.

o perhaps you have to provide "libgcc1.a". For me it was not necessary.
But I know that for some target it is necessary.



I hope I am clear, but it difficult to discribe all the make process
without writing again all the GCC INSTALL file. I've passed 3 weeks to
buils my cross comnmpiler.


Regards

Denis BEURIVE





--- Gilbert Ramirez <gram@xiexie.org> a écrit:
> 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
> 
> 
> thanks for any help,
> 
> --gilbert
> 
> _______________________________________________
> 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.
> 

_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com

_______________________________________________
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]