From: Jeff King <peff@peff.net>
To: victor <liwenxi9999@163.com>
Cc: git@vger.kernel.org
Subject: Re: Installed git 2.1.3 on sparc 8, but got core dump during 'git clone'
Date: Thu, 6 Nov 2014 02:24:03 -0500 [thread overview]
Message-ID: <20141106072403.GA24872@peff.net> (raw)
In-Reply-To: <1415255667304-7620693.post@n2.nabble.com>
On Wed, Nov 05, 2014 at 10:34:27PM -0800, victor wrote:
> 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
next prev parent reply other threads:[~2014-11-06 7:24 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-06 5:19 Installed git 2.1.3 on sparc 8, but got core dump during 'git clone' victor
2014-11-06 5:31 ` Jeff King
2014-11-06 6:34 ` victor
2014-11-06 7:24 ` Jeff King [this message]
2014-11-06 7:38 ` victor
2014-11-06 8:26 ` Torsten Bögershausen
2014-11-06 8:36 ` victor
2014-11-07 7:18 ` victor
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20141106072403.GA24872@peff.net \
--to=peff@peff.net \
--cc=git@vger.kernel.org \
--cc=liwenxi9999@163.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.