Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't build ctypes of Python 2.5.2 with Sun Studio 12 #48035

Closed
mschmarck mannequin opened this issue Sep 5, 2008 · 4 comments
Closed

Can't build ctypes of Python 2.5.2 with Sun Studio 12 #48035

mschmarck mannequin opened this issue Sep 5, 2008 · 4 comments
Assignees
Labels
build The build process and cross-build topic-ctypes

Comments

@mschmarck
Copy link
Mannequin

mschmarck mannequin commented Sep 5, 2008

BPO 3785
Nosy @theller

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = 'https://github.com/theller'
closed_at = <Date 2008-09-05.18:48:25.437>
created_at = <Date 2008-09-05.07:48:42.630>
labels = ['ctypes', 'build']
title = "Can't build ctypes of Python 2.5.2 with Sun Studio 12"
updated_at = <Date 2008-09-05.18:48:25.435>
user = 'https://bugs.python.org/mschmarck'

bugs.python.org fields:

activity = <Date 2008-09-05.18:48:25.435>
actor = 'theller'
assignee = 'theller'
closed = True
closed_date = <Date 2008-09-05.18:48:25.437>
closer = 'theller'
components = ['ctypes']
creation = <Date 2008-09-05.07:48:42.630>
creator = 'mschmarck'
dependencies = []
files = []
hgrepos = []
issue_num = 3785
keywords = []
message_count = 4.0
messages = ['72576', '72577', '72578', '72618']
nosy_count = 2.0
nosy_names = ['theller', 'mschmarck']
pr_nums = []
priority = 'normal'
resolution = 'wont fix'
stage = None
status = 'closed'
superseder = None
type = 'compile error'
url = 'https://bugs.python.org/issue3785'
versions = ['Python 2.5']

@mschmarck
Copy link
Mannequin Author

mschmarck mannequin commented Sep 5, 2008

Compilation of ctypes fails:

cc -G
build/temp.solaris-2.10-sun4u-2.5/export/home/webservd/Source/Python-2.5.2/Modules/_ctypes/_ctypes.o
build/temp.solaris-2.10-sun4u-2.5/export/home/webservd/Source/Python-2.5.2/Modules/_ctypes/callbacks.o
build/temp.solaris-2.10-sun4u-2.5/export/home/webservd/Source/Python-2.5.2/Modules/_ctypes/callproc.o
build/temp.solaris-2.10-sun4u-2.5/export/home/webservd/Source/Python-2.5.2/Modules/_ctypes/stgdict.o
build/temp.solaris-2.10-sun4u-2.5/export/home/webservd/Source/Python-2.5.2/Modules/_ctypes/cfield.o
build/temp.solaris-2.10-sun4u-2.5/export/home/webservd/Source/Python-2.5.2/Modules/_ctypes/malloc_closure.o
build/temp.solaris-2.10-sun4u-2.5/export/home/webservd/Source/Python-2.5.2/Modules/_ctypes/libffi/src/prep_cif.o
build/temp.solaris-2.10-sun4u-2.5/export/home/webservd/Source/Python-2.5.2/Modules/_ctypes/libffi/src/sparc/ffi.o
build/temp.solaris-2.10-sun4u-2.5/export/home/webservd/Source/Python-2.5.2/Modules/_ctypes/libffi/src/sparc/v8.o
build/temp.solaris-2.10-sun4u-2.5/export/home/webservd/Source/Python-2.5.2/Modules/_ctypes/libffi/src/sparc/v9.o
-L/export/home/webservd/.software/Python-2.5.2/lib -L/usr/local/lib
-lpython2.5 -o build/lib.solaris-2.10-sun4u-2.5/_ctypes.so -mimpure-text
cc: Warning: illegal option -mimpure-text
*** WARNING: renaming "_ctypes" since importing it failed: ld.so.1:
python: fatal: relocation error: file
build/lib.solaris-2.10-sun4u-2.5/_ctypes.so: symbol alloca: referenced
symbol not found
running build_scripts

To configure Python 2.5.2, I ran:

./configure --disable-ipv6 --enable-shared --without-gcc --with-threads
--with-doc-strings --prefix=$HOME/.software/Python-2.5.2

Versions:

--($ ~/Source/Python-2.5.2)-- CC -V
CC: Sun C++ 5.9 SunOS_sparc Patch 124863-01 2007/07/25

--($ ~/Source/Python-2.5.2)-- cc -V
cc: Sun C 5.9 SunOS_sparc Patch 124867-01 2007/07/12
usage: cc [ options] files. Use 'cc -flags' for details

--($ ~/Source/Python-2.5.2)-- /opt/SUNWspro/bin/version
Machine hardware: sun4u
OS version: 5.10
Processor type: sparc
Hardware: SUNW,Sun-Fire-480R

The following components are installed on your system:

Sun Studio 12
Sun Studio 12 C Compiler
Sun Studio 12 C++ Compiler
Sun Studio 12 Tools.h++ 7.1
Sun Studio 12 C++ Standard 64-bit Class Library
Sun Studio 12 Garbage Collector
Sun Studio 12 Fortran 95
Sun Studio 12 Debugging Tools (including dbx)
Sun Studio 12 IDE
Sun Studio 12 Debugger GUI
Sun Studio 12 Performance Analyzer (including collect, ...)
Sun Studio 12 X-Designer
Sun Studio 12 VIM editor
Sun Studio 12 XEmacs editor
Sun Studio 12 Performance Library
Sun Studio 12 LockLint
Sun Studio 12 Building Software (including dmake)
Sun Studio 12 Documentation Set

version of "/opt/SUNWspro/bin/../prod/bin/../../bin/cc": Sun C 5.9
SunOS_sparc Patch 124867-01 2007/07/12
version of "/opt/SUNWspro/bin/../prod/bin/../../bin/CC": Sun C++ 5.9
SunOS_sparc Patch 124863-01 2007/07/25
version of "/opt/SUNWspro/bin/../prod/bin/../../bin/f90": Sun Fortran 95
8.3 SunOS_sparc Patch 127000-01 2007/07/18
version of "/opt/SUNWspro/bin/../prod/bin/../../bin/dbx": Sun Dbx
Debugger 7.6 SunOS_sparc Patch 124872-01 2007/07/12
version of "/opt/SUNWspro/bin/../prod/bin/../../bin/analyzer": Sun
Analyzer 7.6 SunOS_sparc Patch 126995-01 2007/07/17
version of "/opt/SUNWspro/bin/../prod/bin/../../bin/dmake": Sun
Distributed Make 7.8 SunOS_sparc Patch 126503-01 2007/07/19

--($ ~/Source/Python-2.5.2)-- LC_ALL=C gmake
case $MAKEFLAGS in \
*-s*) LD_LIBRARY_PATH=/export/home/webservd/Source/Python-2.5.2:
CC='cc' LDSHARED='cc -G' OPT='-DNDEBUG -O' ./python -E ./setup.py -q
build;; \
*) LD_LIBRARY_PATH=/export/home/webservd/Source/Python-2.5.2:
CC='cc' LDSHARED='cc -G' OPT='-DNDEBUG -O' ./python -E ./setup.py build;; \
esac
running build
running build_ext
INFO: Can't locate Tcl/Tk libs and/or headers
building '_ctypes' extension
cc -xcode=pic32 -OPT:Olimit=0 -DNDEBUG -O -I.
-I/export/home/webservd/Source/Python-2.5.2/./Include
-Ibuild/temp.solaris-2.10-sun4u-2.5/libffi/include
-Ibuild/temp.solaris-2.10-sun4u-2.5/libffi
-I/export/home/webservd/Source/Python-2.5.2/Modules/ctypes/libffi/src
-I/export/home/webservd/.software/Python-2.5.2/include -I. -IInclude
-I./Include -I/usr/local/include
-I/export/home/webservd/Source/Python-2.5.2/Include
-I/export/home/webservd/Source/Python-2.5.2 -c
/export/home/webservd/Source/Python-2.5.2/Modules/ctypes/ctypes.c -o
build/temp.solaris-2.10-sun4u-2.5/export/home/webservd/Source/Python-2.5.2/Modules/ctypes/ctypes.o
cc: Warning: illegal option -OPT:Olimit=0
"/export/home/webservd/Source/Python-2.5.2/Modules/ctypes/ctypes.c",
line 2255: warning: statement not reached
"/export/home/webservd/Source/Python-2.5.2/Modules/ctypes/ctypes.c",
line 2820: warning: assignment type mismatch:
pointer to void "=" pointer to function(void) returning int
"/export/home/webservd/Source/Python-2.5.2/Modules/ctypes/ctypes.c",
line 3382: warning: argument #1 is incompatible with prototype:
prototype: pointer to function(void) returning int :
"/export/home/webservd/Source/Python-2.5.2/Modules/ctypes/ctypes.h",
line 270
argument : pointer to void
"/export/home/webservd/Source/Python-2.5.2/Modules/ctypes/ctypes.c",
line 4780: warning: argument #1 is incompatible with prototype:
prototype: pointer to void :
"/export/home/webservd/Source/Python-2.5.2/./Include/longobject.h", line 39
argument : pointer to function(pointer to void, pointer to const
void, unsigned int) returning pointer to void
"/export/home/webservd/Source/Python-2.5.2/Modules/ctypes/ctypes.c",
line 4781: warning: argument #1 is incompatible with prototype:
prototype: pointer to void :
"/export/home/webservd/Source/Python-2.5.2/./Include/longobject.h", line 39
argument : pointer to function(pointer to void, int, unsigned
int) returning pointer to void
"/export/home/webservd/Source/Python-2.5.2/Modules/ctypes/ctypes.c",
line 4782: warning: argument #1 is incompatible with prototype:
prototype: pointer to void :
"/export/home/webservd/Source/Python-2.5.2/./Include/longobject.h", line 39
argument : pointer to function(pointer to const char, int)
returning pointer to struct _object {int ob_refcnt, pointer to struct
_typeobject {..} ob_type}
"/export/home/webservd/Source/Python-2.5.2/Modules/ctypes/ctypes.c",
line 4783: warning: argument #1 is incompatible with prototype:
prototype: pointer to void :
"/export/home/webservd/Source/Python-2.5.2/./Include/longobject.h", line 39
argument : pointer to function(pointer to void, pointer to
struct _object {int ob_refcnt, pointer to struct _typeobject {..}
ob_type}, pointer to struct _object {int ob_refcnt, pointer to struct
_typeobject {..} ob_type}) returning pointer to struct _object {int
ob_refcnt, pointer to struct _typeobject {..} ob_type}
"/export/home/webservd/Source/Python-2.5.2/Modules/ctypes/ctypes.c",
line 4785: warning: argument #1 is incompatible with prototype:
prototype: pointer to void :
"/export/home/webservd/Source/Python-2.5.2/./Include/longobject.h", line 39
argument : pointer to function(pointer to const long, int)
returning pointer to struct _object {int ob_refcnt, pointer to struct
_typeobject {..} ob_type}
cc -xcode=pic32 -OPT:Olimit=0 -DNDEBUG -O -I.
-I/export/home/webservd/Source/Python-2.5.2/./Include
-Ibuild/temp.solaris-2.10-sun4u-2.5/libffi/include
-Ibuild/temp.solaris-2.10-sun4u-2.5/libffi
-I/export/home/webservd/Source/Python-2.5.2/Modules/ctypes/libffi/src
-I/export/home/webservd/.software/Python-2.5.2/include -I. -IInclude
-I./Include -I/usr/local/include
-I/export/home/webservd/Source/Python-2.5.2/Include
-I/export/home/webservd/Source/Python-2.5.2 -c
/export/home/webservd/Source/Python-2.5.2/Modules/ctypes/callbacks.c -o
build/temp.solaris-2.10-sun4u-2.5/export/home/webservd/Source/Python-2.5.2/Modules/ctypes/callbacks.o
cc: Warning: illegal option -OPT:Olimit=0
cc -xcode=pic32 -OPT:Olimit=0 -DNDEBUG -O -I.
-I/export/home/webservd/Source/Python-2.5.2/./Include
-Ibuild/temp.solaris-2.10-sun4u-2.5/libffi/include
-Ibuild/temp.solaris-2.10-sun4u-2.5/libffi
-I/export/home/webservd/Source/Python-2.5.2/Modules/ctypes/libffi/src
-I/export/home/webservd/.software/Python-2.5.2/include -I. -IInclude
-I./Include -I/usr/local/include
-I/export/home/webservd/Source/Python-2.5.2/Include
-I/export/home/webservd/Source/Python-2.5.2 -c
/export/home/webservd/Source/Python-2.5.2/Modules/ctypes/callproc.c -o
build/temp.solaris-2.10-sun4u-2.5/export/home/webservd/Source/Python-2.5.2/Modules/ctypes/callproc.o
cc: Warning: illegal option -OPT:Olimit=0
"/export/home/webservd/Source/Python-2.5.2/Modules/ctypes/callproc.c",
line 668: warning: argument #2 is incompatible with prototype:
prototype: pointer to function(void) returning void :
"build/temp.solaris-2.10-sun4u-2.5/libffi/include/ffi.h", line 272
argument : pointer to void
"/export/home/webservd/Source/Python-2.5.2/Modules/ctypes/callproc.c",
line 921: warning: implicit function declaration: alloca
"/export/home/webservd/Source/Python-2.5.2/Modules/ctypes/callproc.c",
line 975: warning: improper pointer/integer combination: op "="
"/export/home/webservd/Source/Python-2.5.2/Modules/ctypes/callproc.c",
line 1304: warning: argument #1 is incompatible with prototype:
prototype: pointer to function(void) returning int :
"/export/home/webservd/Source/Python-2.5.2/Modules/ctypes/callproc.c",
line 905
argument : pointer to void
"/export/home/webservd/Source/Python-2.5.2/Modules/ctypes/callproc.c",
line 1335: warning: argument #1 is incompatible with prototype:
prototype: pointer to function(void) returning int :
"/export/home/webservd/Source/Python-2.5.2/Modules/ctypes/callproc.c",
line 905
argument : pointer to void
cc -xcode=pic32 -OPT:Olimit=0 -DNDEBUG -O -I.
-I/export/home/webservd/Source/Python-2.5.2/./Include
-Ibuild/temp.solaris-2.10-sun4u-2.5/libffi/include
-Ibuild/temp.solaris-2.10-sun4u-2.5/libffi
-I/export/home/webservd/Source/Python-2.5.2/Modules/ctypes/libffi/src
-I/export/home/webservd/.software/Python-2.5.2/include -I. -IInclude
-I./Include -I/usr/local/include
-I/export/home/webservd/Source/Python-2.5.2/Include
-I/export/home/webservd/Source/Python-2.5.2 -c
/export/home/webservd/Source/Python-2.5.2/Modules/ctypes/stgdict.c -o
build/temp.solaris-2.10-sun4u-2.5/export/home/webservd/Source/Python-2.5.2/Modules/ctypes/stgdict.o
cc: Warning: illegal option -OPT:Olimit=0
cc -xcode=pic32 -OPT:Olimit=0 -DNDEBUG -O -I.
-I/export/home/webservd/Source/Python-2.5.2/./Include
-Ibuild/temp.solaris-2.10-sun4u-2.5/libffi/include
-Ibuild/temp.solaris-2.10-sun4u-2.5/libffi
-I/export/home/webservd/Source/Python-2.5.2/Modules/ctypes/libffi/src
-I/export/home/webservd/.software/Python-2.5.2/include -I. -IInclude
-I./Include -I/usr/local/include
-I/export/home/webservd/Source/Python-2.5.2/Include
-I/export/home/webservd/Source/Python-2.5.2 -c
/export/home/webservd/Source/Python-2.5.2/Modules/ctypes/cfield.c -o
build/temp.solaris-2.10-sun4u-2.5/export/home/webservd/Source/Python-2.5.2/Modules/ctypes/cfield.o
cc: Warning: illegal option -OPT:Olimit=0
cc -xcode=pic32 -OPT:Olimit=0 -DNDEBUG -O -I.
-I/export/home/webservd/Source/Python-2.5.2/./Include
-Ibuild/temp.solaris-2.10-sun4u-2.5/libffi/include
-Ibuild/temp.solaris-2.10-sun4u-2.5/libffi
-I/export/home/webservd/Source/Python-2.5.2/Modules/ctypes/libffi/src
-I/export/home/webservd/.software/Python-2.5.2/include -I. -IInclude
-I./Include -I/usr/local/include
-I/export/home/webservd/Source/Python-2.5.2/Include
-I/export/home/webservd/Source/Python-2.5.2 -c
/export/home/webservd/Source/Python-2.5.2/Modules/ctypes/malloc_closure.c
-o
build/temp.solaris-2.10-sun4u-2.5/export/home/webservd/Source/Python-2.5.2/Modules/ctypes/malloc_closure.o
cc: Warning: illegal option -OPT:Olimit=0
cc -xcode=pic32 -OPT:Olimit=0 -DNDEBUG -O -I.
-I/export/home/webservd/Source/Python-2.5.2/./Include
-Ibuild/temp.solaris-2.10-sun4u-2.5/libffi/include
-Ibuild/temp.solaris-2.10-sun4u-2.5/libffi
-I/export/home/webservd/Source/Python-2.5.2/Modules/ctypes/libffi/src
-I/export/home/webservd/.software/Python-2.5.2/include -I. -IInclude
-I./Include -I/usr/local/include
-I/export/home/webservd/Source/Python-2.5.2/Include
-I/export/home/webservd/Source/Python-2.5.2 -c
/export/home/webservd/Source/Python-2.5.2/Modules/ctypes/libffi/src/prep_cif.c
-o
build/temp.solaris-2.10-sun4u-2.5/export/home/webservd/Source/Python-2.5.2/Modules/ctypes/libffi/src/prep_cif.o
cc: Warning: illegal option -OPT:Olimit=0
"build/temp.solaris-2.10-sun4u-2.5/libffi/include/ffi_common.h", line
77: warning: attribute "__mode
" is unknown, ignored
"build/temp.solaris-2.10-sun4u-2.5/libffi/include/ffi_common.h", line
77: warning: attribute parameter "__QI
" is undefined
"build/temp.solaris-2.10-sun4u-2.5/libffi/include/ffi_common.h", line
78: warning: attribute "__mode
" is unknown, ignored
"build/temp.solaris-2.10-sun4u-2.5/libffi/include/ffi_common.h", line
78: warning: attribute parameter "__QI
" is undefined
"build/temp.solaris-2.10-sun4u-2.5/libffi/include/ffi_common.h", line
79: warning: attribute "__mode
" is unknown, ignored
"build/temp.solaris-2.10-sun4u-2.5/libffi/include/ffi_common.h", line
79: warning: attribute parameter "__HI
" is undefined
"build/temp.solaris-2.10-sun4u-2.5/libffi/include/ffi_common.h", line
80: warning: attribute "__mode
" is unknown, ignored
"build/temp.solaris-2.10-sun4u-2.5/libffi/include/ffi_common.h", line
80: warning: attribute parameter "__HI
" is undefined
"build/temp.solaris-2.10-sun4u-2.5/libffi/include/ffi_common.h", line
81: warning: attribute "__mode
" is unknown, ignored
"build/temp.solaris-2.10-sun4u-2.5/libffi/include/ffi_common.h", line
81: warning: attribute parameter "__SI
" is undefined
"build/temp.solaris-2.10-sun4u-2.5/libffi/include/ffi_common.h", line
82: warning: attribute "__mode
" is unknown, ignored
"build/temp.solaris-2.10-sun4u-2.5/libffi/include/ffi_common.h", line
82: warning: attribute parameter "__SI
" is undefined
"build/temp.solaris-2.10-sun4u-2.5/libffi/include/ffi_common.h", line
83: warning: attribute "__mode
" is unknown, ignored
"build/temp.solaris-2.10-sun4u-2.5/libffi/include/ffi_common.h", line
83: warning: attribute parameter "__DI
" is undefined
"build/temp.solaris-2.10-sun4u-2.5/libffi/include/ffi_common.h", line
84: warning: attribute "__mode
" is unknown, ignored
"build/temp.solaris-2.10-sun4u-2.5/libffi/include/ffi_common.h", line
84: warning: attribute parameter "__DI
" is undefined
cc -xcode=pic32 -OPT:Olimit=0 -DNDEBUG -O -I.
-I/export/home/webservd/Source/Python-2.5.2/./Include
-Ibuild/temp.solaris-2.10-sun4u-2.5/libffi/include
-Ibuild/temp.solaris-2.10-sun4u-2.5/libffi
-I/export/home/webservd/Source/Python-2.5.2/Modules/ctypes/libffi/src
-I/export/home/webservd/.software/Python-2.5.2/include -I. -IInclude
-I./Include -I/usr/local/include
-I/export/home/webservd/Source/Python-2.5.2/Include
-I/export/home/webservd/Source/Python-2.5.2 -c
/export/home/webservd/Source/Python-2.5.2/Modules/ctypes/libffi/src/sparc/ffi.c
-o
build/temp.solaris-2.10-sun4u-2.5/export/home/webservd/Source/Python-2.5.2/Modules/ctypes/libffi/src/sparc/ffi.o
cc: Warning: illegal option -OPT:Olimit=0
"build/temp.solaris-2.10-sun4u-2.5/libffi/include/ffi_common.h", line
77: warning: attribute "__mode
" is unknown, ignored
"build/temp.solaris-2.10-sun4u-2.5/libffi/include/ffi_common.h", line
77: warning: attribute parameter "__QI
" is undefined
"build/temp.solaris-2.10-sun4u-2.5/libffi/include/ffi_common.h", line
78: warning: attribute "__mode
" is unknown, ignored
"build/temp.solaris-2.10-sun4u-2.5/libffi/include/ffi_common.h", line
78: warning: attribute parameter "__QI
" is undefined
"build/temp.solaris-2.10-sun4u-2.5/libffi/include/ffi_common.h", line
79: warning: attribute "__mode
" is unknown, ignored
"build/temp.solaris-2.10-sun4u-2.5/libffi/include/ffi_common.h", line
79: warning: attribute parameter "__HI
" is undefined
"build/temp.solaris-2.10-sun4u-2.5/libffi/include/ffi_common.h", line
80: warning: attribute "__mode
" is unknown, ignored
"build/temp.solaris-2.10-sun4u-2.5/libffi/include/ffi_common.h", line
80: warning: attribute parameter "__HI
" is undefined
"build/temp.solaris-2.10-sun4u-2.5/libffi/include/ffi_common.h", line
81: warning: attribute "__mode
" is unknown, ignored
"build/temp.solaris-2.10-sun4u-2.5/libffi/include/ffi_common.h", line
81: warning: attribute parameter "__SI__" is undefined
"build/temp.solaris-2.10-sun4u-2.5/libffi/include/ffi_common.h", line
82: warning: attribute "__mode__" is unknown, ignored
"build/temp.solaris-2.10-sun4u-2.5/libffi/include/ffi_common.h", line
82: warning: attribute parameter "__SI__" is undefined
"build/temp.solaris-2.10-sun4u-2.5/libffi/include/ffi_common.h", line
83: warning: attribute "__mode__" is unknown, ignored
"build/temp.solaris-2.10-sun4u-2.5/libffi/include/ffi_common.h", line
83: warning: attribute parameter "__DI__" is undefined
"build/temp.solaris-2.10-sun4u-2.5/libffi/include/ffi_common.h", line
84: warning: attribute "__mode__" is unknown, ignored
"build/temp.solaris-2.10-sun4u-2.5/libffi/include/ffi_common.h", line
84: warning: attribute parameter "__DI__" is undefined
"/export/home/webservd/Source/Python-2.5.2/Modules/_ctypes/libffi/src/sparc/ffi.c",
line 399: warning: argument #1 is incompatible with prototype:
prototype: pointer to void :
"/export/home/webservd/Source/Python-2.5.2/Modules/_ctypes/libffi/src/sparc/ffi.c",
line 363
argument : pointer to function(pointer to char, pointer to
struct {pointer to struct {..} cif, pointer to void rvalue, pointer to
pointer to void avalue}) returning void
cc -xcode=pic32 -OPT:Olimit=0 -DNDEBUG -O -I.
-I/export/home/webservd/Source/Python-2.5.2/./Include
-Ibuild/temp.solaris-2.10-sun4u-2.5/libffi/include
-Ibuild/temp.solaris-2.10-sun4u-2.5/libffi
-I/export/home/webservd/Source/Python-2.5.2/Modules/_ctypes/libffi/src
-I/export/home/webservd/.software/Python-2.5.2/include -I. -IInclude
-I./Include -I/usr/local/include
-I/export/home/webservd/Source/Python-2.5.2/Include
-I/export/home/webservd/Source/Python-2.5.2 -c
/export/home/webservd/Source/Python-2.5.2/Modules/_ctypes/libffi/src/sparc/v8.S
-o
build/temp.solaris-2.10-sun4u-2.5/export/home/webservd/Source/Python-2.5.2/Modules/_ctypes/libffi/src/sparc/v8.o
cc: Warning: illegal option -OPT:Olimit=0
cc -xcode=pic32 -OPT:Olimit=0 -DNDEBUG -O -I.
-I/export/home/webservd/Source/Python-2.5.2/./Include
-Ibuild/temp.solaris-2.10-sun4u-2.5/libffi/include
-Ibuild/temp.solaris-2.10-sun4u-2.5/libffi
-I/export/home/webservd/Source/Python-2.5.2/Modules/_ctypes/libffi/src
-I/export/home/webservd/.software/Python-2.5.2/include -I. -IInclude
-I./Include -I/usr/local/include
-I/export/home/webservd/Source/Python-2.5.2/Include
-I/export/home/webservd/Source/Python-2.5.2 -c
/export/home/webservd/Source/Python-2.5.2/Modules/_ctypes/libffi/src/sparc/v9.S
-o
build/temp.solaris-2.10-sun4u-2.5/export/home/webservd/Source/Python-2.5.2/Modules/_ctypes/libffi/src/sparc/v9.o
cc: Warning: illegal option -OPT:Olimit=0
cc -G
build/temp.solaris-2.10-sun4u-2.5/export/home/webservd/Source/Python-2.5.2/Modules/_ctypes/_ctypes.o
build/temp.solaris-2.10-sun4u-2.5/export/home/webservd/Source/Python-2.5.2/Modules/_ctypes/callbacks.o
build/temp.solaris-2.10-sun4u-2.5/export/home/webservd/Source/Python-2.5.2/Modules/_ctypes/callproc.o
build/temp.solaris-2.10-sun4u-2.5/export/home/webservd/Source/Python-2.5.2/Modules/_ctypes/stgdict.o
build/temp.solaris-2.10-sun4u-2.5/export/home/webservd/Source/Python-2.5.2/Modules/_ctypes/cfield.o
build/temp.solaris-2.10-sun4u-2.5/export/home/webservd/Source/Python-2.5.2/Modules/_ctypes/malloc_closure.o
build/temp.solaris-2.10-sun4u-2.5/export/home/webservd/Source/Python-2.5.2/Modules/_ctypes/libffi/src/prep_cif.o
build/temp.solaris-2.10-sun4u-2.5/export/home/webservd/Source/Python-2.5.2/Modules/_ctypes/libffi/src/sparc/ffi.o
build/temp.solaris-2.10-sun4u-2.5/export/home/webservd/Source/Python-2.5.2/Modules/_ctypes/libffi/src/sparc/v8.o
build/temp.solaris-2.10-sun4u-2.5/export/home/webservd/Source/Python-2.5.2/Modules/_ctypes/libffi/src/sparc/v9.o
-L/export/home/webservd/.software/Python-2.5.2/lib -L/usr/local/lib
-lpython2.5 -o build/lib.solaris-2.10-sun4u-2.5/_ctypes.so -mimpure-text
cc: Warning: illegal option -mimpure-text
*** WARNING: renaming "_ctypes" since importing it failed: ld.so.1:
python: fatal: relocation error: file
build/lib.solaris-2.10-sun4u-2.5/_ctypes.so: symbol alloca: referenced
symbol not found
running build_scripts

@mschmarck mschmarck mannequin assigned theller Sep 5, 2008
@mschmarck mschmarck mannequin added topic-ctypes build The build process and cross-build labels Sep 5, 2008
@mschmarck
Copy link
Mannequin Author

mschmarck mannequin commented Sep 5, 2008

This does not happen when I use GCC to build Python.

--($ ~/Source/gccPy/Python-2.5.2)-- /usr/sfw/bin/gcc -v
Reading specs from /usr/sfw/lib/gcc/sparc-sun-solaris2.10/3.4.3/specs
Configured with:
/sfw10/builds/build/sfw10-patch/usr/src/cmd/gcc/gcc-3.4.3/configure
--prefix=/usr/sfw --with-as=/usr/ccs/bin/as --without-gnu-as
--with-ld=/usr/ccs/bin/ld --without-gnu-ld --enable-languages=c,c++
--enable-shared
Thread model: posix
gcc version 3.4.3 (csl-sol210-3_4-branch+sol_rpath)

@mschmarck
Copy link
Mannequin Author

mschmarck mannequin commented Sep 5, 2008

It works fine in 2.6b3, however (I only tested Sun Studio 12).

@theller
Copy link

theller commented Sep 5, 2008

The libffi library in Python 2.5 is too old and won't be upgraded to a
newer version.

I see several possibilities for you:

Closing as wont fix, sorry.

@theller theller closed this as completed Sep 5, 2008
@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build The build process and cross-build topic-ctypes
Projects
None yet
Development

No branches or pull requests

1 participant