From owner-freebsd-emulation@freebsd.org Wed Nov 28 05:02:37 2018 Return-Path: Delivered-To: freebsd-emulation@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 83BAD114761C for ; Wed, 28 Nov 2018 05:02:37 +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 EE1477E7DF for ; Wed, 28 Nov 2018 05:02:36 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id B0EBF114761B; Wed, 28 Nov 2018 05:02:36 +0000 (UTC) Delivered-To: emulation@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 8C63D1147619 for ; Wed, 28 Nov 2018 05:02:36 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [96.47.72.132]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (Client CN "freefall.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 2AA6C7E7DD for ; Wed, 28 Nov 2018 05:02:36 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by freefall.freebsd.org (Postfix) id 0AACB75D; Wed, 28 Nov 2018 05:02:36 +0000 (UTC) Delivered-To: vbox@localmail.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [96.47.72.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (Client CN "mx1.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by freefall.freebsd.org (Postfix) with ESMTPS id DFD2A75C for ; Wed, 28 Nov 2018 05:02:35 +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.3 with cipher TLS_AES_256_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 9EA097E7DA for ; Wed, 28 Nov 2018 05:02:35 +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 E1DE311E02 for ; Wed, 28 Nov 2018 05:02:34 +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 wAS52Y77073201 for ; Wed, 28 Nov 2018 05:02:34 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id wAS52Ypc073200 for vbox@FreeBSD.org; Wed, 28 Nov 2018 05:02:34 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: vbox@FreeBSD.org Subject: [Bug 233542] devel/kBuild improperly selects gcc version Date: Wed, 28 Nov 2018 05:02:35 +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 Many People X-Bugzilla-Who: rkoberman@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: vbox@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-Rspamd-Queue-Id: EE1477E7DF X-Spamd-Result: default: False [1.85 / 15.00]; local_wl_from(0.00)[freebsd.org]; NEURAL_SPAM_LONG(0.56)[0.556,0]; NEURAL_SPAM_MEDIUM(0.68)[0.678,0]; ASN(0.00)[asn:10310, ipnet:2001:1900:2254::/48, country:US]; NEURAL_SPAM_SHORT(0.61)[0.613,0] X-Rspamd-Server: mx1.freebsd.org X-Mailman-Approved-At: Wed, 28 Nov 2018 11:16:28 +0000 X-BeenThere: freebsd-emulation@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development of Emulators of other operating systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Nov 2018 05:02:37 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D233542 --- Comment #4 from rkoberman@gmail.com --- (In reply to Jung-uk Kim from comment #3) I won't argue, but the comments in Mk/bsd.gcc.mk would seem to. They also a= rgue that Mk/bsd.gcc.mk has a problem. # To request the use of a current version of GCC, specify USE_GCC=3Dyes in # your port/system configuration. This is the preferred use of USE_GCC. # It uses the canonical version of GCC defined in bsd.default-versions.mk. # # USE_GCC=3Dany is similar, except that it also accepts the old GCC 4.2- # based system compiler in older versions of FreeBSD. # # If your port needs a specific (minimum) version of GCC, you can easily # specify that with a USE_GCC=3D statement. Unless absolutely necessary # do so by specifying USE_GCC=3DX+ which requests at least GCC version X. # To request a specific version omit the trailing + sign. # # Examples: # USE_GCC=3D yes # port requires a current version= of GCC # # as defined in bsd.default-versions.mk. # USE_GCC=3D any # port requires GCC 4.2 or later. The use of "any" is to allow the use of gcc4.2, which is likely to cause is= sues considering its age and lack of recent support. Further, the coe in the .mk file seesm to likely not o what might be expected nor what the comments sta= te, though I find the comment "Default to the last GCC imported into base" to be very unclear. In any case, it should not choose gcc7 on n 11.2 system. The .mk code for "any" looks a bit odd to me. It does not appear to do what= the comments say, but I am far from an expert if make(1). .if defined(USE_GCC) && !defined(FORCE_BASE_CC_FOR_TESTING) . if ${USE_GCC} =3D=3D any # Enable the clang-is-cc workaround. Default to the last GCC imported # into base. _USE_GCC:=3D 4.2 _GCC_ORLATER:=3D true . else # ${USE_GCC} =3D=3D any # See if we can use a later version or exclusively the one specified. _USE_GCC:=3D ${USE_GCC:S/+//} .if ${USE_GCC} !=3D ${_USE_GCC} _GCC_ORLATER:=3D true .endif . endif # ${USE_GCC} =3D=3D any .mk code for "any"is a bit odd to me. --=20 You are receiving this mail because: You are the assignee for the bug.=