From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16274 invoked by alias); 12 Jan 2012 19:02:58 -0000 Received: (qmail 16260 invoked by uid 22791); 12 Jan 2012 19:02:56 -0000 X-SWARE-Spam-Status: No, hits=-6.7 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 12 Jan 2012 19:02:37 +0000 Received: from int-mx12.intmail.prod.int.phx2.redhat.com (int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.25]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q0CJ2a7l027308 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 12 Jan 2012 14:02:36 -0500 Received: from zebedee.pink (ovpn-113-21.phx2.redhat.com [10.3.113.21]) by int-mx12.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id q0CJ2ZhT021781; Thu, 12 Jan 2012 14:02:36 -0500 Message-ID: <4F0F2E4B.8030305@redhat.com> Date: Thu, 12 Jan 2012 19:25:00 -0000 From: Andrew Haley User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.24) Gecko/20111108 Fedora/3.1.16-1.fc14 Thunderbird/3.1.16 MIME-Version: 1.0 To: gcc-help@gcc.gnu.org Subject: Re: freebsd gcc cross compiler creates binaries that crash when using c++ exceptions References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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: 2012-01/txt/msg00084.txt.bz2 On 01/12/2012 06:55 PM, Markus Henschel wrote: > Is there some flaw in the way I built this toolchain? Where could I try to start looking for the source of the problem? I can add all sorts of other outputs from the created toolchains if it helps. I wouldn't put the installed compiler (i.e. the prefix=) into the same directory as the sysroot. The sysroot should be a clean & pristine copy of the root directories on your target. It isn't written to, only read from. Once you have done your make install you should have a set of target libraries that work in your prefix/lib. You can't mix the c++ and libgcc libraries you just built with the versions on your target system. It should be possible to install the newly-created ones side by side with the versions on your target system. If that still doesn't work, time to start gdb. Andrew.