From owner-freebsd-ports-bugs@freebsd.org Fri Aug 12 04:54:52 2016 Return-Path: Delivered-To: freebsd-ports-bugs@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 AE15DBB77EA for ; Fri, 12 Aug 2016 04:54:52 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (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 76C0C1B16 for ; Fri, 12 Aug 2016 04:54:52 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from bugs.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id u7C4speG028768 for ; Fri, 12 Aug 2016 04:54:52 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 211760] graphics/Coin builds fine with clang 3.8 Date: Fri, 12 Aug 2016 04:54:51 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: FreeBSD@ShaneWare.Biz X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-ports-bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 12 Aug 2016 04:54:52 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D211760 Shane changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |FreeBSD@ShaneWare.Biz --- Comment #6 from Shane --- The USE_GCC option is historic, it was used to make the port build with gcc= 48 instead of the base gcc4.2 which is still the base compiler on 9.3 that is supported until December 2016. The correct replacement for USE_GCC would now be USE=3Dcompiler:c++11-lang = - see /usr/ports/Mk/Uses/compiler.mk for available options. As for the build failure it starts with "error: use of undeclared identifier 'NO_SINGLEPREC'" these can be found in work/Coin-3.1.3/include/Inventor/C/base/math-undefs.h - reading the comments there shows this as their approach to preventing the use of math functions = that take a float parameter, these functions are not used within the Coin source code and the deliberate build breakage can be removed from the build by commenting out the #define lines in that file. I have not dug into this so = am unsure if some math functions are called indirectly and lead to float/double conversions that they don't want. Removing the #defines in math-undefs.h should allow any clang or gcc>4.2 to= be used. It was about 2 years ago I looked at this and think this got it to compile on 8.x and 9.x --=20 You are receiving this mail because: You are the assignee for the bug.=