From owner-freebsd-ports-bugs@freebsd.org Mon Jul 9 04:57:34 2018 Return-Path: Delivered-To: freebsd-ports-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 94A451040BD6 for ; Mon, 9 Jul 2018 04:57:34 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.ysv.freebsd.org (mailman.ysv.freebsd.org [IPv6:2001:1900:2254:206a::50:5]) by mx1.freebsd.org (Postfix) with ESMTP id 27F1C803FB for ; Mon, 9 Jul 2018 04:57:34 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id DCFB31040BCF; Mon, 9 Jul 2018 04:57:33 +0000 (UTC) Delivered-To: ports-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id BA8E91040BCE for ; Mon, 9 Jul 2018 04:57:33 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 55BCE803F5 for ; Mon, 9 Jul 2018 04:57:33 +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 mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id A0D881DEB3 for ; Mon, 9 Jul 2018 04:57:32 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id w694vWBr008297 for ; Mon, 9 Jul 2018 04:57:32 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w694vWsf008295 for ports-bugs@FreeBSD.org; Mon, 9 Jul 2018 04:57:32 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 229626] Mk/Uses/compiler.mk has spurious complaints for some ports on gcc-based archs Date: Mon, 09 Jul 2018 04:57:32 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Ports Framework X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: linimon@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: portmgr@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter cc Message-ID: 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.27 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Jul 2018 04:57:34 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D229626 Bug ID: 229626 Summary: Mk/Uses/compiler.mk has spurious complaints for some ports on gcc-based archs Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: Ports Framework Assignee: portmgr@FreeBSD.org Reporter: linimon@FreeBSD.org CC: ports-bugs@FreeBSD.org Some ports have adopted the following pattern to work around dependency iss= ues: BUILD_DEPENDS+=3D clang40:devel/llvm40 CC=3D clang40 CXX=3D clang++40 However, on archs where clang is not the default compiler, this creates complaints for any bulk build: /bin/sh: clang40: not found make[2]: "/usr/ports/Mk/Uses/compiler.mk" line 78: warning: "clang40 --version" returned non-zero status make[2]: "/usr/ports/Mk/Uses/compiler.mk" line 133: warning: "clang++40 -= ### /dev/null 2>&1" returned non-zero status See sysutils/osquery for an example of "clang40". This pattern is also seen for instances of "clang50" and "clang60", but the symptoms are the same. The logic in compiler.mk is hard for me to follow, but here are the offendi= ng lines: _CCVERSION!=3D ${CC} --version _CXXINTERNAL!=3D ${CXX} -\#\#\# /dev/null 2>&1 These lines were introduced in the initial commit of compiler.mk. I don't know what the proper fix is, but my guess is that the two lines abo= ve were written assuming that CC/CXX were whatever is in the base system. So, either those two lines should be fixed, or compiler.mk refactored to take s= ome kind of parameter to say "assign BUILD_DEPENDS/CPP/CC/CXX/ in the following fashion" and use that to trigger a code block exactly like e.g. lines 186, = 208, 230, 252, and 274. --=20 You are receiving this mail because: You are on the CC list for the bug.=