On 23 December 2010 18:37, Wes McKinney <wesmck...@gmail.com> wrote: > I'm getting the following error trying to build a Cython > 0.14-generated extension: >
I bet you have old code around. I fixed this isue a few commits before release 0.14 https://github.com/cython/cython/commit/29efcd449d933cab1405b98530e6272dea683987 http://hg.cython.org/cython-devel/rev/d8d4e037d690 Could you "rm -rf" your Cython installation and next reinstall 0.14? > gcc -g -DDEBUG -DMS_WIN64 -mno-cygwin -O0 -Wall -Wstrict-prototypes > -IC:\Python2 > 6\lib\site-packages\numpy\core\include > -IC:\Python26\lib\site-packages\numpy\cor > e\include -IC:\Python26\include -IC:\Python26\PC -c pandas\lib\src\tseries.c > -o > build\temp.win-amd64-2.6\Release\pandas\lib\src\tseries.o > Found executable C:\Python26\Scripts\gcc.exe > pandas\lib\src\tseries.c: In function '__Pyx_RaiseArgtupleInvalid': > pandas\lib\src\tseries.c:18397:9: warning: unknown conversion type character > 'z' > in format > pandas\lib\src\tseries.c:18397:9: warning: format '%s' expects type 'char *', > bu > t argument 5 has type 'Py_ssize_t' > pandas\lib\src\tseries.c:18397:9: warning: unknown conversion type character > 'z' > in format > pandas\lib\src\tseries.c:18397:9: warning: too many arguments for format > pandas\lib\src\tseries.c: In function '__Pyx_RaiseNeedMoreValuesError': > pandas\lib\src\tseries.c:18523:18: warning: unknown conversion type character > 'z > ' in format > pandas\lib\src\tseries.c:18523:18: warning: format '%s' expects type 'char > *', b > ut argument 3 has type 'Py_ssize_t' > pandas\lib\src\tseries.c:18523:18: warning: too many arguments for format > pandas\lib\src\tseries.c: In function '__Pyx_RaiseTooManyValuesError': > pandas\lib\src\tseries.c:18531:13: warning: unknown conversion type character > 'z > ' in format > pandas\lib\src\tseries.c:18531:13: warning: too many arguments for format > pandas\lib\src\tseries.c: In function '__Pyx_c_absf': > pandas\lib\src\tseries.c:18906:25: error: #if with no expression > pandas\lib\src\tseries.c: In function '__Pyx_c_abs': > pandas\lib\src\tseries.c:19026:25: error: #if with no expression > pandas\lib\src\tseries.c:19028:17: warning: extra tokens at end of #else > directi > ve > pandas\lib\src\tseries.c: At top level: > C:\Python26\lib\site-packages\numpy\core\include/numpy/__ufunc_api.h:196:1: > warn > ing: '_import_umath' defined but not used > pandas\lib\src\tseries.c:1589:33: warning: '__pyx_f_7tseries_get_int16_ptr' > defi > ned but not used > pandas\lib\src\tseries.c:1626:33: warning: '__pyx_f_7tseries_get_int32_ptr' > defi > ned but not used > pandas\lib\src\tseries.c:1663:33: warning: '__pyx_f_7tseries_get_int64_ptr' > defi > ned but not used > pandas\lib\src\tseries.c:1700:34: warning: '__pyx_f_7tseries_get_double_ptr' > def > ined but not used > error: Command "gcc -g -DDEBUG -DMS_WIN64 -mno-cygwin -O0 -Wall > -Wstrict-prototy > pes -IC:\Python26\lib\site-packages\numpy\core\include > -IC:\Python26\lib\site-pa > ckages\numpy\core\include -IC:\Python26\include -IC:\Python26\PC -c > pandas\lib\s > rc\tseries.c -o build\temp.win-amd64-2.6\Release\pandas\lib\src\tseries.o" > faile > d with exit status 1 > > You can see the file here: > > https://github.com/wesm/pandas/raw/master/pandas/lib/src/tseries.c > > Seems it might be related to this: http://gcc.gnu.org/gcc-4.4/porting_to.html > > I understand you might not be able to fix this immediately, but being > a non expert C programmer could anyone tell me what changes are > necessary to get this to compile? Or other advice compiling on Windows > 64 (I'm using the gcc/g++ shipped with latest EPD 6.3-2)? > > Cheers, > Wes > _______________________________________________ > Cython-dev mailing list > Cython-dev@codespeak.net > http://codespeak.net/mailman/listinfo/cython-dev > -- Lisandro Dalcin --------------- CIMEC (INTEC/CONICET-UNL) Predio CONICET-Santa Fe Colectora RN 168 Km 472, Paraje El Pozo Tel: +54-342-4511594 (ext 1011) Tel/Fax: +54-342-4511169 _______________________________________________ Cython-dev mailing list Cython-dev@codespeak.net http://codespeak.net/mailman/listinfo/cython-dev