From owner-freebsd-ports@freebsd.org Tue Nov 29 18:43:16 2016 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5C480C5CFD8 for ; Tue, 29 Nov 2016 18:43:16 +0000 (UTC) (envelope-from rhurlin@gwdg.de) Received: from fmailer.gwdg.de (fmailer.gwdg.de [134.76.11.16]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 2300C1472 for ; Tue, 29 Nov 2016 18:43:15 +0000 (UTC) (envelope-from rhurlin@gwdg.de) Received: from um-excht-a01.um.gwdg.de ([134.76.11.221] helo=email.gwdg.de) by mailer.gwdg.de with esmtp (Exim 4.80) (envelope-from ) id 1cBmfW-0001Lr-Av; Tue, 29 Nov 2016 18:58:14 +0100 Received: from krabat.raven.hur (79.210.219.173) by email.gwdg.de (134.76.9.210) with Microsoft SMTP Server (TLS) id 14.3.319.2; Tue, 29 Nov 2016 18:58:13 +0100 Subject: Re: Help with C++, gcc4.9 and libstdc++ To: =?UTF-8?Q?Fernando_Apestegu=c3=ada?= References: CC: FreeBSD Mailing List From: Rainer Hurling Message-ID: Date: Tue, 29 Nov 2016 18:58:02 +0100 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.5.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 8bit X-Spam-Level: - X-Virus-Scanned: (clean) by clamav X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Nov 2016 18:43:16 -0000 Hi Fernando, Am 29.11.2016 um 17:50 schrieb Fernando Apesteguía: > I maintain a port written mostly in C++ (cad/openvsp). > > This port used to compile fine in 11 and 10.x in both i386 and amd64. > Since Nov 22nd I'm receiving a pkg-fallout for this port in 10.1. The > port fails with this message: > > undefined reference to `__cxa_throw_bad_array_new_length' > > I assume the source of the problem is defaulting to gcc 4.9 in the > ports and it seems to be related to libstdc++ > > I use USES=compiler:gcc-c++11-lib in the Makefile since some c++11 > features are required. Any idea of why this could be failing to link?. > What puzzles me is that it compiles fine with gcc 4.9 in 10.2. > > Thanks in advance. this also happens with a few other ports, and is described in https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=214863 As far, as I understand, a patch with a workaround will be committed in the next time. HTH, Rainer