Skip to content

0.20.4: a system this package does not know takes the general selections (builtins, the 486, the allocator) - #75

Merged
Sunrisepeak merged 3 commits into
mainfrom
eco/0.20.4-systems-by-data
Nov 18, 2026
Merged

Sunrisepeak merged 3 commits into
mainfrom
eco/0.20.4-systems-by-data

Conversation

@Sunrisepeak

@Sunrisepeak Sunrisepeak commented Nov 18, 2026 •

Copy link
Copy Markdown
Member

The defect

Three tables named the systems they applied to, so a row a platform defines for a system this package does not know took none of them, or the wrong one:

  • the builtins were selected for linux, openkal and dos: another ELF row was built with no builtins at all (undefined symbol: __divdi3, __atomic_load);
  • the *bf2.c exclusion of the 486 was DOS's and the i386 ok image's;
  • the allocator edge chose musl's own for os = "none" and os = "dos" and mimalloc elsewhere, which asks the implementation for a random source, far-apart arenas and threads.

The change

Each table names the exception and leaves the rest to the general case:

  • builtins: cfg(all(object-format = "elf", not(os = "freebsd"), not(os = "none"))) — the ELF rows that state no selection of their own;
  • the 486: cfg(all(arch = "i686", not(os = "linux")));
  • allocator: mimalloc on the systems it was measured on (the ones the C library names an implementation for, less bare metal and DOS), musl's own everywhere else.

Every row served before selects what it selected.

A first version of the allocator edge asked cfg(interface = "openkal.random"). That is unsound for a dependency edge, which is selected before the graph is resolved: the predicate is false there whatever the implementation states. CI showed it (the hosted Linux build lost its C library); the condition is now the row's own words.

CI tool

tools/branch-graph.sh read caret ranges only. openkal-musl states >=0.10.0, <0.12.0 for openkal-uefi since 0.29.8, and the script ended there with no message. It reads comparator ranges now.

Measured

An i386 row a platform defines over an implementation outside this package's knowledge (seven interfaces, no random source, no threads): C++23 with import std, exceptions, std::format and std::filesystem builds and runs, with -femulated-tls as the row's flag.

@Sunrisepeak Sunrisepeak changed the title 0.20.4: the builtins by container, the 486's exclusion by architecture, the allocator by the implementation's statement 0.20.4: a system this package does not know takes the general selections (builtins, the 486, the allocator) Nov 18, 2026
@Sunrisepeak
Sunrisepeak merged commit 3a3c68b into main Nov 18, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant