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

See the CrossGCC FAQ for lots more information.


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

RE: How to test win32->PowerPC(860) cross complier


Mohammed,

You don't really know anything about a *nix box I presume (no offense)
Have you ever worked with linux or unix?

The link should be created in
/usr/lib/gcc-lib.
(not /usr/local/lib/gcc-lib as you specified)

It is best to build everything somewhere under your home-directory (under
cygwin, that is:)
[prompt]$ cd ~
[prompt]$ mkdir mytest
[prompt]$ cd mytest

There you make (copy) your test program.

>1. alternative
>$ ./powerpc-unknown-eabi -mcpu=860 -o test /test.c
>bash: ./powerpc-unknown-eabi: is a directory

:)
You forgot to add the gcc.
Try
$ ./powerpc-unknown-eabi-gcc -mcpu=860 -o test test.c

>2. alternative
>Administrator@MOSA-MOB /usr/local/lib/gcc-lib
>$ gcc -b powerpc-unknown-eabi -mcpu=860 -o test
>/test.c
>gcc: installation problem, cannot exec `cpp0': No such
>file or directory

That's a normal error, because the link was made in the wrong directory (see
above).


BOL,
Jan

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


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