From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3710 invoked by alias); 4 Feb 2014 16:08:06 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 3670 invoked by uid 48); 4 Feb 2014 16:08:00 -0000 From: "tangyilei10 at itp dot ac.cn" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/60059] New: Error when building gcc-4.8.2 together with binutils 2.24 Date: Tue, 04 Feb 2014 16:08:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 4.8.2 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: tangyilei10 at itp dot ac.cn X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-02/txt/msg00315.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60059 Bug ID: 60059 Summary: Error when building gcc-4.8.2 together with binutils 2.24 Product: gcc Version: 4.8.2 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: tangyilei10 at itp dot ac.cn I'm building gcc-4.8.2 with binutils extracted in the source directory. After I made dir gcc-build as a build dir, configured it and typed make, error came out. The error indicates that the system was unable to acquire ar in directory binutils. So I went into the binutils directory inside the gcc-build and typed ln -sv binutils/ar ar cd .. make The make goes on while it reported it could not find ranlib, so I again go into the binutils directory and typed ln -sv binutils/ranlib ranlib cd .. make The make goes on while it was bothered again reporting that the nm in the directory gcc returned the wrong message, so I just cd gcc mv nm nm_backup ln -sv ../binutils/binutils/nm-new nm cd .. make and the make goes on. As it worked in every stage, the previously compiled binutils and gcc are wiped off so these tricks should be repeated 2 times. I think it is the bug because you misunderstood the structure of the tarball of the binutils. Any way, my trick seems to work well.