git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* git 2.1.0: make fails
@ 2014-09-09 20:34 Gerry Reno
  2014-09-09 22:42 ` Jeff King
  0 siblings, 1 reply; 3+ messages in thread
From: Gerry Reno @ 2014-09-09 20:34 UTC (permalink / raw)
  To: git

Downloaded the git-2.1.0.tar.gz  tarball.

Cannot build git 2.1.0:

    $ V=1 make prefix=/usr/local all
    ...
    cc -o xdiff/xpatience.o -c -MF xdiff/.depend/xpatience.o.d -MQ xdiff/xpatience.o -MMD -MP  -g -O2 -Wall -I.
    -DHAVE_ALLOCA_H  -DHAVE_PATHS_H -DHAVE_DEV_TTY -DHAVE_CLOCK_GETTIME -DSHA1_HEADER='<openssl/sha.h>'  -DNO_STRLCPY
    -DNO_MKSTEMPS -DSHELL_PATH='"/bin/sh"'  xdiff/xpatience.c
    cc -o xdiff/xhistogram.o -c -MF xdiff/.depend/xhistogram.o.d -MQ xdiff/xhistogram.o -MMD -MP  -g -O2 -Wall -I.
    -DHAVE_ALLOCA_H  -DHAVE_PATHS_H -DHAVE_DEV_TTY -DHAVE_CLOCK_GETTIME -DSHA1_HEADER='<openssl/sha.h>'  -DNO_STRLCPY
    -DNO_MKSTEMPS -DSHELL_PATH='"/bin/sh"'  xdiff/xhistogram.c
    rm -f xdiff/lib.a && ar rcs xdiff/lib.a xdiff/xdiffi.o xdiff/xprepare.o xdiff/xutils.o xdiff/xemit.o xdiff/xmerge.o
    xdiff/xpatience.o xdiff/xhistogram.o
    cc  -g -O2 -Wall -I. -DHAVE_ALLOCA_H  -DHAVE_PATHS_H -DHAVE_DEV_TTY -DHAVE_CLOCK_GETTIME
    -DSHA1_HEADER='<openssl/sha.h>'  -DNO_STRLCPY -DNO_MKSTEMPS -DSHELL_PATH='"/bin/sh"' -o git-credential-store  
    credential-store.o libgit.a xdiff/lib.a  -lz  -lcrypto -lpthread -lrt
    collect2: ld returned 1 exit status
    make: *** [git-credential-store] Error 1


    $ ls -l credential.o libgit.a xdiff/lib.a /usr/lib/libz.a /usr/lib/libcrypt.a /usr/lib/libpthread.a /usr/lib/librt.a
    -rw-rw-r-- 1 greno greno   20332 Sep  9 16:21 credential.o
    -rw-rw-r-- 1 greno greno 4658874 Sep  9 16:23 libgit.a
    -rw-r--r-- 1 root  root    24272 Jan  5  2007 /usr/lib/libcrypt.a
    -rw-r--r-- 1 root  root   228586 Jan  5  2007 /usr/lib/libpthread.a
    -rw-r--r-- 1 root  root    52128 Jan  5  2007 /usr/lib/librt.a
    -rwxr-xr-x 1 root  root    92622 Jul 19  2006 /usr/lib/libz.a
    -rw-rw-r-- 1 greno greno  122456 Sep  9 16:23 xdiff/lib.a

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: git 2.1.0: make fails
  2014-09-09 20:34 git 2.1.0: make fails Gerry Reno
@ 2014-09-09 22:42 ` Jeff King
  2014-09-10 12:39   ` Gerry Reno
  0 siblings, 1 reply; 3+ messages in thread
From: Jeff King @ 2014-09-09 22:42 UTC (permalink / raw)
  To: Gerry Reno; +Cc: git

On Tue, Sep 09, 2014 at 04:34:02PM -0400, Gerry Reno wrote:

> Downloaded the git-2.1.0.tar.gz  tarball.
> 
> Cannot build git 2.1.0:

Weird. It works fine for me on Debian unstable. What platform are you on?

>     cc  -g -O2 -Wall -I. -DHAVE_ALLOCA_H  -DHAVE_PATHS_H -DHAVE_DEV_TTY -DHAVE_CLOCK_GETTIME
>     -DSHA1_HEADER='<openssl/sha.h>'  -DNO_STRLCPY -DNO_MKSTEMPS -DSHELL_PATH='"/bin/sh"' -o git-credential-store  
>     credential-store.o libgit.a xdiff/lib.a  -lz  -lcrypto -lpthread -lrt
>     collect2: ld returned 1 exit status
>     make: *** [git-credential-store] Error 1

So the linker failed, but it didn't actually tell us why. That's not
much to go on. Are you sure there was no other output on stderr?

I assume the reason it broke on git-credential-store is just because it
is the first thing we try to link. What does:

  make V=1 prefix=/usr/local git

output? Does it successfully link "git"?

-Peff

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: git 2.1.0: make fails
  2014-09-09 22:42 ` Jeff King
@ 2014-09-10 12:39   ` Gerry Reno
  0 siblings, 0 replies; 3+ messages in thread
From: Gerry Reno @ 2014-09-10 12:39 UTC (permalink / raw)
  To: Jeff King; +Cc: git

On 09/09/2014 06:42 PM, Jeff King wrote:
> On Tue, Sep 09, 2014 at 04:34:02PM -0400, Gerry Reno wrote:
>
>> Downloaded the git-2.1.0.tar.gz  tarball.
>>
>> Cannot build git 2.1.0:
> Weird. It works fine for me on Debian unstable. What platform are you on?
>
>>     cc  -g -O2 -Wall -I. -DHAVE_ALLOCA_H  -DHAVE_PATHS_H -DHAVE_DEV_TTY -DHAVE_CLOCK_GETTIME
>>     -DSHA1_HEADER='<openssl/sha.h>'  -DNO_STRLCPY -DNO_MKSTEMPS -DSHELL_PATH='"/bin/sh"' -o git-credential-store  
>>     credential-store.o libgit.a xdiff/lib.a  -lz  -lcrypto -lpthread -lrt
>>     collect2: ld returned 1 exit status
>>     make: *** [git-credential-store] Error 1
> So the linker failed, but it didn't actually tell us why. That's not
> much to go on. Are you sure there was no other output on stderr?
>
> I assume the reason it broke on git-credential-store is just because it
> is the first thing we try to link. What does:
>
>   make V=1 prefix=/usr/local git
>
> output? Does it successfully link "git"?
>
> -Peff
>

I downloaded git-2.0.4.tar.gz and it builds and links fine.

I wiped out the 2.1.0 installation so cannot test anything more.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-09-10 13:40 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-09 20:34 git 2.1.0: make fails Gerry Reno
2014-09-09 22:42 ` Jeff King
2014-09-10 12:39   ` Gerry Reno

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).