threads / discuss / 569

GIT compile error on Sun Sparc SB2000

Subject: GIT compile error on Sun Sparc SB2000

## tl;dr

8 messages between May 11, 2005 and May 11, 2005.

replies: 7people: 4as markdown or json

Alexey Nezhdanov· May 11, 2005, 07:41 UTC · lore

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· May 11, 2005, 08:01 UTC · re: Alexey Nezhdanov · lore

Re: GIT compile error on Sun Sparc SB2000

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· May 11, 2005, 09:32 UTC · re: David Greaves · lore

Re: GIT compile error on Sun Sparc SB2000

Wensday, 11 May 2005 12:01 David Greaves wrote:
Show 14 quoted lines
> 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

Show 9 quoted lines
>
> 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#

Show 7 quoted lines
>
> 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· May 11, 2005, 11:01 UTC · re: Alexey Nezhdanov · lore

Re: GIT compile error on Sun Sparc SB2000

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· May 11, 2005, 11:58 UTC · re: David Woodhouse · lore

Re: GIT compile error on Sun Sparc SB2000

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· May 11, 2005, 12:34 UTC · re: David Woodhouse · lore

Re: GIT compile error on Sun Sparc SB2000

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· May 11, 2005, 12:57 UTC · re: David Woodhouse · lore

Re: GIT compile error on Sun Sparc SB2000

Wensday, 11 May 2005 15:01 David Woodhouse wrote:
Show 9 quoted lines
> 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· May 11, 2005, 13:01 UTC · re: Alexey Nezhdanov · lore

Re: GIT compile error on Sun Sparc SB2000

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

← back to recent threads