- To: "gcc-help@xxxxxxxxxxx" <gcc-help@xxxxxxxxxxx>
- Subject: RE: freebsd gcc cross compiler creates binaries that crash when using c++ exceptions
- From: Markus Henschel <markus.henschel@xxxxxxxx>
- Date: Mon, 16 Jan 2012 11:59:24 +0100
- Comment: DKIM? See http://www.dkim.org
- Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=gcc.gnu.org; s=default; x=1327316396; h=Comment: DomainKey-Signature:Received:Received:Received:Received:Received: From:To:Date:Subject:Message-ID:References:In-Reply-To: Content-Type:Content-Transfer-Encoding:MIME-Version:Mailing-List: Precedence:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:Sender:Delivered-To; bh=H+DBjmGvq3Z/16qQN4FU7Mk72rc=; b=XyOfKq/ZGpotBqGjCGw5AhMkrtAPKQCBhEJdRqtYxmF+GPXOqGWNADwIxgRSFG CNRu9iUuu/FGOB1oGGbXDK24xoFOEJclnjEDNkR+oPW3AsugZYsd5zwla1Upndkh bKhhX1UFazqNRGqFuJxvb/WVA1+wKTngHsjphFv4FhCGU=
- In-reply-to: <4F140019.9010202@redhat.com>
> -----Original Message-----
> From: gcc-help-owner@xxxxxxxxxxx [mailto:gcc-help-owner@xxxxxxxxxxx] On
> Behalf Of Andrew Haley
> Sent: Montag, 16. Januar 2012 11:47
> To: gcc-help@xxxxxxxxxxx
> Subject: Re: freebsd gcc cross compiler creates binaries that crash
> when using c++ exceptions
>
> On 01/16/2012 10:44 AM, Andrew Haley wrote:
> > On 01/16/2012 09:30 AM, Markus Henschel wrote:
> >> What I did so far was attaching gdb and seeing that it crashes in
> libgcc in __cxa_end_catch. I guess I'll have to build libgcc with debug
> symbols then.
> >
> > This is almost always a mismatch of libraries: there is a complex set
> > of interdependencies between libc, libstdc++, and libgcc.
>
> By the way, what does a native freebsd gcc do?
>
> Andrew
When I take the same sources for gcc that produce the "buggy" cross compiler on linux and build it natively on FreeBSD it works as it should. I even used the same --with-sysroot and --prefix switches and copied the freebsd sysroot from the linux machine to make sure I did not mistake when extracting the sysroot and copying it to the linux host in the first place.
I also created another cross compiler hosted on mingw32 for freebsd from the same sourcen. It fails the same way as the linux hosted one. I also started comparing the config.log files for differences but haven't found something unusual so far.
[Linux C Programming]
[Linux Kernel]
[eCos]
[Fedora Development]
[Fedora Announce]
[Autoconf]
[The DWARVES Debugging Tools]
[Yosemite Campsites]
[Yosemite News]
[Linux GCC]