From nobody Tue Nov 12 22:35:36 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 4Xp1TV0MgYz5ck18 for ; Tue, 12 Nov 2024 22:35:42 +0000 (UTC) (envelope-from dclarke@blastwave.org) Received: from mail.oetec.com (mail.oetec.com [108.160.241.186]) (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 ECDSA (P-256) client-digest SHA256) (Client CN "mail.oetec.com", Issuer "E6" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Xp1TT0rcLz4VSm for ; Tue, 12 Nov 2024 22:35:41 +0000 (UTC) (envelope-from dclarke@blastwave.org) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=blastwave.org header.s=default header.b=FvfI6IQ9; spf=pass (mx1.freebsd.org: domain of dclarke@blastwave.org designates 108.160.241.186 as permitted sender) smtp.mailfrom=dclarke@blastwave.org; dmarc=pass (policy=quarantine) header.from=blastwave.org Received: from [172.16.35.3] (pool-99-253-118-250.cpe.net.cable.rogers.com [99.253.118.250]) (authenticated bits=0) by mail.oetec.com (8.17.1/8.17.1) with ESMTPSA id 4ACMZaSg040700 (version=TLSv1.3 cipher=TLS_AES_128_GCM_SHA256 bits=128 verify=NOT) for ; Tue, 12 Nov 2024 17:35:38 -0500 (EST) (envelope-from dclarke@blastwave.org) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=blastwave.org; s=default; t=1731450938; bh=iVPfdbIsaqKCxFIwnLaUOhLWvDdb+JtyU1lkPLGw9bc=; h=Date:Subject:To:References:From:In-Reply-To; b=FvfI6IQ9ZYZ43OR9qjEZz8aPAxwTEPgvyN4M6Y2LxatI87NF/kZi2aPqPF5SjHvuk 0dQVpsB1JmHE+QtaB/u0wzXrv8pXh1IvG2bosrCphjs2zmZCf3XLlehMyv8sVM8ajt 1rjrDWpuqQV4wWK1TW5AXTe5xRRmwgxcAH5dPs0PFMYlEllHgIXkAUzu2kxERw/L03 NVBszAqC+7+q3E2UY+XhFTfONwcy8sGV9pYcs8ya6sjxxz0h+QmaKJqfhDjFt4klOh KVgW5sotnh56TcC7xYwgHxJNKSXdzdTWRY6dlcVLgKjDixdXcRgFzHrl1oWNwlTWav 1tdDFahSUYjmQ== Message-ID: Date: Tue, 12 Nov 2024 17:35:36 -0500 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 User-Agent: Mozilla Thunderbird Subject: Re: And now the dumb question du jour Content-Language: en-CA To: riscv@freebsd.org References: <62b7409c-899a-4888-96bf-07af49c1a791@blastwave.org> From: Dennis Clarke Organization: GENUNIX In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-oetec-MailScanner-Information: Please contact the ISP for more information X-oetec-MailScanner-ID: 4ACMZaSg040700 X-oetec-MailScanner: Found to be clean X-oetec-MailScanner-From: dclarke@blastwave.org X-Spam-Status: No X-Spamd-Result: default: False [-4.69 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; DMARC_POLICY_ALLOW(-0.50)[blastwave.org,quarantine]; RCVD_DKIM_ARC_DNSWL_MED(-0.50)[]; R_SPF_ALLOW(-0.20)[+mx:c]; RCVD_IN_DNSWL_MED(-0.20)[108.160.241.186:from]; R_DKIM_ALLOW(-0.20)[blastwave.org:s=default]; MIME_GOOD(-0.10)[text/plain]; XM_UA_NO_VERSION(0.01)[]; MIME_TRACE(0.00)[0:+]; ARC_NA(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; HAS_ORG_HEADER(0.00)[]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_ONE(0.00)[1]; RCPT_COUNT_ONE(0.00)[1]; PREVIOUSLY_DELIVERED(0.00)[riscv@freebsd.org]; TO_DN_NONE(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; DKIM_TRACE(0.00)[blastwave.org:+]; MLMMJ_DEST(0.00)[riscv@freebsd.org]; RCVD_VIA_SMTP_AUTH(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; ASN(0.00)[asn:812, ipnet:108.160.240.0/20, country:CA]; FROM_HAS_DN(0.00)[] X-Rspamd-Queue-Id: 4Xp1TT0rcLz4VSm X-Spamd-Bar: ---- On 11/12/24 16:56, Jessica Clarke wrote: > On 12 Nov 2024, at 21:50, Dennis Clarke wrote: >> >> >> Dear RISC-V folks : >> >> Given the recent big LLVM/Clang update into the src tree[1] it >> seemed reasonable to do a full buildworld/kernel and that worked out >> very well. No LLVM hack patch required ! >> >> enceladus# uname -apKU >> FreeBSD enceladus 15.0-CURRENT FreeBSD 15.0-CURRENT #1 main-n273541-cdd3234186b1: Tue Nov 12 08:49:15 GMT 2024 root@enceladus:/usr/obj/usr/src/riscv.riscv64/sys/SIFIVE-COMPAT11 riscv riscv64 1500026 1500026 >> >> enceladus# cc --version >> FreeBSD clang version 19.1.3 (https://github.com/llvm/llvm-project.git llvmorg-19.1.3-0-gab51eccf88f5) >> Target: riscv64-unknown-freebsd15.0 >> Thread model: posix >> InstalledDir: /usr/bin >> Build config: +assertions >> enceladus# >> ... >> >> Am I missing something blunt force trauma obvious here? > > The RISC-V port is MACHINE=riscv MACHINE_ARCH=riscv64 (c.f. > MACHINE=arm64 MACHINE_ARCH=aarch64 or MACHINE=powerpc > MACHINE_ARCH=powerpc64), so you need to give -a riscv.riscv64 to > poudriere rather than -a riscv64 (which is shorthand for -a > riscv64.riscv64), unlike amd64 where MACHINE=MACHINE_ARCH=amd64 so the > shorthand works. Building src is smarter about inferring one from the > other rather than defaulting to them being the same, but poudriere is > not. > > Jess Ah ha ! Once again you save me from head scratching and confusion. Looking at : # grep -i 'riscv' /usr/src/Makefile.inc1 riscv64/riscv .if ${TARGET} == "riscv" That did not help me very much with the syntax that poudriere wants. # idprio 0 poudriere jail -c -j 150rv64 -a riscv.riscv64 -b -m src=/usr/src -f rv64/poudriere/jails/150rv6 4 -v main 2>&1 | tee /root/log/`dn`_create_150rv64_jail.log [00:00:00] Creating 150rv64 fs at /poudriere/jails/150rv64... done [00:00:00] Copying /usr/src to /poudriere/jails/150rv64/usr/src... done [00:04:27] Starting make buildworld with 4 jobs --- buildworld --- make[1]: "/poudriere/jails/150rv64/usr/src/Makefile.inc1" line 362: SYSTEM_COMPILER: Determined that CC=/usr/local/bin/ccache cc matches the source tree. Not bootstrapping a cross-compiler. make[1]: "/poudriere/jails/150rv64/usr/src/Makefile.inc1" line 367: SYSTEM_LINKER: Determined that LD=ld matches the source tree. Not bootstrapping a cross-linker. --- buildworld_prologue --- -------------------------------------------------------------- >>> World build started on Tue Nov 12 22:30:27 UTC 2024 -------------------------------------------------------------- --- _cleanworldtmp --- >>> Deleting stale files in build tree... . . . . and away it goes ... Thank you very much once again :) In unrelated areas I have been giving a considerable stare at the P550 but figure it is best to await folks with far more skills than I to attack that unit. https://www.sifive.com/cores/performance-p550 My guess is that it would do everything the Unmatched Rev B can do with the added SATA port there for serious convenience. The absent M2 SSD slot is a bit strange but who knows. It does have some sort of onboard managment port as well as dual ethernet and that is a real bonus. -- Dennis Clarke