shunwang / numexpr

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

possible build problem with gcc 4.5.2? #44

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
When I recently tried to build numexpr 1.4.2 on an x86_64 Linux system with gcc 
4.5.2 and numpy 1.5.1, the build failed with numerous errors similar to the 
following:

build/temp.linux-x86_64-2.7/numexpr/interpreter.o: In function `nc_abs':
/home/lev/numexpr-1.4.2/numexpr/complex_functions.inc:387: undefined reference 
to `sqrt'

Given that /usr/include/math.h is in place and given that
I am able to build the package successfully on a similar system running gcc 
4.4.3, I'm wondering whether the above error might be due to gcc 4.5.2. Any 
ideas?

Original issue reported on code.google.com by lev.gi...@gmail.com on 1 Feb 2011 at 7:19

GoogleCodeExporter commented 9 years ago
I solved this by explicitly setting

'libraries': ['m']

in the extension_config_data dictionary in setup.py

Original comment by lev.gi...@gmail.com on 4 Feb 2011 at 5:18

GoogleCodeExporter commented 9 years ago
Yeah, I was thinking about this.  The strange thing is why gcc 4.5.2 needs this 
special trick.  I'm using 4.5.0 for a ling while now (> 6 months) and I don't 
see this glitch to happen.  Maybe a bug in gcc 4.5.2?

Original comment by fal...@gmail.com on 4 Feb 2011 at 5:27

GoogleCodeExporter commented 9 years ago
Ok.  Fixed in eccc3282c5d2.

Original comment by fal...@gmail.com on 1 Nov 2011 at 11:35