shunwang / numexpr

Automatically exported from code.google.com/p/numexpr
MIT License
0 stars 0 forks source link

numexpr 1.4 does not build (as is) on Mingw #31

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
A couple comments: 
- 1.3.x was building fine
- it seems related to pthreads.
- changing "#if defined(_WIN32) && !defined(__MINGW32__)" in "interpreter.c" to 
"#if defined(_WIN32)" seems to fix the problem.

Build log follows:
===========================
C:\Users\gdm\devel\numexpr>python setup.py build
mkl_info:
  libraries mkl,vml,guide not found in C:\soft\Python26-32b\lib
  libraries mkl,vml,guide not found in C:\
  libraries mkl,vml,guide not found in C:\soft\Python26-32b\libs
  NOT AVAILABLE

Warning: Assuming default configuration (numexpr\tests/{setup_tests,setup}.py wa
s not found)
Appending numexpr.tests configuration to numexpr
Ignoring attempt to set 'name' (from 'numexpr' to 'numexpr.tests')
Creating __svn_version__.py (version='234')
running build
running config_cc
unifing config_cc, config, build_clib, build_ext, build commands --compiler opti
ons
running config_fc
unifing config_fc, config, build_clib, build_ext, build commands --fcompiler opt
ions
running build_src
build_src
building py_modules sources
building extension "numexpr.interpreter" sources
building data_files sources
build_src: building npy-pkg config files
running build_py
copying build\src.win32-2.6\numexpr\__config__.py -> build\lib.win32-2.6\numexpr

running build_ext
customize Mingw32CCompiler
customize Mingw32CCompiler using build_ext
building 'numexpr.interpreter' extension
compiling C sources
C compiler: gcc -mno-cygwin -O2 -Wall -Wstrict-prototypes

creating build\temp.win32-2.6\Release\numexpr\win32
compile options: '-Ic:\soft\Python26-32b\Lib\site-packages\numpy\core\include -I
C:\soft\Python26-32b\include -IC:\soft\Python26-32b\PC -c'
extra options: '-funroll-all-loops'
gcc -mno-cygwin -O2 -Wall -Wstrict-prototypes -Ic:\soft\Python26-32b\Lib\site-pa
ckages\numpy\core\include -IC:\soft\Python26-32b\include -IC:\soft\Python26-32b\
PC -c numexpr\win32\pthread.c -o build\temp.win32-2.6\Release\numexpr\win32\pthr
ead.o -funroll-all-loops
Found executable C:\soft\MinGW\bin\gcc.exe
gcc -mno-cygwin -O2 -Wall -Wstrict-prototypes -Ic:\soft\Python26-32b\Lib\site-pa
ckages\numpy\core\include -IC:\soft\Python26-32b\include -IC:\soft\Python26-32b\
PC -c numexpr\interpreter.c -o build\temp.win32-2.6\Release\numexpr\interpreter.
o -funroll-all-loops
numexpr\interpreter.c:12:23: pthread.h: No such file or directory
In file included from numexpr\interpreter.c:28:
numexpr\missing_posix_functions.inc:8: warning: static declaration of 'log1p' fo
llows non-static declaration
numexpr\missing_posix_functions.inc:18: warning: static declaration of 'expm1' f
ollows non-static declaration
numexpr\missing_posix_functions.inc:30: warning: static declaration of 'asinh' f
ollows non-static declaration
numexpr\missing_posix_functions.inc:50: warning: static declaration of 'acosh' f
ollows non-static declaration
numexpr\missing_posix_functions.inc:55: warning: static declaration of 'atanh' f
ollows non-static declaration
numexpr\missing_posix_functions.inc:66: warning: static declaration of 'log1pf'
follows non-static declaration
numexpr\missing_posix_functions.inc:71: warning: static declaration of 'expm1f'
follows non-static declaration
numexpr\missing_posix_functions.inc:76: warning: static declaration of 'asinhf'
follows non-static declaration
numexpr\missing_posix_functions.inc:81: warning: static declaration of 'acoshf'
follows non-static declaration
numexpr\missing_posix_functions.inc:86: warning: static declaration of 'atanhf'
follows non-static declaration
numexpr\interpreter.c:57: error: syntax error before "threads"
numexpr\interpreter.c:57: warning: type defaults to `int' in declaration of `thr
eads'
numexpr\interpreter.c:57: warning: data definition has no type or storage class
numexpr\interpreter.c:65: error: syntax error before "count_mutex"
numexpr\interpreter.c:65: warning: type defaults to `int' in declaration of `cou
nt_mutex'
numexpr\interpreter.c:65: warning: data definition has no type or storage class
numexpr\interpreter.c:67: error: syntax error before "count_threads_mutex"
numexpr\interpreter.c:67: warning: type defaults to `int' in declaration of `cou
nt_threads_mutex'
numexpr\interpreter.c:67: warning: data definition has no type or storage class
numexpr\interpreter.c:68: error: syntax error before "count_threads_cv"
numexpr\interpreter.c:68: warning: type defaults to `int' in declaration of `cou
nt_threads_cv'
numexpr\interpreter.c:68: warning: data definition has no type or storage class
numexpr\interpreter.c: In function `last_opcode':
numexpr\interpreter.c:461: warning: dereferencing type-punned pointer will break
 strict-aliasing rules
numexpr\interpreter.c: In function `check_program':
numexpr\interpreter.c:484: warning: dereferencing type-punned pointer will break
 strict-aliasing rules
numexpr\interpreter.c: In function `vm_engine_parallel':
numexpr\interpreter.c:1036: warning: implicit declaration of function `pthread_m
utex_lock'
numexpr\interpreter.c:1039: warning: implicit declaration of function `pthread_c
ond_wait'
numexpr\interpreter.c:1042: warning: implicit declaration of function `pthread_c
ond_broadcast'
numexpr\interpreter.c:1044: warning: implicit declaration of function `pthread_m
utex_unlock'
numexpr\interpreter.c: In function `init_threads':
numexpr\interpreter.c:1284: warning: implicit declaration of function `pthread_m
utex_init'
numexpr\interpreter.c:1288: warning: implicit declaration of function `pthread_c
ond_init'
numexpr\interpreter.c:1294: warning: implicit declaration of function `pthread_c
reate'
numexpr\interpreter.c: In function `numexpr_set_nthreads':
numexpr\interpreter.c:1342: warning: implicit declaration of function `pthread_j
oin'
numexpr\interpreter.c: In function `numexpr_free_resources':
numexpr\interpreter.c:1395: warning: implicit declaration of function `pthread_m
utex_destroy'
numexpr\interpreter.c:1397: warning: implicit declaration of function `pthread_c
ond_destroy'
numexpr\interpreter.c: In function `initinterpreter':
numexpr\interpreter.c:1868: warning: dereferencing type-punned pointer will brea
k strict-aliasing rules
numexpr\interpreter.c:1869: warning: dereferencing type-punned pointer will brea
k strict-aliasing rules
error: Command "gcc -mno-cygwin -O2 -Wall -Wstrict-prototypes -Ic:\soft\Python26
-32b\Lib\site-packages\numpy\core\include -IC:\soft\Python26-32b\include -IC:\so
ft\Python26-32b\PC -c numexpr\interpreter.c -o build\temp.win32-2.6\Release\nume
xpr\interpreter.o -funroll-all-loops" failed with exit status 1
removed __svn_version__.py

Original issue reported on code.google.com by gdemen...@gmail.com on 6 Aug 2010 at 1:50

GoogleCodeExporter commented 9 years ago
Fixed in r235 (trunk) and r236 (1.4 branch).  Thanks!

Original comment by fal...@gmail.com on 10 Sep 2010 at 10:40