From owner-freebsd-ports@freebsd.org Sun Dec 11 18:00:13 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 06FD8C72AC9 for ; Sun, 11 Dec 2016 18:00:13 +0000 (UTC) (envelope-from fernando.apesteguia@gmail.com) Received: from mail-wm0-x230.google.com (mail-wm0-x230.google.com [IPv6:2a00:1450:400c:c09::230]) (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 914081BEC for ; Sun, 11 Dec 2016 18:00:12 +0000 (UTC) (envelope-from fernando.apesteguia@gmail.com) Received: by mail-wm0-x230.google.com with SMTP id a197so32202211wmd.0 for ; Sun, 11 Dec 2016 10:00:12 -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:content-transfer-encoding; bh=9ag9x7QO/kr+1MDQLNkvKxlzoRCy3jPdqmrxG30TOGU=; b=X50RR+nit5ctt9h1imHFH9FAFY/V2bRsNAkQfX95nNQmk6Z+iul8hiExGOnd4mpTeO /QqLCG45i6RtJQrNBUu1KA5Lq69wQj+lthLKR6FdpnXTgF9os0KUFtaKWQwEh6xkqYk1 Sj8hxEaXzgAzaJU3p0L2F17T2hpToj6ScfaIL0/T5CqIPcJP6Nin+iV1qj3YbD/VTf/3 knn4/LGii2YtSXmRkat8a48f/dfrLdZtslhbbLPagCRn/XUA4+QJK9KQA6Pmbw0sm449 97xpoGk+9i1IOaFvohgek4kYpDh2X7pULJqWfx+Hm265QnvwcGB+Se1AQALa045soRAu PuQA== 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:content-transfer-encoding; bh=9ag9x7QO/kr+1MDQLNkvKxlzoRCy3jPdqmrxG30TOGU=; b=WXv2pWyv4FnA3YM5eLgOEXQE8qMT57Y2J9I2xgIm/bRBdvlPZ2H9g61u/98EpQegwY EJYftexO+FmselTAXxbSuFwCilg0RBwBK4wjXBivq8PXAWlHr3SLJVRpBsXNxvqBzA3a WFVAPGuoCJ5e76veCTJjt7Bv02HkolQSGAVvbmhEy2C/ZqWcr4CqVxy/ouvFjlMDwGHG QKmWNCrluc7FX5BrUI/IPhXGnavwA1Y50iV+KIWb6WmcvcgdNlXmGXsJjM7pRDsv+jVZ 6id+nsePmYH295DbqqO53VkSEOu25q3UQ5F/KzRlw4ByO9tEPqiyyDk6JvKygLSRiSBL FjBw== X-Gm-Message-State: AKaTC01hGL86AJnCU+fw2MsTuRHkinP+0m1q/UM5aeGzwqhWOgG8HclB7leH1qcvSvgfdLIfFO+PDF4v/6xSbA== X-Received: by 10.25.221.208 with SMTP id w77mr5398322lfi.39.1481479210446; Sun, 11 Dec 2016 10:00:10 -0800 (PST) MIME-Version: 1.0 Received: by 10.25.17.224 with HTTP; Sun, 11 Dec 2016 10:00:09 -0800 (PST) In-Reply-To: References: From: =?UTF-8?Q?Fernando_Apestegu=C3=ADa?= Date: Sun, 11 Dec 2016 19:00:09 +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-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: Sun, 11 Dec 2016 18:00:13 -0000 On Tue, Nov 29, 2016 at 9:28 PM, Fernando Apestegu=C3=ADa wrote: > 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. Until that time comes, I would like to send an update but I'm having some problems with it. I need a c++11 lib but I need gcc < 4.9 for the port to compile on 10.1 (in < 10.x it doesn't build due to the lack of certain math functions and in > 10.2 it compiles nicely). I've been playing around with USE_GCC =3D 4.8 to no luck. How can I specify both, gcc 4.8 specifically and still getting all the work behing the gcc-c++11-lib ARG? 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