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