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

Re: undefined symbols building GIT source from githu

From
Jeff King <peff@peff.net>
Date
Feb 8, 2019, 18:15 UTC
Message-ID
<20190208181503.GC27673@sigill.intra.peff.net>
In-Reply-To
<1a9f02ca-3bc3-f00f-6923-1bbf050e84ca@whamtech.com>
On Fri, Feb 08, 2019 at 01:13:04AM -0500, Douglas Godfrey wrote:
Show 7 quoted lines
> make
> 
> ld: warning: in libgit.a, file was built for unsupported file format which is not the architecture being linked (x86_64)
> ld: warning: in xdiff/lib.a, file was built for unsupported file format which is not the architecture being linked (x86_64)
> Undefined symbols:
>   "_strbuf_addstr_urlencode", referenced from:
> [...]

It sounds like there is a mismatch between your compiler/linker and "ar". I had a vague recollection of this coming up before, and turned this up in the archive:

  https://public-inbox.org/git/CAH8yC8kV77h8cRA9Qo_1FYe9sv0zgsE7yKxaX+OtpRfj9+7wog@mail.gmail.com/

does setting AR/ARFLAGS as in that patch help (note that the original complaint is that ARFLAGS is not respected, but that was since changed in response to that thread).

-Peff
Previous: Douglas Godfrey
Message 2 of 2 in “undefined symbols building GIT source from githu”
  1. Douglas GodfreyFeb 8, 2019
  2. Jeff KingFeb 8, 2019

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.