Ports Status on RISC-V
Tracking build status of important/desired ports on RISC-V.
as of 20210113, there is not yet any official supported poudriere instance available. So, for building ports, you are on your own, and there are no packages available. Many ports have not yet been attempted.
However, for the daring ... see https://people.freebsd.org/~linimon/poudriere/blacklist.riscv64.
Port |
Status |
Required For |
Blocks |
Notes |
databases/sqlite3 |
Fails to build |
devel/subversion |
723 |
|
devel/glib20 |
OK |
|
many |
Fixed in base r368489 |
devel/nspr |
Has patch |
|
559 |
See PR 251534 |
devel/py-setuptools |
OK |
* |
5868 |
Fixed in ports r557291 |
lang/go-bootstrap |
Wanted |
lang/golang |
|
|
lang/gcc10 |
Fails to build |
|
400 |
See PR 251403 |
lang/php74 |
Needs porting |
*php* |
853 |
|
lang/python37 |
OK |
|
|
Fixed in ports r557291 |
lang/rust-bootstrap |
Wanted |
lang/rust |
|
See PR 248680 |
Common Build Failures
As seen by MarkLinimon 20210113 on a large-ish subset of categories:
Count |
Failure |
Suggested Fix |
Comments |
7 |
qemu: uncaught target signal |
|
Often 11 (Segmentation fault), sometimes 6 (Abort trap) - core dumped |
7 |
C compiler cannot create executables |
|
or related "checking whether the C compiler works... no" |
7 |
ld: error: can't create dynamic relocation R_RISCV_HI20 against symbol |
|
|
6 |
checking thread safety of required library functions... Segmentation fault |
|
possibly subcase of "C compiler cannot create executables" below |
5 |
error: use of undeclared identifier 'FP_X_INV' |
|
|
2 |
relocation R_RISCV_ALIGN requires unimplemented linker relaxation; recompile with -mno-relax |
|
|
2 |
ldd: <xyz>.so: not a FreeBSD ELF shared object |
teach ldd to parse ELF notes |
jhb has a wip patch |
Cross-Building Ports
There is some support for cross-compiling ports via poudriere(8) and qemu-user-static. This method works by emulating a RISC-V userspace with QEMU, so it is faster than building within an emulated system, but slower than building natively. The QEMU userspace emulation is imperfect.
Please refer to the FreeBSD Handbook entry about poudriere if you are unfamiliar with the tool or need to set it up.
The following command will create a new poudriere jail set up to cross-compile ports for the riscv.riscv64 target:
$ poudriere jail -c -a riscv.riscv64 -x -j 13riscv64 -m ftp -v 13.0-CURRENT
XXX
YYY
unknown
COMMENTS