From nobody Fri Aug 30 15:43:34 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 4WwMrH3Dhkz5Mn27
	for <riscv@mlmmj.nyi.freebsd.org>; Fri, 30 Aug 2024 15:43:43 +0000 (UTC)
	(envelope-from mhorne@freebsd.org)
Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4])
	(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 "smtp.freebsd.org", Issuer "R10" (verified OK))
	by mx1.freebsd.org (Postfix) with ESMTPS id 4WwMrH2blzz47vY;
	Fri, 30 Aug 2024 15:43:43 +0000 (UTC)
	(envelope-from mhorne@freebsd.org)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim;
	t=1725032623;
	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:autocrypt:autocrypt;
	bh=XpyPQgEOENpW2syuBixWPBIVTRpYFpgJ8wUVL7v94M8=;
	b=KeZi0tcTcIVKf+PaOjf8HOJZ4uihYqT7VO5CLCPYsmiM8cS6Why53vElpzjrL1u2eYM9C+
	FOrm73oLLLLMnQKfNlzjnyev5qWr0gHtlN84UJoog1xfgtTa1ueWDq323mrwP58+4c5DY7
	CtyUSuIChS21Q2R8LQ8nRuCguutPPAEymFU9ObBcVbTL6VgU7c/X4rRRovdZHsPssKtJ2q
	KA0B4KAg172tS9lplmmRBZmX6wZH7KC9ihZSZ/DU1YN8NlI6dcnOxnGVJi8dLmLuk+CmLA
	h9K2T+VHDn0Pj6MqDy8lY5IjtFh+vBIGNzkdJCX1yzB4fr655dP+knd8uo9zgw==
ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1725032623; a=rsa-sha256; cv=none;
	b=Miq4TcDmxIVOuanKgWx5SOdViCfOmETmlQZz/XVQmSIOIsNX43uM1KeJRfuwnXZnoAufB0
	klvM06qo0P/ep5cLwbfzgtziYa6QDZt0+lI3NMDcRE7CRDovajvtMdLShpomYnWEqjVEAn
	CWt2CdWBkVcx025glrEwVeLssMBKvys9DxX+tPNujIhZmRMzixwPRWCh0PSUP0p2mc5OBH
	wa40dkhKsHNU/28uZl/yU5nUZtzYCJpqa4/c1K6OkYyox91F4v7YlagQmBkINSjMx+0C/r
	ws/F+BSriXT2rZBuxrvHvwKJPFoPOE8CFBno64MwT21Nj0XJ+zARIs9Kd2bjwQ==
ARC-Authentication-Results: i=1;
	mx1.freebsd.org;
	none
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org;
	s=dkim; t=1725032623;
	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:autocrypt:autocrypt;
	bh=XpyPQgEOENpW2syuBixWPBIVTRpYFpgJ8wUVL7v94M8=;
	b=i3LXlUO7KsyUkTpjF3B55Pc2sUwhDLb82qaj0UNvjXQWgP/LYL+0ubBVMOkYuZstsvOHVs
	6sABjzzWQeLXNqWoelrT9oa3UPXFDdlh2l+ROJYVTl5M3ztsiMl/1nbLVDjii/vmjqYYCC
	rPKvDre9Hnn6/ko9FFhugX1TJJiK74F/08URrF8dqSbf/Mg+ELoFCMjSP8A02wc86PbfAg
	4P07IDcYBHFR27J7B3X5Mj9h+rlzWfizshW6sVNN7NkKXtaN8MrAvxxO1LBJwTP3VT+Ogl
	PyiogXHBoU6OmnStbG4GPHKhzLhJ8eQfuk2gZ0WKYdJqiI1IpLOTo7KOxoYFKg==
Received: from [192.168.2.217] (hlfxns018gw-134-41-188-50.dhcp-dynamic.fibreop.ns.bellaliant.net [134.41.188.50])
	(using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)
	 key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256)
	(Client did not present a certificate)
	(Authenticated sender: mhorne)
	by smtp.freebsd.org (Postfix) with ESMTPSA id 4WwMrH1P1Lz18jy;
	Fri, 30 Aug 2024 15:43:43 +0000 (UTC)
	(envelope-from mhorne@freebsd.org)
Message-ID: <761a4270-8afe-4f50-b32a-3706b4f8ae5e@freebsd.org>
Date: Fri, 30 Aug 2024 12:43:34 -0300
List-Id: FreeBSD on the RISC-V instruction set architecture <freebsd-riscv.freebsd.org>
List-Archive: https://lists.freebsd.org/archives/freebsd-riscv
List-Help: <mailto:riscv+help@freebsd.org>
List-Post: <mailto:riscv@freebsd.org>
List-Subscribe: <mailto:riscv+subscribe@freebsd.org>
List-Unsubscribe: <mailto:riscv+unsubscribe@freebsd.org>
X-BeenThere: freebsd-riscv@freebsd.org
Sender: owner-freebsd-riscv@FreeBSD.org
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Subject: Re: Question about the docs at https://wiki.freebsd.org/riscv/ports
To: Dennis Clarke <dclarke@blastwave.org>, riscv@FreeBSD.org
References: <c8de79b7-613e-4577-bdf3-4b35db1cc00e@blastwave.org>
Content-Language: en-CA
From: Mitchell Horne <mhorne@freebsd.org>
Autocrypt: addr=mhorne@freebsd.org; keydata=
 xsBNBFyS2dQBCADdiXBG8hBVLmYbxu7aSzbwLwUf3HkGFz3rooS1kwyy+SfmjZ4UKNnl9WMx
 WKrJ7OAZpiNH6bLQ5nsqfx09OnpWL8c/QuPbhNdUywQoqqYpRI0K8GEn//nS9Gs0KTYwVpWb
 XlrzP+jf3Uh/9L5mcQmStLIH4zaaqMYHW+pMuPrvBmLIHTvLj2QjOkxslrcUdord9uvxe5Ht
 LU8RuTpQpHOKz705Z9/v7twFdi2HtKzp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
 CgkQi/gnTOdUid/i5gf/aQ75pJR4TJFM2vVVr6PDIwTdl0b5EchB4w4s4g/zE84XNbMOQanb
 BginLYEhAacLQVAvM3XdvUEhwrhaMQdjdSEB1krResL3/mbxrtKwdHSMbHA3IS3XdvxFWTB7
 P5JjUSPsW6hqgoidbn4w3OxaNHhs45H2b0Nx5QiKcSyepmCZuB52gCEHnEnrdaz8TFQMXOLq
 94WbTmZeIjChW3FB61m1gTf0UEFjoZAfTAUB+pbwoCa4AykIeZnDC19vjsruVU9Gy5rLglwd
 bjsZNfXIJGOZNEvdF8FOBwM7DlXx7SYvTJcUNoNJjOKtQ0bYGVgGqYOB/y2mTjVuKeU0eOkN Uw==
In-Reply-To: <c8de79b7-613e-4577-bdf3-4b35db1cc00e@blastwave.org>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit



On 8/29/24 14:43, Dennis Clarke wrote:
> 
> Dear RISC-V user types :
> 
>      I have a package server that does daily builds for amd64 with jails
> setup for 13.3 and 14.1 and of course CURRENT. This works really well
> and generally gets the job done for all of KDE5 and LXDE and XFCE plus
> some database tools and other tidbits. Roughly 3 or 4 hours for 1800
> packages and that serves me well.
> 
>      Regarding the docs for riscv64 package builds at :
> 
>          https://wiki.freebsd.org/riscv/ports
> 
>      I see that it says we need qemu-user-static built and installed and
> then I *may* be able to setup a riscv64 jail?  My plan is to try and get
> a 14.1 jail as well as a CURRENT jail from the sources I have built the
> host with. However qemu is just horribly slow. So terrible that I may
> have to wait a week to get that jail built. So therefore :
> 

I think you misunderstand the use of QEMU here. The jail is not being 
built inside QEMU. The instructions are for cross-compiling riscv64 
packages on an amd64 host. So, a riscv64 jail will be built and 
installed on the host, including a cross-compiler. QEMU is used in a 
limited way here, to emulate execution of riscv64 binaries on the host. 
It is slower than native package building, but faster than full-system 
emulation.

>          (1) are those docs still reasonable ?
> 

These instructions are untouched and untested for a while. They are 
still generally applicable, but there may be stumbling blocks, I am not 
sure.

>          (2) is it just a waste of time ?
> 

Not completely, but the riscv ports experience is still pretty 
incomplete and a distance from "just works". So, it depends on how you 
value spending your time.

>      I have the little SiFive UnMatched board which is supposed to all
> "just work" per https://wiki.freebsd.org/riscv#Supported_Platforms and
> I have a Samsung 990 SSD M.2 thing on it. Will it be able to run proper
> poudriere package builds without too much horror ?
> 

I have never tried native poudriere builds on the Unmatched, but I 
believe some users have with some success. It will (of course) be slow 
compared to commodity amd64 hardware. Running package builds also 
stresses the system, and may expose software or hardware instability.

So, you can try this, but you will be walking an unmarked path, so to 
speak. It is fair to expect some minor "horror", but it is possible to 
build packages.