From owner-freebsd-bugs@freebsd.org Fri Jul 24 15:51:08 2020 Return-Path: Delivered-To: freebsd-bugs@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id A39BC36A624 for ; Fri, 24 Jul 2020 15:51:08 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 4BCtwC6VDtz3SHh for ; Fri, 24 Jul 2020 15:51:07 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 7DF2736A5B4; Fri, 24 Jul 2020 15:51:05 +0000 (UTC) Delivered-To: bugs@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 71EC736A2F0 for ; Fri, 24 Jul 2020 15:51:05 +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 "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4BCtw90gknz3SbF for ; Fri, 24 Jul 2020 15:51:04 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) 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 C2A04CB79 for ; Fri, 24 Jul 2020 15:51:03 +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 06OFp3b3021968 for ; Fri, 24 Jul 2020 15:51:03 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 06OFp3jo021967 for bugs@FreeBSD.org; Fri, 24 Jul 2020 15:51:03 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: bugzilla set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 248184] readlink("/proc/curproc/file") returns arbitrary correct name for programs with more than one link (name) Date: Fri, 24 Jul 2020 15:51:03 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 12.1-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: commit-hook@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: 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-bugs@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Jul 2020 15:51:08 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D248184 --- Comment #5 from commit-hook@FreeBSD.org --- A commit references this bug: Author: tobik Date: Fri Jul 24 15:50:57 UTC 2020 New revision: 543251 URL: https://svnweb.freebsd.org/changeset/ports/543251 Log: lang/rust-nightly: Attempt to fix intermittent "can't find crate for `std= `" build failures The location of rustc (found via env::current_exe()) is used to find the right libstd. However it might have been "copied" by creating a hard link to the new location instead. Like /proc/curproc/fil= e, KERN_PROC_PATHNAME (used internally by current_exe()) can return any of the file's multiple paths. Most of the time it returns the right rustc path and the build will succeed but occasionally it will return the "wrong" path and the build fails with: error[E0463]: can't find crate for `std` If this is right a viable workaround should be to never create hard links during the build, so let's try that. Also drop the related llvm-config-wrapper workaround. PR: 248184 Changes: head/lang/rust-nightly/files/patch-src_bootstrap_lib.rs head/lang/rust-nightly/files/patch-src_bootstrap_native.rs --=20 You are receiving this mail because: You are the assignee for the bug.=