This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Numpy doesn't build for Python.framework
Type: Stage:
Components: macOS Versions:
process
Status: closed Resolution:
Dependencies: Superseder:
Assigned To: jackjansen Nosy List: jackjansen, jvr
Priority: normal Keywords:

Created on 2002-09-17 19:31 by jvr, last changed 2022-04-10 16:05 by admin. This issue is now closed.

Messages (4)
msg12435 - (view) Author: Just van Rossum (jvr) * (Python triager) Date: 2002-09-17 19:31
Running "python setup.py build" in a recent Numeric folder ends 
with this error:

building 'umath' extension
gcc -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -Wno-long-
double -no-cpp-precomp
-fno-common -dynamic -DHAVE_INVERSE_HYPERBOLIC -
IInclude -IPackages/FFT/Include
-IPackages/RNG/Include
-I/Library/Frameworks/Python.framework/Versions/2.3/include/
python2.3 -c
Src/umathmodule.c -o build/temp.darwin-5.5-Power Macintosh-2.3/
umathmodule.o
Src/umathmodule.c: In function `UINT_multiply':
Src/umathmodule.c:718: warning: `x' might be used uninitialized in 
this function
Src/umathmodule.c: At top level:
Src/umathmodule.c:2394: `acosh' undeclared here (not in a 
function)
Src/umathmodule.c:2394: too many errors, bailing out
error: command 'gcc' failed with exit status 1
[python:~/code/Numeric-22.0] just% 


Seth Delackner reports:
"""I had this *exact* same problem until I nuked my old 
/usr/local/bin/python* and reinstalled from 2.2.1's release 
source.tar.gz, following letter for letter the instructions in the 
Mac/OSX/README file.  Thing to remember is that installing the 
framework 
build does NOT create simlinks in /usr/local/bin, so old versions of 
python sitting there can screw it all up."""

I am not willing to do this until Python.framework is fully working, 
so I can't verify this workaround...
msg12436 - (view) Author: Jack Jansen (jackjansen) * (Python committer) Date: 2002-10-07 14:41
Logged In: YES 
user_id=45365

Rob Managhan posted the following suggestion on pythonmac-sig, could you please try it?

Set and I were having problems compiling the Python Numeric module for OSX 10.1.5 sue to missing inverse hyperbolic functions.

I added these lines to setup.py (the first two are already there)

elif sys.platform in ['mac', 'beos5']:
    mathlibs = []
elif sys.platform in ['darwin']:
    undef_macros = ['HAVE_INVERSE_HYPERBOLIC']
msg12437 - (view) Author: Just van Rossum (jvr) * (Python triager) Date: 2002-10-07 23:43
Logged In: YES 
user_id=92689

This does indeed fix the problem for me. Does this mean it's a NumPy 
bug?
msg12438 - (view) Author: Jack Jansen (jackjansen) * (Python committer) Date: 2002-10-08 08:54
Logged In: YES 
user_id=45365

Yes, it's a numpy bug (or, alternatively, a MacOSX bug). MacOSX doesn't cave the hyperbolic functions, so numpy should cater for that.

Can you pass the bug on to them, just to be sure? Probably Rob has already done that, but you never know...
History
Date User Action Args
2022-04-10 16:05:41adminsetgithub: 37191
2002-09-17 19:31:21jvrcreate