Status of packages on the sparc64 architecture
The state of the packages on sparc64 leaves a lot to be desired. The sources for this problem:
- We do not have a large sparc64 user community.
- Few FreeBSD maintainers and committers have access to sparc64 machines.
portmgr no longer builds sparc64 packages.
How can I help
It is quite possible to do sparc64 work without real sparc64 hardware, there are at least two ways how to do that:
User mode emulation for sparc64 is currently untested and provided for reference only! Using QEMU user mode emulation (see emulators/qemu-user-static port and QemuUserModeHowTo). If you're using Poudriere to build ports, poudriere can use emulators/qemu-user-static to emulate at least aarch64, armv6, armv7, mips, mips64; possibly sparc64 — try it!
However, emulation is slow, and thus native-xtools are used to speed up the build via statically-linked host binaries (currently only those built as part of base, e.g., sh, tar, cc, ld) for target architecture under /nxb-bin prepended to the PATH: # -x (native-xtools) before FreeBSD 12.0 requires /usr/src to match the jail $ svn checkout https://svn.freebsd.org/base/releng/11.1 /usr/src $ poudriere jail -cxj 111sparc64 -a sparc64 -v 11.1-RELEASE $ poudriere bulk -Ctj 111sparc64 category/port
or$ poudriere jail -cxj head-sparc64 -a sparc64 -v head -m svn+https $ poudriere bulk -Ctj head-sparc64 category/port
EuroBSDCon 2014 had some presentations about this by SeanBruno and BaptisteDaroussin: one, two.
Full hardware emulation. It is very slow, but somewhat easier to set up (and it emulates a complete system!). FreeBSD/sparc64 should boot with qemu 2.6 and above with -nographic option. Confirmed with 10.4-STABLE snapshot (as of r326054) and qemu 2.9.0. See installation instructions in the QemuRecipes.
Phabricator group
Please join us on Phabricator.
Unofficial repository
MarkLinimon has created an unofficial repository on his own machines. Packages are built 'best-effort'.
These packages are not guaranteed to be secure or working. They 'work for me'. However, they may introduce security holes or panic your system. They are intended for testing only.
There are both quarterly and latest repos:
repository |
upload date |
# of packages |
comments |
20151223 |
16233 |
old |
|
20151014 |
16249 |
2015Q3 (obsolete) |
|
20170912 |
12801 |
all but the 'popular' ports lagging behind as of 20170912 |
|
20170406 |
16072 |
2017Q2 (latest build) |
|
20170106 |
138 |
minimal subset for now |
Unofficial repository: configuration
To use this repo, create the following file as /usr/local/etc/pkg/repos/lonesome.com.conf:
lonesome.com: {
url: "http://lonesome.com/FreeBSD/${ABI}/<which>",
mirror_type: "http",
signature_type: "none",
enabled: yes
}and substitute either quarterly or latest for <which>.
This file has changed from the previous incarnation which was styled 'obscurecomputers.org'. Same machine, new name, new hierarchy. (In particular, the FreeBSD/ subdirectory is new.)
Also, optionally, you can turn off the default repo search to quiet some error messages. To do so, create the following override file as /usr/local/etc/pkg/repos/FreeBSD.conf:
Only do this on your sparc64 machines!
FreeBSD: {
url: "pkg+http://pkg.FreeBSD.org/${ABI}/latest",
mirror_type: "srv",
signature_type: "fingerprints",
fingerprints: "/usr/share/keys/pkg",
enabled: no
}A final note: this repository does not contain the whole ports tree. For instance, I am not building the scientific and language-specific categories, nor am I building cross development tools or emulators. Also, I have put various ports that failed to build on previous runs into the blacklist file. Please contact me if you have specific needs.
Unofficial repository: bootstrapping
Per PkgPrimer, you need to install pkg itself to bootstrap; the system is not able to do it automatically.
fetch http://lonesome.com/FreeBSD/FreeBSD:11:sparc64/latest/Latest/pkg.txz tar xf ./pkg.txz -s ",/.*/,,g" "*/pkg-static" ./pkg-static add ./pkg.txz
Contact MarkLinimon for more information.
Unofficial repository: testing
Currently the only packages I can vouch for are the ones I use personally:
- ports-mgmt/pkg
- ports-mgmt/poudriere (and dependencies)
- shells/zsh
- sysutils/eject
- sysutils/screen
- sysutils/sudo
- www/apache24 (and dependencies)
- www/lynx
For all the others, you're on your own. Feel free to add notes here.
Unofficial repository: notes
I am currently holding the default gcc version back to gcc4.9 instead of the default in the tree which is gcc5. I do know that more ports fail on gcc5 than gcc4.9 but I have not investigated.
There is currently an effort to move the ports default to gcc6. Help working on gccX on sparc64 is needed if we want to keep up.
Ports in most need of attention
See also: PortsBrokenOnTier2Architectures
Roughly sorted by # affected, descending; # affected reflects a partial tree.
portname |
# affected |
affects |
comments |
537 |
gnome & kde |
times out in package phase |
|
243 |
gtk, gnome |
PR 203806 was insufficient |
|
115 |
|
|
|
49 |
|
marked BROKEN |
|
41 |
gnome & kde |
marked BROKEN |
|
40 |
gnustep |
marked BROKEN |
|
35 |
|
now blocked (llvm37) |
|
29 |
|
marked BROKEN |
|
20 |
|
now blocked (qt5-qmake) |
|
16 |
|
marked ONLY_FOR |
|
14 |
|
marked BROKEN |
|
11 |
|
marked ONLY_FOR |
|
7 |
compat9x, others |
marked ONLY_FOR |
|
0 |
blocked on 11 by compat10x |
PR 184379 was rejected by maintainer |
Other notable leaf failures as of 20180115:
portname |
comments |
databases/mysql55-server |
|
databases/mysql56-server |
marked BROKEN |
databases/mysql57-client |
marked BROKEN |
devel/gdb |
marked ONLY_FOR |
devel/llvm38 |
failed during retest |
devel/llvm39 |
marked BROKEN |
devel/ncurses |
marked BROKEN |
lang/gcc48 |
works if you turn off BOOTSTRAP |
lang/gcc49 |
works if you turn off BOOTSTRAP |
lang/gcc5 |
marked BROKEN |
lang/gcc6 |
marked BROKEN |
lang/spidermonkey17 |
marked BROKEN |
lang/spidermonkey185 |
marked BROKEN |
sysutils/syslog-ng |
marked BROKEN |
sysutils/syslog-ng36 |
marked BROKEN |
sysutils/syslog-ng37 |
marked BROKEN |
textproc/source-highlight |
marked BROKEN |
At one time this was true for Q2 but is now busted: This will be the focus going forwards.