Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 27 May 2022 23:21:24 +0100
From:      Jessica Clarke <jrtc27@freebsd.org>
To:        "lars.sonchocky-helldorf@hamburg.de" <lars.sonchocky-helldorf@hamburg.de>
Cc:        "freebsd-riscv@freebsd.org" <freebsd-riscv@FreeBSD.org>
Subject:   Re: Is there no working clang in FreeBSD/RISC-V's ports?
Message-ID:  <BA76EDAF-BA66-4E12-BFFB-07F2F178D3A8@freebsd.org>
In-Reply-To: <2AE7AF78-729F-4D6B-AF62-9A79703343D8@hamburg.de>
References:  <FE523BF5-87CC-4A77-B07E-27AB7D153A03@hamburg.de> <2AE7AF78-729F-4D6B-AF62-9A79703343D8@hamburg.de>

next in thread | previous in thread | raw e-mail | index | archive | help
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.

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).

> 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?

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.

> 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

That=E2=80=99s just a freshports data gathering issue, it doesn=E2=80=99t =
know the
riscv64 package sets exist so doesn=E2=80=99t report on them. I=E2=80=99ve=
 filed
https://github.com/FreshPorts/freshports/issues/364 for this.

> 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

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.

Jess

> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?BA76EDAF-BA66-4E12-BFFB-07F2F178D3A8>