Compiling Python using the Portland Group compiler

Konrad Hinsen konrad.hinsen at laposte.net
Wed Jul 12 09:57:03 EDT 2006


I am trying to install Python 2.4.3 on an AMD Opteron system using  
the Portland Group's compiler (pgcc). Using

CC="pgcc -DNCURSES_ENABLE_STDBOOL_H=0" OPT="-O0" LINKFORSHARED="-Wl,- 
export-dynamic" ./configure --without-cxx

I finally managed to obtain an executable that would start and work,  
but it fails a couple of test cases:

1) test_coercion reports wrong results for operations with complex  
numbers. For example,
2**(2.+0j) yields (1+0j).

2) test_compare reports some wrong results, such as

	(2+0j) != (2+0j)

However, typing

	(2+0j) == (2+0j)

into the interpreter yields "True". Perhaps the bug is in the  
execution of the test suite.

3) test_compile reports wrong results as well:

test test_compile failed -- Traceback (most recent call last):
   File "/work/experiences/biophys/hinsen/install/Python-2.4.3/Lib/ 
test/test_compile.py", line 164, in test_literals_with_leading_zeroes
     self.assertEqual(eval("0777j"), 777j)
AssertionError: 777j != 777j

However,
	eval("0777j") == 777j
yields "True".

4) test_cpickle crashes with a segmentation fault.


Has anyone encountered such failures before? Does anyone have useful  
suggestions for analyzing them?

Konrad.
--
---------------------------------------------------------------------
Konrad Hinsen
Centre de Biophysique Moléculaire, CNRS Orléans
Synchrotron Soleil - Division Expériences
Saint Aubin - BP 48
91192 Gif sur Yvette Cedex, France
Tel. +33-1 69 35 97 15
E-Mail: hinsen ät cnrs-orleans.fr
---------------------------------------------------------------------





More information about the Python-list mailing list