Skip to content

cmake: bionic has no librt - #156

Merged
LibretroAdmin merged 1 commit into
libretro:libretroizationfrom
WizzardSK:fix-msvc-audit-export
Aug 27, 2026
Merged

LibretroAdmin merged 1 commit into
libretro:libretroizationfrom
WizzardSK:fix-msvc-audit-export

Conversation

@WizzardSK

@WizzardSK WizzardSK commented Aug 27, 2026 •

Copy link
Copy Markdown
Contributor

The android jobs I added in #154 have never got past configure. First it was find_package(OpenGL REQUIRED), fixed in f5e47ce; now it is one line further along:

CMake Error: The following variables are used in this project, but they are
set to NOTFOUND: librt, linked by target "common"

cmake/FindLibc.cmake looks for rt and dl on everything that is not APPLE — the elseif(Linux) arm tests a variable nobody ever sets, so Linux falls into the else() too. Android has neither: bionic folds the timer and dl entry points into libc. find_library therefore leaves librt-NOTFOUND in LIBC_LIBRARIES, and generation stops.

Everything else on pipeline 104926 is green now, including windows-x64 after 02d30cb, so this is the last one standing.

No other platform changes behaviour: Linux was already falling through to the else() arm and still does, APPLE and the BSD/else arms are untouched. I have not build-tested this locally — the android NDK is not installed here — so the pipeline is the check.

The android jobs configure but never generate:

  CMake Error: The following variables are used in this project, but they are
  set to NOTFOUND: librt, linked by target "common"

FindLibc.cmake looks for rt and dl on everything that is not APPLE (the
`elseif(Linux)` arm tests a variable nobody sets, so Linux lands in the else
too). Android has neither - both are folded into libc - so find_library
leaves librt-NOTFOUND sitting in LIBC_LIBRARIES and generation stops.
@LibretroAdmin
LibretroAdmin merged commit e6789e6 into libretro:libretroization Aug 27, 2026
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.

2 participants