WG: linux->mingw crosscompiler

Alexandre Oliva aoliva@redhat.com
Wed Jan 3 10:58:00 GMT 2001


On Jan  3, 2001, "Kittenberger, Axel" <Axel.Kittenberger@datentechnik.com> wrote:

>> /tmp/ccIfgxDy.s: Assembler messages:
>> /tmp/ccIfgxDy.s:134: Error: Unknown pseudo-op:  `.def'

>> I did create a i386-mingw32-ar however make/gcc seems to invoke the
> wrong one at this step, as it isn't disturbed when I delete it ;o)

It doesn't get to run it.  The problem shows up while compiling the
object file that would be added to the library with ar.  Most likely,
GCC is using the wrong assembler.  Run 

/home/axk/cross/mingw-bld/gcc/xgcc -B/home/axk/cross/mingw-bld/gcc/ \
-B/home/axk/mingw/i386-mingw32/bin/ \
-I/home/axk/mingw/i386-mingw32/include -O2 \
-I../../src/gcc/gcc/../winsup/include -DCROSS_COMPILE -DIN_GCC \
-I./include   -g1  -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED   -I. \
-I../../src/gcc/gcc -I../../src/gcc/gcc/config \
-I../../src/gcc/gcc/../include -c -DL_muldi3 \
        ../../src/gcc/gcc/libgcc2.c -o _muldi3.o -v

and see which assembler it runs.  The FAQ has some suggestion on how
to arrange for GCC to run the appropriate assembler.

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me


More information about the Gcc-help mailing list