From nobody Thu Nov 24 18:24:40 2022 X-Original-To: ports-bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4NJ5xj2fdrz4hqCZ for ; Thu, 24 Nov 2022 18:24:41 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4NJ5xj0QH7z3m1w for ; Thu, 24 Nov 2022 18:24:41 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1669314281; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=/KUGsKoo2+GY8LNCtyQ18M9CNDTlM2N9kNeHv96Uk6E=; b=h8iLrAJcxVSSDlLzOU6GiZS7B0n1YLp0LkqZKyt6+PQuXGK0kkUHWCcDSHd/3XdH9BTvAJ Df/+K8RMSY36elowRJzGtpjf+NGFROVXqTYeJY9I6bTv8Hdor05XcE9vteiH61sRd0tUO8 b9vYizEau7GgIwtHUOTuMIbQsnRRhr8SmlkOxBj1Oyb1AUIGyNZ+PaedJ9Ri20gz6p4K+k jSeiPQh2tBLjE4mumZ9l5I4Yl86EjUL7DqTQzAUoko96SOl+ngpLv0jta/WK3QA1lHUBoP rf5c+IpscjO9b+7W4Kk6yUZe8+FexfQrNvHMYQv+vOKLZfJ5KktmNhldi+yTUg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1669314281; a=rsa-sha256; cv=none; b=uYUATVQuByYtmlrUAMnV+n4Thtrd+TiAtxRy10VmH0wJrFGPNTDqXkJq6sZzz8zSz+9sp7 /FR4yAD/7GzFpdcbgVj7rFznpy6CnlnMTSTAa0k1A648BFKfZgfzPKl99gCPsO4I5dxc8r 5O9H8JIoM+TPoYnP/dMKR0o6G0HrPqbqkSMw+8AyHmtWoDksxGo3gOh8tOppr6JoBzR2c5 UoRHMp71mpY2aZOJ6jLwmj8WXi1uw+5bfQ7oMJT9siIYXgb19KrweCLypU55PfxEYt0Ymz Dp8Rn7lu1pCAU77aWgs0Cw6LvrMpxajvLFNzxgPTMeZKzkU0dKMQo3UgfhBbBQ== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4NJ5xh6c4Yz19Vl for ; Thu, 24 Nov 2022 18:24:40 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 2AOIOejl026244 for ; Thu, 24 Nov 2022 18:24:40 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 2AOIOeqb026243 for ports-bugs@FreeBSD.org; Thu, 24 Nov 2022 18:24:40 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 267971] devel/cmake-core: cmake doesn't respect PATH when it resolves CMAKE_CXX_COMPILER for g++11 Date: Thu, 24 Nov 2022 18:24:40 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new 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: yuri@freebsd.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: kde@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter flagtypes.name attachments.created 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 List-Id: Ports bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-ports-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports-bugs@freebsd.org X-BeenThere: freebsd-ports-bugs@freebsd.org MIME-Version: 1.0 X-ThisMailContainsUnwantedMimeParts: N https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D267971 Bug ID: 267971 Summary: devel/cmake-core: cmake doesn't respect PATH when it resolves CMAKE_CXX_COMPILER for g++11 Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: kde@FreeBSD.org Reporter: yuri@freebsd.org Assignee: kde@FreeBSD.org Flags: maintainer-feedback?(kde@FreeBSD.org) Created attachment 238311 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D238311&action= =3Dedit cmake-PATH.shar Please consider that both c++ and g++11 are not in /usr/local/bin, but inst= ead they are in /usr/local/libexec/ccache, which is placed first in PATH. When cmake is called with -DCMAKE_CXX_COMPILER=3Dg++11 and the CMAKE_PREFIX_PATH=3D"/usr/local" environment variable is set - CMAKE_CXX_CO= MPILER ends up being /usr/local/bin/g++11 regardless of PATH. But if in the above invocation g++11 is replaced with c++ - CMAKE_CXX_COMPI= LER is resolved through PATH as it should be. The attached program demonstrates this problem. Execute run.sh from the attached shar archive. It has 2 sections, GOOD and = BAD. BAD section has CMAKE_PREFIX_PATH=3D"/usr/local" and it shows that CMAKE_CXX_COMPILER=3D/usr/local/bin/g++11 If you would replaces g++11 with c++ - this problem would go away. This problem prevents CCACHE from working for projects that use GCC. --=20 You are receiving this mail because: You are the assignee for the bug.=