Git development
 help / color / mirror / Atom feed
* GIT compile error on Sun Sparc SB2000
@ 2005-05-11  7:41 Alexey Nezhdanov
  2005-05-11  8:01 ` David Greaves
  2005-05-11 11:01 ` David Woodhouse
  0 siblings, 2 replies; 8+ messages in thread
From: Alexey Nezhdanov @ 2005-05-11  7:41 UTC (permalink / raw)
  To: Git Mailing List

Hello. GIT refuses to compile on Debian sarge on sparc64.
Probably some compile flag is incompartible but can't figure out which.
=============================
webmaster@www:/tmp/cogito-0.10$ make
cc -g -O2 -Wall  '-DSHA1_HEADER=<openssl/sha.h>'   -c -o read-cache.o 
read-cache.c
cc -g -O2 -Wall  '-DSHA1_HEADER=<openssl/sha.h>'   -c -o sha1_file.o 
sha1_file.c
cc -g -O2 -Wall  '-DSHA1_HEADER=<openssl/sha.h>'   -c -o usage.o usage.c
cc -g -O2 -Wall  '-DSHA1_HEADER=<openssl/sha.h>'   -c -o object.o object.c
cc -g -O2 -Wall  '-DSHA1_HEADER=<openssl/sha.h>'   -c -o commit.o commit.c
cc -g -O2 -Wall  '-DSHA1_HEADER=<openssl/sha.h>'   -c -o tree.o tree.c
cc -g -O2 -Wall  '-DSHA1_HEADER=<openssl/sha.h>'   -c -o blob.o blob.c
cc -g -O2 -Wall  '-DSHA1_HEADER=<openssl/sha.h>'   -c -o tag.o tag.c
cc -g -O2 -Wall  '-DSHA1_HEADER=<openssl/sha.h>'   -c -o date.o date.c
cc -g -O2 -Wall  '-DSHA1_HEADER=<openssl/sha.h>'   -c -o strbuf.o strbuf.c
cc -g -O2 -Wall  '-DSHA1_HEADER=<openssl/sha.h>'   -c -o diff.o diff.c
ar rcs libgit.a read-cache.o sha1_file.o usage.o object.o commit.o tree.o 
blob.o tag.o date.o strbuf.o diff.o
cc -g -O2 -Wall  '-DSHA1_HEADER=<openssl/sha.h>' -o git-update-cache 
update-cache.c libgit.a -lz -lssl
/usr/bin/ld: skipping 
incompatible /usr/lib/gcc-lib/sparc-linux/3.3.3/../../../libz.so when 
searching for -lz
/usr/bin/ld: skipping 
incompatible /usr/lib/gcc-lib/sparc-linux/3.3.3/../../../libz.a when 
searching for -lz
/usr/bin/ld: skipping incompatible /usr/bin/../lib/libz.so when searching for 
-lz
/usr/bin/ld: skipping incompatible /usr/bin/../lib/libz.a when searching for 
-lz
/usr/bin/ld: skipping incompatible /usr/lib/libz.so when searching for -lz
/usr/bin/ld: skipping incompatible /usr/lib/libz.a when searching for -lz
/usr/bin/ld: cannot find -lz
collect2: ld returned 1 exit status
make: *** [git-update-cache] Error 1
webmaster@www:/tmp/cogito-0.10$ 
-- 
Respectfully
Alexey Nezhdanov


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

* Re: GIT compile error on Sun Sparc SB2000
  2005-05-11  7:41 GIT compile error on Sun Sparc SB2000 Alexey Nezhdanov
@ 2005-05-11  8:01 ` David Greaves
  2005-05-11  9:32   ` Alexey Nezhdanov
  2005-05-11 11:01 ` David Woodhouse
  1 sibling, 1 reply; 8+ messages in thread
From: David Greaves @ 2005-05-11  8:01 UTC (permalink / raw)
  To: Alexey Nezhdanov; +Cc: Git Mailing List

Alexey Nezhdanov wrote:

>Hello. GIT refuses to compile on Debian sarge on sparc64.
>Probably some compile flag is incompartible but can't figure out which.
>  
>
read the error message:

>/usr/bin/ld: skipping 
>incompatible /usr/lib/gcc-lib/sparc-linux/3.3.3/../../../libz.so when 
>  
>
hmm...
libz.so

>/usr/bin/ld: cannot find -lz
>  
>
Can't find often equals "not installed"

So go to aptitude, search for zlib
You'll find libz-dev
Install it

Or just run
apt-get install libz-dev

And try again

David


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

* Re: GIT compile error on Sun Sparc SB2000
  2005-05-11  8:01 ` David Greaves
@ 2005-05-11  9:32   ` Alexey Nezhdanov
  0 siblings, 0 replies; 8+ messages in thread
From: Alexey Nezhdanov @ 2005-05-11  9:32 UTC (permalink / raw)
  To: git

Wensday, 11 May 2005 12:01 David Greaves wrote:
> Alexey Nezhdanov wrote:
> >Hello. GIT refuses to compile on Debian sarge on sparc64.
> >Probably some compile flag is incompartible but can't figure out which.
>
> read the error message:
> >/usr/bin/ld: skipping
> >incompatible /usr/lib/gcc-lib/sparc-linux/3.3.3/../../../libz.so when
>
> hmm...
> libz.so
>
> >/usr/bin/ld: cannot find -lz
>
> Can't find often equals "not installed"
webmaster@www:/tmp/cogito-0.10$ ls -l /usr/lib/libz.so
lrwxr-xr-x    1 root     root            9 2005-05-11 11:18 /usr/lib/libz.so 
-> libz.so.1
webmaster@www:/tmp/cogito-0.10$ ls -l /usr/lib/libz.a 
-rw-r--r--    1 root     root        83610 2004-12-07 21:38 /usr/lib/libz.a

>
> So go to aptitude, search for zlib
> You'll find libz-dev
> Install it
>
> Or just run
> apt-get install libz-dev
>
> And try again
Nope, not helped.
www:/home/snake# apt-get install libz-dev
Reading Package Lists... Done
Building Dependency Tree... Done
Note, selecting zlib1g-dev instead of libz-dev
zlib1g-dev is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 307 not upgraded.
www:/home/snake# 
>
> David
>
> -
> To unsubscribe from this list: send the line "unsubscribe git" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

-- 
Respectfully
Alexey Nezhdanov


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

* Re: GIT compile error on Sun Sparc SB2000
  2005-05-11  7:41 GIT compile error on Sun Sparc SB2000 Alexey Nezhdanov
  2005-05-11  8:01 ` David Greaves
@ 2005-05-11 11:01 ` David Woodhouse
  2005-05-11 11:58   ` David Woodhouse
  2005-05-11 12:57   ` Alexey Nezhdanov
  1 sibling, 2 replies; 8+ messages in thread
From: David Woodhouse @ 2005-05-11 11:01 UTC (permalink / raw)
  To: Alexey Nezhdanov; +Cc: Git Mailing List

On Wed, 2005-05-11 at 11:41 +0400, Alexey Nezhdanov wrote:
> /usr/bin/ld: skipping incompatible /usr/lib/libz.so when searching for -lz
> /usr/bin/ld: skipping incompatible /usr/lib/libz.a when searching for -lz
> /usr/bin/ld: cannot find -lz

Libraries which are in /usr/lib as opposed to /usr/lib64 are presumably
64-bit. Since the linker is claiming that they're incompatible, I assume
your compiler is defaulting to 64-bit output. Try adding '-m32' to
CFLAGS, or installing 64-bit libz.

-- 
dwmw2


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

* Re: GIT compile error on Sun Sparc SB2000
  2005-05-11 11:01 ` David Woodhouse
@ 2005-05-11 11:58   ` David Woodhouse
  2005-05-11 12:34     ` Mark Brown
  2005-05-11 12:57   ` Alexey Nezhdanov
  1 sibling, 1 reply; 8+ messages in thread
From: David Woodhouse @ 2005-05-11 11:58 UTC (permalink / raw)
  To: Alexey Nezhdanov; +Cc: Git Mailing List

On Wed, 2005-05-11 at 12:01 +0100, David Woodhouse wrote:
> Libraries which are in /usr/lib as opposed to /usr/lib64 are presumably
> 64-bit.

Der.... I mean 32-bit, obviously; otherwise the rest wouldn't make
sense:

>  Since the linker is claiming that they're incompatible, I assume
> your compiler is defaulting to 64-bit output. Try adding '-m32' to
> CFLAGS, or installing 64-bit libz.

-- 
dwmw2


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

* Re: GIT compile error on Sun Sparc SB2000
  2005-05-11 11:58   ` David Woodhouse
@ 2005-05-11 12:34     ` Mark Brown
  0 siblings, 0 replies; 8+ messages in thread
From: Mark Brown @ 2005-05-11 12:34 UTC (permalink / raw)
  To: David Woodhouse; +Cc: Alexey Nezhdanov, Git Mailing List

On Wed, May 11, 2005 at 12:58:56PM +0100, David Woodhouse wrote:
> On Wed, 2005-05-11 at 12:01 +0100, David Woodhouse wrote:
> > Libraries which are in /usr/lib as opposed to /usr/lib64 are presumably
> > 64-bit.

> Der.... I mean 32-bit, obviously; otherwise the rest wouldn't make
> sense:

Yes, that is the case for Debian.

> >  Since the linker is claiming that they're incompatible, I assume
> > your compiler is defaulting to 64-bit output. Try adding '-m32' to
> > CFLAGS, or installing 64-bit libz.

...provided in the lib64z1-dev package.  I'm not sure if there is a 64
bit libssl package, though.

-- 
"You grabbed my hand and we fell into it, like a daydream - or a fever."

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

* Re: GIT compile error on Sun Sparc SB2000
  2005-05-11 11:01 ` David Woodhouse
  2005-05-11 11:58   ` David Woodhouse
@ 2005-05-11 12:57   ` Alexey Nezhdanov
  2005-05-11 13:01     ` Alexey Nezhdanov
  1 sibling, 1 reply; 8+ messages in thread
From: Alexey Nezhdanov @ 2005-05-11 12:57 UTC (permalink / raw)
  To: git

Wensday, 11 May 2005 15:01 David Woodhouse wrote:
> On Wed, 2005-05-11 at 11:41 +0400, Alexey Nezhdanov wrote:
> > /usr/bin/ld: skipping incompatible /usr/lib/libz.so when searching for
> > -lz /usr/bin/ld: skipping incompatible /usr/lib/libz.a when searching for
> > -lz /usr/bin/ld: cannot find -lz
>
> Libraries which are in /usr/lib as opposed to /usr/lib64 are presumably
> 64-bit. Since the linker is claiming that they're incompatible, I assume
> your compiler is defaulting to 64-bit output. Try adding '-m32' to
> CFLAGS, or installing 64-bit libz.
Thank you very much.
-m32 helped.
64bits libz and libcurl are missing.

-- 
Respectfully
Alexey Nezhdanov


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

* Re: GIT compile error on Sun Sparc SB2000
  2005-05-11 12:57   ` Alexey Nezhdanov
@ 2005-05-11 13:01     ` Alexey Nezhdanov
  0 siblings, 0 replies; 8+ messages in thread
From: Alexey Nezhdanov @ 2005-05-11 13:01 UTC (permalink / raw)
  To: git

Wensday, 11 May 2005 16:57 Alexey Nezhdanov wrote:
> 64bits libz and libcurl are missing.
Just to be correct:
libssl and libcurl actually.
But this already makes no sense.

-- 
Respectfully
Alexey Nezhdanov


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

end of thread, other threads:[~2005-05-11 12:53 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-05-11  7:41 GIT compile error on Sun Sparc SB2000 Alexey Nezhdanov
2005-05-11  8:01 ` David Greaves
2005-05-11  9:32   ` Alexey Nezhdanov
2005-05-11 11:01 ` David Woodhouse
2005-05-11 11:58   ` David Woodhouse
2005-05-11 12:34     ` Mark Brown
2005-05-11 12:57   ` Alexey Nezhdanov
2005-05-11 13:01     ` Alexey Nezhdanov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox