git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: win+Meson test failures due to ps/build-meson-fixes-0130 topic?

From
Jeff King <peff@peff.net>
Date
Feb 26, 2025, 07:46 UTC
Message-ID
<20250226074653.GA27455@coredump.intra.peff.net>
In-Reply-To
<Z77EJRJwPDGUglLk@pks.im>
On Wed, Feb 26, 2025 at 08:35:01AM +0100, Patrick Steinhardt wrote:
Show 9 quoted lines
> > Hm, interesting. I didn't notice those issues in our CI. Thanks for
> > diving into it, I'll figure out what has happened here.
> 
> Okay, the issue was in 163a3e97ac1 (meson: simplify use of the
> common-main library, 2025-01-30). In that commit we stopped using the
> common-main dependency for a couple of binaries, including
> git-remote-https and others. What I didn't realize though is that this
> also made us not use the linker arguments anymore, but those are
> required on Windows when linking an executable.

Ah, thanks, I was just closing in on that commit, too, by reverting backwards from the tip of the series

There's one other oddity I found that you might be interested in. After each revert doing "meson test ..." mostly worked. But when I reverted bf4a16b84a (meson: drop separate version library, 2025-01-30), the build then fails with:

  $ GIT_TRACE_PACKET=1 meson test -C build t0210-* --interactive --test-args=-vi
  ...
  [305/571] Linking static target libgit.a
  FAILED: libgit.a
  "gcc-ar" "csrDT" libgit.a @libgit.a.rsp
  C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/12.2.0/../../../../x86_64-w64-mingw32/bin/ar.exe: libgit.a: No such file or directory

I'd imagine that if I did a complete "rm -rf build && meson setup build" it would work. But it's pretty lousy to have to do that preemptively during a bisection.

I didn't dig into the actual source of the problem in that commit, so I don't know if there's a way to write it that is happy working with both the before and after states.

-Peff
Previous: Patrick SteinhardtNext: Jeff King
Message 5 of 10 in “win+Meson test failures due to ps/build-meson-fixes-0130 topic?”
  1. Junio C HamanoFeb 25, 2025
  2. Patrick SteinhardtFeb 26, 2025
  3. Jeff KingFeb 26, 2025
  4. Patrick SteinhardtFeb 26, 2025
  5. Jeff KingFeb 26, 2025
  6. Jeff KingFeb 26, 2025
  7. Patrick SteinhardtFeb 26, 2025
  8. Jeff KingFeb 26, 2025
  9. Junio C HamanoFeb 26, 2025
  10. Patrick SteinhardtFeb 26, 2025

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.