[Python-bugs-list] [ python-Bugs-404322 ] Python 2.1a and solaris8/x86
nobody
nobody@sourceforge.net
Wed, 28 Feb 2001 18:37:59 -0800
Bugs #404322, was updated on 2001-02-26 08:17
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=404322&group_id=5470
Category: Build
Group: Platform-specific
Status: Open
Priority: 5
Submitted By: Nobody/Anonymous
Assigned to: Nobody/Anonymous
Summary: Python 2.1a and solaris8/x86
Initial Comment:
Python 2.1a does not build on Solaris8/X86 with
gcc 2.95.2 and gmake. The problem has been observed
both with the version of gcc 2.95.2 precompiled from
Sun and with a version bootstrapped on the host where
Python should be built.
'uname -a' says:
SunOS clutc 5.8 Generic_108529-01 i86pc i386 i86pc
Compilation has been started with
$ ./configure && gmake
The problem occurs in the link step, output is:
gcc -o python Modules/python.o \
libpython2.1.a -lpthread -lsocket -lnsl
-ldl -lthread -lm
./python ./setup.py build
Text relocation remains
referenced
against symbol offset in file
_xstat 0x12
build/temp.solaris-2.8-i86pc-2.1
/structmodule.o
_lxstat 0x2a
build/temp.solaris-2.8-i86pc-2.1
/structmodule.o
_fxstat 0x42
build/temp.solaris-2.8-i86pc-2.1
/structmodule.o
_xmknod 0x5a
build/temp.solaris-2.8-i86pc-2.1
/structmodule.o
PyInt_AsLong 0x6e
build/temp.solaris-2.8-i86pc-2.1
<snip, very long list of similar messages follows,
snip>
ld: fatal: relocations remain against allocatable but
non-writable sections
collect2: ld returned 1 exit status
Text relocation remains
referenced
against symbol offset in file
_xstat 0x12
build/temp.solaris-2.8-i86pc-2.1
/regexmodule.o
_xstat 0x12
build/temp.solaris-2.8-i86pc-2.1
<again an endless list of similar messages is
following>
----------------------------------------------------------------------
Comment By: david arnold
Date: 2001-02-28 18:37
Message:
Logged In: YES
user_id=78574
i see the same on SPARC (just to provide a confirmation):
SunOS ladybug 5.8 Generic_108528-03 sun4u sparc
i think it is basically every module? (this is a second
pass, so the compilation is already done):
gcc -o python Modules/python.o \
libpython2.1.a -lpthread -lsocket -lnsl
-ldl -lthread -lm
./python ./setup.py build
running build
running build_ext
building 'struct' extension
skipping /tmp/Python-2.1a2/Modules/structmodule.c
(build/temp.solaris-2.8-sun4u-2.1/structmodule.o up-to-date)
gcc -shared build/temp.solaris-2.8-sun4u-2.1/structmodule.o
-L/usr/local/lib -o
build/lib.solaris-2.8-sun4u-2.1/struct.so
Text relocation remains referenced
against symbol offset in file
<unknown> 0x11bc
build/temp.solaris-2.8-sun4u-2.1/structmodule.o
<unknown> 0x11b8
build/temp.solaris-2.8-sun4u-2.1/structmodule.o
<unknown> 0x11f8
build/temp.solaris-2.8-sun4u-2.1/structmodule.o
<unknown> 0x1c30
build/temp.solaris-2.8-sun4u-2.1/structmodule.o
<unknown> 0x11f4
build/temp.solaris-2.8-sun4u-2.1/structmodule.o
<unknown> 0x11e4
build/temp.solaris-2.8-sun4u-2.1/structmodule.o
etc ...
----------------------------------------------------------------------
Comment By: Samuele Pedroni
Date: 2001-02-26 12:53
Message:
Logged In: YES
user_id=61408
same true under SPARC.
The problem is that with the default settings gcc -shared
passes '-z text' to ld.
I don't know if the corresponding test make sense.
OTOH the option -mimpure-text makes things work (? =text
sects writable)
Need .so to have writable text sections or is gcc doing
something
wrong passing the -z text option down to ld? ...
----------------------------------------------------------------------
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=404322&group_id=5470