On Sat, 07 Jan 2012 10:15:13 -0500, Hanspeter Niederstrasser <f...@snaggledworks.com> wrote: On 1/7/2012 7:48 AM, Daniel Johnson wrote: > > > > On Jan 7, 2012, at 7:15 AM, Hanspeter Niederstrasser wrote: > > > >> On 01/06/2012 7:49 PM, Daniel Johnson wrote: > >>> > >>> On Jan 6, 2012, at 10:05 AM, Hanspeter Niederstrasser wrote: > >>> > >>>> Failure on 10.7. 2.6.7-1 (before the ctypes fix) built OK back in July. > >>>> > >>>> ====================================================================== > >>>> FAIL: test_byte (ctypes.test.test_cfuncs.CFunctions) > >>>> ---------------------------------------------------------------------- > >>>> Traceback (most recent call last): > >>>> File > >>>> > "/sw/build.build/python26-2.6.7-2/Python-2.6.7/Lib/ctypes/test/test_cfuncs.py", > >>>> line 20, in test_byte > >>>> self.failUnlessEqual(self._dll.tf_b(-126), -42) > >>>> AssertionError: 43 != -42 > >>>> > >>>> ====================================================================== > >>>> FAIL: test_byte_plus (ctypes.test.test_cfuncs.CFunctions) > >>>> ---------------------------------------------------------------------- > >>>> Traceback (most recent call last): > >>>> File > >>>> > "/sw/build.build/python26-2.6.7-2/Python-2.6.7/Lib/ctypes/test/test_cfuncs.py", > >>>> line 26, in test_byte_plus > >>>> self.failUnlessEqual(self._dll.tf_bb(0, -126), -42) > >>>> AssertionError: 43 != -42 > >>>> > >>>> ====================================================================== > >>>> FAIL: test_short (ctypes.test.test_cfuncs.CFunctions) > >>>> ---------------------------------------------------------------------- > >>>> Traceback (most recent call last): > >>>> File > >>>> > "/sw/build.build/python26-2.6.7-2/Python-2.6.7/Lib/ctypes/test/test_cfuncs.py", > >>>> line 44, in test_short > >>>> self.failUnlessEqual(self._dll.tf_h(-32766), -10922) > >>>> AssertionError: 10923 != -10922 > >>>> > >>>> ====================================================================== > >>>> FAIL: test_short_plus (ctypes.test.test_cfuncs.CFunctions) > >>>> ---------------------------------------------------------------------- > >>>> Traceback (most recent call last): > >>>> File > >>>> > "/sw/build.build/python26-2.6.7-2/Python-2.6.7/Lib/ctypes/test/test_cfuncs.py", > >>>> line 50, in test_short_plus > >>>> self.failUnlessEqual(self._dll.tf_bh(0, -32766), -10922) > >>>> AssertionError: 10923 != -10922 > >>>> > >>>> ====================================================================== > >>>> FAIL: test_doubleresult (ctypes.test.test_functions.FunctionTestCase) > >>>> ---------------------------------------------------------------------- > >>>> Traceback (most recent call last): > >>>> File > >>>> > "/sw/build.build/python26-2.6.7-2/Python-2.6.7/Lib/ctypes/test/test_functions.py", > >>>> line 143, in test_doubleresult > >>>> self.failUnlessEqual(result, -21) > >>>> AssertionError: 65771.0 != -21 > >>>> > >>>> ====================================================================== > >>>> FAIL: test_floatresult (ctypes.test.test_functions.FunctionTestCase) > >>>> ---------------------------------------------------------------------- > >>>> Traceback (most recent call last): > >>>> File > >>>> > "/sw/build.build/python26-2.6.7-2/Python-2.6.7/Lib/ctypes/test/test_functions.py", > >>>> line 131, in test_floatresult > >>>> self.failUnlessEqual(result, -21) > >>>> AssertionError: 65771.0 != -21 > >>>> > >>>> ====================================================================== > >>>> FAIL: test_intresult (ctypes.test.test_functions.FunctionTestCase) > >>>> ---------------------------------------------------------------------- > >>>> Traceback (most recent call last): > >>>> File > >>>> > "/sw/build.build/python26-2.6.7-2/Python-2.6.7/Lib/ctypes/test/test_functions.py", > >>>> line 105, in test_intresult > >>>> self.failUnlessEqual(result, -21) > >>>> AssertionError: 65771 != -21 > >>>> > >>>> ====================================================================== > >>>> FAIL: test_longdoubleresult > (ctypes.test.test_functions.FunctionTestCase) > >>>> ---------------------------------------------------------------------- > >>>> Traceback (most recent call last): > >>>> File > >>>> > "/sw/build.build/python26-2.6.7-2/Python-2.6.7/Lib/ctypes/test/test_functions.py", > >>>> line 155, in test_longdoubleresult > >>>> self.failUnlessEqual(result, -21) > >>>> AssertionError: 65771.0 != -21 > >>>> > >>>> ---------------------------------------------------------------------- > >>>> Ran 328 tests in 0.594s > >>>> > >>>> FAILED (failures=8) > >>>> test test_ctypes failed -- multiple errors occurred > >>>> make: *** [test] Error 1 > >>>> ### execution of LANG=en_US.UTF-8 failed, exit code 2 > >>> > >>> I just tried building 2.6.7-2 on 10.7.2 with Xcode 4.2 and all > tests passed including the ctypes ones. Python27 also builds fine. > >>> > >>> Daniel > >> > >> Forgot to mention that I'm on Xcode 4.1. Python27 had no problems with > >> tests. > > > > I'm wondering if this could be a clang issue in 4.1. The ctypes > code is pretty old and hairy and could be triggering a compiler bug > that's fixed in 4.2. The ctype patch is just one line adding %p/lib > to the library search path so that it can find fink-installed > libraries. There's no way that could cause the test failures you're > seeing. > > > > Ooh, I think I know what's wrong. In python27, I have a patch, in > the very last chunk of python27.patch, that makes > _ctypes/_ctypes_test.c be compiled with -O0 because anything else > triggered a compiler bug in clang which caused test failures. > python26 lacks that patch. The bug must have been fixed in Xcode 4.2 > so I'm not seeing it. That patch should be added to python26.patch. > > > > Daniel > > Yes. Adding that last chunk that sets -O0 lets all the tests pass on > 10.7/4.1.
Thanks for all the diagnosis and testing. Pushed into 10.6 and 10.7 =dan -- Daniel Macks dma...@netspace.org ------------------------------------------------------------------------------ Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex infrastructure or vast IT resources to deliver seamless, secure access to virtual desktops. With this all-in-one solution, easily deploy virtual desktops for less than the cost of PCs and save 60% on VDI infrastructure costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox _______________________________________________ Fink-devel mailing list Fink-devel@lists.sourceforge.net List archive: http://news.gmane.org/gmane.os.apple.fink.devel Subscription management: https://lists.sourceforge.net/lists/listinfo/fink-devel