This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Buidling binutils in gcc source directory
- From: Matt Rice <ratmice at gmail dot com>
- To: Michael Darling <darlingm at gmail dot com>, Binutils <binutils at sourceware dot org>
- Date: Fri, 22 May 2015 04:24:13 -0700
- Subject: Re: Buidling binutils in gcc source directory
- Authentication-results: sourceware.org; auth=none
- References: <CABRuA+jfGiTY8m3PSnb8L_gTd78BeL_0cj7M_6=w2W4xBtodnA at mail dot gmail dot com> <20150522031006 dot GN6140 at bubble dot grove dot modra dot org>
On Thu, May 21, 2015 at 8:10 PM, Alan Modra <amodra@gmail.com> wrote:
> On Thu, May 21, 2015 at 09:25:48PM -0400, Michael Darling wrote:
>> 1. Why is it expecting the binutils binaries to be in
>> top-source-dir/binutils/ when they are all in
>> top-source-dir/binutils/binutils/ ? I'm not supposed to check out
>> binutils git into the base gcc directory, am I? There's a bunch of
>> files that will conflict.
>
> It's been a while since I bothered with a combined build, but yes, you
> need to merge the binutils source tree with the gcc source tree.
> google gcc binutils combined build.
been a long time since I tried this as well, but I believe you want to
check out gcc last,
and IIRC something to the effect of the following can work for
checking out into a combined working directory (not really tested)
GIT_DIR=~/git/binutils-gdb/.git git read-tree master
GIT_DIR=~/git/binutils-gdb/.git git checkout-index -u -f -a
GIT_DIR=~/git/gcc/.git git read-tree master
GIT_DIR=~/git/gcc/.git git checkout-index -u -f -a
>> 2. I got the git directory from http://www.gnu.org/software/binutils/
>> --- and it's binutils-gdb.git. Gdb isn't involved, yet. Am I
>> checking out the wrong thing?
>
> binutils-gdb is the correct repository. If you don't want to build gdb,
> configure with -disable-gdb --disable-sim --disable-readline (and
> --disable-libdecnumber if building binutils stand-alone).
>
> --
> Alan Modra
> Australia Development Lab, IBM