GNU bug report logs - #23133
gzip-1.7: Segmentation Fault with solarisstudio12.4 on Solaris10 x64

Previous Next

Package: gzip;

Reported by: Kiyoshi KANAZAWA <yoi_no_myoujou <at> yahoo.co.jp>

Date: Mon, 28 Mar 2016 09:48:01 UTC

Severity: normal

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

Full log


Message #10 received at 23133-done <at> debbugs.gnu.org (full text, mbox):

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Kiyoshi KANAZAWA <yoi_no_myoujou <at> yahoo.co.jp>
Cc: 23133-done <at> debbugs.gnu.org
Subject: Re: bug#23133: gzip-1.7: Segmentation Fault with solarisstudio12.4 on
 Solaris10 x64
Date: Mon, 28 Mar 2016 16:35:52 -0700
[Message part 1 (text/plain, inline)]
On 03/28/2016 02:46 AM, Kiyoshi KANAZAWA wrote:
> I tried to build gzip-1.7 with solarisstudio12.4 cc, on Solaris10 x64,
>
> and had 'Segmentation Fault' in make check.
>
> % ./configure CC=cc CFLAGS='-m64 -g'

Thanks for reporting that. This exposed some bugs in configure.ac and 
lib/match.c: the configuration procedure assumes that, since cc 
assembles x86 instructions successfully, the x86 code will actually work 
when called from x86-64 code. I fixed this by installing the attached patch.

Also, since -m64 affects the preprocessor output, you need to set 
CPPFLAGS and/or put the -m64 into CC instead.  Something like the 
following should work with gzip 1.7:

./configure CC='cc -m64' CFLAGS='-g' DEFS='-D NO_ASM'

(A space is required between '-D' and 'NO_ASM'.) With the patch, plain 
'./configure CC="cc -m64" CFLAGS=-g' should also work.
[0001-Port-to-Oracle-Solaris-Studio-12.4.patch (application/x-patch, attachment)]

This bug report was last modified 9 years and 61 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.