From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17312 invoked by alias); 22 May 2015 01:25:53 -0000 Mailing-List: contact binutils-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sourceware.org Received: (qmail 17302 invoked by uid 89); 22 May 2015 01:25:53 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-wg0-f51.google.com Received: from mail-wg0-f51.google.com (HELO mail-wg0-f51.google.com) (74.125.82.51) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Fri, 22 May 2015 01:25:51 +0000 Received: by wgez8 with SMTP id z8so3891136wge.0 for ; Thu, 21 May 2015 18:25:48 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.194.3.35 with SMTP id 3mr9947420wjz.109.1432257948415; Thu, 21 May 2015 18:25:48 -0700 (PDT) Received: by 10.28.167.2 with HTTP; Thu, 21 May 2015 18:25:48 -0700 (PDT) Date: Fri, 22 May 2015 01:25:00 -0000 Message-ID: Subject: Buidling binutils in gcc source directory From: Michael Darling To: binutils@sourceware.org Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes X-SW-Source: 2015-05/txt/msg00228.txt.bz2 I saw that you can build binutils in the gcc source directory. So, I ran: git clone git://gcc.gnu.org/git/gcc.git git.git cd git.git ./contrib/download_prerequisites clone git://sourceware.org/git/binutils-gdb.git binutils mkdir ../gcc.build cd ../gcc.build ../gcc.git/configure --disable-multilib && make -j11 Runs for a few minutes, then errors with: /bin/sh: line 7: /home/mdarling/sourceInstallation/gcc.build.gcc.with.binutils/.binutils/ar: No such file or directory ln -s /home/mdarling/sourceInstallation/gcc.build.gcc.with.binutils/binutils/binutils/ar binutils/ar Then have to ln -s /home/mdarling/sourceInstallation/gcc.build.gcc.with.binutils/binutils/binutils/ranlib binutils/ranlib Then, it errors with: /home/mdarling/sourceInstallation/gcc.build.gcc.with.binutils/./gcc/nm: line 106: exec: -p: invalid option gcc/nm is a 3168 byte shell script, unlike /usr/bin/nm, a 42432 byte executable. gcc/nm (shell script) has no -p option, not even a --help option. nm (/usr/bin executable) has a -p option, visible through --help So my questions are are: 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. 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? 3. How do I get past the nm issue?