# GIT compile error on Sun Sparc SB2000

8 messages from 2005-05-11 to 2005-05-11. Participants: Alexey Nezhdanov, David Greaves, David Woodhouse, Mark Brown.
Thread: https://gitlist.dev/t/569

## Alexey Nezhdanov, 2005-05-11 07:41

Subject: GIT compile error on Sun Sparc SB2000
Message-ID: <200505111141.27725.snake@penza-gsm.ru>
URL: https://gitlist.dev/e/200505111141.27725.snake%40penza-gsm.ru

```
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


```

## David Greaves, 2005-05-11 08:01

Subject: Re: GIT compile error on Sun Sparc SB2000
Message-ID: <4281BBC4.8060709@dgreaves.com>
URL: https://gitlist.dev/e/4281BBC4.8060709%40dgreaves.com
In-Reply-To: <200505111141.27725.snake@penza-gsm.ru>

```
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


```

## Alexey Nezhdanov, 2005-05-11 09:32

Subject: Re: GIT compile error on Sun Sparc SB2000
Message-ID: <200505111332.38491.snake@penza-gsm.ru>
URL: https://gitlist.dev/e/200505111332.38491.snake%40penza-gsm.ru
In-Reply-To: <4281BBC4.8060709@dgreaves.com>

```
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


```

## David Woodhouse, 2005-05-11 11:01

Subject: Re: GIT compile error on Sun Sparc SB2000
Message-ID: <1115809273.16187.493.camel@hades.cambridge.redhat.com>
URL: https://gitlist.dev/e/1115809273.16187.493.camel%40hades.cambridge.redhat.com
In-Reply-To: <200505111141.27725.snake@penza-gsm.ru>

```
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


```

## David Woodhouse, 2005-05-11 11:58

Subject: Re: GIT compile error on Sun Sparc SB2000
Message-ID: <1115812736.16187.494.camel@hades.cambridge.redhat.com>
URL: https://gitlist.dev/e/1115812736.16187.494.camel%40hades.cambridge.redhat.com
In-Reply-To: <1115809273.16187.493.camel@hades.cambridge.redhat.com>

```
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


```

## Mark Brown, 2005-05-11 12:34

Subject: Re: GIT compile error on Sun Sparc SB2000
Message-ID: <20050511123425.GA28547@projectcolo.org.uk>
URL: https://gitlist.dev/e/20050511123425.GA28547%40projectcolo.org.uk
In-Reply-To: <1115812736.16187.494.camel@hades.cambridge.redhat.com>

```
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."

```

## Alexey Nezhdanov, 2005-05-11 12:57

Subject: Re: GIT compile error on Sun Sparc SB2000
Message-ID: <200505111657.14424.snake@penza-gsm.ru>
URL: https://gitlist.dev/e/200505111657.14424.snake%40penza-gsm.ru
In-Reply-To: <1115809273.16187.493.camel@hades.cambridge.redhat.com>

```
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


```

## Alexey Nezhdanov, 2005-05-11 13:01

Subject: Re: GIT compile error on Sun Sparc SB2000
Message-ID: <200505111701.26303.snake@penza-gsm.ru>
URL: https://gitlist.dev/e/200505111701.26303.snake%40penza-gsm.ru
In-Reply-To: <200505111657.14424.snake@penza-gsm.ru>

```
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


```
