I am using Cygwin build of Python2.6. This Cygwin install has both a Cygwin gcc (versions 3.4.4 and 4.5.3) and mingw32 (3.4.4), as listed in lib/gcc/.
I also tried the mingw32 shell separately, but I get the same results even when I pass the "-c mingw32" option. The error is reproduced below: $ python setup.py build running build running build_py running build_ext building 'guppy.sets.setsc' extension gcc -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/usr/include/python2.6 -c src/sets/sets.c -o build/temp.cygwin-1.7.9-i686-2.6/src/sets/sets.o src/sets/sets.c:68:5: error: initializer element is not constant src/sets/sets.c:68:5: error: (near initialization for `nysets_heapdefs[0].type') src/sets/sets.c:69:5: error: initializer element is not constant src/sets/sets.c:69:5: error: (near initialization for `nysets_heapdefs[1].type') src/sets/sets.c:70:5: error: initializer element is not constant src/sets/sets.c:70:5: error: (near initialization for `nysets_heapdefs[2].type') error: command 'gcc' failed with exit status 1 -----Original Message----- From: python-list-bounces+juan.declet-barreto=mesaaz....@python.org [mailto:python-list-bounces+juan.declet-barreto=mesaaz....@python.org] On Behalf Of Christian Heimes Sent: Wednesday, November 09, 2011 12:21 PM To: python-list@python.org Subject: Re: guppy Am 09.11.2011 20:08, schrieb Juan Declet-Barreto: > I am trying to build guppy on Python 2.5, but am getting an "initializer > element is not constant" error from gcc. I have found very little on this > issue in the fora when looking for the general cause of the error; there is > even less that is specific to a guppy build on Python 2.5. > > One recommendation I have seen is recompiling Python, but apparently that > brings up the possibility of rendering it incompatible with non-standard > packages like arcpy or arcgisscripting, which are critical to my application. > > I am using Cygwin. Please show us the full error message with context. Are you using a Cygwin build of Python or a native Windows build? What GCC version and flavor are you using? I'm not sure if Cygwin is even supported. I recommend that you use MinGW with GCC 4.x if you can't afford VS 2003. Christian -- http://mail.python.org/mailman/listinfo/python-list -- http://mail.python.org/mailman/listinfo/python-list