From nobody Sat Oct 19 04:40:35 2024 X-Original-To: riscv@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 4XVpm43m4lz5Zdm8 for ; Sat, 19 Oct 2024 04:40:36 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XVpm424R1z4wK4 for ; Sat, 19 Oct 2024 04:40:36 +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=1729312836; 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: in-reply-to:in-reply-to:references:references; bh=2sYAFi8o0rRWdaCQodlbTl56UPGbjks/AytO28u4lds=; b=e6fDBTT09aFgTGLIqRl+uT4iiS4cln4vKJZgGu8giGjG/DHylcBE+7aFA8Xdh2J7E1Er05 KS7OQISCuIawq6cpppdvIrNKnv+bTWLkJ8Pti5MgXByQ1jU83LyrUJkZiSpfdUGK87JDet s8OFfgKqNgpnvg20zxmgPnlc5LlqmtuugMeAVF+Stpa5HUdniYH5a1+U40dPw4thsGPCNd SB2Zn9tYk8fEL4DoJToGcB34904CiOqxzIM2Ug60Vm9Lilmisop4ALceHgXm50497KLbOc pRpBKrAVBL3LBa8s25On4PKVHIWw/w7wVFhd3vroLSR0X4QJvaUncfRlBJpoYg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1729312836; a=rsa-sha256; cv=none; b=RpuUF9odJ578dLBV9nnXCOWFesSEAFmiRnUrm8Ys7HWJgJ/KPTkEQ2NnxQopquYuh4r/m9 LFl9NyDDFN8K4nIJpn/YxBH0Z4dkQnkikbyFs4jiuDIob2kqcxNT9yFpRAoofSiK9uftQA D4yV/qlN6dl1EikZaQDL93UYXvy+wTSXWhJRL9482yNpbQ2QJiSUY+1IxxTkOoWsHr/8y/ NzikRn23EhTFjSHtu+exM47MfhsrWGPpNHIYJUfnXVM0/6Ma5EK47MCZz5QiHdmrjR7moE QZEZI2NwGGrMZjXVtQI4JHUqquhvkQuLnjVkI+i5hdNwvcAkx/g27JpFKQeeNg== 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 4XVpm41QyZz13fT for ; Sat, 19 Oct 2024 04:40:36 +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 49J4eajl027944 for ; Sat, 19 Oct 2024 04:40:36 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 49J4eaHV027943 for riscv@FreeBSD.org; Sat, 19 Oct 2024 04:40:36 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: riscv@FreeBSD.org Subject: [Bug 281600] lang/rust failing to build on risc-v (again) Date: Sat, 19 Oct 2024 04:40:35 +0000 X-Bugzilla-Reason: CC 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: dgilbert@eicat.ca X-Bugzilla-Status: In Progress X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: mhorne@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 List-Id: FreeBSD on the RISC-V instruction set architecture List-Archive: https://lists.freebsd.org/archives/freebsd-riscv List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-riscv@freebsd.org Sender: owner-freebsd-riscv@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D281600 --- Comment #29 from dgilbert@eicat.ca --- So the patch, to make this compile and work, is to put COMPAT_FREEBSD11 into the kernel and recompile the kernel. Then things work. Now obviously, several people here understand, but just to be clear: Languages like rust don't use libc (or use it sparingly). In their own equivalent of libc, they call syscalls _directly_. Now, there do not exist ports that sensibly depend on COMPAT_11 on risc-v for FreeBSD because 11 was deprecated before FreeBSD ran on risc-v. But, a language that doesn't use = libc and calls syscalls directly can be written to use the FreeBSD-11 set of syscalls. Technically the nirvana of shared libraries is the idea that a binary can function without even knowing about syscalls --- as they're all provided for the binary --- and provided in updated form such that the binary still runs= .=20 COMPAT and friends are needed, in those cases, when a statically linked bin= ary is in play --- as it might call old syscalls that no longer exist. This is not the play here. Think of rust as an entirely different and some= what incompatible way to generate those binaries, that, from the perview of the = OS, are in the same bin as statically linked. We provide the userland shared libraries --- this "upgrades" most things, but not, sadly, rust. --=20 You are receiving this mail because: You are on the CC list for the bug.=