On Fri, Feb 08, 2019 at 01:13:04AM -0500, Douglas Godfrey wrote: > 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+7...@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