From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2588 invoked by alias); 23 Apr 2010 15:58:40 -0000 Received: (qmail 2568 invoked by uid 22791); 23 Apr 2010 15:58:35 -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_CX,TW_DC,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; Fri, 23 Apr 2010 15:58:24 +0000 Received: from wpaz24.hot.corp.google.com (wpaz24.hot.corp.google.com [172.24.198.88]) by smtp-out.google.com with ESMTP id o3NFwKxL003094 for ; Fri, 23 Apr 2010 17:58:21 +0200 Received: from wwe15 (wwe15.prod.google.com [10.241.242.15]) by wpaz24.hot.corp.google.com with ESMTP id o3NFwIHH010829 for ; Fri, 23 Apr 2010 08:58:19 -0700 Received: by wwe15 with SMTP id 15so946872wwe.0 for ; Fri, 23 Apr 2010 08:58:18 -0700 (PDT) Received: by 10.216.89.211 with SMTP id c61mr351895wef.86.1272038298268; Fri, 23 Apr 2010 08:58:18 -0700 (PDT) Received: from coign.google.com (dhcp-172-22-126-240.mtv.corp.google.com [172.22.126.240]) by mx.google.com with ESMTPS id e82sm579965wej.4.2010.04.23.08.58.15 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 23 Apr 2010 08:58:17 -0700 (PDT) To: Peter Elmer Cc: Subject: Re: Problems building gcc4.5.0 fortran compiler when gold is enabled References: <20100421183116.GK24476@localhost.localdomain> From: Ian Lance Taylor Date: Sat, 24 Apr 2010 01:06:00 -0000 In-Reply-To: <20100421183116.GK24476@localhost.localdomain> (Peter Elmer's message of "Wed\, 21 Apr 2010 20\:31\:16 +0200") 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/msg00250.txt.bz2 Peter Elmer writes: > /build/45go/slc5_amd64_gcc450/external/gcc/4.5.0/x86_64-unknown-linux-gnu/bin/ld: /build/45go/slc5_amd64_gcc450/external/gcc/4.5.0/tmp/ppl/lib/libppl_c.a(ppl_c_implementation_common.o): in function ppl_io_asprint_variable:ppl_c_implementation_common.cc:2004: error: undefined reference to '__cxa_begin_catch' PPL uses C++ and exceptions. This means that if you link against PPL configured with --disable-shared you need to also link with -lstdc++. It may work to configure gcc with the --with-host-libstdcxx option. The installation docs say: --with-host-libstdcxx=linker-args If you are linking with a static copy of PPL, you can use this option to specify how the linker should find the standard C++ library used internally by PPL. Typical values of linker-args might be `-lstdc++' or `-Wl,-Bstatic,-lstdc++,-Bdynamic -lm'. If you are linking with a shared copy of PPL, you probably do not need this option; shared library dependencies will cause the linker to search for the standard C++ library automatically. Ian