Date: Sat, 28 May 2022 15:41:52 +0200 From: "lars.sonchocky-helldorf@hamburg.de" <lars.sonchocky-helldorf@hamburg.de> To: Jessica Clarke <jrtc27@freebsd.org> Cc: "freebsd-riscv@freebsd.org" <freebsd-riscv@FreeBSD.org> Subject: Re: Is there no working clang in FreeBSD/RISC-V's ports? Message-ID: <0A5A07EB-4792-4F2C-BE32-4318573C65AC@hamburg.de> In-Reply-To: <BA76EDAF-BA66-4E12-BFFB-07F2F178D3A8@freebsd.org> References: <FE523BF5-87CC-4A77-B07E-27AB7D153A03@hamburg.de> <2AE7AF78-729F-4D6B-AF62-9A79703343D8@hamburg.de> <BA76EDAF-BA66-4E12-BFFB-07F2F178D3A8@freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi Jess, > Am 28.05.2022 um 00:21 schrieb Jessica Clarke <jrtc27@freebsd.org>: >=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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?0A5A07EB-4792-4F2C-BE32-4318573C65AC>