Page 1 of 1

Problem building a cross compiler (was: "libgcc.mvars!!!")

Posted: Wed Aug 01, 2012 1:46 pm
by genera
Hi all :)

Here is my problem. After building a cross compiler for i586-elf ,as the article explains, I have a problem installing gcclib.

Code: Select all

make[1]: Entering directory `/usr/src/gcc-4.7.1/i586-elf/libgcc'
Makefile:161: ../.././gcc/libgcc.mvars: No such file or directory
make[1]: *** No rule to make target `../.././gcc/libgcc.mvars'.  Stop.
make[1]: Leaving directory `/usr/src/gcc-4.7.1/i586-elf/libgcc'
make: *** [all-target-libgcc] Error 2
I've done the research on the good old www but it's like looking for a needle in a hay stack.

If anybody could help it would be appreciated.

Re: Problem building a cross compiler (was: "libgcc.mvars!!!

Posted: Thu Aug 02, 2012 5:20 am
by Tosi
Make sure to build gcc from a separate directory than the one you installed the source code in.
And if you're using MinGW, try using cygwin instead and see if you can build a cross compiler with that.

Re: Problem building a cross compiler (was: "libgcc.mvars!!!

Posted: Thu Aug 02, 2012 5:40 am
by Combuster
This looks like an in-tree build, rather than an out-of-tree build. Which in turn makes me believe you've not been following the wiki instructions. Try again, will you?

Re: Problem building a cross compiler (was: "libgcc.mvars!!!

Posted: Thu Aug 02, 2012 7:08 am
by Owen
Tosi wrote:Make sure to build gcc from a separate directory than the one you installed the source code in.
And if you're using MinGW, try using cygwin instead and see if you can build a cross compiler with that.
MinGW is fine. More reliable, even; Cygwin is especially buggy on Windows Vista+

Re: Problem building a cross compiler (was: "libgcc.mvars!!!

Posted: Thu Aug 02, 2012 7:23 am
by genera
Hi all
I'm going to have another go at this. Just seems weird that I could install gcc from within but not gcclib. Ah well, nobody said it was going to be easy!
Yes I'm using mingw on windows 7.