[Python-bugs-list] [ python-Bugs-596422 ] build dumps core (binutils 2.13/solaris)

noreply@sourceforge.net noreply@sourceforge.net
Fri, 20 Sep 2002 15:26:54 -0700


Bugs item #596422, was opened at 2002-08-17 09:44
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=596422&group_id=5470

Category: Build
Group: Platform-specific
Status: Open
Resolution: None
Priority: 5
Submitted By: Andrew Koenig (arkoenig)
>Assigned to: Martin v. Löwis (loewis)
Summary: build dumps core (binutils 2.13/solaris)

Initial Comment:
Installing Python 2.2.1 on Solaris causes a core dump
during build (just after trying to load struct.so) if I
am using binutils 2.13.  This happens with either gcc
3.1.1 or gcc 3.2, on either solaris 7 or solaris 8.  I
suspect it happens on other combinations as well.

It works just fine with binutils 2.12.1, so the problem
appears to be in binutils, not Python per se.  The
attached file, contributed by Zack Weinberg
(zack@codesourcery.com), tests for the presence of the
problem; if it executes to completion, the problem
isn't there.

Perhaps it might make sense to put a similar test into
the Python installation procedure?



----------------------------------------------------------------------

>Comment By: Guido van Rossum (gvanrossum)
Date: 2002-09-20 18:26

Message:
Logged In: YES 
user_id=6380

Looks harmless to me, but I can't test it. Only the
configure.in patch is really needed; we generate configure
using autoconf (and then check it in for the benefit of others).

Assigning to MvL.

Martin, can you test this on Solaris with the indicated GCC
release? Or should we just jump the gun???  (Hm, what about
older GCC releases -- it needs to be tested there too.)

I'd still like to understand what "combreloc" does...

----------------------------------------------------------------------

Comment By: Andrew Koenig (arkoenig)
Date: 2002-09-20 13:19

Message:
Logged In: YES 
user_id=418174

Here's the patch to configure.in

----------------------------------------------------------------------

Comment By: Andrew Koenig (arkoenig)
Date: 2002-09-20 13:17

Message:
Logged In: YES 
user_id=418174

I have learned from Nick Clifton at Red Hat that the source
of the problem is a change in the default linker options
between 2.12 and 2.13.  The specific option that causes the
trouble is -zcombreloc, which is the default in 2.13, and
which apparently produces a dll that doesn't work under
Solaris.  Don't know whether this is a Solaris bug or not,
but a workaround is clearly indicated.

Attached are patch files that can be applied to configure
and configure.in (in the Python root directory) to work
around the problem.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=596422&group_id=5470