I already posted this to gnu.help.gcc, but no one answered. Even
though this is not exactly on topic, I hope someone here might be able
to help me out.
As a step towards porting to PPC linux a compiler that uses gcc as a
back end, I'm trying to build gcc-2.8.1 as a cross-compiler from i386
gnu-linux to PowerPC gnu-linux. I downloaded and installed GNU
binutils, also version 2.8.1, and installation for cross-development
seemed to work.
The gcc configure script seemed to work, but the process fails when I
try to use make. I get to the line in the script:
./xfgcc -B./ -D_CROSS_COMPILE -DIN_GCC -g -I./include -I.
-I/.config -g0 \
-finhibit-size-directive -fno-inline-functions -fno-exceptions
-msdata=none \
-c ./crtstuff.c -DCRT_BEGIN -o crtbegin.o
This command fails with the messages:
as: unrecognized option `-ppc'
make: *** [crtbegin.o] Error 1
Now, I have tried assembling PowerPC source on the cross-assembler
("as") that binutils ostensibly installed, and it seems to work. (That
is, it gives no error messages and produces a.out, but I haven't tried
linking or running the output file.) But when I give that version of
as the option "-ppc" on the command line, it fails, too.
What's going on? Is there a configuration file I can tweak so that
this option is no longer passed to as? Am I mistaken in thinking as
can assemble PowerPC source?
Thanks for any help,
-Jon