From owner-freebsd-ports@freebsd.org Tue Nov 29 20:28:40 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 347FEC5A9FA for ; Tue, 29 Nov 2016 20:28:40 +0000 (UTC) (envelope-from fernando.apesteguia@gmail.com) Received: from mail-lf0-x232.google.com (mail-lf0-x232.google.com [IPv6:2a00:1450:4010:c07::232]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id A6E7F132F for ; Tue, 29 Nov 2016 20:28:39 +0000 (UTC) (envelope-from fernando.apesteguia@gmail.com) Received: by mail-lf0-x232.google.com with SMTP id c13so130685387lfg.0 for ; Tue, 29 Nov 2016 12:28:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=Rz7i6D0thwDzX1Bd8MRIu/bBE2KPkGSdkWmIqyLYkD0=; b=VlmlmPMExiM+4aU5SUieHWHc85JdmtsjCfXzcItL1ru4Wo1H1ZvfiGXTwyQRAOVYsp k8N1mDQAE2a5gic2Ggzam6XsXlzc62KQp12NHPj6pCyJ8PzQpnofbOGH8DL1msyDr9uk AM8h4Etoph63Uw30oQxgziujsGpe/uVeUfkFJm17MQDlKDxrebI5RSU+YF1BaZyop66t DSs5RidY8iMR9Y+Ymt47hL51Q12iBiCqs6SGCOecGTDcN/kSN5eKMD086efwLCdiGGGs SU85RR1OzvQ2B+UOhh/ku0idvnuPVhL5HhuxM9IIkUgWbKwsW2mfzKgc6Q6BRa16dIdA t+Lw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=Rz7i6D0thwDzX1Bd8MRIu/bBE2KPkGSdkWmIqyLYkD0=; b=f+iyRVybTyA8XCUgzTuSrGqXnzaEEWSLoNYdKeZ0PHcUkCriVHKk2FQyKvyMS+vin9 C/VQ+p9ktClktDa8VHob/VMjSaitYSIPgM2UM52ByKZ2cPr6wgMOeF6XLb87mJxSveVL u9i5ANni5oIJf21k89jKhgVAnaMdkNO2+bTx1B9JKN/pFtuCEm8zWLKJR7feltrLSnFR bBXVtPbc618yIk+I9YBKDBlZFwpA6q1pVuMsiZjkx4aZHs9njzBt2ig6fZYprX5M8Rm9 l0KVUwjiF5s5LQMYXuhA8oW3jx14JbPsKsgG4skltBmCckERHPbAVVeFJfjf3/fj9rfp gW6g== X-Gm-Message-State: AKaTC015qF21rDdIIm5VOmqjBn9M1K4gGKkiymqGrTPRc3phvCr7vbQcuOJnqA63+jTjg2m5l7MuIz7n5DaOxQ== X-Received: by 10.25.5.7 with SMTP id 7mr9106882lff.125.1480451317712; Tue, 29 Nov 2016 12:28:37 -0800 (PST) MIME-Version: 1.0 Received: by 10.25.33.212 with HTTP; Tue, 29 Nov 2016 12:28:35 -0800 (PST) Received: by 10.25.33.212 with HTTP; Tue, 29 Nov 2016 12:28:35 -0800 (PST) In-Reply-To: References: From: =?UTF-8?Q?Fernando_Apestegu=C3=ADa?= Date: Tue, 29 Nov 2016 21:28:35 +0100 Message-ID: Subject: Re: Help with C++, gcc4.9 and libstdc++ To: Rainer Hurling Cc: FreeBSD Mailing List Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.23 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 20:28:40 -0000 El 29 nov. 2016 18:58, "Rainer Hurling" escribi=C3=B3: > > Hi Fernando, > > Am 29.11.2016 um 17:50 schrieb Fernando Apestegu=C3=ADa: > > 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=3Dcompiler: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=3D214863 > > As far, as I understand, a patch with a workaround will be committed in > the next time. Thanks for the info! > > HTH, > Rainer