From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3277 invoked by alias); 11 Aug 2014 16:15:12 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 3257 invoked by uid 89); 11 Aug 2014 16:15:09 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.4 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-lb0-f171.google.com Received: from mail-lb0-f171.google.com (HELO mail-lb0-f171.google.com) (209.85.217.171) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Mon, 11 Aug 2014 16:15:08 +0000 Received: by mail-lb0-f171.google.com with SMTP id l4so6141843lbv.30 for ; Mon, 11 Aug 2014 09:15:04 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.152.10.193 with SMTP id k1mr8803677lab.79.1407773704496; Mon, 11 Aug 2014 09:15:04 -0700 (PDT) Received: by 10.112.94.70 with HTTP; Mon, 11 Aug 2014 09:15:04 -0700 (PDT) In-Reply-To: References: Date: Mon, 11 Aug 2014 16:15:00 -0000 Message-ID: Subject: Re: Problem building gcc 4.9.2 From: Jonathan Wakely To: Jeremy Hall Cc: gcc-help Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes X-SW-Source: 2014-08/txt/msg00092.txt.bz2 On 11 August 2014 15:30, Jeremy Hall wrote: > After a fresh install on Linux Mint 17 (64-bit) I am attempting to build > the latest gcc using the following (which has worked in the past):- > > cd gcc-4.9.1 > contrib/download_prerequisites > mkdir obj > cd obj > ../configure --disable-multilib > > The configure ends with the following:- > ... > checking where to find the target readelf... host tool > checking where to find the target strip... host tool > checking where to find the target windres... host tool > checking where to find the target windmc... host tool > checking whether to enable maintainer-specific portions of Makefiles... no > configure: creating ./config.status > /bin/bash: _tar: line 12: syntax error near unexpected token `(' > /bin/bash: _tar: line 12: ` ?(-)*[cr]*f)' > /bin/bash: error importing function definition for `_tar' > config.status: creating Makefile > /tmp/gcc-4.9.1/obj* > > What am I doing wrong, or what is missing? I've never seen that error before, there should not be a call to tar being done there. It looks like something in your environment is causing the problem, try to find where "_tar" is being defined (maybe in ~/.bash_profile, ~/.bashrc or /etc/bashrc).