Repository navigation
Releases
riscos-crossdev 1.14
riscos-crossdev 1.14
UnixLib 5.0.3.12
The toolchain is built with riscos-unixlib 5.0.3.12:
5.0.3.11's fixes and speed-ups, and 5.0.3.12's word-aligned data.
Rebuild to pick it up; everything links unchanged.
-
__threadand C++thread_localare one per thread. In a static
program that made threads, every thread shared them unless the program
happened to callpthread_cancel. If a threaded port sets one in one
thread and reads it in another, check it. -
memcpyandsetjmpno longer die on a fresh stack page. That
failure showed as "ARMEABISupport could not handle an abort". -
Thread fixes:
- a thread exiting with thread-specific values no longer races
malloc; pthread_suspend_thread,pthread_rwlock_init,pthread_onceand
timed condition waits are fixed.
- a thread exiting with thread-specific values no longer races
-
Other fixes:
socketpaircan't hang, andbcopycopies the right
way.scanftakesll,hh,j,zandt,fread/fwritetake
very large counts, and.fini_arrayruns at exit.mkdtempis new. -
sysconf(_SC_NPROCESSORS_ONLN)is 1 for code built with the new
headers (it was 2048). If a port wants more worker threads, set
UnixLib$Processorsin!Run. -
Faster on a Pi 4:
strstr: about 8 times;memcmpandstrcasecmp: 4 times;strcmp,strncpyandstrrchr: 2 to 3 times;pthread_getspecificandthread_local: 15 times;- base-10
strtol/atoi: twice.
-
UnixLib aligns its own data now. 1.13 added a
.balign 4when it
built the toolchain; 5.0.3.12 has it in its own sources, so the build no
longer needs it. The alignment check after the build stays.
The toolchain's UnixLib is the release's: every object's code, data and
relocations are the same as riscos-unixlib's own 5.0.3.12 libunixlib.a.
The optional GCC 16 toolchain
riscos-crossdev-toolchain-gcc16-1.14-x86_64-linux.tar.xz is on this
release as well. It has the same GCC 16.2.0 as 1.13, linked with UnixLib
5.0.3.12. GCC 10.2 stays the default.
Tested
make check passes with both toolchains, and in a clean clone of v1.14
with the prebuilt tarball.
Support is as-is, at the maintainer's own pace; report problems in GitHub
Issues. Written with Claude as a coding assistant; Andrew Youll directs the
work and tests on a Raspberry Pi 4.
riscos-crossdev 1.13
riscos-crossdev 1.13
Programs could abort at start-up on a Pi: rebuild with 1.13
Programs built with riscos-crossdev 1.12 and earlier could stop at once on
RISC OS 5 on a Raspberry Pi, with "abort on data transfer", before doing
anything. It depended only on how the program happened to be linked.
- Cause: UnixLib's assembler gave some of its word data (and crt0's)
no alignment. In some programs a word landed at an odd address, and
UnixLib's own start-up read it. A Pi normally runs with alignment
exceptions on, so that read aborts. RISC OS on Linux doesn't check
alignment, so it never showed there. - Who's affected: Groove and YTDL are; other programs were lucky.
- Thanks to Geofrey Baxendale, who reported it on the ROOL forum when
Groove wouldn't start. - The fix: 1.13's toolchain aligns all of it (13 places in UnixLib's
assembler,crt0included) and checks the result. Nothing else in
UnixLib changes. Rebuild your program with 1.13. - A new check:
checks/check-data-align.py, run bycheck-all.shon
every program, so CI catches misaligned data whatever its cause.
UnixLib 5.0.3.10
The toolchain is built with riscos-unixlib 5.0.3.10.
An optional GCC 16 toolchain
riscos-crossdev-toolchain-gcc16-1.13-x86_64-linux.tar.xz, on this release
as well: GCC 16.2.0 and binutils 2.45.1, for ports that need C++23
(WebKitGTK 2.46 and later).
- GCC 10.2 stays the default. Nothing changes for a port that doesn't
choose GCC 16. To use it, unpack it and pointRISCOS_TOOLCHAINat it
(see docs/GCC16.md). - Same as the default toolchain: the same UnixLib, the same driver
behaviour (static by default, mixed programs,-pthread) and the same
checks. - Speed: WebKit's JavaScriptCore runs Octane on a Pi 4 as fast as with
GCC 10 (RegExp 4.6% faster). Four GCC 16 slowdowns on 32-bit ARM are
fixed in this build: register allocation in Thumb-2, deep recursive
inlining,std::to_string, andstd::unordered_maplookups. - libatomic is included (
-latomic). - Credit: the RISC OS patches to GCC and binutils are Rob Heaton's,
from riscos-gcc16, with
thanks. riscos-gcc16's UnixLib isn't used.
Support is as-is, at the maintainer's own pace; report problems in GitHub
Issues. Written with Claude as a coding assistant; Andrew Youll directs the
work and tests on a Raspberry Pi 4.
riscos-crossdev 1.12
riscos-crossdev 1.12: UnixLib 5.0.3.9, and sturdier mixed programs
A new toolchain, with UnixLib 5.0.3.9 (was 5.0.3.7), from
riscos-unixlib:
lseekpast the end of a file no longer extends it. This fixes SQLite's
"file is not a database" on new databases on FileCore discs.- mmap with
PROT_NONEorPROT_READno longer aborts with
ARMEABISupport 1.08. __pthread_vfp_reclaim()in<unixlib/local.h>: Thumb programs call it
after Wimp_Poll, Wimp_PollIdle and Wimp_StartTask.- There are no struct or argument changes: relink to pick them up. GCC,
binutils, elf2aif and QEMU are as in 1.11.
Mixed programs (docs/MIXED.md):
- The whole of UnixLib is linked in and exported, not only the parts
in use.- A newer library pack can then use any UnixLib function without the
program being relinked. riscos-mesa found that a new libEGL needing
strcspnstopped older programs. - It costs about 750 KB per program, so set the
WimpSlotto match.
!MixHellonow uses 2048K. -no-whole-unixlibon the link turns it off for one program.check-shared-lib.shwarns if a library exports its own copy of a
UnixLib or libstdc++ function: the program's copy would now replace
it. riscos-gtk's!GTKLibsand riscos-mesa's!MesaLibshave none.
- A newer library pack can then use any UnixLib function without the
- A start-up check: if a library needs a name that neither the program
nor a library defines, the program stops beforemainwith an error box
naming the library and the name. Before, it ended silently when that
code first ran. checks/check-pack-imports.shcompares a new version of a library
pack with saved lists for the old one, and says what it newly needs
from programs.
Tested on RISC OS on Linux (QEMU):
- an older program runs with a newer library that needs
strcspn; - the start-up check names the missing function for a program linked
without the whole of UnixLib; - the GCCSDK-style C++ program and
!MixHello(started from the Filer)
run as before.
Also in this release: 1.11.3's notes on library directories (;),
the WimpSlot, and ARM-only shared libraries.
-
To update: check out v1.12, then
make prebuiltinto an empty
toolchain/env(move the old one away first). Relink mixed programs to
get the whole of UnixLib. With Docker, use
ghcr.io/adyoull/riscos-crossdev:1.12. -
The toolchain is
riscos-crossdev-toolchain-1.12-x86_64-linux.tar.xz
(attached), sha256
c1ef74e83501b1a0bbbe46954acc964f3c74c77076f79c26504167383b0c4237.- Its
libunixlib.ahas the same code and data as riscos-unixlib
v5.0.3.9's release asset, in all 902 objects.
- Its
-
The devkit is still riscos-mesa 20.3.5-18.
docker run --rm -v "$PWD":/src ghcr.io/adyoull/riscos-crossdev:1.12 make check all
Support is as-is, at the maintainer's own pace; report problems in GitHub
Issues. Written with Claude as a coding assistant; Andrew Youll directs the
work and tests on a Raspberry Pi 4.
riscos-crossdev 1.11.3
riscos-crossdev 1.11.3: library directories, WimpSlot and ARM code
The toolchain is 1.11's (UnixLib 5.0.3.7): toolchain/PREBUILT still
names riscos-crossdev-toolchain-1.11-x86_64-linux.tar.xz from the
1.11 release.
This release takes in more of what ports found running mixed programs
(docs/MIXED.md):
-
Several library directories: separate them with
;in
LD_LIBRARY_PATH, in search order:
"LD_LIBRARY_PATH=/MyProgLibs:;/GTKLibs:;/MesaLibs:".- riscos-mesa tested it. With
:alone, not even the first directory
is searched.
- riscos-mesa tested it. With
-
!Runsets aWimpSlotbig enough for the program, as for an
Absolute file. Without one, a big mixed program started from the Filer
stops with "Wimpslot not big enough to run ELF program".
examples/mixed's!Runnow sets one. -
Shared libraries must be ARM code.
-fPICcan't be assembled as
Thumb-2: RISC OS's scheme for a library's data patches an ARM
instruction. ARM is the compiler's default; an application that must
be Thumb-2 throughout can't be a shared library. -
To update: check out v1.11.3. If you already have 1.11's toolchain
installed, nothing else changes. With Docker, use
ghcr.io/adyoull/riscos-crossdev:1.11.3.
Support is as-is, at the maintainer's own pace; report problems in GitHub
Issues. Written with Claude as a coding assistant; Andrew Youll directs the
work and tests on a Raspberry Pi 4.
riscos-crossdev 1.11.2
riscos-crossdev 1.11.2: shared libraries with C++ static objects
The toolchain is 1.11's (UnixLib 5.0.3.7): toolchain/PREBUILT still
names riscos-crossdev-toolchain-1.11-x86_64-linux.tar.xz from the
1.11 release.
This release takes in riscos-mesa's experience of building its devkit's
libraries as shared libraries.
-
RISCOS_SO_LDFLAGSis now-shared -nodefaultlibs(it was
-shared -nostdlib).-nostdlibalso left out the start files, and with them
__dso_handle, so a C++ library with static objects didn't link.- Tested on RISC OS on Linux: such a library's objects are built when
it loads, and destroyed in order when the program exits. make checknow builds one.- Libraries still have no UnixLib, libstdc++ or libgcc of their own.
-
docs/MIXED.md
adds:- what to do with archives that hold the same object twice;
--gc-sectionsfor libraries built from big archives;- why a program using a shared SDL needs
-ldl; - stripping the libraries you ship;
- riscos-mesa's coming shared devkit libraries (
!MesaLibs).
-
To update: check out v1.11.2. If you already have 1.11's toolchain
installed, nothing else changes. With Docker, use
ghcr.io/adyoull/riscos-crossdev:1.11.2. -
If you build mixed-program libraries with your own flags, change
-nostdlibto-nodefaultlibsthere too.
Support is as-is, at the maintainer's own pace; report problems in GitHub
Issues. Written with Claude as a coding assistant; Andrew Youll directs the
work and tests on a Raspberry Pi 4.
riscos-crossdev 1.11.1
riscos-crossdev 1.11.1: the documents brought up to date
Documentation only. The toolchain is 1.11's (UnixLib 5.0.3.7), and
toolchain/PREBUILT still names
riscos-crossdev-toolchain-1.11-x86_64-linux.tar.xz from the
1.11 release.
Every document now covers 1.11 and mixed programs:
-
USING.md: the link settings, why AIF, and
examples/mixed. -
RISCOS-RULES.md: section 7, on static programs, now covers mixed
programs. -
SETUP.md, TESTING.md (the new checks) and PI-TESTING.md:
what a mixed program needs on the machine, and PThreadTicker 0.04. -
REFERENCE.md, AGENTS.md and the README: UnixLib 5.0.3.7,
and four examples. -
MIXED.md:
- the Pi result: mixed Geany and L3afpad alongside Iris, on RISC OS 5;
- CMake isn't supported for mixed programs yet:
riscos.cmakelinks
-static.
-
To update: check out v1.11.1. If you already have 1.11's toolchain
installed, nothing else changes. With Docker, use
ghcr.io/adyoull/riscos-crossdev:1.11.1.
Support is as-is, at the maintainer's own pace; report problems in GitHub
Issues. Written with Claude as a coding assistant; Andrew Youll directs the
work and tests on a Raspberry Pi 4.
riscos-crossdev 1.11
riscos-crossdev 1.11: UnixLib 5.0.3.7, and mixed programs
A new toolchain, with UnixLib 5.0.3.7 (was 5.0.3.6), from
riscos-unixlib,
and PThreadTicker 0.04. UnixLib's changes:
- shared memory works with ARMEABISupport 1.08 as well as 1.05;
isattyof a bad fd returns 0, andmmapwithMAP_ANONignores the fd;- it starts mixed programs (below).
There are no struct or argument changes: relink to pick them up. GCC,
binutils, elf2aif and QEMU are as in 1.10.
Mixed programs (docs/MIXED.md).
UnixLib, libstdc++ and libgcc are linked into the program, as always, but
its other libraries are shared libraries, loaded by !SharedLibs (SOManager
and ld-riscos/so/2). Programs that use the same library file share one
copy of it. Static programs are built exactly as before.
- Link the program with
-rdynamicinstead of-static
(RISCOS_MIXED_LDFLAGS), and build each library-fPIC, then
-shared -nostdlib … -lgcc(RISCOS_SO_*), or from a static archive
with$(call RISCOS_SO_FROM_A,...). - The program has one UnixLib, its own:
crtmixed.ostops it, with a message, if a library loaded a real
shared UnixLib;- stand-ins and
riscos-mixed-exportslet it use libraries built by
GCCSDK for fully shared programs.
- New checks:
check-shared-lib.shfor libraries and
check-mixed-package.shfor a packaged app.examples/mixedbuilds
!MixHello. - Shared libraries go in the app's own directory, or, to share them
between apps, in a library pack in!Boot.Resources(as riscos-gtk's
!GTKLibs). - Users need a !SharedLibs with
ld-riscos/so/2(GCCSDK 8 or later, as
Iris has), SharedUnixLibrary 1.16 and ARMEABISupport.
Tested:
- on a Raspberry Pi under RISC OS 5, with riscos-gtk's mixed Geany and
L3afpad: both use one 20 MB copy of GTK's 26 libraries; - on RISC OS on Linux, with MixTest (C and C++, threads, signals and
exceptions across the boundary), and with static, mixed and fully
shared programs running at the same time.
Also:
-
-pthreadworks, as on Linux; -
a mixed C program can use C++ libraries: the driver links libstdc++ in.
-
To update: check out v1.11, then
make prebuiltinto an empty
toolchain/env(move the old one away first). With Docker, use
ghcr.io/adyoull/riscos-crossdev:1.11. -
The toolchain is
riscos-crossdev-toolchain-1.11-x86_64-linux.tar.xz
(attached), sha256
2998d87ef178112837ee76953da298aba5a893051a9c0d89d5630c1fcbb1af42.- Its
libunixlib.ahas the same code and data as riscos-unixlib
v5.0.3.7's release asset, in all 902 objects.
- Its
-
The devkit is riscos-mesa 20.3.5-18 (was 20.3.5-17). Its libraries are
static, so a mixed program links them in.docker run --rm -v "$PWD":/src ghcr.io/adyoull/riscos-crossdev:1.11 make check all
Support is as-is, at the maintainer's own pace; report problems in GitHub
Issues. Written with Claude as a coding assistant; Andrew Youll directs the
work and tests on a Raspberry Pi 4.
riscos-crossdev 1.11-test1 (test build)
riscos-crossdev 1.11-test1: mixed programs (TEST BUILD)
A test build, on the branch mixed-link-test. It's a pre-release:
ports' daily dependency updates don't move to it, and 1.10 stays the
latest release.
Mixed programs: UnixLib, libstdc++ and libgcc linked into the program,
as always, while the program's other libraries are shared libraries loaded
by !SharedLibs (SOManager and ld-riscos/so/2). How to build, check and
package one is in
docs/MIXED.md.
In short:
- link the program with
-rdynamicinstead of-static; - build each library with
-fPIC, then-shared -nostdlib … -lgcc; checks/check-all.shaccepts the program, and
checks/check-shared-lib.shchecks the libraries;examples/mixedbuilds!MixHello.
The toolchain is rebuilt with UnixLib 5.0.3.7-rc4, which starts a
mixed program correctly, and PThreadTicker 0.04. It also has crtmixed.o,
which lets C++ exceptions pass between a library and the program. Ordinary
static programs build and behave as with 1.10.
Tested: MixTest (C, C++, threads, signals, exceptions) passes 12/12 on
RISC OS on Linux, in QEMU and on real hardware with ARMEABISupport 1.05 and
1.08. It hasn't been run yet on RISC OS 5 directly on a Pi.
To run a mixed program, users need a !SharedLibs with ld-riscos/so/2
(GCCSDK 8 or later), SharedUnixLibrary 1.16, and ARMEABISupport.
To try it in a port: on a branch of the port, put
riscos-crossdev v1.11-test1 in .riscos-deps. Its CI then builds in
ghcr.io/adyoull/riscos-crossdev:1.11-test1. On your own machine, check
out v1.11-test1 and make prebuilt into an empty toolchain/env.
The toolchain is riscos-crossdev-toolchain-1.11-test1-x86_64-linux.tar.xz
(attached).
Support is as-is; report problems in GitHub Issues. Written with Claude as
a coding assistant; Andrew Youll directs the work.
riscos-crossdev 1.10
riscos-crossdev 1.10: the toolchain with UnixLib 5.0.3.6
A new toolchain, with UnixLib 5.0.3.6 (was 5.0.3.5), from
riscos-unixlib.
Semaphores work:
sem_timedwaitexists (it failed with ENOSYS), and<semaphore.h>
declares it;sem_waitblocks, rather than polling and leaking memory;sem_postis safe in a signal handler.
Only sem.o, <semaphore.h> and the generated <unixlib/stubs.h> change.
Configure scripts now find sem_timedwait, so reconfigure libraries that
use semaphores (SDL, for one) when you rebuild them with 1.10.
PThreadTicker is still 0.03. GCC, binutils, elf2aif and QEMU are as in 1.9.
-
To update: check out v1.10, then
make prebuiltinto an empty
toolchain/env(move the old one away first). With Docker, use
ghcr.io/adyoull/riscos-crossdev:1.10. -
The toolchain is
riscos-crossdev-toolchain-1.10-x86_64-linux.tar.xz
(attached), sha256
3b89b2e0b3efa5ae44447edbd73b87610253cba2a29d42e1b4d7f24492a27685.- Its
libunixlib.ahas the same code and data as riscos-unixlib
v5.0.3.6's release asset. Only the build paths in debug information
andassertmessages differ.
- Its
-
The devkit is still riscos-mesa 20.3.5-17.
docker run --rm -v "$PWD":/src ghcr.io/adyoull/riscos-crossdev:1.10 make check all
Support is as-is, at the maintainer's own pace; report problems in GitHub
Issues. Written with Claude as a coding assistant; Andrew Youll directs the
work and tests on a Raspberry Pi 4.
riscos-crossdev 1.9
riscos-crossdev 1.9: the toolchain with UnixLib 5.0.3.5
A new toolchain, with UnixLib 5.0.3.5 (was 5.0.3.3), from
riscos-unixlib.
GCC 10.2, binutils, elf2aif and QEMU are as in 1.4. UnixLib's changes since
5.0.3.3:
- threads and signals work on RISC OS for Linux;
- sub-second interval timers repeat;
getgrgid_rand the other group and password lookups follow POSIX;- file names starting with several slashes (
///RAM::..., from
file:///URIs) work; pthread_attr_setscopeand the other scheduling attributes exist;strnlen,strndup,stpcpyandstpncpyare declared without
_GNU_SOURCE;rename()works on a file whose RISC OS type isn't the one its
extension gives.
No struct or argument changes: relink to pick them up. PThreadTicker is
still 0.03.
-
To update: check out v1.9, then
make prebuiltinto an empty
toolchain/env(move the old one away first). With Docker, use
ghcr.io/adyoull/riscos-crossdev:1.9. -
The toolchain is
riscos-crossdev-toolchain-1.9-x86_64-linux.tar.xz
(attached), sha256
56718aa14d6c7ef8a604c8dab9c68ae7d069a2c47726e0098fd845fc2fb763c7.- Its
libunixlib.ahas the same code and data as riscos-unixlib
v5.0.3.5's release asset. Only the build paths in debug information
andassertmessages differ.
- Its
-
The devkit is still riscos-mesa 20.3.5-17.
docker run --rm -v "$PWD":/src ghcr.io/adyoull/riscos-crossdev:1.9 make check all
Support is as-is, at the maintainer's own pace; report problems in GitHub
Issues. Written with Claude as a coding assistant; Andrew Youll directs the
work and tests on a Raspberry Pi 4.