From nobody Sat May 28 13:41:52 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 E43E21B3F9A7 for ; Sat, 28 May 2022 13:42:03 +0000 (UTC) (envelope-from lars.sonchocky-helldorf@hamburg.de) Received: from cosmopolitan.snafu.de (cosmopolitan.snafu.de [IPv6:2001:1560:3:255::151]) (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 4L9NBf5yn1z3Dlr; Sat, 28 May 2022 13:42:02 +0000 (UTC) (envelope-from lars.sonchocky-helldorf@hamburg.de) X-Trace: 507c6c6172732e736f6e63686f636b792d68656c6c646f72664068616d62757267 2e64657c39332e3233302e3136322e3231397c316e757768562d3030304532322d 30617c31363533373435333133 Received: from cosmopolitan.snafu.de ([10.151.10.15] helo=localhost) by cosmopolitan.snafu.de with esmtpsa (Exim 4.94.2) id 1nuwhV-000E22-0a; Sat, 28 May 2022 15:41:54 +0200 Content-Type: text/plain; charset=utf-8 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? From: "lars.sonchocky-helldorf@hamburg.de" In-Reply-To: Date: Sat, 28 May 2022 15:41:52 +0200 Cc: "freebsd-riscv@freebsd.org" Content-Transfer-Encoding: quoted-printable Message-Id: <0A5A07EB-4792-4F2C-BE32-4318573C65AC@hamburg.de> References: <2AE7AF78-729F-4D6B-AF62-9A79703343D8@hamburg.de> To: Jessica Clarke 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 "cosmopolitan.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 T_SCC_BODY_TEXT_LINE No description available. 0.0 KAM_DMARC_STATUS Test Rule for DKIM or SPF Failure with Strict Alignment 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 cosmopolitan.snafu.de); SAEximRunCond expanded to false X-Rspamd-Queue-Id: 4L9NBf5yn1z3Dlr 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::151 as permitted sender) smtp.mailfrom=lars.sonchocky-helldorf@hamburg.de X-Spamd-Result: default: False [-0.61 / 15.00]; TO_DN_EQ_ADDR_SOME(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; FROM_DN_EQ_ADDR(1.00)[]; TO_DN_SOME(0.00)[]; MV_CASE(0.50)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[text/plain]; R_SPF_ALLOW(-0.20)[+ip6:2001:1560:3:255::/64]; ARC_NA(0.00)[]; DMARC_NA(0.00)[hamburg.de]; NEURAL_HAM_LONG(-1.00)[-1.000]; RCVD_IN_DNSWL_LOW(-0.10)[2001:1560:3:255::151:from]; NEURAL_HAM_MEDIUM(-1.00)[-0.998]; NEURAL_HAM_SHORT(-0.71)[-0.715]; RCPT_COUNT_TWO(0.00)[2]; MLMMJ_DEST(0.00)[freebsd-riscv]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; 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 Hi Jess, > Am 28.05.2022 um 00:21 schrieb Jessica Clarke : >=20 > On 27 May 2022, at 22:41, lars.sonchocky-helldorf@hamburg.de wrote: >>=20 >> Hi everybody, >>=20 >>=20 >> 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: >>=20 >> https://www.freshports.org/devel/llvm-devel/ (See port moves) >>=20 >>=20 >> So I changed GNUstep=E2=80=99s install-dependencies-freebsd script to = require the llvm-devel port. >=20 > You don=E2=80=99t want that; llvm-devel is snapshots of LLVM=E2=80=99s = development > branch. You want just llvm, which is the latest officially released > version, if you need a package at all, which I doubt is actually the > case (see below). Thanks for the head ups, I just wasn=E2=80=99t aware of this. Since the = port llvm installs a 9.something version of llvm I guess I also can use = llvm13 for instance here, right? >=20 >> This worked fine on FreeBSD/amd64 inside Virtual Box but not for = FreeBSD/RISC-V in QEMU: >>=20 >> pkg: No packages available to install matching 'llvm-devel' have been = found in the repositories >>=20 >>=20 >> So is there really no llvm-devel port available for FreeBSD/RISC-V? >=20 > Indeed, depending on what repo you want, there is currently no version > of that built, nor recent released versions of LLVM, due to > https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D261374. The bug = has > been fixed but as far as I can tell no recent rebuild has happened for > the 14 latest repo, only the 13 quarterly repo. Do such rebuilds get triggered automatically? Or is there somebody, whom = I should contact for this? >=20 >> 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 >=20 > That=E2=80=99s just a freshports data gathering issue, it doesn=E2=80=99= t know the > riscv64 package sets exist so doesn=E2=80=99t report on them. I=E2=80=99= ve filed > https://github.com/FreshPorts/freshports/issues/364 for this. Thanks for reporting this! Hopefully they fix it soon. >=20 >> Quote from = https://docs.freebsd.org/en/articles/committers-guide/#archs >>=20 >> =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. >>=20 >> doesn=E2=80=99t specifically that mean that the llvm-devel port = should be available? Just asking =E2=80=A6 >=20 > RISC-V is self-hosting via the in-tree toolchain, thus no external > toolchain is required, and thus no official binary packages are > required to be provided. Out of the box you can compile with Clang and > link with LLD, no packages needed. You only need the packages if you > need a different specific version or you need to use = libLLVM/libClang=E2=80=99s > APIs. I just used what was in the GNUstep repo and tweaked it a bit for the = modern times. Since GNUstep is written mostly in Objective-C, I guess I = need a LLVM which supports this too, hence the package requirement I = would say. But I am not sure =E2=80=A6 >=20 > Jess Kind regards, Lars >=20 >> Kind regards, >>=20 >> Lars >>=20 >>=20 >>> 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 >=20 >=20