From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25223 invoked by alias); 6 Jun 2011 19:51:18 -0000 Received: (qmail 25215 invoked by uid 22791); 6 Jun 2011 19:51:18 -0000 X-SWARE-Spam-Status: No, hits=-1.5 required=5.0 tests=AWL,BAYES_40,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST X-Spam-Check-By: sourceware.org Received: from mail-pz0-f47.google.com (HELO mail-pz0-f47.google.com) (209.85.210.47) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 06 Jun 2011 19:51:04 +0000 Received: by pzk36 with SMTP id 36so2181151pzk.20 for ; Mon, 06 Jun 2011 12:51:03 -0700 (PDT) MIME-Version: 1.0 Received: by 10.143.93.4 with SMTP id v4mr843333wfl.10.1307389863709; Mon, 06 Jun 2011 12:51:03 -0700 (PDT) Received: by 10.142.106.17 with HTTP; Mon, 6 Jun 2011 12:51:03 -0700 (PDT) In-Reply-To: <31786405.post@talk.nabble.com> References: <31786405.post@talk.nabble.com> Date: Mon, 06 Jun 2011 20:05:00 -0000 Message-ID: Subject: Re: Cannot compute suffix of object file - while building gcc 4.6.0 From: Jonathan Wakely To: Syed Bilal Mehdi Cc: gcc-help@gcc.gnu.org Content-Type: text/plain; charset=ISO-8859-1 X-IsSubscribed: yes 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 X-SW-Source: 2011-06/txt/msg00121.txt.bz2 On 6 June 2011 20:33, Syed Bilal Mehdi wrote: > > I was trying to build gcc 4.6. Configure goes fine with the following > command: > > ./configure prefix=/scratch/local/Bilal/gcc/ > --with-gmp=/scratch/local/Bilal/gmp --with-mpfr=/scratch/local/Bilal/mpfr > --with-mpc=/scratch/local/Bilal/mpc Don't do that http://gcc.gnu.org/wiki/FAQ#configure > but make fails with the following error: > > checking for suffix of object files... configure: error: in > `/scratch/local/Bilal/gccSource/i686-pc-linux-gnu/libgcc': > configure: error: cannot compute suffix of object files: cannot compile > See `config.log' for more details. http://gcc.gnu.org/wiki/FAQ#configure_suffix > /scratch/local/Bilal/gccSource2/host-i686-pc-linux-gnu/gcc/cc1: error while > loading shared libraries: libmpc.so.2: cannot open shared object file: No > such file or directory This is the problem, because you didn't read the documentation for --with-gmp and --with-mpc See http://advogato.org/person/redi/diary/240.html