Building mips cross compiler on mingw

Dave Murphy wintermute2k@ntlworld.com
Wed Jul 20 10:21:00 GMT 2005


Hi,

I've been having some trouble building gcc 4.0.1 for mips target on a 
mingw host

The build fails at this point

/c/projects/devkitPro/sources/psp/gcc/gcc/xgcc 
-B/c/projects/devkitPro/sources/psp/gcc/gcc/ 
-Bc:/devkitPro/devkitPSP_4.0.1/psp/bin/ 
-Bc:/devkitPro/devkitPSP_4.0.1/psp/lib/ -isystem 
c:/devkitPro/devkitPSP_4.0.1/psp/include -isystem 
c:/devkitPro/devkitPSP_4.0.1/psp/sys-include -O2  -DIN_GCC 
-DCROSS_COMPILE   -W -Wall -Wwrite-strings -Wstrict-prototypes 
-Wmissing-prototypes -Wold-style-definition  -isystem ./include  -G 0 
-g  -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc -I. -I 
-I../../../gcc-4.0.1-new/gcc -I../../../gcc-4.0.1-new/gcc/ 
-I../../../gcc-4.0.1-new/gcc/../include 
-I../../../gcc-4.0.1-new/gcc/../libcpp/include  -DL_muldi3 -c 
../../../gcc-4.0.1-new/gcc/libgcc2.c -o libgcc/./_muldi3.o
C:/DOCUME~1/DAVEMN~1.000/LOCALS~1/Temp/ccAFaaaa.s: Assembler messages:
C:/DOCUME~1/DAVEMN~1.000/LOCALS~1/Temp/ccAFaaaa.s:19: Warning: expected `$'
C:/DOCUME~1/DAVEMN~1.000/LOCALS~1/Temp/ccAFaaaa.s:19: Error: junk at end 
of line, first unrecognized character is `n'
make[2]: *** [libgcc/./_muldi3.o] Error 1
make[2]: Leaving directory `/c/projects/devkitPro/sources/psp/gcc/gcc'
make[1]: *** [stmp-multilib] Error 2
make[1]: Leaving directory `/c/projects/devkitPro/sources/psp/gcc/gcc'
make: *** [all-gcc] Error 2
Error building all-gcc


saving temp files and adding -v gives this

Reading specs from c:/projects/devkitPro/sources/psp/gcc/gcc/specs
Target: psp
Configured with: ../../gcc-4.0.1-new/configure --enable-languages=c,c++ 
--disable-multilib --with-gcc --with-gnu-ld --with-gnu-as --with-stabs 
--disable-shared --disable-win32-registry --disable-nls 
--enable-cxx-flags=-G0 --target=psp --with-newlib 
--prefix=c:/devkitPro/devkitPSP_4.0.1
Thread model: single
gcc version 4.0.1
 c:/projects/devkitPro/sources/psp/gcc/gcc/cc1.exe -E -quiet -v -I. -I 
-I../../../gcc-4.0.1-new/gcc -I../../../gcc-4.0.1-new/gcc/ 
-I../../../gcc-4.0.1-new/gcc/../include 
-I../../../gcc-4.0.1-new/gcc/../libcpp/include -iprefix 
c:\projects\devkitpro\sources\psp\gcc\gcc\../lib/gcc/psp/4.0.1/ -isystem 
c:/projects/devkitPro/sources/psp/gcc/gcc/include -DIN_GCC 
-DCROSS_COMPILE -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -Dinhibit_libc 
-DL_muldi3 -isystem c:/devkitPro/devkitPSP_4.0.1/psp/include -isystem 
c:/devkitPro/devkitPSP_4.0.1/psp/sys-include -isystem ./include 
../../../gcc-4.0.1-new/gcc/libgcc2.c -G 0 -W -Wall -Wwrite-strings 
-Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition 
-fworking-directory -O2 -fpch-preprocess -o libgcc2.i
ignoring nonexistent directory "c:/devkitPro/devkitPSP_4.0.1/psp/include"
ignoring nonexistent directory 
"c:/devkitPro/devkitPSP_4.0.1/psp/sys-include"
ignoring nonexistent directory 
"c:\projects\devkitpro\sources\psp\gcc\gcc\../lib/gcc/psp/4.0.1/include"
ignoring nonexistent directory 
"c:\projects\devkitpro\sources\psp\gcc\gcc\../lib/gcc/psp/4.0.1/../../../../psp/sys-include"
ignoring nonexistent directory 
"c:\projects\devkitpro\sources\psp\gcc\gcc\../lib/gcc/psp/4.0.1/../../../../psp/include"
ignoring nonexistent directory 
"c:/devkitPro/devkitPSP_4.0.1/lib/gcc/psp/4.0.1/include"
ignoring nonexistent directory 
"c:/devkitPro/devkitPSP_4.0.1/lib/../psp/sys-include"
ignoring nonexistent directory 
"c:/devkitPro/devkitPSP_4.0.1/lib/../psp/include"
ignoring nonexistent directory "-I../../../gcc-4.0.1-new/gcc"
#include "..." search starts here:
#include <...> search starts here:
 .
 ../../../gcc-4.0.1-new/gcc
 ../../../gcc-4.0.1-new/gcc/../include
 ../../../gcc-4.0.1-new/gcc/../libcpp/include
 c:/projects/devkitPro/sources/psp/gcc/gcc/include
 ./include
End of search list.
 c:/projects/devkitPro/sources/psp/gcc/gcc/cc1.exe -fpreprocessed 
libgcc2.i -G 0 -quiet -dumpbase libgcc2.c -auxbase-strip 
libgcc/./_muldi3.o -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes 
-Wmissing-prototypes -Wold-style-definition -version -o libgcc2.s
GNU C version 4.0.1 (psp)
    compiled by GNU C version 3.4.2 (mingw-special).
GGC heuristics: --param ggc-min-expand=56 --param ggc-min-heapsize=49086
 c:/devkitPro/devkitPSP_4.0.1/psp/bin/as.exe --traditional-format -G 0 
-EL -O2 -g -no-mdebug -mabi=eabi -v -o libgcc/./_muldi3.o libgcc2.s
GNU assembler version 2.16.1 (psp) using BFD version 2.16.1
libgcc2.s: Assembler messages:
libgcc2.s:19: Warning: expected `$'
libgcc2.s:19: Error: junk at end of line, first unrecognized character 
is `n'

I've attached the saved temp files.

The same build process works fine on linux and I've compared output. The 
preprocessed source is identical barring paths. The assembly output 
differs only in the function prologue

on mingw built compiler

__muldi3:
    .frame    $sp,0,(null)        # vars= 7640055, regs= 0/0, args= 0, gp= 0

on linux built compiler

__muldi3:
    .frame    $sp,0,$31        # vars= 0, regs= 0/0, args= 0, gp= 0

can anyone point me in the right direction? I'm not quite sure what I 
should be looking for.

Dave

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: libgcc2.i
URL: <https://gcc.gnu.org/pipermail/gcc/attachments/20050720/19115f43/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: libgcc2.s
URL: <https://gcc.gnu.org/pipermail/gcc/attachments/20050720/19115f43/attachment-0001.ksh>


More information about the Gcc mailing list