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

Programming, for all ages and all languages.
Post Reply
genera
Posts: 2
Joined: Wed Aug 01, 2012 1:37 pm

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

Post 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.
Last edited by JamesM on Wed Aug 01, 2012 2:34 pm, edited 1 time in total.
Reason: Changed piss-poor post title, added paragraphs and removed too many smileys. Lrn2Internet.
Tosi
Member
Member
Posts: 255
Joined: Tue Jun 15, 2010 9:27 am
Location: Flyover State, United States
Contact:

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

Post 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.
User avatar
Combuster
Member
Member
Posts: 9301
Joined: Wed Oct 18, 2006 3:45 am
Libera.chat IRC: [com]buster
Location: On the balcony, where I can actually keep 1½m distance
Contact:

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

Post 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?
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
User avatar
Owen
Member
Member
Posts: 1700
Joined: Fri Jun 13, 2008 3:21 pm
Location: Cambridge, United Kingdom
Contact:

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

Post 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+
genera
Posts: 2
Joined: Wed Aug 01, 2012 1:37 pm

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

Post 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.
Post Reply