This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: GCJ building
On 13 March 2012 03:17, Me Myself and I <stargate7thsymbol@live.co.uk> wrote:
>
> But the thing is that I havn't, my objdir exists one cd ..
> step back, outside my gcc-4.6.2 directory, despite what this error message says.
OK, against my better judgement, I'll try one more time.
You're either copying messages from older posts, thinking the say the
same as you see on your screen, or you're not typing the commands you
should be (and think you are).
"Feel free to follow along with my simple step-by-step instructions. I
make building FUN!!"
"To begin draw an S, for snake. or GCC. Er, whatever."
Erm, sorry :-)
Anyway, try the following commands :-
$ cd ~
You should now be in your home directory...
$ mkdir alice
$ cd alice
$ pwd
/home/davidp/alice
OK - now unpack GCC into this directory. DO NOT COPY from your old
build attempts - unpack / unzip the original download.
If you copy the old source tree you will probably get errors again, as
it's probably corrupt.
$ ls
gcc-4.6.2
Get the other bits you want to build
$ cd gcc-4.6.2
$ ./contrib/download_prerequisites
Return to the previous directory
$ cd ..
$ pwd
/home/davidp/alice
NOTE - if you are not in directory "alice" then the following steps
will not work, and you will likely get the same errors as before
Now create a directory to build in
$ mkdir bob
$ cd bob
$ pwd
/home/davidp/alice/bob
$ ls
bob gcc-4.6.2
NOTE - double check the directory you're now in. It should NOT be
anywhere under gcc-4.6.2.
Now we can build...
$ ../gcc-4.6.2/configure
followed by
$ make
Follow these steps, and if the build doesn't work (again) then copy
the error messages from your console window, not from previous emails.
With these steps there should NOT be any occurence of "objdir"
anywhere in the source or object trees.
Regards,
David P.