From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23415 invoked by alias); 24 Apr 2010 01:02:34 -0000 Received: (qmail 23350 invoked by uid 22791); 24 Apr 2010 01:02:32 -0000 X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,SPF_HELO_PASS,TW_DP,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from smtp-out.google.com (HELO smtp-out.google.com) (74.125.121.35) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 24 Apr 2010 01:02:28 +0000 Received: from wpaz13.hot.corp.google.com (wpaz13.hot.corp.google.com [172.24.198.77]) by smtp-out.google.com with ESMTP id o3O12PlU018454 for ; Sat, 24 Apr 2010 03:02:25 +0200 Received: from pwi7 (pwi7.prod.google.com [10.241.219.7]) by wpaz13.hot.corp.google.com with ESMTP id o3O12NOG032046 for ; Fri, 23 Apr 2010 18:02:24 -0700 Received: by pwi7 with SMTP id 7so7251805pwi.7 for ; Fri, 23 Apr 2010 18:02:23 -0700 (PDT) Received: by 10.114.7.35 with SMTP id 35mr1155514wag.4.1272070943205; Fri, 23 Apr 2010 18:02:23 -0700 (PDT) Received: from coign.google.com ([67.218.104.169]) by mx.google.com with ESMTPS id f11sm7256299wai.11.2010.04.23.18.02.20 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 23 Apr 2010 18:02:21 -0700 (PDT) To: Alexey Salmin Cc: gcc-help@gcc.gnu.org Subject: Re: gcc trunk and -lmpc References: From: Ian Lance Taylor Date: Sat, 24 Apr 2010 11:14:00 -0000 In-Reply-To: (Alexey Salmin's message of "Thu\, 22 Apr 2010 11\:16\:25 +0700") Message-ID: User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-System-Of-Record: true 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: 2010-04/txt/msg00253.txt.bz2 Alexey Salmin writes: > Hello! Today I tried to build latest gcc trunk (rev #158628) and got > the following errors: > > libbackend.a(builtins.o): In function `fold_builtin_ccos': > /home/salmin/gcc-trunk/host-x86_64-unknown-linux-gnu/gcc/../.././gcc/builtins.c:7341: > undefined reference to `mpc_cosh' > /home/salmin/gcc-trunk/host-x86_64-unknown-linux-gnu/gcc/../.././gcc/builtins.c:7341: > undefined reference to `mpc_cos' > libbackend.a(builtins.o): In function `fold_builtin_cexp': > /home/salmin/gcc-trunk/host-x86_64-unknown-linux-gnu/gcc/../.././gcc/builtins.c:7434: > undefined reference to `mpc_exp' > .... > > which is surprising because I have libmpc installed (debian sid): > salmin@salmin:~/gcc-trunk$ dpkg -l libmpc* | grep ^ii | grep -v libmpcdec > ii libmpc-dev 0.8.1-1 > multiple precision complex floating-point library development > package > ii libmpc2 0.8.1-1 > multiple precision complex floating-point library > > configuring with LDFLAGS=-lmpc solved the problem. Is it a bug in > Makefile or something or I'm doing it wrong? This certainly sounds like a bug in the configure script or the Makefile. It may be that since mpc is so new few people have tested building gcc against an installed libmpc. Ian