Danny Backx wrote: > On Sat, 2006-11-18 at 09:53 +0000, Pedro Alves wrote: > >> Did you ever get to analise this more? Look at the path, and understand why >> the i386 as is being called? >> Looks like something is trying to call the native (i386) as, but it ends up >> picking that script on the way. >> I guess building with CFLAGS=-v would help pin this down. >> > > Yes I did, that's how I came up with the workaround. And I've looked > around the net and found confirmation for it. > > BTW it's not the i386 as that gets called, it's the other way around: > the src/build-cegcc/gcc/gcc/as script gets generated somehow in the gcc > configuration steps, and contains : > #!/bin/sh > exec /opt/cegcc/bin/arm-wince-cegcc-as "$@" > > which causes it to call the new binutils cross-assembler, where it > should call the native i386 assembler instead. > > Yes, that's what I meant, the native gcc driver is trying to call the native as.
> It happens to do that because . is in my path before system directories; > this may be why you don't see it : > sh-3.00$ findpath as > as :./as /usr/bin/as > sh-3.00$ pwd > > (findpath is a script of my own that does something similar to > "whereis".) > > Huh!? I've asked about your PATH settings before, precisely because I thought you had something like this. If you have '.' on the PATH, you are supposed to have it *last*'. All hell breaks lose if you don't, you get what you deserve. :) http://www.faqs.org/faqs/unix-faq/faq/part2/section-13.html Why do you need it? Can you consider changing it and reverting the hack? Cheers, Pedro Alves ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Cegcc-devel mailing list Cegcc-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/cegcc-devel