From nobody Fri May 27 21:41:59 2022 X-Original-To: freebsd-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 CBBA31B42EB9 for ; Fri, 27 May 2022 21:42:03 +0000 (UTC) (envelope-from lars.sonchocky-helldorf@hamburg.de) Received: from longisland.snafu.de (longisland.snafu.de [IPv6:2001:1560:3:255::153]) (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 mx1.freebsd.org (Postfix) with ESMTPS id 4L8yty5l5Zz3hkK for ; Fri, 27 May 2022 21:42:02 +0000 (UTC) (envelope-from lars.sonchocky-helldorf@hamburg.de) X-Trace: 507c6c6172732e736f6e63686f636b792d68656c6c646f72664068616d62757267 2e64657c39332e3233302e3136322e3231397c316e7568695a2d3030304a43712d 4c6b7c31363533363837373139 Received: from longisland.snafu.de ([10.153.10.15] helo=localhost) by longisland.snafu.de with esmtpsa (Exim 4.94.2) id 1nuhiZ-000JCq-Lk for freebsd-riscv@FreeBSD.org; Fri, 27 May 2022 23:42:01 +0200 From: "lars.sonchocky-helldorf@hamburg.de" Content-Type: multipart/alternative; boundary="Apple-Mail=_F603AC1F-EA5E-4EE8-88E9-E62FB2ED9464" 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: Sender: owner-freebsd-riscv@freebsd.org X-BeenThere: freebsd-riscv@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.13\)) Subject: Re: Is there no working clang in FreeBSD/RISC-V's ports? Date: Fri, 27 May 2022 23:41:59 +0200 References: To: "freebsd-riscv@freebsd.org" In-Reply-To: Message-Id: <2AE7AF78-729F-4D6B-AF62-9A79703343D8@hamburg.de> X-Mailer: Apple Mail (2.3654.120.0.1.13) X-VISP-ShouldScan: 1 X-VISP-Virus-Check: clean X-VISP-Spam-Score: -0.4 (/) X-VISP-Spam-Report: This message has been scanned on "longisland.snafu.de" to identify if it is considered spam or not. Contact the support hotline for details. Content analysis details: (-0.4 points) pts rule name description ---- ---------------------- -------------------------------------------------- 0.5 JMQ_SPF_NEUTRAL ASKDNS: SPF set to ?all [hamburg.de TXT:v=spf1 include:_spf1.snafu.de] [include:spf.crsend.com ?all] -1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP 0.1 TW_LV BODY: Odd Letter Triples with LV 0.0 HTML_MESSAGE BODY: HTML included in message 0.0 KAM_DMARC_STATUS Test Rule for DKIM or SPF Failure with Strict Alignment -0.0 T_SCC_BODY_TEXT_LINE No description available. X-VISP-Spam-Max-Score: +++++ X-SA-Exim-Connect-IP: 93.230.162.219 X-SA-Exim-Mail-From: lars.sonchocky-helldorf@hamburg.de X-SA-Exim-Scanned: No (on longisland.snafu.de); SAEximRunCond expanded to false X-Rspamd-Queue-Id: 4L8yty5l5Zz3hkK X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of lars.sonchocky-helldorf@hamburg.de designates 2001:1560:3:255::153 as permitted sender) smtp.mailfrom=lars.sonchocky-helldorf@hamburg.de X-Spamd-Result: default: False [-0.89 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; FROM_DN_EQ_ADDR(1.00)[]; MV_CASE(0.50)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; R_SPF_ALLOW(-0.20)[+ip6:2001:1560:3:255::/64]; DMARC_NA(0.00)[hamburg.de]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.00)[-1.000]; RCVD_IN_DNSWL_LOW(-0.10)[2001:1560:3:255::153:from]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.99)[-0.986]; TO_DN_EQ_ADDR_ALL(0.00)[]; MLMMJ_DEST(0.00)[freebsd-riscv]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; ASN(0.00)[asn:34171, ipnet:2001:1560::/32, country:DE]; SUBJECT_ENDS_QUESTION(1.00)[]; RCVD_TLS_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-ThisMailContainsUnwantedMimeParts: N --Apple-Mail=_F603AC1F-EA5E-4EE8-88E9-E62FB2ED9464 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Hi everybody, meanwhile I=E2=80=99ve found out that there is no longer a clang-port = available, it got merged back into the llvm-devel port: https://www.freshports.org/devel/llvm-devel/ = (See port moves) So I changed GNUstep=E2=80=99s install-dependencies-freebsd script to = require the llvm-devel port. This worked fine on FreeBSD/amd64 inside Virtual Box but not for = FreeBSD/RISC-V in QEMU: pkg: No packages available to install matching 'llvm-devel' have been = found in the repositories So is there really no llvm-devel port available for FreeBSD/RISC-V? Another thing that caught my attention is, that freshports.org never = seems to mention any RISC-V availability. I thought that with FreeBSD 13 = the RISC-V architecture moved to Tier-2 support ( = https://wiki.freebsd.org/riscv#Current_Status = ). Doesn=E2=80=99t that = mean that there should be such ports available for RISC-V?=20 Quote from https://docs.freebsd.org/en/articles/committers-guide/#archs = =E2=80=A2 Tier 2 platforms should be self-hosting either via the = in-tree toolchain or an external toolchain. If an external toolchain is = required, official binary packages for an external toolchain will be = provided. doesn=E2=80=99t specifically that mean that the llvm-devel port should = be available? Just asking =E2=80=A6 Kind regards, Lars > Am 22.05.2022 um 23:18 schrieb lars.sonchocky-helldorf@hamburg.de: >=20 > Hi there, >=20 >=20 > the GNUstep project (but in reality just me myself and I) has = undergoing efforts of porting GNUstep to the RISC-V platform. While this = was mainly a no-brainer for Linux-Fedora/RISC-V (some minor tweaks were = necessary), it seems on the FreeBSD side are some more serious efforts = necessary. I think this will not be my last E-Mail in this regard to the = list. Hope you can stand this! >=20 > Firstly I was going to install all the necessary dependencies of = GNUstep for RISC-V. I used their http://github.com/gnustep/tools-scripts = : >=20 > $ sudo ./tools-scripts/install-dependencies-freebsd >=20 > which resulted in installing most of all the dependencies but: >=20 >=20 > pkg: No packages available to install matching 'libobjc2' have been = found in the repositories >=20 > this is our (GNUstep=E2=80=99s) responsibility=20 >=20 >=20 > pkg: No packages available to install matching 'clang' have been found = in the repositories >=20 > no idea how to fix this. Is there really no RISC-V hosted clang = available? >=20 >=20 > pkg: No packages available to install matching 'libxml' have been = found in the repositories > pkg: No packages available to install matching 'avahi' have been found = in the repositories >=20 > no idea who is in charge here to make those work, I am willing to test = certain things if guided. >=20 >=20 > Kind regards, >=20 > Lars >=20 --Apple-Mail=_F603AC1F-EA5E-4EE8-88E9-E62FB2ED9464 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 Hi everybody,

meanwhile I=E2=80=99ve found out that there = is no longer a clang-port available, it got merged back into the = llvm-devel port:

https://www.freshports.org/devel/llvm-devel/ (See = port moves)


So I changed = GNUstep=E2=80=99s install-dependencies-freebsd script to require the = llvm-devel port.

This worked fine on = FreeBSD/amd64 inside Virtual Box but not for FreeBSD/RISC-V in QEMU:

pkg: No packages available to install matching = 'llvm-devel' have been found in the repositories


So is there really no llvm-devel port = available for FreeBSD/RISC-V?


Another thing that caught my attention is, that freshports.org never seems = to mention any RISC-V availability. I thought that with FreeBSD 13 the = RISC-V architecture moved to Tier-2 support ( https://wiki.freebsd.org/riscv#Current_Status ). = Doesn=E2=80=99t that mean that there should be such ports available = for RISC-V? 

Quote from https://docs.freebsd.org/en/articles/committers-guide/#archs

=E2=80=A2 = Tier 2 platforms should be self-hosting either via the in-tree toolchain = or an external toolchain. If an external toolchain is required, official = binary packages for an external toolchain will be provided.

doesn=E2=80=99t specifically that mean = that the llvm-devel port should be available? Just asking =E2=80=A6


Kind regards,

= Lars


Am 22.05.2022 um 23:18 schrieb lars.sonchocky-helldorf@hamburg.de:

Hi there,


the = GNUstep project (but in reality just me myself and I) has undergoing = efforts of porting GNUstep to the RISC-V platform. While this was mainly = a no-brainer for Linux-Fedora/RISC-V (some minor tweaks were necessary), = it seems on the FreeBSD side are some more serious efforts necessary. I = think this will not be my last E-Mail in this regard to the list. = Hope you can stand this!

Firstly I was = going to install all the necessary dependencies of GNUstep for RISC-V. I = used their http://github.com/gnustep/tools-scripts :

$ sudo = ./tools-scripts/install-dependencies-freebsd

which resulted in installing most of all the dependencies = but:


pkg: No packages = available to install matching 'libobjc2' have been found in the = repositories

this is our (GNUstep=E2=80=99s) = responsibility 


pkg: No = packages available to install matching 'clang' have been found in the = repositories

no idea how to fix this. Is = there really no RISC-V hosted clang available?


pkg: No packages available to install matching = 'libxml' have been found in the repositories
pkg: No = packages available to install matching 'avahi' have been found in the = repositories

no idea who is in charge here = to make those work, I am willing to test certain things if guided.


Kind regards,

= Lars


= --Apple-Mail=_F603AC1F-EA5E-4EE8-88E9-E62FB2ED9464--