Skip to content

clang-cl-xwin: Linux cross builds with SDL3_FETCH configure again (llvm-dlltool instead of the missing dumpbin) - #7347

Closed
labj1987 wants to merge 1 commit into
ProjectLeonida:mainfrom
labj1987:clang-cl-xwin-dlltool
Closed

labj1987 wants to merge 1 commit into
ProjectLeonida:mainfrom
labj1987:clang-cl-xwin-dlltool

Conversation

@labj1987

Copy link
Copy Markdown
Contributor

Building the runtime on Linux with the clang-cl + xwin toolchain and -DLEONIDA_SDL3_FETCH=ON (the GameInput controller shim) stopped at configure:

CMake Error at .../sdl3-src/cmake/macros.cmake:160 (message):
  Cannot find dumpbin, please set CMAKE_DUMPBIN cmake variable

SDL3's win32_implib_identify_dll reads the DLL name behind an import library with CMAKE_DLLTOOL --identify when that is set, else with dumpbin; a Linux cross build has neither. runtime/cmake/clang-cl-xwin.cmake now defaults CMAKE_DLLTOOL to llvm-dlltool, the same way it names the other LLVM tools (a versioned name can still be passed, e.g. -DCMAKE_DLLTOOL=llvm-dlltool-21).

Proof (Ubuntu, LLVM 21, xwin SDK 10.0.26100, SDL3 3.4.20 fetched): configure fails as above on main and passes with this change; the full build (883 steps, including the GameInput shims) succeeds, and gameinput_test.exe under Wine reports 341 checks, 0 failures. Build tooling only; no game files.

Claim: #7333 (comment)

AI-assisted (Claude Code).

🤖 Generated with Claude Code

…pbin

SDL3's CMake identifies the DLL behind an import library with
CMAKE_DLLTOOL --identify or dumpbin; a Linux cross build has neither,
so -DLEONIDA_SDL3_FETCH=ON stopped at configure with "Cannot find
dumpbin". Default CMAKE_DLLTOOL to llvm-dlltool like the other LLVM tools.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@GeremC

GeremC commented Nov 23, 2026

Copy link
Copy Markdown
Contributor

Tested b24d987 merged with main 867d922 on Linux (Ubuntu 24.04, clang-cl 19.1.1 + xwin SDK, CMake 3.28.3, Wine 9.0; CPU only, no game files): pass, no regression, but the failure did not reproduce here.

  • On main, a fresh configure with -DLEONIDA_SDL3_FETCH=ON (SDL3 3.4.20 fetched) already passes on this machine, which has neither dumpbin nor an unversioned llvm-dlltool on PATH (only llvm-dlltool-18/-19). SDL3's win32_implib_identify_dll is not reached with CMake 3.28 in this configuration, so I can't confirm the "Cannot find dumpbin" stop. It may depend on the CMake version; which one did you use?
  • With the PR, same setup: configure passes even though the llvm-dlltool default does not resolve here (the name is only used when SDL3 reaches that macro). ninja gta6rt gameinput_test builds, and gameinput_test.exe under Wine 9.0: 341 checks, 0 failures.
  • A note, not a blocker: where the clang-cl tools come from versioned packages with unversioned links made by hand for the six tools docs/testing.md names (my case), llvm-dlltool would also need a link or -DCMAKE_DLLTOOL=llvm-dlltool-NN. make_game's CROSS_TOOLS check doesn't list it either, so a setup that hits the dumpbin path would get an unclear error.

AI-assisted (Claude Code).

@labj1987

Copy link
Copy Markdown
Contributor Author

Note

🤖 Claude Opus 5.5 responding on behalf of labj1987

Closing in favour of #8539, which fixes the cause. Thanks @GeremC: your run is what showed the stop only happens when SDL3 finds the build host's libusb (here libusb-1.0-0-dev on Ubuntu, CMake 4.2.3; on your machine without it, SDL3 never reaches the dumpbin check). With SDL's libusb backend off in a cross build, as #8539 does, no llvm-dlltool or dumpbin is needed, so your CROSS_TOOLS note no longer applies. Linux test of #8539: #8539

@labj1987 labj1987 closed this Nov 23, 2026
@labj1987
labj1987 deleted the clang-cl-xwin-dlltool branch November 23, 2026 19:40
@rideinstead

Copy link
Copy Markdown

✅ Automated security review: CLEAN (commit b24d9875)

  • No findings.

Scope: static analysis of added diff lines only; no code was executed. Please review findings manually.

dadnotdaddy pushed a commit to dadnotdaddy/Leonida that referenced this pull request Nov 23, 2026
…th SDL3_FETCH configure again (llvm-dlltool instead of the missing dumpbin)

Squashed from ProjectLeonida#7347 by labj1987, head b24d987 (security scan PASS).
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.

3 participants