I've run ./xgcc -dumpspecs but I don't know what to look at. That one doesn't contain the string "Qy". However, when I do the same with my native gcc (the one I got from Mandriva), it does contain that :
*asm: %{v:-V} %{Qy:} %{!Qn:-Qy} %{n} %{T} %{Ym,*} %{Yd,*} %{Wa,*:%*} You might have noted that the failing command (see my previous mail) runs /tmp/gcc-4/bin/gcc (it basically ran "gcc" before, the /tmp path is an attempt to see whether getting rid of my Mandriva compiler helped). So it runs a normal gcc, but that ends up calling arm-wince-pe-as, which is not something I would expect to happen. Do I have another cross-binutils in my path ? No, I've taken great care to remove all of it at the beginning of my build script. For your reference, I'm including part of my build script as attachment, they should give you an idea of (1) the order in which I am building things, look at build.sh, (2) the exact parameters, look at settings.sh and build-gcc.sh . Thanks, Danny On Mon, 2006-07-24 at 19:33 +0100, Dave Korn wrote: > On 24 July 2006 18:31, Danny Backx wrote: > > > > I can build a cross-gcc as long as I tell it to support only C. When > > trying to get C++ compiled as well, I always end up getting the error > > message below. > > > > I've tried patching gas because I had the feeling that gcc is producing > > an option that gas doesn't support any more, but somehow I couldn't get > > that to work. > > > > Is this a gcc bug ? > > Looks like a problem with specs file generation, conceivably some kind of > old SysV option. Might be informative to run "./xgcc -dumpspecs" in the build > directory. > > > /usr/ppc/bin/arm-wince-pe-as: unrecognized option `-Qy' > > gmake: *** [g++spec.o] Error 1 > > Whatever it is, it's been seen before.... lots! > > http://www.google.co.uk/search?q=unrecognized+option+Qy&btnG=Search&hl=en&clie > nt=firefox-a&rls=org.mozilla%3Aen-GB%3Aofficial > > Is it conceivable that you have another version of cross-binutils in your > path, ahead of the arm-wince-pe binutils, and aimed at a different target? > What exact configure options did you use when you configured gcc and binutils? > > > cheers, > DaveK -- Danny Backx ; danny.backx - at - scarlet.be ; http://danny.backx.info
build.sh
Description: application/shellscript
build-gcc.sh
Description: application/shellscript
settings.sh
Description: application/shellscript
signature.asc
Description: This is a digitally signed message part