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: win32 hosted 68k cross compiler


hello cygnus gurus,

i gave up on using seperate sources, but rather downloaded the
cdk source tree. i am trying to build a cygwin32-m68k cross compiler.
my build platform is also cygwin32. i am presuming that the
cygwin tool-chain supports native development.

on the latest cdk source tree i got following errors while compiling
gcc:

make all-gcc
<snip>

/win32/build/gcc/xgcc -B/win32/build/gcc/ -DCROSS_COMPILE -DIN_GCC   -O2
-I./include     -c ../../src/cdk/gcc/libgcc1-test.c

Testing libgcc1.  Ignore linker warning messages.

/win32/build/gcc/xgcc -B/win32/build/gcc/ -DCROSS_COMPILE -DIN_GCC   -O2
-I./include  libgcc1-test.o -o libgcc1-test \

  -nostartfiles -nostdlib `/win32/build/gcc/xgcc -B/win32/build/gcc/
--print-libgcc-file-name`


----> xgcc: libgcc.a: No such file or directory

----> make: *** [libgcc1-test] Error 1

----> make: *** [all-gcc] Error 2


i discovered that in a previous stages somewhere, libgcc.a was moved
to /. i moved libgcc.a to /win32/build/gcc and then tried it again -
it failed now with a different reason:

/win32/build/gcc/xgcc -B/win32/build/gcc/ -DCROSS_COMPILE -DIN_GCC   -O2
-I./include     -c ../../src/cdk/gcc/libgcc1-test.c

Testing libgcc1.  Ignore linker warning messages.

/win32/build/gcc/xgcc -B/win32/build/gcc/ -DCROSS_COMPILE -DIN_GCC   -O2
-I./include  libgcc1-test.o -o libgcc1-test \

  -nostartfiles -nostdlib `/win32/build/gcc/xgcc -B/win32/build/gcc/
--print-libgcc-file-name`


----> ld: libgcc1-test.o: File format not recognized
----> xgcc: internal error: ld got a signal

----> make: *** [libgcc1-test] Error 1

----> make: *** [all-gcc] Error 2


this is obviously becaus the ld being used is the native ld and 
not the ld.new generated while compiling binutils. 

please help.

thanks in advance.

sandeep