[pypy-issue] Issue #3103: Matplotlib does not longer build using pip and Centos7 (pypy/pypy)

Laël Cellier issues-reply at bitbucket.org
Sat Oct 26 12:46:39 EDT 2019


New issue 3103: Matplotlib does not longer build using pip and Centos7
https://bitbucket.org/pypy/pypy/issues/3103/matplotlib-does-not-longer-build-using-pip

Laël Cellier:

While matplotlib is unsupported with the version 2 of PyPy, it’s now officially supported from PyPy5.4 and above \(stated can be installed and run normally\).

So I set up a fresh Centos distribution from a Google container image. Installed gcc and required libariries using only yum. Installed PyPy 7.2.0 using official binaries \(without compiling anything\) without doing anything else \(not even definning CFLAGS and CC\) and:

```python
[ed25519-key-20190822 at instance-0 ~]$ pypy3 -m pip install matplotlib
Collecting matplotlib
  Using cached https://files.pythonhosted.org/packages/12/d1/7b12cd79c791348cb0c78ce6e7d16bd72992f13c9f1e8e43d2725a6d8adf/matplotlib-3.1.1.tar.gz
    Complete output from command python setup.py egg_info:
    ================================================================================
    Edit setup.cfg to change the build options
BUILDING MATPLOTLIB
  matplotlib: yes [3.1.1]
      python: yes [3.6.9 (5da45ced70e5, Oct 09 2019, 19:12:54) [PyPy 7.2.0 with
                  GCC 6.2.0 20160901]]
    platform: yes [linux]

OPTIONAL SUBPACKAGES
 sample_data: yes [installing]
       tests: no  [skipping due to configuration]

OPTIONAL BACKEND EXTENSIONS
         agg: yes [installing]
       tkagg: yes [installing; run-time loading from Python Tcl/Tk]
      macosx: no  [Mac OS-X only]

OPTIONAL PACKAGE DATA
        dlls: no  [skipping due to configuration]

non-existing path in 'numpy/distutils': 'site.cfg'
_configtest.c:1:5: warning: conflicting types for built-in function 'exp' [enabled by default]
 int exp (void);
     ^
_configtest.o: In function `main':
_configtest.c:(.text.startup+0x5): undefined reference to `exp'
collect2: error: ld returned 1 exit status
_configtest.c:1:5: warning: conflicting types for built-in function 'exp' [enabled by default]
 int exp (void);
     ^
_configtest.c:1:24: fatal error: sys/endian.h: No such file or directory
 #include <sys/endian.h>
                        ^
compilation terminated.
_configtest.c: In function 'main':
_configtest.c:7:12: error: 'SIZEOF_LONGDOUBLE' undeclared (first use in this function)
     (void) SIZEOF_LONGDOUBLE;
            ^
_configtest.c:7:12: note: each undeclared identifier is reported only once for each function it appears in
_configtest.c:1:5: warning: conflicting types for built-in function 'exp' [enabled by default]
 int exp (void);
     ^
_configtest.o: In function `main':
_configtest.c:(.text.startup+0x5): undefined reference to `exp'
collect2: error: ld returned 1 exit status
_configtest.c:1:5: warning: conflicting types for built-in function 'exp' [enabled by default]
 int exp (void);
     ^
_configtest.c:1:5: warning: conflicting types for built-in function 'sin' [enabled by default]
 int sin (void);
     ^
_configtest.c:2:5: warning: conflicting types for built-in function 'cos' [enabled by default]
 int cos (void);
     ^
_configtest.c:3:5: warning: conflicting types for built-in function 'tan' [enabled by default]
 int tan (void);
     ^
_configtest.c:4:5: warning: conflicting types for built-in function 'sinh' [enabled by default]
 int sinh (void);
     ^
_configtest.c:5:5: warning: conflicting types for built-in function 'cosh' [enabled by default]
 int cosh (void);
     ^
_configtest.c:6:5: warning: conflicting types for built-in function 'tanh' [enabled by default]
 int tanh (void);
     ^
_configtest.c:7:5: warning: conflicting types for built-in function 'fabs' [enabled by default]
 int fabs (void);
     ^
_configtest.c:8:5: warning: conflicting types for built-in function 'floor' [enabled by default]
 int floor (void);
     ^
_configtest.c:9:5: warning: conflicting types for built-in function 'ceil' [enabled by default]
 int ceil (void);
     ^
_configtest.c:10:5: warning: conflicting types for built-in function 'sqrt' [enabled by default]
 int sqrt (void);
     ^
_configtest.c:11:5: warning: conflicting types for built-in function 'log10' [enabled by default]
 int log10 (void);
     ^
_configtest.c:12:5: warning: conflicting types for built-in function 'log' [enabled by default]
 int log (void);
     ^
_configtest.c:13:5: warning: conflicting types for built-in function 'exp' [enabled by default]
 int exp (void);
     ^
_configtest.c:14:5: warning: conflicting types for built-in function 'asin' [enabled by default]
 int asin (void);
     ^
_configtest.c:15:5: warning: conflicting types for built-in function 'acos' [enabled by default]
 int acos (void);
     ^
_configtest.c:16:5: warning: conflicting types for built-in function 'atan' [enabled by default]
 int atan (void);
     ^
_configtest.c:17:5: warning: conflicting types for built-in function 'fmod' [enabled by default]
 int fmod (void);
     ^
_configtest.c:18:5: warning: conflicting types for built-in function 'modf' [enabled by default]
 int modf (void);
     ^
_configtest.c:19:5: warning: conflicting types for built-in function 'frexp' [enabled by default]
 int frexp (void);
     ^
_configtest.c:20:5: warning: conflicting types for built-in function 'ldexp' [enabled by default]
 int ldexp (void);
     ^
_configtest.c: In function 'main':
_configtest.c:8:12: error: 'HAVE_EXPM1' undeclared (first use in this function)
     (void) HAVE_EXPM1;
            ^
_configtest.c:8:12: note: each undeclared identifier is reported only once for each function it appears in
_configtest.c: In function 'main':
_configtest.c:8:12: error: 'HAVE_LOG1P' undeclared (first use in this function)
     (void) HAVE_LOG1P;
            ^
_configtest.c:8:12: note: each undeclared identifier is reported only once for each function it appears in
_configtest.c: In function 'main':
_configtest.c:8:12: error: 'HAVE_ACOSH' undeclared (first use in this function)
     (void) HAVE_ACOSH;
            ^
_configtest.c:8:12: note: each undeclared identifier is reported only once for each function it appears in
_configtest.c: In function 'main':
_configtest.c:8:12: error: 'HAVE_ATANH' undeclared (first use in this function)
     (void) HAVE_ATANH;
            ^
_configtest.c:8:12: note: each undeclared identifier is reported only once for each function it appears in
_configtest.c: In function 'main':
_configtest.c:8:12: error: 'HAVE_ASINH' undeclared (first use in this function)
     (void) HAVE_ASINH;
            ^
_configtest.c:8:12: note: each undeclared identifier is reported only once for each function it appears in
_configtest.c: In function 'main':
_configtest.c:8:12: error: 'HAVE_HYPOT' undeclared (first use in this function)
     (void) HAVE_HYPOT;
            ^
_configtest.c:8:12: note: each undeclared identifier is reported only once for each function it appears in
_configtest.c: In function 'main':
_configtest.c:8:12: error: 'HAVE_COPYSIGN' undeclared (first use in this function)
     (void) HAVE_COPYSIGN;
            ^
_configtest.c:8:12: note: each undeclared identifier is reported only once for each function it appears in
_configtest.c: In function 'main':
_configtest.c:8:12: error: 'HAVE_FTELLO' undeclared (first use in this function)
     (void) HAVE_FTELLO;
            ^
_configtest.c:8:12: note: each undeclared identifier is reported only once for each function it appears in
_configtest.c: In function 'main':
_configtest.c:8:12: error: 'HAVE_FSEEKO' undeclared (first use in this function)
     (void) HAVE_FSEEKO;
            ^
_configtest.c:8:12: note: each undeclared identifier is reported only once for each function it appears in
_configtest.c:1:5: warning: conflicting types for built-in function 'expm1' [enabled by default]
 int expm1 (void);
     ^
_configtest.c:2:5: warning: conflicting types for built-in function 'log1p' [enabled by default]
 int log1p (void);
     ^
_configtest.c:3:5: warning: conflicting types for built-in function 'acosh' [enabled by default]
 int acosh (void);
     ^
_configtest.c:4:5: warning: conflicting types for built-in function 'asinh' [enabled by default]
 int asinh (void);
     ^
_configtest.c:5:5: warning: conflicting types for built-in function 'atanh' [enabled by default]
 int atanh (void);
     ^
_configtest.c:6:5: warning: conflicting types for built-in function 'rint' [enabled by default]
 int rint (void);
     ^
_configtest.c:7:5: warning: conflicting types for built-in function 'trunc' [enabled by default]
 int trunc (void);
     ^
_configtest.c:8:5: warning: conflicting types for built-in function 'exp2' [enabled by default]
 int exp2 (void);
     ^
_configtest.c:9:5: warning: conflicting types for built-in function 'log2' [enabled by default]
 int log2 (void);
     ^
_configtest.c:10:5: warning: conflicting types for built-in function 'hypot' [enabled by default]
 int hypot (void);
     ^
_configtest.c:11:5: warning: conflicting types for built-in function 'atan2' [enabled by default]
 int atan2 (void);
     ^
_configtest.c:12:5: warning: conflicting types for built-in function 'pow' [enabled by default]
 int pow (void);
     ^
_configtest.c:13:5: warning: conflicting types for built-in function 'copysign' [enabled by default]
 int copysign (void);
     ^
_configtest.c:14:5: warning: conflicting types for built-in function 'nextafter' [enabled by default]
 int nextafter (void);
     ^
_configtest.c:19:5: warning: conflicting types for built-in function 'cbrt' [enabled by default]
 int cbrt (void);
     ^
_configtest.c: In function 'main':
_configtest.c:5:3: warning: implicit declaration of function '__builtin_mul_overflow' [-Wimplicit-function-declaration]
   __builtin_mul_overflow(5, 5, (int*)5);
   ^
_configtest.o: In function `main':
_configtest.c:(.text.startup+0x16): undefined reference to `__builtin_mul_overflow'
collect2: error: ld returned 1 exit status
_configtest.c: In function 'main':
_configtest.c:7:3: error: Parameter to builtin not valid: avx512f
   volatile int r = __builtin_cpu_supports("avx512f");
   ^
_configtest.c:5:1: error: attribute(target("avx512f")) is unknown
 int __attribute__((target ("avx512f"))) attribute_target_avx512f(void*);
 ^
_configtest.c: In function 'attribute_target_avx2_with_intrinsics':
_configtest.c:5:5: error: unknown type name '__m256'
     __m256 temp = _mm256_set1_ps(1.0);
     ^
_configtest.c:5:5: warning: implicit declaration of function '_mm256_set1_ps' [-Wimplicit-function-declaration]
_configtest.c:4:1: error: attribute(target("avx512f")) is unknown
 {
 ^
_configtest.c: In function 'attribute_target_avx512f_with_intrinsics':
_configtest.c:5:5: error: unknown type name '__m512'
     __m512 temp = _mm512_set1_ps(1.0);
     ^
_configtest.c:5:5: warning: implicit declaration of function '_mm512_set1_ps' [-Wimplicit-function-declaration]
_configtest.c: In function '__declspec':
_configtest.c:5:24: error: expected declaration specifiers before 'foo'
 int __declspec(thread) foo;
                        ^
_configtest.c:9:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
 {
 ^
_configtest.c:5:5: warning: type of 'thread' defaults to 'int' [enabled by default]
 int __declspec(thread) foo;
     ^
_configtest.c:11:1: error: expected '{' at end of input
 }
 ^
_configtest.c:1:5: warning: conflicting types for built-in function 'sinf' [enabled by default]
 int sinf (void);
     ^
_configtest.c:2:5: warning: conflicting types for built-in function 'cosf' [enabled by default]
 int cosf (void);
     ^
_configtest.c:3:5: warning: conflicting types for built-in function 'tanf' [enabled by default]
 int tanf (void);
     ^
_configtest.c:4:5: warning: conflicting types for built-in function 'sinhf' [enabled by default]
 int sinhf (void);
     ^
_configtest.c:5:5: warning: conflicting types for built-in function 'coshf' [enabled by default]
 int coshf (void);
     ^
_configtest.c:6:5: warning: conflicting types for built-in function 'tanhf' [enabled by default]
 int tanhf (void);
     ^
_configtest.c:7:5: warning: conflicting types for built-in function 'fabsf' [enabled by default]
 int fabsf (void);
     ^
_configtest.c:8:5: warning: conflicting types for built-in function 'floorf' [enabled by default]
 int floorf (void);
     ^
_configtest.c:9:5: warning: conflicting types for built-in function 'ceilf' [enabled by default]
 int ceilf (void);
     ^
_configtest.c:10:5: warning: conflicting types for built-in function 'rintf' [enabled by default]
 int rintf (void);
     ^
_configtest.c:11:5: warning: conflicting types for built-in function 'truncf' [enabled by default]
 int truncf (void);
     ^
_configtest.c:12:5: warning: conflicting types for built-in function 'sqrtf' [enabled by default]
 int sqrtf (void);
     ^
_configtest.c:13:5: warning: conflicting types for built-in function 'log10f' [enabled by default]
 int log10f (void);
     ^
_configtest.c:14:5: warning: conflicting types for built-in function 'logf' [enabled by default]
 int logf (void);
     ^
_configtest.c:15:5: warning: conflicting types for built-in function 'log1pf' [enabled by default]
 int log1pf (void);
     ^
_configtest.c:16:5: warning: conflicting types for built-in function 'expf' [enabled by default]
 int expf (void);
     ^
_configtest.c:17:5: warning: conflicting types for built-in function 'expm1f' [enabled by default]
 int expm1f (void);
     ^
_configtest.c:18:5: warning: conflicting types for built-in function 'asinf' [enabled by default]
 int asinf (void);
     ^
_configtest.c:19:5: warning: conflicting types for built-in function 'acosf' [enabled by default]
 int acosf (void);
     ^
_configtest.c:20:5: warning: conflicting types for built-in function 'atanf' [enabled by default]
 int atanf (void);
     ^
_configtest.c:21:5: warning: conflicting types for built-in function 'asinhf' [enabled by default]
 int asinhf (void);
     ^
_configtest.c:22:5: warning: conflicting types for built-in function 'acoshf' [enabled by default]
 int acoshf (void);
     ^
_configtest.c:23:5: warning: conflicting types for built-in function 'atanhf' [enabled by default]
 int atanhf (void);
     ^
_configtest.c:24:5: warning: conflicting types for built-in function 'hypotf' [enabled by default]
 int hypotf (void);
     ^
_configtest.c:25:5: warning: conflicting types for built-in function 'atan2f' [enabled by default]
 int atan2f (void);
     ^
_configtest.c:26:5: warning: conflicting types for built-in function 'powf' [enabled by default]
 int powf (void);
     ^
_configtest.c:27:5: warning: conflicting types for built-in function 'fmodf' [enabled by default]
 int fmodf (void);
     ^
_configtest.c:28:5: warning: conflicting types for built-in function 'modff' [enabled by default]
 int modff (void);
     ^
_configtest.c:29:5: warning: conflicting types for built-in function 'frexpf' [enabled by default]
 int frexpf (void);
     ^
_configtest.c:30:5: warning: conflicting types for built-in function 'ldexpf' [enabled by default]
 int ldexpf (void);
     ^
_configtest.c:31:5: warning: conflicting types for built-in function 'exp2f' [enabled by default]
 int exp2f (void);
     ^
_configtest.c:32:5: warning: conflicting types for built-in function 'log2f' [enabled by default]
 int log2f (void);
     ^
_configtest.c:33:5: warning: conflicting types for built-in function 'copysignf' [enabled by default]
 int copysignf (void);
     ^
_configtest.c:34:5: warning: conflicting types for built-in function 'nextafterf' [enabled by default]
 int nextafterf (void);
     ^
_configtest.c:35:5: warning: conflicting types for built-in function 'cbrtf' [enabled by default]
 int cbrtf (void);
     ^
_configtest.c:1:5: warning: conflicting types for built-in function 'sinl' [enabled by default]
 int sinl (void);
     ^
_configtest.c:2:5: warning: conflicting types for built-in function 'cosl' [enabled by default]
 int cosl (void);
     ^
_configtest.c:3:5: warning: conflicting types for built-in function 'tanl' [enabled by default]
 int tanl (void);
     ^
_configtest.c:4:5: warning: conflicting types for built-in function 'sinhl' [enabled by default]
 int sinhl (void);
     ^
_configtest.c:5:5: warning: conflicting types for built-in function 'coshl' [enabled by default]
 int coshl (void);
     ^
_configtest.c:6:5: warning: conflicting types for built-in function 'tanhl' [enabled by default]
 int tanhl (void);
     ^
_configtest.c:7:5: warning: conflicting types for built-in function 'fabsl' [enabled by default]
 int fabsl (void);
     ^
_configtest.c:8:5: warning: conflicting types for built-in function 'floorl' [enabled by default]
 int floorl (void);
     ^
_configtest.c:9:5: warning: conflicting types for built-in function 'ceill' [enabled by default]
 int ceill (void);
     ^
_configtest.c:10:5: warning: conflicting types for built-in function 'rintl' [enabled by default]
 int rintl (void);
     ^
_configtest.c:11:5: warning: conflicting types for built-in function 'truncl' [enabled by default]
 int truncl (void);
     ^
_configtest.c:12:5: warning: conflicting types for built-in function 'sqrtl' [enabled by default]
 int sqrtl (void);
     ^
_configtest.c:13:5: warning: conflicting types for built-in function 'log10l' [enabled by default]
 int log10l (void);
     ^
_configtest.c:14:5: warning: conflicting types for built-in function 'logl' [enabled by default]
 int logl (void);
     ^
_configtest.c:15:5: warning: conflicting types for built-in function 'log1pl' [enabled by default]
 int log1pl (void);
     ^
_configtest.c:16:5: warning: conflicting types for built-in function 'expl' [enabled by default]
 int expl (void);
     ^
_configtest.c:17:5: warning: conflicting types for built-in function 'expm1l' [enabled by default]
 int expm1l (void);
     ^
_configtest.c:18:5: warning: conflicting types for built-in function 'asinl' [enabled by default]
 int asinl (void);
     ^
_configtest.c:19:5: warning: conflicting types for built-in function 'acosl' [enabled by default]
 int acosl (void);
     ^
_configtest.c:20:5: warning: conflicting types for built-in function 'atanl' [enabled by default]
 int atanl (void);
     ^
_configtest.c:21:5: warning: conflicting types for built-in function 'asinhl' [enabled by default]
 int asinhl (void);
     ^
_configtest.c:22:5: warning: conflicting types for built-in function 'acoshl' [enabled by default]
 int acoshl (void);
     ^
_configtest.c:23:5: warning: conflicting types for built-in function 'atanhl' [enabled by default]
 int atanhl (void);
     ^
_configtest.c:24:5: warning: conflicting types for built-in function 'hypotl' [enabled by default]
 int hypotl (void);
     ^
_configtest.c:25:5: warning: conflicting types for built-in function 'atan2l' [enabled by default]
 int atan2l (void);
     ^
_configtest.c:26:5: warning: conflicting types for built-in function 'powl' [enabled by default]
 int powl (void);
     ^
_configtest.c:27:5: warning: conflicting types for built-in function 'fmodl' [enabled by default]
 int fmodl (void);
     ^
_configtest.c:28:5: warning: conflicting types for built-in function 'modfl' [enabled by default]
 int modfl (void);
     ^
_configtest.c:29:5: warning: conflicting types for built-in function 'frexpl' [enabled by default]
 int frexpl (void);
     ^
_configtest.c:30:5: warning: conflicting types for built-in function 'ldexpl' [enabled by default]
 int ldexpl (void);
     ^
_configtest.c:31:5: warning: conflicting types for built-in function 'exp2l' [enabled by default]
 int exp2l (void);
     ^
_configtest.c:32:5: warning: conflicting types for built-in function 'log2l' [enabled by default]
 int log2l (void);
     ^
_configtest.c:33:5: warning: conflicting types for built-in function 'copysignl' [enabled by default]
 int copysignl (void);
     ^
_configtest.c:34:5: warning: conflicting types for built-in function 'nextafterl' [enabled by default]
 int nextafterl (void);
     ^
_configtest.c:35:5: warning: conflicting types for built-in function 'cbrtl' [enabled by default]
 int cbrtl (void);
     ^
_configtest.c: In function 'main':
_configtest.c:8:12: error: 'HAVE_DECL_ISNAN' undeclared (first use in this function)
     (void) HAVE_DECL_ISNAN;
            ^
_configtest.c:8:12: note: each undeclared identifier is reported only once for each function it appears in
_configtest.c: In function 'main':
_configtest.c:8:12: error: 'HAVE_DECL_ISINF' undeclared (first use in this function)
     (void) HAVE_DECL_ISINF;
            ^
_configtest.c:8:12: note: each undeclared identifier is reported only once for each function it appears in
_configtest.c: In function 'main':
_configtest.c:8:12: error: 'HAVE_DECL_SIGNBIT' undeclared (first use in this function)
     (void) HAVE_DECL_SIGNBIT;
            ^
_configtest.c:8:12: note: each undeclared identifier is reported only once for each function it appears in
_configtest.c: In function 'main':
_configtest.c:8:12: error: 'HAVE_DECL_ISFINITE' undeclared (first use in this function)
     (void) HAVE_DECL_ISFINITE;
            ^
_configtest.c:8:12: note: each undeclared identifier is reported only once for each function it appears in
_configtest.c:1:5: warning: conflicting types for built-in function 'cabs' [enabled by default]
 int cabs (void);
     ^
_configtest.c:2:5: warning: conflicting types for built-in function 'cacos' [enabled by default]
 int cacos (void);
     ^
_configtest.c:3:5: warning: conflicting types for built-in function 'cacosh' [enabled by default]
 int cacosh (void);
     ^
_configtest.c:4:5: warning: conflicting types for built-in function 'carg' [enabled by default]
 int carg (void);
     ^
_configtest.c:5:5: warning: conflicting types for built-in function 'casin' [enabled by default]
 int casin (void);
     ^
_configtest.c:6:5: warning: conflicting types for built-in function 'casinh' [enabled by default]
 int casinh (void);
     ^
_configtest.c:7:5: warning: conflicting types for built-in function 'catan' [enabled by default]
 int catan (void);
     ^
_configtest.c:8:5: warning: conflicting types for built-in function 'catanh' [enabled by default]
 int catanh (void);
     ^
_configtest.c:9:5: warning: conflicting types for built-in function 'ccos' [enabled by default]
 int ccos (void);
     ^
_configtest.c:10:5: warning: conflicting types for built-in function 'ccosh' [enabled by default]
 int ccosh (void);
     ^
_configtest.c:11:5: warning: conflicting types for built-in function 'cexp' [enabled by default]
 int cexp (void);
     ^
_configtest.c:12:5: warning: conflicting types for built-in function 'cimag' [enabled by default]
 int cimag (void);
     ^
_configtest.c:13:5: warning: conflicting types for built-in function 'clog' [enabled by default]
 int clog (void);
     ^
_configtest.c:14:5: warning: conflicting types for built-in function 'conj' [enabled by default]
 int conj (void);
     ^
_configtest.c:15:5: warning: conflicting types for built-in function 'cpow' [enabled by default]
 int cpow (void);
     ^
_configtest.c:16:5: warning: conflicting types for built-in function 'cproj' [enabled by default]
 int cproj (void);
     ^
_configtest.c:17:5: warning: conflicting types for built-in function 'creal' [enabled by default]
 int creal (void);
     ^
_configtest.c:18:5: warning: conflicting types for built-in function 'csin' [enabled by default]
 int csin (void);
     ^
_configtest.c:19:5: warning: conflicting types for built-in function 'csinh' [enabled by default]
 int csinh (void);
     ^
_configtest.c:20:5: warning: conflicting types for built-in function 'csqrt' [enabled by default]
 int csqrt (void);
     ^
_configtest.c:21:5: warning: conflicting types for built-in function 'ctan' [enabled by default]
 int ctan (void);
     ^
_configtest.c:22:5: warning: conflicting types for built-in function 'ctanh' [enabled by default]
 int ctanh (void);
     ^
_configtest.c:1:5: warning: conflicting types for built-in function 'cabsf' [enabled by default]
 int cabsf (void);
     ^
_configtest.c:2:5: warning: conflicting types for built-in function 'cacosf' [enabled by default]
 int cacosf (void);
     ^
_configtest.c:3:5: warning: conflicting types for built-in function 'cacoshf' [enabled by default]
 int cacoshf (void);
     ^
_configtest.c:4:5: warning: conflicting types for built-in function 'cargf' [enabled by default]
 int cargf (void);
     ^
_configtest.c:5:5: warning: conflicting types for built-in function 'casinf' [enabled by default]
 int casinf (void);
     ^
_configtest.c:6:5: warning: conflicting types for built-in function 'casinhf' [enabled by default]
 int casinhf (void);
     ^
_configtest.c:7:5: warning: conflicting types for built-in function 'catanf' [enabled by default]
 int catanf (void);
     ^
_configtest.c:8:5: warning: conflicting types for built-in function 'catanhf' [enabled by default]
 int catanhf (void);
     ^
_configtest.c:9:5: warning: conflicting types for built-in function 'ccosf' [enabled by default]
 int ccosf (void);
     ^
_configtest.c:10:5: warning: conflicting types for built-in function 'ccoshf' [enabled by default]
 int ccoshf (void);
     ^
_configtest.c:11:5: warning: conflicting types for built-in function 'cexpf' [enabled by default]
 int cexpf (void);
     ^
_configtest.c:12:5: warning: conflicting types for built-in function 'cimagf' [enabled by default]
 int cimagf (void);
     ^
_configtest.c:13:5: warning: conflicting types for built-in function 'clogf' [enabled by default]
 int clogf (void);
     ^
_configtest.c:14:5: warning: conflicting types for built-in function 'conjf' [enabled by default]
 int conjf (void);
     ^
_configtest.c:15:5: warning: conflicting types for built-in function 'cpowf' [enabled by default]
 int cpowf (void);
     ^
_configtest.c:16:5: warning: conflicting types for built-in function 'cprojf' [enabled by default]
 int cprojf (void);
     ^
_configtest.c:17:5: warning: conflicting types for built-in function 'crealf' [enabled by default]
 int crealf (void);
     ^
_configtest.c:18:5: warning: conflicting types for built-in function 'csinf' [enabled by default]
 int csinf (void);
     ^
_configtest.c:19:5: warning: conflicting types for built-in function 'csinhf' [enabled by default]
 int csinhf (void);
     ^
_configtest.c:20:5: warning: conflicting types for built-in function 'csqrtf' [enabled by default]
 int csqrtf (void);
     ^
_configtest.c:21:5: warning: conflicting types for built-in function 'ctanf' [enabled by default]
 int ctanf (void);
     ^
_configtest.c:22:5: warning: conflicting types for built-in function 'ctanhf' [enabled by default]
 int ctanhf (void);
     ^
_configtest.c:1:5: warning: conflicting types for built-in function 'cabsl' [enabled by default]
 int cabsl (void);
     ^
_configtest.c:2:5: warning: conflicting types for built-in function 'cacosl' [enabled by default]
 int cacosl (void);
     ^
_configtest.c:3:5: warning: conflicting types for built-in function 'cacoshl' [enabled by default]
 int cacoshl (void);
     ^
_configtest.c:4:5: warning: conflicting types for built-in function 'cargl' [enabled by default]
 int cargl (void);
     ^
_configtest.c:5:5: warning: conflicting types for built-in function 'casinl' [enabled by default]
 int casinl (void);
     ^
_configtest.c:6:5: warning: conflicting types for built-in function 'casinhl' [enabled by default]
 int casinhl (void);
     ^
_configtest.c:7:5: warning: conflicting types for built-in function 'catanl' [enabled by default]
 int catanl (void);
     ^
_configtest.c:8:5: warning: conflicting types for built-in function 'catanhl' [enabled by default]
 int catanhl (void);
     ^
_configtest.c:9:5: warning: conflicting types for built-in function 'ccosl' [enabled by default]
 int ccosl (void);
     ^
_configtest.c:10:5: warning: conflicting types for built-in function 'ccoshl' [enabled by default]
 int ccoshl (void);
     ^
_configtest.c:11:5: warning: conflicting types for built-in function 'cexpl' [enabled by default]
 int cexpl (void);
     ^
_configtest.c:12:5: warning: conflicting types for built-in function 'cimagl' [enabled by default]
 int cimagl (void);
     ^
_configtest.c:13:5: warning: conflicting types for built-in function 'clogl' [enabled by default]
 int clogl (void);
     ^
_configtest.c:14:5: warning: conflicting types for built-in function 'conjl' [enabled by default]
 int conjl (void);
     ^
_configtest.c:15:5: warning: conflicting types for built-in function 'cpowl' [enabled by default]
 int cpowl (void);
     ^
_configtest.c:16:5: warning: conflicting types for built-in function 'cprojl' [enabled by default]
 int cprojl (void);
     ^
_configtest.c:17:5: warning: conflicting types for built-in function 'creall' [enabled by default]
 int creall (void);
     ^
_configtest.c:18:5: warning: conflicting types for built-in function 'csinl' [enabled by default]
 int csinl (void);
     ^
_configtest.c:19:5: warning: conflicting types for built-in function 'csinhl' [enabled by default]
 int csinhl (void);
     ^
_configtest.c:20:5: warning: conflicting types for built-in function 'csqrtl' [enabled by default]
 int csqrtl (void);
     ^
_configtest.c:21:5: warning: conflicting types for built-in function 'ctanl' [enabled by default]
 int ctanl (void);
     ^
_configtest.c:22:5: warning: conflicting types for built-in function 'ctanhl' [enabled by default]
 int ctanhl (void);
     ^
_configtest.c:1:5: warning: conflicting types for built-in function 'exp' [enabled by default]
 int exp (void);
     ^
_configtest.o: In function `main':
_configtest.c:(.text.startup+0x5): undefined reference to `exp'
collect2: error: ld returned 1 exit status
_configtest.c:1:5: warning: conflicting types for built-in function 'exp' [enabled by default]
 int exp (void);
     ^
File: build/src.linux-x86_64-3.6/numpy/core/include/numpy/config.h
#define HAVE_ENDIAN_H 1
#define SIZEOF_PY_INTPTR_T 8
#define SIZEOF_OFF_T 8
#define SIZEOF_PY_LONG_LONG 8
#define MATHLIB m
#define HAVE_SIN 1
#define HAVE_COS 1
#define HAVE_TAN 1
#define HAVE_SINH 1
#define HAVE_COSH 1
#define HAVE_TANH 1
#define HAVE_FABS 1
#define HAVE_FLOOR 1
#define HAVE_CEIL 1
#define HAVE_SQRT 1
#define HAVE_LOG10 1
#define HAVE_LOG 1
#define HAVE_EXP 1
#define HAVE_ASIN 1
#define HAVE_ACOS 1
#define HAVE_ATAN 1
#define HAVE_FMOD 1
#define HAVE_MODF 1
#define HAVE_FREXP 1
#define HAVE_LDEXP 1
#define HAVE_EXPM1 1
#define HAVE_LOG1P 1
#define HAVE_ACOSH 1
#define HAVE_ASINH 1
#define HAVE_ATANH 1
#define HAVE_RINT 1
#define HAVE_TRUNC 1
#define HAVE_EXP2 1
#define HAVE_LOG2 1
#define HAVE_HYPOT 1
#define HAVE_ATAN2 1
#define HAVE_POW 1
#define HAVE_COPYSIGN 1
#define HAVE_NEXTAFTER 1
#define HAVE_FTELLO 1
#define HAVE_FSEEKO 1
#define HAVE_STRTOLL 1
#define HAVE_STRTOULL 1
#define HAVE_CBRT 1
#define HAVE_STRTOLD_L 1
#define HAVE_FALLOCATE 1
#define HAVE_BACKTRACE 1
#define HAVE_MADVISE 1
#define HAVE_XMMINTRIN_H 1
#define HAVE_EMMINTRIN_H 1
#define HAVE_IMMINTRIN_H 1
#define HAVE_FEATURES_H 1
#define HAVE_XLOCALE_H 1
#define HAVE_DLFCN_H 1
#define HAVE_SYS_MMAN_H 1
#define HAVE___BUILTIN_ISNAN 1
#define HAVE___BUILTIN_ISINF 1
#define HAVE___BUILTIN_ISFINITE 1
#define HAVE___BUILTIN_BSWAP32 1
#define HAVE___BUILTIN_BSWAP64 1
#define HAVE___BUILTIN_EXPECT 1
#define HAVE___BUILTIN_CPU_SUPPORTS 1
#define HAVE__M_FROM_INT64 1
#define HAVE__MM_LOAD_PS 1
#define HAVE__MM_PREFETCH 1
#define HAVE__MM_LOAD_PD 1
#define HAVE___BUILTIN_PREFETCH 1
#define HAVE_LINK_AVX 1
#define HAVE_LINK_AVX2 1
#define HAVE_LINK_AVX512F 1
#define HAVE_XGETBV 1
#define HAVE_ATTRIBUTE_OPTIMIZE_UNROLL_LOOPS 1
#define HAVE_ATTRIBUTE_OPTIMIZE_OPT_3 1
#define HAVE_ATTRIBUTE_NONNULL 1
#define HAVE_ATTRIBUTE_TARGET_AVX 1
#define HAVE_ATTRIBUTE_TARGET_AVX2 1
#define HAVE___THREAD 1
#define HAVE_SINF 1
#define HAVE_COSF 1
#define HAVE_TANF 1
#define HAVE_SINHF 1
#define HAVE_COSHF 1
#define HAVE_TANHF 1
#define HAVE_FABSF 1
#define HAVE_FLOORF 1
#define HAVE_CEILF 1
#define HAVE_RINTF 1
#define HAVE_TRUNCF 1
#define HAVE_SQRTF 1
#define HAVE_LOG10F 1
#define HAVE_LOGF 1
#define HAVE_LOG1PF 1
#define HAVE_EXPF 1
#define HAVE_EXPM1F 1
#define HAVE_ASINF 1
#define HAVE_ACOSF 1
#define HAVE_ATANF 1
#define HAVE_ASINHF 1
#define HAVE_ACOSHF 1
#define HAVE_ATANHF 1
#define HAVE_HYPOTF 1
#define HAVE_ATAN2F 1
#define HAVE_POWF 1
#define HAVE_FMODF 1
#define HAVE_MODFF 1
#define HAVE_FREXPF 1
#define HAVE_LDEXPF 1
#define HAVE_EXP2F 1
#define HAVE_LOG2F 1
#define HAVE_COPYSIGNF 1
#define HAVE_NEXTAFTERF 1
#define HAVE_CBRTF 1
#define HAVE_SINL 1
#define HAVE_COSL 1
#define HAVE_TANL 1
#define HAVE_SINHL 1
#define HAVE_COSHL 1
#define HAVE_TANHL 1
#define HAVE_FABSL 1
#define HAVE_FLOORL 1
#define HAVE_CEILL 1
#define HAVE_RINTL 1
#define HAVE_TRUNCL 1
#define HAVE_SQRTL 1
#define HAVE_LOG10L 1
#define HAVE_LOGL 1
#define HAVE_LOG1PL 1
#define HAVE_EXPL 1
#define HAVE_EXPM1L 1
#define HAVE_ASINL 1
#define HAVE_ACOSL 1
#define HAVE_ATANL 1
#define HAVE_ASINHL 1
#define HAVE_ACOSHL 1
#define HAVE_ATANHL 1
#define HAVE_HYPOTL 1
#define HAVE_ATAN2L 1
#define HAVE_POWL 1
#define HAVE_FMODL 1
#define HAVE_MODFL 1
#define HAVE_FREXPL 1
#define HAVE_LDEXPL 1
#define HAVE_EXP2L 1
#define HAVE_LOG2L 1
#define HAVE_COPYSIGNL 1
#define HAVE_NEXTAFTERL 1
#define HAVE_CBRTL 1
#define HAVE_DECL_ISNAN
#define HAVE_DECL_ISINF
#define HAVE_DECL_SIGNBIT
#define HAVE_DECL_ISFINITE
#define HAVE_COMPLEX_H 1
#define HAVE_CABS 1
#define HAVE_CACOS 1
#define HAVE_CACOSH 1
#define HAVE_CARG 1
#define HAVE_CASIN 1
#define HAVE_CASINH 1
#define HAVE_CATAN 1
#define HAVE_CATANH 1
#define HAVE_CCOS 1
#define HAVE_CCOSH 1
#define HAVE_CEXP 1
#define HAVE_CIMAG 1
#define HAVE_CLOG 1
#define HAVE_CONJ 1
#define HAVE_CPOW 1
#define HAVE_CPROJ 1
#define HAVE_CREAL 1
#define HAVE_CSIN 1
#define HAVE_CSINH 1
#define HAVE_CSQRT 1
#define HAVE_CTAN 1
#define HAVE_CTANH 1
#define HAVE_CABSF 1
#define HAVE_CACOSF 1
#define HAVE_CACOSHF 1
#define HAVE_CARGF 1
#define HAVE_CASINF 1
#define HAVE_CASINHF 1
#define HAVE_CATANF 1
#define HAVE_CATANHF 1
#define HAVE_CCOSF 1
#define HAVE_CCOSHF 1
#define HAVE_CEXPF 1
#define HAVE_CIMAGF 1
#define HAVE_CLOGF 1
#define HAVE_CONJF 1
#define HAVE_CPOWF 1
#define HAVE_CPROJF 1
#define HAVE_CREALF 1
#define HAVE_CSINF 1
#define HAVE_CSINHF 1
#define HAVE_CSQRTF 1
#define HAVE_CTANF 1
#define HAVE_CTANHF 1
#define HAVE_CABSL 1
#define HAVE_CACOSL 1
#define HAVE_CACOSHL 1
#define HAVE_CARGL 1
#define HAVE_CASINL 1
#define HAVE_CASINHL 1
#define HAVE_CATANL 1
#define HAVE_CATANHL 1
#define HAVE_CCOSL 1
#define HAVE_CCOSHL 1
#define HAVE_CEXPL 1
#define HAVE_CIMAGL 1
#define HAVE_CLOGL 1
#define HAVE_CONJL 1
#define HAVE_CPOWL 1
#define HAVE_CPROJL 1
#define HAVE_CREALL 1
#define HAVE_CSINL 1
#define HAVE_CSINHL 1
#define HAVE_CSQRTL 1
#define HAVE_CTANL 1
#define HAVE_CTANHL 1
#define NPY_RESTRICT restrict
#define NPY_RELAXED_STRIDES_CHECKING 1
#define HAVE_LDOUBLE_INTEL_EXTENDED_16_BYTES_LE 1
#define NPY_PY3K 1
#ifndef __cplusplus
/* #undef inline */
#endif

#ifndef _NPY_NPY_CONFIG_H_
#error config.h should never be included directly, include npy_config.h instead
#endif

EOF
File: build/src.linux-x86_64-3.6/numpy/core/include/numpy/_numpyconfig.h
#define NPY_HAVE_ENDIAN_H 1
#define NPY_SIZEOF_SHORT SIZEOF_SHORT
#define NPY_SIZEOF_INT SIZEOF_INT
#define NPY_SIZEOF_LONG SIZEOF_LONG
#define NPY_SIZEOF_FLOAT 4
#define NPY_SIZEOF_COMPLEX_FLOAT 8
#define NPY_SIZEOF_DOUBLE 8
#define NPY_SIZEOF_COMPLEX_DOUBLE 16
#define NPY_SIZEOF_LONGDOUBLE 16
#define NPY_SIZEOF_COMPLEX_LONGDOUBLE 32
#define NPY_SIZEOF_PY_INTPTR_T 8
#define NPY_SIZEOF_OFF_T 8
#define NPY_SIZEOF_PY_LONG_LONG 8
#define NPY_SIZEOF_LONGLONG 8
#define NPY_NO_SMP 0
#define NPY_HAVE_DECL_ISNAN
#define NPY_HAVE_DECL_ISINF
#define NPY_HAVE_DECL_SIGNBIT
#define NPY_HAVE_DECL_ISFINITE
#define NPY_USE_C99_COMPLEX 1
#define NPY_HAVE_COMPLEX_DOUBLE 1
#define NPY_HAVE_COMPLEX_FLOAT 1
#define NPY_HAVE_COMPLEX_LONG_DOUBLE 1
#define NPY_RELAXED_STRIDES_CHECKING 1
#define NPY_USE_C99_FORMATS 1
#define NPY_VISIBILITY_HIDDEN __attribute__((visibility("hidden")))
#define NPY_ABI_VERSION 0x01000009
#define NPY_API_VERSION 0x0000000D

#ifndef __STDC_FORMAT_MACROS
#define __STDC_FORMAT_MACROS 1
#endif

EOF
no previously-included directories found matching 'doc/build'
no previously-included directories found matching 'doc/source/generated'
no previously-included directories found matching 'benchmarks/env'
no previously-included directories found matching 'benchmarks/results'
no previously-included directories found matching 'benchmarks/html'
no previously-included directories found matching 'benchmarks/numpy'
warning: no previously-included files matching '*.pyo' found anywhere in distribution
warning: no previously-included files matching '*.pyd' found anywhere in distribution
warning: no previously-included files matching '*.swp' found anywhere in distribution
warning: no previously-included files matching '*.bak' found anywhere in distribution
warning: no previously-included files matching '*~' found anywhere in distribution
warning: no previously-included files found matching 'LICENSES_bundled.txt'
numpy/core/src/multiarray/number.c: In function 'array_scalar_forward':
numpy/core/src/multiarray/number.c:909:9: warning: passing argument 1 of 'PyPy_EnterRecursiveCall' discards 'const' qualifier from pointer target type [enabled by default]
         if (Npy_EnterRecursiveCall(where) != 0) {
         ^
In file included from /usr/lib64/pypy-5.0.1/include/Python.h:142:0,
                 from numpy/core/src/multiarray/number.c:2:
/usr/lib64/pypy-5.0.1/include/pypy_decl.h:945:31: note: expected 'char *' but argument is of type 'const char *'
 #define Py_EnterRecursiveCall PyPy_EnterRecursiveCall
                               ^
/usr/lib64/pypy-5.0.1/include/pypy_decl.h:946:17: note: in expansion of macro 'Py_EnterRecursiveCall'
 PyAPI_FUNC(int) Py_EnterRecursiveCall(char *arg0);
                 ^
In file included from numpy/core/src/common/numpyos.c:23:0:
/usr/include/xlocale.h:27:16: error: redefinition of 'struct __locale_struct'
 typedef struct __locale_struct
                ^
In file included from /usr/include/bits/types/locale_t.h:22:0,
                 from /usr/include/stdlib.h:272,
                 from /usr/lib64/pypy-5.0.1/include/Python.h:59,
                 from numpy/core/src/common/numpyos.c:2:
/usr/include/bits/types/__locale_t.h:28:8: note: originally defined here
 struct __locale_struct
        ^
In file included from numpy/core/src/common/numpyos.c:23:0:
/usr/include/xlocale.h:39:4: error: conflicting types for '__locale_t'
 } *__locale_t;
    ^
In file included from /usr/include/bits/types/locale_t.h:22:0,
                 from /usr/include/stdlib.h:272,
                 from /usr/lib64/pypy-5.0.1/include/Python.h:59,
                 from numpy/core/src/common/numpyos.c:2:
/usr/include/bits/types/__locale_t.h:42:33: note: previous declaration of '__locale_t' was here
 typedef struct __locale_struct *__locale_t;
                                 ^
In file included from numpy/core/src/common/numpyos.c:23:0:
/usr/include/xlocale.h:42:20: error: conflicting types for 'locale_t'
 typedef __locale_t locale_t;
                    ^
In file included from /usr/include/stdlib.h:272:0,
                 from /usr/lib64/pypy-5.0.1/include/Python.h:59,
                 from numpy/core/src/common/numpyos.c:2:
/usr/include/bits/types/locale_t.h:24:20: note: previous declaration of 'locale_t' was here
 typedef __locale_t locale_t;
                    ^
numpy/core/src/common/numpyos.c: In function 'NumPyOS_ascii_strtold':
numpy/core/src/common/numpyos.c:568:13: warning: assignment from incompatible pointer type [enabled by default]
     clocale = newlocale(LC_ALL_MASK, "C", NULL);
             ^
numpy/core/src/common/numpyos.c:571:9: warning: passing argument 3 of 'strtold_l' from incompatible pointer type [enabled by default]
         result = strtold_l(s, endptr, clocale);
         ^
In file included from /usr/lib64/pypy-5.0.1/include/Python.h:59:0,
                 from numpy/core/src/common/numpyos.c:2:
/usr/include/stdlib.h:303:20: note: expected 'locale_t' but argument is of type 'locale_t'
 extern long double strtold_l (const char *__restrict __nptr,
                    ^
numpy/core/src/common/numpyos.c:572:9: warning: passing argument 1 of 'freelocale' from incompatible pointer type [enabled by default]
         freelocale(clocale);
         ^
In file included from /usr/lib64/pypy-5.0.1/include/Python.h:92:0,
                 from numpy/core/src/common/numpyos.c:2:
/usr/include/locale.h:180:13: note: expected 'locale_t' but argument is of type 'locale_t'
 extern void freelocale (locale_t __dataset) __THROW;
             ^
Running from numpy source directory.
/tmp/easy_install-2xcla9yj/numpy-1.17.3/setup.py:418: UserWarning: Unrecognized setuptools command, proceeding with generating Cython sources and expanding templates
  run_build = parse_setuppy_commands()
/usr/lib64/pypy-5.0.1/lib-python/3/distutils/dist.py:261: UserWarning: Unknown distribution option: 'define_macros'
  warnings.warn(msg)
Traceback (most recent call last):
  File "/tmp/easy_install-2xcla9yj/numpy-1.17.3/numpy/distutils/unixccompiler.py", line 58, in UnixCCompiler__compile
  File "/tmp/easy_install-2xcla9yj/numpy-1.17.3/numpy/distutils/ccompiler.py", line 92, in <lambda>
  File "/tmp/easy_install-2xcla9yj/numpy-1.17.3/numpy/distutils/ccompiler.py", line 172, in CCompiler_spawn
distutils.errors.DistutilsExecError: Command "gcc -pthread -DNDEBUG -O2 -std=gnu99 -fPIC -DNPY_INTERNAL_BUILD=1 -DHAVE_NPY_CONFIG_H=1 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE=1 -D_LARGEFILE64_SOURCE=1 -DHAVE_CBLAS -Ibuild/src.linux-x86_64-3.6/numpy/core/src/umath -Ibuild/src.linux-x86_64-3.6/numpy/core/src/npymath -Ibuild/src.linux-x86_64-3.6/numpy/core/src/common -Inumpy/core/include -Ibuild/src.linux-x86_64-3.6/numpy/core/include/numpy -Inumpy/core/src/common -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/src/npysort -I/usr/lib64/pypy-5.0.1/include -Ibuild/src.linux-x86_64-3.6/numpy/core/src/common -Ibuild/src.linux-x86_64-3.6/numpy/core/src/npymath -Ibuild/src.linux-x86_64-3.6/numpy/core/src/common -Ibuild/src.linux-x86_64-3.6/numpy/core/src/npymath -c numpy/core/src/common/numpyos.c -o build/temp.linux-x86_64-3.6/numpy/core/src/common/numpyos.o -MMD -MF build/temp.linux-x86_64-3.6/numpy/core/src/common/numpyos.o.d" failed with exit status 1

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib64/pypy-5.0.1/lib-python/3/distutils/core.py", line 148, in setup
    dist.run_commands()
  File "/usr/lib64/pypy-5.0.1/lib-python/3/distutils/dist.py", line 955, in run_commands
    self.run_command(cmd)
  File "/usr/lib64/pypy-5.0.1/lib-python/3/distutils/dist.py", line 974, in run_command
    cmd_obj.run()
  File "/usr/lib64/pypy-5.0.1/site-packages/setuptools/command/bdist_egg.py", line 172, in run
    cmd = self.call_command('install_lib', warn_dir=0)
  File "/usr/lib64/pypy-5.0.1/site-packages/setuptools/command/bdist_egg.py", line 158, in call_command
    self.run_command(cmdname)
  File "/usr/lib64/pypy-5.0.1/lib-python/3/distutils/cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "/usr/lib64/pypy-5.0.1/lib-python/3/distutils/dist.py", line 974, in run_command
    cmd_obj.run()
  File "/usr/lib64/pypy-5.0.1/site-packages/setuptools/command/install_lib.py", line 11, in run
    self.build()
  File "/usr/lib64/pypy-5.0.1/lib-python/3/distutils/command/install_lib.py", line 107, in build
    self.run_command('build_ext')
  File "/usr/lib64/pypy-5.0.1/lib-python/3/distutils/cmd.py", line 313, in run_command
    self.distribution.run_command(command)
  File "/usr/lib64/pypy-5.0.1/lib-python/3/distutils/dist.py", line 974, in run_command
    cmd_obj.run()
  File "/tmp/easy_install-2xcla9yj/numpy-1.17.3/numpy/distutils/command/build_ext.py", line 261, in run
  File "/usr/lib64/pypy-5.0.1/lib-python/3/distutils/command/build_ext.py", line 456, in build_extensions
    self._build_extensions_serial()
  File "/usr/lib64/pypy-5.0.1/lib-python/3/distutils/command/build_ext.py", line 481, in _build_extensions_serial
    self.build_extension(ext)
  File "/tmp/easy_install-2xcla9yj/numpy-1.17.3/numpy/distutils/command/build_ext.py", line 379, in build_extension
  File "/tmp/easy_install-2xcla9yj/numpy-1.17.3/numpy/distutils/ccompiler.py", line 92, in <lambda>
  File "/tmp/easy_install-2xcla9yj/numpy-1.17.3/numpy/distutils/ccompiler.py", line 363, in CCompiler_compile
  File "/tmp/easy_install-2xcla9yj/numpy-1.17.3/numpy/distutils/ccompiler.py", line 323, in single_compile
  File "/tmp/easy_install-2xcla9yj/numpy-1.17.3/numpy/distutils/ccompiler.py", line 92, in <lambda>
  File "/tmp/easy_install-2xcla9yj/numpy-1.17.3/numpy/distutils/unixccompiler.py", line 61, in UnixCCompiler__compile
distutils.errors.CompileError: Command "gcc -pthread -DNDEBUG -O2 -std=gnu99 -fPIC -DNPY_INTERNAL_BUILD=1 -DHAVE_NPY_CONFIG_H=1 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE=1 -D_LARGEFILE64_SOURCE=1 -DHAVE_CBLAS -Ibuild/src.linux-x86_64-3.6/numpy/core/src/umath -Ibuild/src.linux-x86_64-3.6/numpy/core/src/npymath -Ibuild/src.linux-x86_64-3.6/numpy/core/src/common -Inumpy/core/include -Ibuild/src.linux-x86_64-3.6/numpy/core/include/numpy -Inumpy/core/src/common -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/src/npysort -I/usr/lib64/pypy-5.0.1/include -Ibuild/src.linux-x86_64-3.6/numpy/core/src/common -Ibuild/src.linux-x86_64-3.6/numpy/core/src/npymath -Ibuild/src.linux-x86_64-3.6/numpy/core/src/common -Ibuild/src.linux-x86_64-3.6/numpy/core/src/npymath -c numpy/core/src/common/numpyos.c -o build/temp.linux-x86_64-3.6/numpy/core/src/common/numpyos.o -MMD -MF build/temp.linux-x86_64-3.6/numpy/core/src/common/numpyos.o.d" failed with exit status 1

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib64/pypy-5.0.1/site-packages/setuptools/sandbox.py", line 195, in setup_context
    yield
  File "/usr/lib64/pypy-5.0.1/site-packages/setuptools/sandbox.py", line 250, in run_setup
    _execfile(setup_script, ns)
  File "/usr/lib64/pypy-5.0.1/site-packages/setuptools/sandbox.py", line 45, in _execfile
    exec(code, globals, locals)
  File "/tmp/easy_install-2xcla9yj/numpy-1.17.3/setup.py", line 443, in <module>
  File "/tmp/easy_install-2xcla9yj/numpy-1.17.3/setup.py", line 435, in setup_package
  File "/tmp/easy_install-2xcla9yj/numpy-1.17.3/numpy/distutils/core.py", line 171, in setup
  File "/usr/lib64/pypy-5.0.1/site-packages/setuptools/__init__.py", line 143, in setup
    return distutils.core.setup(**attrs)
  File "/usr/lib64/pypy-5.0.1/lib-python/3/distutils/core.py", line 163, in setup
    raise SystemExit("error: " + str(msg))
SystemExit: error: Command "gcc -pthread -DNDEBUG -O2 -std=gnu99 -fPIC -DNPY_INTERNAL_BUILD=1 -DHAVE_NPY_CONFIG_H=1 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE=1 -D_LARGEFILE64_SOURCE=1 -DHAVE_CBLAS -Ibuild/src.linux-x86_64-3.6/numpy/core/src/umath -Ibuild/src.linux-x86_64-3.6/numpy/core/src/npymath -Ibuild/src.linux-x86_64-3.6/numpy/core/src/common -Inumpy/core/include -Ibuild/src.linux-x86_64-3.6/numpy/core/include/numpy -Inumpy/core/src/common -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/src/npysort -I/usr/lib64/pypy-5.0.1/include -Ibuild/src.linux-x86_64-3.6/numpy/core/src/common -Ibuild/src.linux-x86_64-3.6/numpy/core/src/npymath -Ibuild/src.linux-x86_64-3.6/numpy/core/src/common -Ibuild/src.linux-x86_64-3.6/numpy/core/src/npymath -c numpy/core/src/common/numpyos.c -o build/temp.linux-x86_64-3.6/numpy/core/src/common/numpyos.o -MMD -MF build/temp.linux-x86_64-3.6/numpy/core/src/common/numpyos.o.d" failed with exit status 1

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib64/pypy-5.0.1/site-packages/setuptools/command/easy_install.py", line 1144, in run_setup
    run_setup(setup_script, args)
  File "/usr/lib64/pypy-5.0.1/site-packages/setuptools/sandbox.py", line 253, in run_setup
    raise
  File "/usr/lib64/pypy-5.0.1/lib-python/3/contextlib.py", line 99, in __exit__
    self.gen.throw(type, value, traceback)
  File "/usr/lib64/pypy-5.0.1/site-packages/setuptools/sandbox.py", line 195, in setup_context
    yield
  File "/usr/lib64/pypy-5.0.1/lib-python/3/contextlib.py", line 99, in __exit__
    self.gen.throw(type, value, traceback)
  File "/usr/lib64/pypy-5.0.1/site-packages/setuptools/sandbox.py", line 166, in save_modules
    saved_exc.resume()
  File "/usr/lib64/pypy-5.0.1/site-packages/setuptools/sandbox.py", line 141, in resume
    six.reraise(type, exc, self._tb)
  File "/usr/lib64/pypy-5.0.1/site-packages/setuptools/_vendor/six.py", line 685, in reraise
    raise value.with_traceback(tb)
  File "/usr/lib64/pypy-5.0.1/site-packages/setuptools/sandbox.py", line 154, in save_modules
    yield saved
  File "/usr/lib64/pypy-5.0.1/site-packages/setuptools/sandbox.py", line 195, in setup_context
    yield
  File "/usr/lib64/pypy-5.0.1/site-packages/setuptools/sandbox.py", line 250, in run_setup
    _execfile(setup_script, ns)
  File "/usr/lib64/pypy-5.0.1/site-packages/setuptools/sandbox.py", line 45, in _execfile
    exec(code, globals, locals)
  File "/tmp/easy_install-2xcla9yj/numpy-1.17.3/setup.py", line 443, in <module>
  File "/tmp/easy_install-2xcla9yj/numpy-1.17.3/setup.py", line 435, in setup_package
  File "/tmp/easy_install-2xcla9yj/numpy-1.17.3/numpy/distutils/core.py", line 171, in setup
  File "/usr/lib64/pypy-5.0.1/site-packages/setuptools/__init__.py", line 143, in setup
    return distutils.core.setup(**attrs)
  File "/usr/lib64/pypy-5.0.1/lib-python/3/distutils/core.py", line 163, in setup
    raise SystemExit("error: " + str(msg))
SystemExit: error: Command "gcc -pthread -DNDEBUG -O2 -std=gnu99 -fPIC -DNPY_INTERNAL_BUILD=1 -DHAVE_NPY_CONFIG_H=1 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE=1 -D_LARGEFILE64_SOURCE=1 -DHAVE_CBLAS -Ibuild/src.linux-x86_64-3.6/numpy/core/src/umath -Ibuild/src.linux-x86_64-3.6/numpy/core/src/npymath -Ibuild/src.linux-x86_64-3.6/numpy/core/src/common -Inumpy/core/include -Ibuild/src.linux-x86_64-3.6/numpy/core/include/numpy -Inumpy/core/src/common -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/src/npysort -I/usr/lib64/pypy-5.0.1/include -Ibuild/src.linux-x86_64-3.6/numpy/core/src/common -Ibuild/src.linux-x86_64-3.6/numpy/core/src/npymath -Ibuild/src.linux-x86_64-3.6/numpy/core/src/common -Ibuild/src.linux-x86_64-3.6/numpy/core/src/npymath -c numpy/core/src/common/numpyos.c -o build/temp.linux-x86_64-3.6/numpy/core/src/common/numpyos.o -MMD -MF build/temp.linux-x86_64-3.6/numpy/core/src/common/numpyos.o.d" failed with exit status 1

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/tmp/pip-install-q5nuqdhw/matplotlib/setup.py", line 300, in <module>
    cmdclass=cmdclass,
  File "/usr/lib64/pypy-5.0.1/site-packages/setuptools/__init__.py", line 142, in setup
    _install_setup_requires(attrs)
  File "/usr/lib64/pypy-5.0.1/site-packages/setuptools/__init__.py", line 137, in _install_setup_requires
    dist.fetch_build_eggs(dist.setup_requires)
  File "/usr/lib64/pypy-5.0.1/site-packages/setuptools/dist.py", line 586, in fetch_build_eggs
    replace_conflicting=True,
  File "/usr/lib64/pypy-5.0.1/site-packages/pkg_resources/__init__.py", line 780, in resolve
    replace_conflicting=replace_conflicting
  File "/usr/lib64/pypy-5.0.1/site-packages/pkg_resources/__init__.py", line 1063, in best_match
    return self.obtain(req, installer)
  File "/usr/lib64/pypy-5.0.1/site-packages/pkg_resources/__init__.py", line 1075, in obtain
    return installer(requirement)
  File "/usr/lib64/pypy-5.0.1/site-packages/setuptools/dist.py", line 653, in fetch_build_egg
    return cmd.easy_install(req)
  File "/usr/lib64/pypy-5.0.1/site-packages/setuptools/command/easy_install.py", line 679, in easy_install
    return self.install_item(spec, dist.location, tmpdir, deps)
  File "/usr/lib64/pypy-5.0.1/site-packages/setuptools/command/easy_install.py", line 705, in install_item
    dists = self.install_eggs(spec, download, tmpdir)
  File "/usr/lib64/pypy-5.0.1/site-packages/setuptools/command/easy_install.py", line 890, in install_eggs
    return self.build_and_install(setup_script, setup_base)
  File "/usr/lib64/pypy-5.0.1/site-packages/setuptools/command/easy_install.py", line 1158, in build_and_install
    self.run_setup(setup_script, setup_base, args)
  File "/usr/lib64/pypy-5.0.1/site-packages/setuptools/command/easy_install.py", line 1146, in run_setup
    raise DistutilsError("Setup script exited with %s" % (v.args[0],))
distutils.errors.DistutilsError: Setup script exited with error: Command "gcc -pthread -DNDEBUG -O2 -std=gnu99 -fPIC -DNPY_INTERNAL_BUILD=1 -DHAVE_NPY_CONFIG_H=1 -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE=1 -D_LARGEFILE64_SOURCE=1 -DHAVE_CBLAS -Ibuild/src.linux-x86_64-3.6/numpy/core/src/umath -Ibuild/src.linux-x86_64-3.6/numpy/core/src/npymath -Ibuild/src.linux-x86_64-3.6/numpy/core/src/common -Inumpy/core/include -Ibuild/src.linux-x86_64-3.6/numpy/core/include/numpy -Inumpy/core/src/common -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/src/npysort -I/usr/lib64/pypy-5.0.1/include -Ibuild/src.linux-x86_64-3.6/numpy/core/src/common -Ibuild/src.linux-x86_64-3.6/numpy/core/src/npymath -Ibuild/src.linux-x86_64-3.6/numpy/core/src/common -Ibuild/src.linux-x86_64-3.6/numpy/core/src/npymath -c numpy/core/src/common/numpyos.c -o build/temp.linux-x86_64-3.6/numpy/core/src/common/numpyos.o -MMD -MF build/temp.linux-x86_64-3.6/numpy/core/src/common/numpyos.o.d" failed with exit status 1

----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-q5nuqdhw/matplotlib/
You are using pip version 18.1, however version 19.3.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
```

It seems the specific issue boils down to this error:

```c
In file included from numpy/core/src/common/numpyos.c:23:0:
/usr/include/xlocale.h:39:4: error: conflicting types for '__locale_t'
 } *__locale_t;
    ^
In file included from /usr/include/bits/types/locale_t.h:22:0,
                 from /usr/include/stdlib.h:272,
                 from /usr/lib64/pypy-5.0.1/include/Python.h:59,
                 from numpy/core/src/common/numpyos.c:2:
/usr/include/bits/types/__locale_t.h:42:33: note: previous declaration of '__locale_t' was here
 typedef struct __locale_struct *__locale_t;
```

Sounds like a specific patch is required! Especially since in reality I’m installing this using pip but not directly, I mean as part as a dependency of pip package.

The issue might not be specific to centos and apply to all Linux distributions.




More information about the pypy-issue mailing list