shunwang / numexpr

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

trunk fails to build on MingW #50

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
At least for recent MingW (gcc 4.5.2), it gives:

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

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
In file included from numexpr\interpreter.c:31:0:
numexpr\/missing_posix_functions.inc:7:22: error: static declaration of 'log1p'
follows non-static declaration
numexpr\/missing_posix_functions.inc:17:22: error: static declaration of 'expm1'
 follows non-static declaration
numexpr\/missing_posix_functions.inc:29:22: error: static declaration of 'asinh'
 follows non-static declaration
numexpr\/missing_posix_functions.inc:49:22: error: static declaration of 'acosh'
 follows non-static declaration
numexpr\/missing_posix_functions.inc:54:22: error: static declaration of 'atanh'
 follows non-static declaration
numexpr\/missing_posix_functions.inc:65:21: error: static declaration of 'log1pf
' follows non-static declaration
numexpr\/missing_posix_functions.inc:70:21: error: static declaration of 'expm1f
' follows non-static declaration
numexpr\/missing_posix_functions.inc:75:21: error: static declaration of 'asinhf
' follows non-static declaration
numexpr\/missing_posix_functions.inc:80:21: error: static declaration of 'acoshf
' follows non-static declaration
numexpr\/missing_posix_functions.inc:85:21: error: static declaration of 'atanhf
' follows non-static declaration
numexpr\interpreter.c: In function 'initinterpreter':
numexpr\interpreter.c:1893:5: warning: dereferencing type-punned pointer will br
eak 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

Attached patch fixes the problem on my machine. Previously, I had only 
warnings, now these are errors.

Original issue reported on code.google.com by gdemen...@gmail.com on 3 May 2011 at 3:39

Attachments:

GoogleCodeExporter commented 9 years ago
this might (or might not) be related to issue 44 
(http://code.google.com/p/numexpr/issues/detail?id=44)

Original comment by gdemen...@gmail.com on 4 May 2011 at 9:21

GoogleCodeExporter commented 9 years ago
fixed in r292

Original comment by gdemen...@gmail.com on 26 Aug 2011 at 3:28

GoogleCodeExporter commented 9 years ago

Original comment by gdemen...@gmail.com on 26 Aug 2011 at 3:29