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

Re: Installed git 2.1.3 on sparc 8, but got core dump during 'git clone'

From
Jeff King <peff@peff.net>
Date
Nov 6, 2014, 07:24 UTC
Message-ID
<20141106072403.GA24872@peff.net>
In-Reply-To
<1415255667304-7620693.post@n2.nabble.com>
On Wed, Nov 05, 2014 at 10:34:27PM -0800, victor wrote:
Show 12 quoted lines
> Thanks for the input. With below command, I got new error as below:
> 
> ./configure --prefix=/usr/local/git-2.1.3/ --disable-pthreads
> sudo gmake NO_GETTEXT=1 install
> 
> Undefined                       first referenced
>  symbol                             in file
> type_cas_unlock                     builtin/index-pack.o
> type_cas_lock                       builtin/index-pack.o
> ld: fatal: Symbol referencing errors. No output written to git
> 
> How can I overcome this?

The NO_PTHREADS build was broken in v2.1.2 and v2.1.3. The fix, from commit e0e2128 (index-pack: fix compilation with NO_PTHREADS, 2014-10-11) is in the current "master" branch. If you want to apply it manually, it is just:

diff --git a/builtin/index-pack.c b/builtin/index-pack.c
index 792c66c..a369f55 100644
--- a/builtin/index-pack.c
+++ b/builtin/index-pack.c
@@ -185,6 +185,9 @@ static void cleanup_thread(void)
 #define deepest_delta_lock()
 #define deepest_delta_unlock()
 
+#define type_cas_lock()
+#define type_cas_unlock()
+
 #endif

-Peff
Previous: victorNext: victor
Message 4 of 8 in “Installed git 2.1.3 on sparc 8, but got core dump during 'git clone'”
  1. victorNov 6, 2014
  2. Jeff KingNov 6, 2014
  3. victorNov 6, 2014
  4. Jeff KingNov 6, 2014
  5. victorNov 6, 2014
  6. Torsten BögershausenNov 6, 2014
  7. victorNov 6, 2014
  8. victorNov 7, 2014

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.