This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: test_ctypes fails on Solaris 10 SPARC 2.7 (nitrogen/s10) (Sun C compiler)
Type: Stage: resolved
Components: Versions: Python 2.7
process
Status: closed Resolution: out of date
Dependencies: Superseder:
Assigned To: trent Nosy List: amaury.forgeotdarc, belopolsky, jcea, meador.inge, theller, trent, vstinner, zach.ware
Priority: normal Keywords:

Created on 2012-10-18 09:24 by trent, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Messages (7)
msg173245 - (view) Author: Trent Nelson (trent) * (Python committer) Date: 2012-10-18 09:24
This should be a fun one to track down.

Relevant buildbot run: http://buildbot.python.org/all/builders/SPARC64%20Solaris%2010%20%5BSB%5D%202.7/builds/69/steps/test/logs/stdio

When recompiled with gcc 4.6.3 (/opt/csw/bin/gcc), test_ctypes passes without issue (on 2.7 and 3.2).

Going to try a local build of libffi from git with Sun C and --with-system-ffi to see if that helps.

======================================================================
FAIL: test_struct_return_2H (ctypes.test.test_as_parameter.AsParamPropertyWrapperTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/cpython/buildslave/cc-32/2.7.snakebite-solaris10-u10ga2-sparc64-1/build/Lib/ctypes/test/test_as_parameter.py", line 172, in test_struct_return_2H
    self.assertEqual((s2h.x, s2h.y), (99*2, 88*3))
AssertionError: Tuples differ: (-65, -28679) != (198, 264)

First differing element 0:
-65
198

- (-65, -28679)
+ (198, 264)

======================================================================
FAIL: test_struct_return_8H (ctypes.test.test_as_parameter.AsParamPropertyWrapperTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/cpython/buildslave/cc-32/2.7.snakebite-solaris10-u10ga2-sparc64-1/build/Lib/ctypes/test/test_as_parameter.py", line 189, in test_struct_return_8H
    (9*2, 8*3, 7*4, 6*5, 5*6, 4*7, 3*8, 2*9))
AssertionError: Tuples differ: (8412232, 9364168, 1, -4223016... != (18, 24, 28, 30, 30, 28, 24, 1...

First differing element 0:
8412232
18

- (8412232, 9364168, 1, -4223016, -8, -32, -4222983, 5425288)
+ (18, 24, 28, 30, 30, 28, 24, 18)

======================================================================
FAIL: test_wchar_parm (ctypes.test.test_as_parameter.AsParamPropertyWrapperTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/cpython/buildslave/cc-32/2.7.snakebite-solaris10-u10ga2-sparc64-1/build/Lib/ctypes/test/test_as_parameter.py", line 28, in test_wchar_parm
    self.assertEqual(result, 139)
AssertionError: 138 != 139

======================================================================
FAIL: test_struct_return_2H (ctypes.test.test_as_parameter.AsParamWrapperTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/cpython/buildslave/cc-32/2.7.snakebite-solaris10-u10ga2-sparc64-1/build/Lib/ctypes/test/test_as_parameter.py", line 172, in test_struct_return_2H
    self.assertEqual((s2h.x, s2h.y), (99*2, 88*3))
AssertionError: Tuples differ: (-65, -28679) != (198, 264)

First differing element 0:
-65
198

- (-65, -28679)
+ (198, 264)

======================================================================
FAIL: test_struct_return_8H (ctypes.test.test_as_parameter.AsParamWrapperTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/cpython/buildslave/cc-32/2.7.snakebite-solaris10-u10ga2-sparc64-1/build/Lib/ctypes/test/test_as_parameter.py", line 189, in test_struct_return_8H
    (9*2, 8*3, 7*4, 6*5, 5*6, 4*7, 3*8, 2*9))
AssertionError: Tuples differ: (8431512, 9370440, 1, -4223016... != (18, 24, 28, 30, 30, 28, 24, 1...

First differing element 0:
8431512
18

- (8431512, 9370440, 1, -4223016, -8, -32, -4222983, 5425848)
+ (18, 24, 28, 30, 30, 28, 24, 18)

======================================================================
FAIL: test_wchar_parm (ctypes.test.test_as_parameter.AsParamWrapperTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/cpython/buildslave/cc-32/2.7.snakebite-solaris10-u10ga2-sparc64-1/build/Lib/ctypes/test/test_as_parameter.py", line 28, in test_wchar_parm
    self.assertEqual(result, 139)
AssertionError: 138 != 139

======================================================================
FAIL: test_struct_return_2H (ctypes.test.test_as_parameter.BasicWrapTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/cpython/buildslave/cc-32/2.7.snakebite-solaris10-u10ga2-sparc64-1/build/Lib/ctypes/test/test_as_parameter.py", line 172, in test_struct_return_2H
    self.assertEqual((s2h.x, s2h.y), (99*2, 88*3))
AssertionError: Tuples differ: (-65, -28679) != (198, 264)

First differing element 0:
-65
198

- (-65, -28679)
+ (198, 264)

======================================================================
FAIL: test_struct_return_8H (ctypes.test.test_as_parameter.BasicWrapTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/cpython/buildslave/cc-32/2.7.snakebite-solaris10-u10ga2-sparc64-1/build/Lib/ctypes/test/test_as_parameter.py", line 189, in test_struct_return_8H
    (9*2, 8*3, 7*4, 6*5, 5*6, 4*7, 3*8, 2*9))
AssertionError: Tuples differ: (5707864, 9374608, 1, -4223016... != (18, 24, 28, 30, 30, 28, 24, 1...

First differing element 0:
5707864
18

- (5707864, 9374608, 1, -4223016, -8, -32, -4222983, -25924296)
+ (18, 24, 28, 30, 30, 28, 24, 18)

======================================================================
FAIL: test_wchar_parm (ctypes.test.test_as_parameter.BasicWrapTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/cpython/buildslave/cc-32/2.7.snakebite-solaris10-u10ga2-sparc64-1/build/Lib/ctypes/test/test_as_parameter.py", line 28, in test_wchar_parm
    self.assertEqual(result, 139)
AssertionError: 138 != 139

======================================================================
FAIL: test_ints (ctypes.test.test_bitfields.C_Test)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/cpython/buildslave/cc-32/2.7.snakebite-solaris10-u10ga2-sparc64-1/build/Lib/ctypes/test/test_bitfields.py", line 40, in test_ints
    self.assertEqual((name, i, getattr(b, name)), (name, i, func(byref(b), name)))
AssertionError: Tuples differ: ('A', 1, -1) != ('A', 1, 0)

First differing element 2:
-1
0

- ('A', 1, -1)
?          ^^

+ ('A', 1, 0)
?          ^


======================================================================
FAIL: test_shorts (ctypes.test.test_bitfields.C_Test)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/cpython/buildslave/cc-32/2.7.snakebite-solaris10-u10ga2-sparc64-1/build/Lib/ctypes/test/test_bitfields.py", line 47, in test_shorts
    self.assertEqual((name, i, getattr(b, name)), (name, i, func(byref(b), name)))
AssertionError: Tuples differ: ('M', 1, -1) != ('M', 1, 0)

First differing element 2:
-1
0

- ('M', 1, -1)
?          ^^

+ ('M', 1, 0)
?          ^


======================================================================
FAIL: test_byte (ctypes.test.test_callbacks.Callbacks)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/cpython/buildslave/cc-32/2.7.snakebite-solaris10-u10ga2-sparc64-1/build/Lib/ctypes/test/test_callbacks.py", line 36, in test_byte
    self.check_type(c_byte, 42)
  File "/home/cpython/buildslave/cc-32/2.7.snakebite-solaris10-u10ga2-sparc64-1/build/Lib/ctypes/test/test_callbacks.py", line 22, in check_type
    self.assertEqual(self.got_args, (arg,))
AssertionError: Tuples differ: (0,) != (42,)

First differing element 0:
0
42

- (0,)
+ (42,)

======================================================================
FAIL: test_char (ctypes.test.test_callbacks.Callbacks)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/cpython/buildslave/cc-32/2.7.snakebite-solaris10-u10ga2-sparc64-1/build/Lib/ctypes/test/test_callbacks.py", line 91, in test_char
    self.check_type(c_char, "x")
  File "/home/cpython/buildslave/cc-32/2.7.snakebite-solaris10-u10ga2-sparc64-1/build/Lib/ctypes/test/test_callbacks.py", line 22, in check_type
    self.assertEqual(self.got_args, (arg,))
AssertionError: Tuples differ: ('\x00',) != ('x',)

First differing element 0:

x

- ('\x00',)
?   - --

+ ('x',)

======================================================================
FAIL: test_double (ctypes.test.test_callbacks.Callbacks)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/cpython/buildslave/cc-32/2.7.snakebite-solaris10-u10ga2-sparc64-1/build/Lib/ctypes/test/test_callbacks.py", line 83, in test_double
    self.check_type(c_double, 3.14)
  File "/home/cpython/buildslave/cc-32/2.7.snakebite-solaris10-u10ga2-sparc64-1/build/Lib/ctypes/test/test_callbacks.py", line 30, in check_type
    self.assertEqual(self.got_args, (-3, arg))
AssertionError: Tuples differ: (0, 3.14) != (-3, 3.14)

First differing element 0:
0
-3

- (0, 3.14)
?  ^

+ (-3, 3.14)
?  ^^


======================================================================
FAIL: test_int (ctypes.test.test_callbacks.Callbacks)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/cpython/buildslave/cc-32/2.7.snakebite-solaris10-u10ga2-sparc64-1/build/Lib/ctypes/test/test_callbacks.py", line 50, in test_int
    self.check_type(c_int, 42)
  File "/home/cpython/buildslave/cc-32/2.7.snakebite-solaris10-u10ga2-sparc64-1/build/Lib/ctypes/test/test_callbacks.py", line 30, in check_type
    self.assertEqual(self.got_args, (-3, arg))
AssertionError: Tuples differ: (0, 42) != (-3, 42)

First differing element 0:
0
-3

- (0, 42)
?  ^

+ (-3, 42)
?  ^^


======================================================================
FAIL: test_long (ctypes.test.test_callbacks.Callbacks)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/cpython/buildslave/cc-32/2.7.snakebite-solaris10-u10ga2-sparc64-1/build/Lib/ctypes/test/test_callbacks.py", line 57, in test_long
    self.check_type(c_long, 42)
  File "/home/cpython/buildslave/cc-32/2.7.snakebite-solaris10-u10ga2-sparc64-1/build/Lib/ctypes/test/test_callbacks.py", line 30, in check_type
    self.assertEqual(self.got_args, (-3, arg))
AssertionError: Tuples differ: (0, 42) != (-3, 42)

First differing element 0:
0
-3

- (0, 42)
?  ^

+ (-3, 42)
?  ^^


======================================================================
FAIL: test_longdouble (ctypes.test.test_callbacks.Callbacks)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/cpython/buildslave/cc-32/2.7.snakebite-solaris10-u10ga2-sparc64-1/build/Lib/ctypes/test/test_callbacks.py", line 87, in test_longdouble
    self.check_type(c_longdouble, 3.14)
  File "/home/cpython/buildslave/cc-32/2.7.snakebite-solaris10-u10ga2-sparc64-1/build/Lib/ctypes/test/test_callbacks.py", line 30, in check_type
    self.assertEqual(self.got_args, (-3, arg))
AssertionError: Tuples differ: (0, 3.14) != (-3, 3.14)

First differing element 0:
0
-3

- (0, 3.14)
?  ^

+ (-3, 3.14)
?  ^^


======================================================================
FAIL: test_longlong (ctypes.test.test_callbacks.Callbacks)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/cpython/buildslave/cc-32/2.7.snakebite-solaris10-u10ga2-sparc64-1/build/Lib/ctypes/test/test_callbacks.py", line 65, in test_longlong
    self.check_type(c_longlong, 5948291757245277467)
  File "/home/cpython/buildslave/cc-32/2.7.snakebite-solaris10-u10ga2-sparc64-1/build/Lib/ctypes/test/test_callbacks.py", line 30, in check_type
    self.assertEqual(self.got_args, (-3, arg))
AssertionError: Tuples differ: (0, 5948291757245277467L) != (-3, 5948291757245277467L)

First differing element 0:
0
-3

- (0, 5948291757245277467L)
?  ^

+ (-3, 5948291757245277467L)
?  ^^


======================================================================
FAIL: test_pyobject (ctypes.test.test_callbacks.Callbacks)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/cpython/buildslave/cc-32/2.7.snakebite-solaris10-u10ga2-sparc64-1/build/Lib/ctypes/test/test_callbacks.py", line 107, in test_pyobject
    self.check_type(py_object, o)
  File "/home/cpython/buildslave/cc-32/2.7.snakebite-solaris10-u10ga2-sparc64-1/build/Lib/ctypes/test/test_callbacks.py", line 30, in check_type
    self.assertEqual(self.got_args, (-3, arg))
AssertionError: Tuples differ: (0, ()) != (-3, ())

First differing element 0:
0
-3

- (0, ())
?  ^

+ (-3, ())
?  ^^


======================================================================
FAIL: test_short (ctypes.test.test_callbacks.Callbacks)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/cpython/buildslave/cc-32/2.7.snakebite-solaris10-u10ga2-sparc64-1/build/Lib/ctypes/test/test_callbacks.py", line 43, in test_short
    self.check_type(c_short, 42)
  File "/home/cpython/buildslave/cc-32/2.7.snakebite-solaris10-u10ga2-sparc64-1/build/Lib/ctypes/test/test_callbacks.py", line 22, in check_type
    self.assertEqual(self.got_args, (arg,))
AssertionError: Tuples differ: (0,) != (42,)

First differing element 0:
0
42

- (0,)
+ (42,)

======================================================================
FAIL: test_ubyte (ctypes.test.test_callbacks.Callbacks)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/cpython/buildslave/cc-32/2.7.snakebite-solaris10-u10ga2-sparc64-1/build/Lib/ctypes/test/test_callbacks.py", line 40, in test_ubyte
    self.check_type(c_ubyte, 42)
  File "/home/cpython/buildslave/cc-32/2.7.snakebite-solaris10-u10ga2-sparc64-1/build/Lib/ctypes/test/test_callbacks.py", line 22, in check_type
    self.assertEqual(self.got_args, (arg,))
AssertionError: Tuples differ: (0,) != (42,)

First differing element 0:
0
42

- (0,)
+ (42,)

======================================================================
FAIL: test_uint (ctypes.test.test_callbacks.Callbacks)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/cpython/buildslave/cc-32/2.7.snakebite-solaris10-u10ga2-sparc64-1/build/Lib/ctypes/test/test_callbacks.py", line 54, in test_uint
    self.check_type(c_uint, 42)
  File "/home/cpython/buildslave/cc-32/2.7.snakebite-solaris10-u10ga2-sparc64-1/build/Lib/ctypes/test/test_callbacks.py", line 30, in check_type
    self.assertEqual(self.got_args, (-3, arg))
AssertionError: Tuples differ: (0, 42L) != (-3, 42)

First differing element 0:
0
-3

- (0, 42L)
?  ^    -

+ (-3, 42)
?  ^^


======================================================================
FAIL: test_ulong (ctypes.test.test_callbacks.Callbacks)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/cpython/buildslave/cc-32/2.7.snakebite-solaris10-u10ga2-sparc64-1/build/Lib/ctypes/test/test_callbacks.py", line 61, in test_ulong
    self.check_type(c_ulong, 42)
  File "/home/cpython/buildslave/cc-32/2.7.snakebite-solaris10-u10ga2-sparc64-1/build/Lib/ctypes/test/test_callbacks.py", line 30, in check_type
    self.assertEqual(self.got_args, (-3, arg))
AssertionError: Tuples differ: (0, 42L) != (-3, 42)

First differing element 0:
0
-3

- (0, 42L)
?  ^    -

+ (-3, 42)
?  ^^


======================================================================
FAIL: test_ulonglong (ctypes.test.test_callbacks.Callbacks)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/cpython/buildslave/cc-32/2.7.snakebite-solaris10-u10ga2-sparc64-1/build/Lib/ctypes/test/test_callbacks.py", line 72, in test_ulonglong
    self.check_type(c_ulonglong, 10955412242170339782)
  File "/home/cpython/buildslave/cc-32/2.7.snakebite-solaris10-u10ga2-sparc64-1/build/Lib/ctypes/test/test_callbacks.py", line 30, in check_type
    self.assertEqual(self.got_args, (-3, arg))
AssertionError: Tuples differ: (0, 10955412242170339782L) != (-3, 10955412242170339782L)

First differing element 0:
0
-3

- (0, 10955412242170339782L)
?  ^

+ (-3, 10955412242170339782L)
?  ^^


======================================================================
FAIL: test_ushort (ctypes.test.test_callbacks.Callbacks)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/cpython/buildslave/cc-32/2.7.snakebite-solaris10-u10ga2-sparc64-1/build/Lib/ctypes/test/test_callbacks.py", line 47, in test_ushort
    self.check_type(c_ushort, 42)
  File "/home/cpython/buildslave/cc-32/2.7.snakebite-solaris10-u10ga2-sparc64-1/build/Lib/ctypes/test/test_callbacks.py", line 22, in check_type
    self.assertEqual(self.got_args, (arg,))
AssertionError: Tuples differ: (0,) != (42,)

First differing element 0:
0
42

- (0,)
+ (42,)

======================================================================
FAIL: test_byte (ctypes.test.test_cfuncs.CFunctions)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/cpython/buildslave/cc-32/2.7.snakebite-solaris10-u10ga2-sparc64-1/build/Lib/ctypes/test/test_cfuncs.py", line 20, in test_byte
    self.assertEqual(self._dll.tf_b(-126), -42)
AssertionError: 0 != -42

======================================================================
FAIL: test_byte_plus (ctypes.test.test_cfuncs.CFunctions)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/cpython/buildslave/cc-32/2.7.snakebite-solaris10-u10ga2-sparc64-1/build/Lib/ctypes/test/test_cfuncs.py", line 26, in test_byte_plus
    self.assertEqual(self._dll.tf_bb(0, -126), -42)
AssertionError: 0 != -42

======================================================================
FAIL: test_longdouble (ctypes.test.test_cfuncs.CFunctions)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/cpython/buildslave/cc-32/2.7.snakebite-solaris10-u10ga2-sparc64-1/build/Lib/ctypes/test/test_cfuncs.py", line 164, in test_longdouble
    self.assertEqual(self._dll.tf_D(42.), 14.)
AssertionError: nan != 14.0

======================================================================
FAIL: test_longdouble_plus (ctypes.test.test_cfuncs.CFunctions)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/cpython/buildslave/cc-32/2.7.snakebite-solaris10-u10ga2-sparc64-1/build/Lib/ctypes/test/test_cfuncs.py", line 170, in test_longdouble_plus
    self.assertEqual(self._dll.tf_bD(0, 42.), 14.)
AssertionError: nan != 14.0

======================================================================
FAIL: test_short (ctypes.test.test_cfuncs.CFunctions)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/cpython/buildslave/cc-32/2.7.snakebite-solaris10-u10ga2-sparc64-1/build/Lib/ctypes/test/test_cfuncs.py", line 44, in test_short
    self.assertEqual(self._dll.tf_h(-32766), -10922)
AssertionError: 0 != -10922

======================================================================
FAIL: test_short_plus (ctypes.test.test_cfuncs.CFunctions)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/cpython/buildslave/cc-32/2.7.snakebite-solaris10-u10ga2-sparc64-1/build/Lib/ctypes/test/test_cfuncs.py", line 50, in test_short_plus
    self.assertEqual(self._dll.tf_bh(0, -32766), -10922)
AssertionError: 0 != -10922

======================================================================
FAIL: test_ubyte (ctypes.test.test_cfuncs.CFunctions)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/cpython/buildslave/cc-32/2.7.snakebite-solaris10-u10ga2-sparc64-1/build/Lib/ctypes/test/test_cfuncs.py", line 32, in test_ubyte
    self.assertEqual(self._dll.tf_B(255), 85)
AssertionError: 0 != 85

======================================================================
FAIL: test_ubyte_plus (ctypes.test.test_cfuncs.CFunctions)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/cpython/buildslave/cc-32/2.7.snakebite-solaris10-u10ga2-sparc64-1/build/Lib/ctypes/test/test_cfuncs.py", line 38, in test_ubyte_plus
    self.assertEqual(self._dll.tf_bB(0, 255), 85)
AssertionError: 0 != 85

======================================================================
FAIL: test_ushort (ctypes.test.test_cfuncs.CFunctions)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/cpython/buildslave/cc-32/2.7.snakebite-solaris10-u10ga2-sparc64-1/build/Lib/ctypes/test/test_cfuncs.py", line 56, in test_ushort
    self.assertEqual(self._dll.tf_H(65535), 21845)
AssertionError: 0 != 21845

======================================================================
FAIL: test_ushort_plus (ctypes.test.test_cfuncs.CFunctions)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/cpython/buildslave/cc-32/2.7.snakebite-solaris10-u10ga2-sparc64-1/build/Lib/ctypes/test/test_cfuncs.py", line 62, in test_ushort_plus
    self.assertEqual(self._dll.tf_bH(0, 65535), 21845)
AssertionError: 0 != 21845

======================================================================
FAIL: test_dllfunctions (ctypes.test.test_funcptr.CFuncPtrTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/cpython/buildslave/cc-32/2.7.snakebite-solaris10-u10ga2-sparc64-1/build/Lib/ctypes/test/test_funcptr.py", line 100, in test_dllfunctions
    self.assertEqual(strchr("abcdefghi", "b"), "bcdefghi")
AssertionError: '' != 'bcdefghi'

======================================================================
FAIL: test_doubleresult (ctypes.test.test_functions.FunctionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/cpython/buildslave/cc-32/2.7.snakebite-solaris10-u10ga2-sparc64-1/build/Lib/ctypes/test/test_functions.py", line 139, in test_doubleresult
    self.assertEqual(result, 21)
AssertionError: 18.0 != 21

======================================================================
FAIL: test_floatresult (ctypes.test.test_functions.FunctionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/cpython/buildslave/cc-32/2.7.snakebite-solaris10-u10ga2-sparc64-1/build/Lib/ctypes/test/test_functions.py", line 127, in test_floatresult
    self.assertEqual(result, 21)
AssertionError: 18.0 != 21

======================================================================
FAIL: test_intresult (ctypes.test.test_functions.FunctionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/cpython/buildslave/cc-32/2.7.snakebite-solaris10-u10ga2-sparc64-1/build/Lib/ctypes/test/test_functions.py", line 101, in test_intresult
    self.assertEqual(result, 21)
AssertionError: 18 != 21

======================================================================
FAIL: test_longdoubleresult (ctypes.test.test_functions.FunctionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/cpython/buildslave/cc-32/2.7.snakebite-solaris10-u10ga2-sparc64-1/build/Lib/ctypes/test/test_functions.py", line 151, in test_longdoubleresult
    self.assertEqual(result, 21)
AssertionError: nan != 21

======================================================================
FAIL: test_longlongresult (ctypes.test.test_functions.FunctionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/cpython/buildslave/cc-32/2.7.snakebite-solaris10-u10ga2-sparc64-1/build/Lib/ctypes/test/test_functions.py", line 167, in test_longlongresult
    self.assertEqual(result, 21)
AssertionError: 18L != 21

======================================================================
FAIL: test_struct_return_2H (ctypes.test.test_functions.FunctionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/cpython/buildslave/cc-32/2.7.snakebite-solaris10-u10ga2-sparc64-1/build/Lib/ctypes/test/test_functions.py", line 349, in test_struct_return_2H
    self.assertEqual((s2h.x, s2h.y), (99*2, 88*3))
AssertionError: Tuples differ: (-65, -28679) != (198, 264)

First differing element 0:
-65
198

- (-65, -28679)
+ (198, 264)

======================================================================
FAIL: test_struct_return_8H (ctypes.test.test_functions.FunctionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/cpython/buildslave/cc-32/2.7.snakebite-solaris10-u10ga2-sparc64-1/build/Lib/ctypes/test/test_functions.py", line 377, in test_struct_return_8H
    (9*2, 8*3, 7*4, 6*5, 5*6, 4*7, 3*8, 2*9))
AssertionError: Tuples differ: (5707864, 9758944, 1, -4223016... != (18, 24, 28, 30, 30, 28, 24, 1...

First differing element 0:
5707864
18

- (5707864, 9758944, 1, -4223016, -8, -32, -4222983, -25924296)
+ (18, 24, 28, 30, 30, 28, 24, 18)

======================================================================
FAIL: test_wchar_parm (ctypes.test.test_functions.FunctionTestCatest test_ctypes failed -- multiple errors occurred
se)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/cpython/buildslave/cc-32/2.7.snakebite-solaris10-u10ga2-sparc64-1/build/Lib/ctypes/test/test_functions.py", line 74, in test_wchar_parm
    self.assertEqual(result, 139)
AssertionError: 138 != 139

======================================================================
FAIL: test_with_prototype (ctypes.test.test_returnfuncptrs.ReturnFuncPtrTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/cpython/buildslave/cc-32/2.7.snakebite-solaris10-u10ga2-sparc64-1/build/Lib/ctypes/test/test_returnfuncptrs.py", line 15, in test_with_prototype
    self.assertEqual(strchr("abcdef", "b"), "bcdef")
AssertionError: '' != 'bcdef'

======================================================================
FAIL: test_without_prototype (ctypes.test.test_returnfuncptrs.ReturnFuncPtrTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/cpython/buildslave/cc-32/2.7.snakebite-solaris10-u10ga2-sparc64-1/build/Lib/ctypes/test/test_returnfuncptrs.py", line 29, in test_without_prototype
    self.assertTrue(strchr("abcdef", "b"), "bcdef")
AssertionError: bcdef

======================================================================
FAIL: test_functions (ctypes.test.test_stringptr.StringPtrTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/cpython/buildslave/cc-32/2.7.snakebite-solaris10-u10ga2-sparc64-1/build/Lib/ctypes/test/test_stringptr.py", line 51, in test_functions
    self.assertEqual(strchr("abcdef", "c"), "cdef")
AssertionError: '' != 'cdef'

----------------------------------------------------------------------
Ran 340 tests in 2.623s

FAILED (failures=47, skipped=2)
msg173269 - (view) Author: Trent Nelson (trent) * (Python committer) Date: 2012-10-18 13:59
With the latest build (from git) of libffi, tests still fail, but differently.

(These errors seem slightly less perverse than the ones pasted previously.)

======================================================================
FAIL: test_wchar_parm (ctypes.test.test_as_parameter.AsParamPropertyWrapperTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/cpython/hg/2.7/Lib/ctypes/test/test_as_parameter.py", line 28, in test_wchar_parm
    self.assertEqual(result, 139)
AssertionError: 138 != 139

======================================================================
FAIL: test_wchar_parm (ctypes.test.test_as_parameter.AsParamWrapperTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/cpython/hg/2.7/Lib/ctypes/test/test_as_parameter.py", line 28, in test_wchar_parm
    self.assertEqual(result, 139)
AssertionError: 138 != 139

======================================================================
FAIL: test_wchar_parm (ctypes.test.test_as_parameter.BasicWrapTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/cpython/hg/2.7/Lib/ctypes/test/test_as_parameter.py", line 28, in test_wchar_parm
    self.assertEqual(result, 139)
AssertionError: 138 != 139

======================================================================
FAIL: test_ints (ctypes.test.test_bitfields.C_Test)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/cpython/hg/2.7/Lib/ctypes/test/test_bitfields.py", line 40, in test_ints
    self.assertEqual((name, i, getattr(b, name)), (name, i, func(byref(b), name)))
AssertionError: Tuples differ: ('A', 1, -1) != ('A', 1, 0)

First differing element 2:
-1
0

- ('A', 1, -1)
?          ^^

+ ('A', 1, 0)
?          ^


======================================================================
FAIL: test_shorts (ctypes.test.test_bitfields.C_Test)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/cpython/hg/2.7/Lib/ctypes/test/test_bitfields.py", line 47, in test_shorts
    self.assertEqual((name, i, getattr(b, name)), (name, i, func(byref(b), name)))
AssertionError: Tuples differ: ('M', 1, -1) != ('M', 1, 0)

First differing element 2:
-1
0

- ('M', 1, -1)
?          ^^

+ ('M', 1, 0)
?          ^


======================================================================
FAIL: test_byte (ctypes.test.test_callbacks.Callbacks)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/cpython/hg/2.7/Lib/ctypes/test/test_callbacks.py", line 36, in test_byte
    self.check_type(c_byte, 42)
  File "/home/cpython/hg/2.7/Lib/ctypes/test/test_callbacks.py", line 22, in check_type
    self.assertEqual(self.got_args, (arg,))
AssertionError: Tuples differ: (0,) != (42,)

First differing element 0:
0
42

- (0,)
+ (42,)

======================================================================
FAIL: test_char (ctypes.test.test_callbacks.Callbacks)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/cpython/hg/2.7/Lib/ctypes/test/test_callbacks.py", line 91, in test_char
    self.check_type(c_char, "x")
  File "/home/cpython/hg/2.7/Lib/ctypes/test/test_callbacks.py", line 22, in check_type
    self.assertEqual(self.got_args, (arg,))
AssertionError: Tuples differ: ('\x00',) != ('x',)

First differing element 0:

x

- ('\x00',)
?   - --

+ ('x',)

======================================================================
FAIL: test_double (ctypes.test.test_callbacks.Callbacks)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/cpython/hg/2.7/Lib/ctypes/test/test_callbacks.py", line 83, in test_double
    self.check_type(c_double, 3.14)
  File "/home/cpython/hg/2.7/Lib/ctypes/test/test_callbacks.py", line 30, in check_type
    self.assertEqual(self.got_args, (-3, arg))
AssertionError: Tuples differ: (0, 3.14) != (-3, 3.14)

First differing element 0:
0
-3

- (0, 3.14)
?  ^

+ (-3, 3.14)
?  ^^


======================================================================
FAIL: test_int (ctypes.test.test_callbacks.Callbacks)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/cpython/hg/2.7/Lib/ctypes/test/test_callbacks.py", line 50, in test_int
    self.check_type(c_int, 42)
  File "/home/cpython/hg/2.7/Lib/ctypes/test/test_callbacks.py", line 30, in check_type
    self.assertEqual(self.got_args, (-3, arg))
AssertionError: Tuples differ: (0, 42) != (-3, 42)

First differing element 0:
0
-3

- (0, 42)
?  ^

+ (-3, 42)
?  ^^


======================================================================
FAIL: test_long (ctypes.test.test_callbacks.Callbacks)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/cpython/hg/2.7/Lib/ctypes/test/test_callbacks.py", line 57, in test_long
    self.check_type(c_long, 42)
  File "/home/cpython/hg/2.7/Lib/ctypes/test/test_callbacks.py", line 30, in check_type
    self.assertEqual(self.got_args, (-3, arg))
AssertionError: Tuples differ: (0, 42) != (-3, 42)

First differing element 0:
0
-3

- (0, 42)
?  ^

+ (-3, 42)
?  ^^


======================================================================
FAIL: test_longdouble (ctypes.test.test_callbacks.Callbacks)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/cpython/hg/2.7/Lib/ctypes/test/test_callbacks.py", line 87, in test_longdouble
    self.check_type(c_longdouble, 3.14)
  File "/home/cpython/hg/2.7/Lib/ctypes/test/test_callbacks.py", line 30, in check_type
    self.assertEqual(self.got_args, (-3, arg))
AssertionError: Tuples differ: (0, 3.14) != (-3, 3.14)

First differing element 0:
0
-3

- (0, 3.14)
?  ^

+ (-3, 3.14)
?  ^^


======================================================================
FAIL: test_longlong (ctypes.test.test_callbacks.Callbacks)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/cpython/hg/2.7/Lib/ctypes/test/test_callbacks.py", line 65, in test_longlong
    self.check_type(c_longlong, 5948291757245277467)
  File "/home/cpython/hg/2.7/Lib/ctypes/test/test_callbacks.py", line 30, in check_type
    self.assertEqual(self.got_args, (-3, arg))
AssertionError: Tuples differ: (0, 5948291757245277467L) != (-3, 5948291757245277467L)

First differing element 0:
0
-3

- (0, 5948291757245277467L)
?  ^

+ (-3, 5948291757245277467L)
?  ^^


======================================================================
FAIL: test_pyobject (ctypes.test.test_callbacks.Callbacks)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/cpython/hg/2.7/Lib/ctypes/test/test_callbacks.py", line 107, in test_pyobject
    self.check_type(py_object, o)
  File "/home/cpython/hg/2.7/Lib/ctypes/test/test_callbacks.py", line 30, in check_type
    self.assertEqual(self.got_args, (-3, arg))
AssertionError: Tuples differ: (0, ()) != (-3, ())

First differing element 0:
0
-3

- (0, ())
?  ^

+ (-3, ())
?  ^^


======================================================================
FAIL: test_short (ctypes.test.test_callbacks.Callbacks)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/cpython/hg/2.7/Lib/ctypes/test/test_callbacks.py", line 43, in test_short
    self.check_type(c_short, 42)
  File "/home/cpython/hg/2.7/Lib/ctypes/test/test_callbacks.py", line 22, in check_type
    self.assertEqual(self.got_args, (arg,))
AssertionError: Tuples differ: (0,) != (42,)

First differing element 0:
0
42

- (0,)
+ (42,)

======================================================================
FAIL: test_ubyte (ctypes.test.test_callbacks.Callbacks)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/cpython/hg/2.7/Lib/ctypes/test/test_callbacks.py", line 40, in test_ubyte
    self.check_type(c_ubyte, 42)
  File "/home/cpython/hg/2.7/Lib/ctypes/test/test_callbacks.py", line 22, in check_type
    self.assertEqual(self.got_args, (arg,))
AssertionError: Tuples differ: (0,) != (42,)

First differing element 0:
0
42

- (0,)
+ (42,)

======================================================================
FAIL: test_uint (ctypes.test.test_callbacks.Callbacks)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/cpython/hg/2.7/Lib/ctypes/test/test_callbacks.py", line 54, in test_uint
    self.check_type(c_uint, 42)
  File "/home/cpython/hg/2.7/Lib/ctypes/test/test_callbacks.py", line 30, in check_type
    self.assertEqual(self.got_args, (-3, arg))
AssertionError: Tuples differ: (0, 42L) != (-3, 42)

First differing element 0:
0
-3

- (0, 42L)
?  ^    -

+ (-3, 42)
?  ^^


======================================================================
FAIL: test_ulong (ctypes.test.test_callbacks.Callbacks)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/cpython/hg/2.7/Lib/ctypes/test/test_callbacks.py", line 61, in test_ulong
    self.check_type(c_ulong, 42)
  File "/home/cpython/hg/2.7/Lib/ctypes/test/test_callbacks.py", line 30, in check_type
    self.assertEqual(self.got_args, (-3, arg))
AssertionError: Tuples differ: (0, 42L) != (-3, 42)

First differing element 0:
0
-3

- (0, 42L)
?  ^    -

+ (-3, 42)
?  ^^


======================================================================
FAIL: test_ulonglong (ctypes.test.test_callbacks.Callbacks)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/cpython/hg/2.7/Lib/ctypes/test/test_callbacks.py", line 72, in test_ulonglong
    self.check_type(c_ulonglong, 10955412242170339782)
  File "/home/cpython/hg/2.7/Lib/ctypes/test/test_callbacks.py", line 30, in check_type
    self.assertEqual(self.got_args, (-3, arg))
AssertionError: Tuples differ: (0, 10955412242170339782L) != (-3, 10955412242170339782L)

First differing element 0:
0
-3

- (0, 10955412242170339782L)
?  ^

+ (-3, 10955412242170339782L)
?  ^^


======================================================================
FAIL: test_ushort (ctypes.test.test_callbacks.Callbacks)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/cpython/hg/2.7/Lib/ctypes/test/test_callbacks.py", line 47, in test_ushort
    self.check_type(c_ushort, 42)
  File "/home/cpython/hg/2.7/Lib/ctypes/test/test_callbacks.py", line 22, in check_type
    self.assertEqual(self.got_args, (arg,))
AssertionError: Tuples differ: (0,) != (42,)

First differing element 0:
0
42

- (0,)
+ (42,)

======================================================================
FAIL: test_byte (ctypes.test.test_cfuncs.CFunctions)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/cpython/hg/2.7/Lib/ctypes/test/test_cfuncs.py", line 20, in test_byte
    self.assertEqual(self._dll.tf_b(-126), -42)
AssertionError: 0 != -42

======================================================================
FAIL: test_byte_plus (ctypes.test.test_cfuncs.CFunctions)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/cpython/hg/2.7/Lib/ctypes/test/test_cfuncs.py", line 26, in test_byte_plus
    self.assertEqual(self._dll.tf_bb(0, -126), -42)
AssertionError: 0 != -42

======================================================================
FAIL: test_short (ctypes.test.test_cfuncs.CFunctions)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/cpython/hg/2.7/Lib/ctypes/test/test_cfuncs.py", line 44, in test_short
    self.assertEqual(self._dll.tf_h(-32766), -10922)
AssertionError: 0 != -10922

======================================================================
FAIL: test_short_plus (ctypes.test.test_cfuncs.CFunctions)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/cpython/hg/2.7/Lib/ctypes/test/test_cfuncs.py", line 50, in test_short_plus
    self.assertEqual(self._dll.tf_bh(0, -32766), -10922)
AssertionError: 0 != -10922

======================================================================
FAIL: test_ubyte (ctypes.test.test_cfuncs.CFunctions)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/cpython/hg/2.7/Lib/ctypes/test/test_cfuncs.py", line 32, in test_ubyte
    self.assertEqual(self._dll.tf_B(255), 85)
AssertionError: 0 != 85

======================================================================
FAIL: test_ubyte_plus (ctypes.test.test_cfuncs.CFunctions)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/cpython/hg/2.7/Lib/ctypes/test/test_cfuncs.py", line 38, in test_ubyte_plus
    self.assertEqual(self._dll.tf_bB(0, 255), 85)
AssertionError: 0 != 85

======================================================================
FAIL: test_ushort (ctypes.test.test_cfuncs.CFunctions)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/cpython/hg/2.7/Lib/ctypes/test/test_cfuncs.py", line 56, in test_ushort
    self.assertEqual(self._dll.tf_H(65535), 21845)
AssertionError: 0 != 21845

======================================================================
FAIL: test_ushort_plus (ctypes.test.test_cfuncs.CFunctions)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/cpython/hg/2.7/Lib/ctypes/test/test_cfuncs.py", line 62, in test_ushort_plus
    self.assertEqual(self._dll.tf_bH(0, 65535), 21845)
AssertionError: 0 != 21845

======================================================================
FAIL: test_dllfunctions (ctypes.test.test_funcptr.CFuncPtrTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/cpython/hg/2.7/Lib/ctypes/test/test_funcptr.py", line 100, in test_dllfunctions
    self.assertEqual(strchr("abcdefghi", "b"), "bcdefghi")
AssertionError: '' != 'bcdefghi'

======================================================================
FAIL: test_doubleresult (ctypes.test.test_functions.FunctionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/cpython/hg/2.7/Lib/ctypes/test/test_functions.py", line 139, in test_doubleresult
    self.assertEqual(result, 21)
AssertionError: 18.0 != 21

======================================================================
FAIL: test_floatresult (ctypes.test.test_functions.FunctionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/cpython/hg/2.7/Lib/ctypes/test/test_functions.py", line 127, in test_floatresult
    self.assertEqual(result, 21)
AssertionError: 18.0 != 21

======================================================================
FAIL: test_intresult (ctypes.test.test_functions.FunctionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/cpython/hg/2.7/Lib/ctypes/test/test_functions.py", line 101, in test_intresult
    self.assertEqual(result, 21)
AssertionError: 18 != 21

======================================================================
FAIL: test_longdoubleresult (ctypes.test.test_functions.FunctionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/cpython/hg/2.7/Lib/ctypes/test/test_functions.py", line 151, in test_longdoubleresult
    self.assertEqual(result, 21)
AssertionError: 18.0 != 21

======================================================================
FAIL: test_longlongresult (ctypes.test.test_functions.FunctionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/cpython/hg/2.7/Lib/ctypes/test/test_functions.py", line 167, in test_longlongresult
    self.assertEqual(result, 21)
AssertionError: 18L != 21

======================================================================
FAIL: test_wchar_parm (ctypes.test.test_functions.FunctionTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/cpython/hg/2.7/Lib/ctypes/test/test_functions.py", line 74, in test_wchar_parm
    self.assertEqual(result, 139)
AssertionError: 138 != 139

======================================================================
FAIL: test_with_prototype (ctypes.test.test_returnfuncptrs.ReturnFuncPtrTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/cpython/hg/2.7/Lib/ctypes/test/test_returnfuncptrs.py", line 15, in test_with_prototype
    self.assertEqual(strchr("abcdef", "b"), "bcdef")
AssertionError: '' != 'bcdef'

======================================================================
FAIL: test_without_prototype (ctypes.test.test_returnfuncptrs.ReturnFuncPtrTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/cpython/hg/2.7/Lib/ctypes/test/test_returnfuncptrs.py", line 29, in test_without_prototype
    self.assertTrue(strchr("abcdef", "b"), "bcdef")
AssertionError: bcdef

======================================================================
FAIL: test_functions (ctypes.test.test_stringptr.StringPtrTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/cpython/hg/2.7/Lib/ctypes/test/test_stringptr.py", line 51, in test_functions
    self.assertEqual(strchr("abcdef", "c"), "cdef")
AssertionError: '' != 'cdef'

----------------------------------------------------------------------
Ran 340 tests in 2.567s

FAILED (failures=37, skipped=2)
msg173272 - (view) Author: Stefan Krah (skrah) * (Python committer) Date: 2012-10-18 14:47
--with-system-ffi should probably solve some problems, see #12927.

The summary of that issue is that the unpatched libffi is not
compatible with suncc and any issues should be reported upstream
(at least that was Meador's and my own opinion).
msg173273 - (view) Author: Trent Nelson (trent) * (Python committer) Date: 2012-10-18 14:49
After an hour of fiddling with pre-requisites, I was able to run the libffi testsuite (for the Sun C build).  The results weren't ideal:

                === libffi Summary ===

# of expected passes            1528
# of unexpected failures        118
# of unsupported tests          55

And for the gcc 4.6 build:

                === libffi Summary ===

# of expected passes            1659
# of unsupported tests          55

I'm giving up.  (For now.)

Hopefully I'll be able to rope the libffi folk onto Snakebite in the future.
msg173275 - (view) Author: Trent Nelson (trent) * (Python committer) Date: 2012-10-18 14:58
On Thu, Oct 18, 2012 at 07:47:40AM -0700, Stefan Krah wrote:
> 
> Stefan Krah added the comment:
> 
> --with-system-ffi should probably solve some problems, see #12927.

    This isn't an option on Solaris 10, as it doesn't ship with a
    "system ffi", unfortunately.  (That being said, after building
    the latest libffi with Sun C, I do use --with-system-ffi in
    order to override the building of Modules/_ctypes/libffi.)
>
> The summary of that issue is that the unpatched libffi is not
> compatible with suncc and any issues should be reported upstream
> (at least that was Meador's and my own opinion).

    Sun CC is supported by libffi for SPARC only.  You're right
    regarding x86/x64 though; libffi explicitly doesn't support
    using anything other than gcc on Solaris if it's x86.

    (Unfortunately, my only SPARC boxes are running Solaris 9
     and 10.  I don't have new-enough SPARC CPUs that can run
     Solaris 11.  If I did, this would probably be moot, as I
     could just use the system libffi Sun provide.)

    Side note: on my Solaris 11 x64 box, --with-system-ffi works
    (once -I and -L are tweaked), but test_ctypes still fails if
    you're building with Sun CC.
msg177793 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2012-12-19 23:42
I guess that #16733 is a duplicate of this issue.
msg367332 - (view) Author: Zachary Ware (zach.ware) * (Python committer) Date: 2020-04-26 18:59
As 2.7 is EOL and the bundled copy of libffi no longer exists, I'm closing the issue.
History
Date User Action Args
2022-04-11 14:57:37adminsetgithub: 60479
2020-04-26 18:59:42zach.waresetstatus: open -> closed

nosy: + zach.ware
messages: + msg367332

resolution: out of date
stage: resolved
2014-05-13 21:57:39skrahsetnosy: - skrah
2012-12-19 23:42:41vstinnersetmessages: + msg177793
2012-12-04 08:53:57vstinnersetnosy: + vstinner
2012-10-18 14:58:23trentsetmessages: + msg173275
title: test_ctypes fails on Solaris 10 SPARC 2.7 (nitrogen/s10) (Sun C compiler) -> test_ctypes fails on Solaris 10 SPARC 2.7 (nitrogen/s10) (Sun C compiler)
2012-10-18 14:49:54trentsetmessages: + msg173273
2012-10-18 14:47:40skrahsetnosy: + skrah
messages: + msg173272
2012-10-18 13:59:39trentsetnosy: + theller
messages: + msg173269
2012-10-18 09:24:49trentcreate