Skip to content

build-fleet-host: on a Mac, patches/fleet/0009's park writer may stay undefined too - #124

Open
MCsumz wants to merge 1 commit into
cobanov:mainfrom
MCsumz:fleet-host-mac-park-hook
Open

MCsumz wants to merge 1 commit into
cobanov:mainfrom
MCsumz:fleet-host-mac-park-hook

Conversation

@MCsumz

@MCsumz MCsumz commented Nov 27, 2026

Copy link
Copy Markdown
Contributor

Found while building the host server for #123 on a Mac. patches/fleet/0009 added a weak ps5lm_rpc_park_write that only the PS5 title defines. ELF linkers leave it null, but Apple's ld stops, so on a Mac scripts/build-fleet-host.sh fails at llama-fit-params:

Undefined symbols for architecture arm64:
  "_ps5lm_rpc_park_write", referenced from:
      ggml_rpc_park::store::write_begin(...) in libggml-rpc.a(ggml-rpc.cpp.o)

The script now passes -Wl,-U,_ps5lm_rpc_park_write next to the other weak hooks. With it, all five targets (llama-server, llama-cli, ggml-rpc-server, llama-fit-params, test-rpc-multi-server) link on macOS arm64 at d2bceda3d. Linux CI is unaffected.

🤖 Generated with Claude Code

… undefined too

patches/fleet/0009 added a weak ps5lm_rpc_park_write that only the PS5
title defines. ELF linkers leave it null, but Apple's ld stops: on a Mac
llama-fit-params, llama-cli and the other tools that link ggml-rpc fail
with "Undefined symbols: _ps5lm_rpc_park_write". The script now passes
-Wl,-U for it, next to the other weak hooks.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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