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