From owner-freebsd-ports-bugs@freebsd.org Fri Jul 15 23:07:15 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 0CFC3B99777 for ; Fri, 15 Jul 2016 23:07:15 +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 E5EA41A77 for ; Fri, 15 Jul 2016 23:07:14 +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 u6FN7EsH034013 for ; Fri, 15 Jul 2016 23:07:14 GMT (envelope-from bugzilla-noreply@freebsd.org) From: bugzilla-noreply@freebsd.org To: freebsd-ports-bugs@FreeBSD.org Subject: [Bug 209742] devel/godot: Update to 2.0.4.1; add devel/godot-tools port Date: Fri, 15 Jul 2016 23:07:15 +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: feature, patch X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: FreeBSD@ShaneWare.Biz X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-ports-bugs@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback+ X-Bugzilla-Changed-Fields: 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, 15 Jul 2016 23:07:15 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D209742 --- Comment #55 from Shane --- On 10.3 clang 3.8 from ports you get a warning, On 11.0 clang 3.8 in base it is an error that stops the build. So it is changes in the system headers/libs in 11.0 that leaves abs(unsigned int) as no longer accepted, not clang 3.8 itself, unless 11.0 has different warning defaults compiled in compared to ports clang, I don't get the info about the -Wabsolute-value flag in 11.0 so there is a variation somewhere. In the failing piece of code sampleRate is an unsigned int which is why this one fails where the other uses of abs and fabs compile, as they use int and float with some casts to suit. We could also add a cast here (abs(srate-(int)sampleRate)>100) to get it to compile, which would match wi= th other existing code. I chose removing abs as the use of unsigned int should remove the need. To me the one odd result you get in your test shouldn't be returning true. = That odd result is saying that (44100-44200) is greater than 100 - by itself (44100-44200) will return -100 then comparing that to 100 it is saying that -100 is greater than 100, even dropping the sign they should be equal. The error on 11.0 - drivers/rtaudio/RtAudio.cpp:9046:8: error: call to 'abs' is ambiguous if ( abs( srate - sampleRate ) > 100 ) { ^~~ /usr/include/stdlib.h:83:6: note: candidate function int abs(int) __pure2; ^ /usr/include/c++/v1/stdlib.h:115:44: note: candidate function inline _LIBCPP_INLINE_VISIBILITY long abs( long __x) _NOEXCEPT {re= turn labs(__x);} ^ /usr/include/c++/v1/stdlib.h:117:44: note: candidate function inline _LIBCPP_INLINE_VISIBILITY long long abs(long long __x) _NOEXCEPT {re= turn llabs(__x);} ^ /usr/include/c++/v1/math.h:646:1: note: candidate function abs(float __lcpp_x) _NOEXCEPT {return fabsf(__lcpp_x);} ^ /usr/include/c++/v1/math.h:650:1: note: candidate function abs(double __lcpp_x) _NOEXCEPT {return fabs(__lcpp_x);} ^ /usr/include/c++/v1/math.h:654:1: note: candidate function abs(long double __lcpp_x) _NOEXCEPT {return fabsl(__lcpp_x);} ^ 1 error generated. scons: *** [drivers/rtaudio/RtAudio.x11.opt.64.llvm.o] Error 1 scons: building terminated because of errors. =3D=3D=3D> Compilation failed unexpectedly. Try to set MAKE_JOBS_UNSAFE=3Dyes and rebuild before reporting the failure = to the maintainer. *** Error code 1 Stop. make[1]: stopped in /usr/ports/devel/godot *** Error code 1 Stop. make: stopped in /usr/ports/devel/godot --=20 You are receiving this mail because: You are the assignee for the bug.=