From owner-freebsd-ports@FreeBSD.ORG Fri Jul 12 07:02:39 2013 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 3DCEE4E2; Fri, 12 Jul 2013 07:02:39 +0000 (UTC) (envelope-from ohartman@zedat.fu-berlin.de) Received: from outpost1.zedat.fu-berlin.de (outpost1.zedat.fu-berlin.de [130.133.4.66]) by mx1.freebsd.org (Postfix) with ESMTP id 04A941F92; Fri, 12 Jul 2013 07:02:38 +0000 (UTC) Received: from inpost2.zedat.fu-berlin.de ([130.133.4.69]) by outpost1.zedat.fu-berlin.de (Exim 4.80.1) with esmtp (envelope-from ) id <1UxXNA-001c48-6z>; Fri, 12 Jul 2013 09:02:32 +0200 Received: from e179079111.adsl.alicedsl.de ([85.179.79.111] helo=thor.walstatt.dyndns.org) by inpost2.zedat.fu-berlin.de (Exim 4.80.1) with esmtpsa (envelope-from ) id <1UxXNA-002Eie-4P>; Fri, 12 Jul 2013 09:02:32 +0200 Date: Fri, 12 Jul 2013 09:02:31 +0200 From: "O. Hartmann" To: FreeBSD Ports , FreeBSD CURRENT Subject: CURRENT: Changes in lib/msun/math.h make ports to fail Message-ID: <20130712090231.3ccf1f08@thor.walstatt.dyndns.org> Organization: FU Berlin X-Mailer: Claws Mail 3.9.2 (GTK+ 2.24.19; amd64-portbld-freebsd10.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Originating-IP: 85.179.79.111 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Jul 2013 07:02:39 -0000 Updating CURRENT from r253216 to r253252 triggers an updating of several ports to fail, namely, for instance, www/firefox graphiks/webkit-gtk2 deskuitls/fbreader graphics/gdal The error is in all ports when compiled with CLANG 3.3 -std=c++11 -stdlib=libc++ similar, routing to math.h. I will show the error for www/firefox: [...] In file included from ./../../dist/include/mozilla/MathAlgorithms.h:15: /usr/include/c++/4.2/cmath:468:44: error: __builtin_types_compatible_p is not valid in C++ __capture_fpclassify(_Tp __f) { return fpclassify(__f); } ^~~~~~~~~~~~~~~ /usr/include/math.h:104:2: note: expanded from macro 'fpclassify' __fp_type_select(x, __fpclassifyf, __fpclassifyd, __fpclassifyl) ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/math.h:91:2: note: expanded from macro '__fp_type_select' __builtin_types_compatible_p(__typeof(x), long double), ld(x), [...] I was wondering why /usr/include/c++/4.2/cmath gets included and not the header provided for CLANG. I guess this is a typo/bug. I did do dig deeper into it. Hope someone can fix this. Regards, Oliver