-
-
Notifications
You must be signed in to change notification settings - Fork 12.2k
GCC 8: Undefined _ZGVbN2v___log_finite when using -Ofast, missing -lm #10307
Description
I'm getting a failure when importing numpy 1.13.3 compiled with GCC 8:
Traceback (most recent call last):
File "", line 1, in
File "/usr/lib/python3.6/site-packages/numpy/init.py", line 166, in
from . import random
File "/usr/lib/python3.6/site-packages/numpy/random/init.py", line 99, in
from .mtrand import *
ImportError: /usr/lib/python3.6/site-packages/numpy/random/mtrand.cpython-36m-x86_64-linux-gnu.so: undefined symbol: _ZGVbN2v___log_finite
I've tried with both openblas 0.2.20 and lapack / cblas 3.8.0. I've recompiled cython, cblas & lapack with GCC 8, but this didn't change the result.
I've compiled my whole system (Arch) with gcc-libs 8.0.0 so I can't just use the working GCC 7 version:
ImportError: /usr/lib/libgfortran.so.5: version `GFORTRAN_7' not found (required by /usr/lib/python3.6/site-packages/scipy/special/_ufuncs.cpython-36m-x86_64-linux-gnu.so)
I don't demand to support GCC 8 from you, but rather asking for the root causing this mutual incompatibility. Any ideas?