Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker image build error with sklearn_iris_docker example #164

Closed
koverholt opened this issue Jun 11, 2018 · 5 comments
Closed

Docker image build error with sklearn_iris_docker example #164

koverholt opened this issue Jun 11, 2018 · 5 comments
Assignees

Comments

@koverholt
Copy link

I'm unable to build the Docker image for the sklearn_iris_docker example. It's failing at the numpy build stage.

I tried upgrading pip and adding some dependencies with apk per https://stackoverflow.com/questions/33421965/installing-numpy-on-docker-alpine, but I had the same issue.

Stacktrace:

Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-build-fUc8dq/pandas/setup.py", line 631, in <module>
        **setuptools_kwargs)
      File "/usr/lib/python2.7/distutils/core.py", line 111, in setup
        _setup_distribution = dist = klass(attrs)
      File "/usr/lib/python2.7/site-packages/setuptools/dist.py", line 317, in __init__
        self.fetch_build_eggs(attrs['setup_requires'])
      File "/usr/lib/python2.7/site-packages/setuptools/dist.py", line 372, in fetch_build_eggs
        replace_conflicting=True,
      File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 846, in resolve
        dist = best[req.key] = env.best_match(req, ws, installer)
      File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 1118, in best_match
        return self.obtain(req, installer)
      File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 1130, in obtain
        return installer(requirement)
      File "/usr/lib/python2.7/site-packages/setuptools/dist.py", line 440, in fetch_build_egg
        return cmd.easy_install(req)
      File "/usr/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 674, in easy_install
        return self.install_item(spec, dist.location, tmpdir, deps)
      File "/usr/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 700, in install_item
        dists = self.install_eggs(spec, download, tmpdir)
      File "/usr/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 881, in install_eggs
        return self.build_and_install(setup_script, setup_base)
      File "/usr/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 1120, in build_and_install
        self.run_setup(setup_script, setup_base, args)
      File "/usr/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 1108, in run_setup
        raise DistutilsError("Setup script exited with %s" % (v.args[0],))
    distutils.errors.DistutilsError: Setup script exited with error: Command "gcc -fno-strict-aliasing -Os -fomit-frame-pointer -g -DNDEBUG -Os -fomit-frame-pointer -g -DTHREAD_STACK_SIZE=0x100000 -fPIC -Ibuild/src.linux-x86_64-2.7/numpy/core/src/npymath -Inumpy/core/include -Ibuild/src.linux-x86_64-2.7/numpy/core/include/numpy -Inumpy/core/src/private -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/src/npysort -I/usr/include/python2.7 -Ibuild/src.linux-x86_64-2.7/numpy/core/src/private -Ibuild/src.linux-x86_64-2.7/numpy/core/src/npymath -Ibuild/src.linux-x86_64-2.7/numpy/core/src/private -Ibuild/src.linux-x86_64-2.7/numpy/core/src/npymath -Ibuild/src.linux-x86_64-2.7/numpy/core/src/private -Ibuild/src.linux-x86_64-2.7/numpy/core/src/npymath -c build/src.linux-x86_64-2.7/numpy/core/src/npymath/ieee754.c -o build/temp.linux-x86_64-2.7/build/src.linux-x86_64-2.7/numpy/core/src/npymath/ieee754.o -MMD -MF build/temp.linux-x86_64-2.7/build/src.linux-x86_64-2.7/numpy/core/src/npymath/ieee754.o.d" failed with exit status 1

System information:

$ uname -a
Linux ae-ml-dev 3.10.0-862.3.2.el7.x86_64 #1 SMP Mon May 21 23:36:36 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

$ cat /etc/*release*
CentOS Linux release 7.5.1804 (Core)
Derived from Red Hat Enterprise Linux 7.5 (Source)
NAME="CentOS Linux"
VERSION="7 (Core)"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="7"
PRETTY_NAME="CentOS Linux 7 (Core)"
ANSI_COLOR="0;31"
CPE_NAME="cpe:/o:centos:centos:7"
HOME_URL="https://www.centos.org/"
BUG_REPORT_URL="https://bugs.centos.org/"

CENTOS_MANTISBT_PROJECT="CentOS-7"
CENTOS_MANTISBT_PROJECT_VERSION="7"
REDHAT_SUPPORT_PRODUCT="centos"
REDHAT_SUPPORT_PRODUCT_VERSION="7"

CentOS Linux release 7.5.1804 (Core)
CentOS Linux release 7.5.1804 (Core)
cpe:/o:centos:centos:7

$ docker --version
Docker version 18.03.1-ce, build 9ee9f40

Full logs:

$ cd seldon-core/examples/models/sklearn_iris_docker
$ make
docker build \
  --build-arg IMAGE_REPO=seldonio \
  --build-arg IMAGE_VERSION=0.1 \
  --build-arg MODEL_NAME=IrisClassifier \
  --tag seldonio/irisclassifier:0.1 .
Sending build context to Docker daemon  9.216kB
Step 1/28 : FROM alpine:3.7 as build-alpine
 ---> 3fd9065eaf02
Step 2/28 : RUN apk add --update     build-base     freetype-dev     gcc     gfortran     libc6-compat     libffi-dev     libpng-dev     openblas-dev     openssl-dev     py2-pip     python2     python2-dev    wget     && true
 ---> Running in 00a7e59023c0
fetch http://dl-cdn.alpinelinux.org/alpine/v3.7/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.7/community/x86_64/APKINDEX.tar.gz
(1/50) Upgrading musl (1.1.18-r2 -> 1.1.18-r3)
(2/50) Installing binutils-libs (2.30-r1)
(3/50) Installing binutils (2.30-r1)
(4/50) Installing gmp (6.1.2-r1)
(5/50) Installing isl (0.18-r0)
(6/50) Installing libgomp (6.4.0-r5)
(7/50) Installing libatomic (6.4.0-r5)
(8/50) Installing pkgconf (1.3.10-r0)
(9/50) Installing libgcc (6.4.0-r5)
(10/50) Installing mpfr3 (3.1.5-r1)
(11/50) Installing mpc1 (1.0.3-r1)
(12/50) Installing libstdc++ (6.4.0-r5)
(13/50) Installing gcc (6.4.0-r5)
(14/50) Installing musl-dev (1.1.18-r3)
(15/50) Installing libc-dev (0.7.1-r0)
(16/50) Installing g++ (6.4.0-r5)
(17/50) Installing make (4.2.1-r0)
(18/50) Installing fortify-headers (0.9-r0)
(19/50) Installing build-base (0.5-r0)
(20/50) Installing libbz2 (1.0.6-r6)
(21/50) Installing libpng (1.6.34-r1)
(22/50) Installing freetype (2.8.1-r2)
(23/50) Installing zlib-dev (1.2.11-r1)
(24/50) Installing libpng-dev (1.6.34-r1)
(25/50) Installing freetype-dev (2.8.1-r2)
(26/50) Installing libquadmath (6.4.0-r5)
(27/50) Installing libgfortran (6.4.0-r5)
(28/50) Installing gfortran (6.4.0-r5)
(29/50) Upgrading musl-utils (1.1.18-r2 -> 1.1.18-r3)
(30/50) Installing libc6-compat (1.1.18-r3)
(31/50) Installing libffi (3.2.1-r4)
(32/50) Installing libffi-dev (3.2.1-r4)
(33/50) Installing openblas-ilp64 (0.2.19-r3)
(34/50) Installing openblas (0.2.19-r3)
(35/50) Installing openblas-dev (0.2.19-r3)
(36/50) Installing libcrypto1.0 (1.0.2o-r0)
(37/50) Installing libssl1.0 (1.0.2o-r0)
(38/50) Installing openssl-dev (1.0.2o-r0)
(39/50) Installing expat (2.2.5-r0)
(40/50) Installing gdbm (1.13-r1)
(41/50) Installing ncurses-terminfo-base (6.0_p20171125-r0)
(42/50) Installing ncurses-terminfo (6.0_p20171125-r0)
(43/50) Installing ncurses-libs (6.0_p20171125-r0)
(44/50) Installing readline (7.0.003-r0)
(45/50) Installing sqlite-libs (3.21.0-r1)
(46/50) Installing python2 (2.7.14-r2)
(47/50) Installing py-setuptools (33.1.1-r1)
(48/50) Installing py2-pip (9.0.1-r1)
(49/50) Installing python2-dev (2.7.14-r2)
(50/50) Installing wget (1.19.5-r0)
Executing busybox-1.27.2-r7.trigger
OK: 458 MiB in 59 packages
Removing intermediate container 00a7e59023c0
 ---> 82dbbbf825fc
Step 3/28 : RUN ln -s /usr/include/locale.h /usr/include/xlocale.h
 ---> Running in 0f8306aa78eb
Removing intermediate container 0f8306aa78eb
 ---> 064da9b685cf
Step 4/28 : RUN mkdir -p /out/etc/apk && cp -r /etc/apk/* /out/etc/apk/
 ---> Running in c3286f8b1ed4
Removing intermediate container c3286f8b1ed4
 ---> a147d72d4f49
Step 5/28 : RUN apk add --no-cache --initdb --root /out     alpine-baselayout     busybox     ca-certificates     freetype     libc6-compat     libffi     libpng     libstdc++     musl     openblas     openssl     python2     && true
 ---> Running in afa8bab6266f
fetch http://dl-cdn.alpinelinux.org/alpine/v3.7/main/x86_64/APKINDEX.tar.gz
fetch http://dl-cdn.alpinelinux.org/alpine/v3.7/community/x86_64/APKINDEX.tar.gz
(1/30) Installing musl (1.1.18-r3)
(2/30) Installing busybox (1.27.2-r11)
Executing busybox-1.27.2-r11.post-install
(3/30) Installing alpine-baselayout (3.0.5-r2)
Executing alpine-baselayout-3.0.5-r2.pre-install
Executing alpine-baselayout-3.0.5-r2.post-install
(4/30) Installing libressl2.6-libcrypto (2.6.4-r2)
(5/30) Installing ca-certificates (20171114-r0)
(6/30) Installing libbz2 (1.0.6-r6)
(7/30) Installing zlib (1.2.11-r1)
(8/30) Installing libpng (1.6.34-r1)
(9/30) Installing freetype (2.8.1-r2)
(10/30) Installing libc6-compat (1.1.18-r3)
(11/30) Installing libffi (3.2.1-r4)
(12/30) Installing libgcc (6.4.0-r5)
(13/30) Installing libstdc++ (6.4.0-r5)
(14/30) Installing libquadmath (6.4.0-r5)
(15/30) Installing libgfortran (6.4.0-r5)
(16/30) Installing openblas (0.2.19-r3)
(17/30) Installing libcrypto1.0 (1.0.2o-r0)
(18/30) Installing libssl1.0 (1.0.2o-r0)
(19/30) Installing openssl (1.0.2o-r0)
(20/30) Installing expat (2.2.5-r0)
(21/30) Installing gdbm (1.13-r1)
(22/30) Installing ncurses-terminfo-base (6.0_p20171125-r0)
(23/30) Installing ncurses-terminfo (6.0_p20171125-r0)
(24/30) Installing ncurses-libs (6.0_p20171125-r0)
(25/30) Installing readline (7.0.003-r0)
(26/30) Installing sqlite-libs (3.21.0-r1)
(27/30) Installing libressl2.6-libssl (2.6.4-r2)
(28/30) Installing libressl2.6-libtls (2.6.4-r2)
(29/30) Installing ssl_client (1.27.2-r11)
(30/30) Installing python2 (2.7.14-r2)
Executing busybox-1.27.2-r11.trigger
Executing ca-certificates-20171114-r0.trigger
OK: 93 MiB in 30 packages
Removing intermediate container afa8bab6266f
 ---> 986043d44641
Step 6/28 : RUN rm -rf /out/etc/apk /out/lib/apk /out/var/cache
 ---> Running in 12c5619c34a8
Removing intermediate container 12c5619c34a8
 ---> 8220d52ace44
Step 7/28 : COPY . /src
 ---> 275d11990a10
Step 8/28 : WORKDIR /src
Removing intermediate container 3c255a6146e6
 ---> cf98b7147d55
Step 9/28 : RUN pip install --requirement requirements.txt
 ---> Running in fcaf0403e89b
Collecting numpy==1.11.2 (from -r requirements.txt (line 1))
  Downloading https://files.pythonhosted.org/packages/16/f5/b432f028134dd30cfbf6f21b8264a9938e5e0f75204e72453af08d67eb0b/numpy-1.11.2.tar.gz (4.2MB)
Collecting pandas==0.18.1 (from -r requirements.txt (line 2))
  Downloading https://files.pythonhosted.org/packages/11/09/e66eb844daba8680ddff26335d5b4fead77f60f957678243549a8dd4830d/pandas-0.18.1.tar.gz (7.3MB)
    Complete output from command python setup.py egg_info:
    Running from numpy source directory.
    /tmp/easy_install-xjA3le/numpy-1.14.4/setup.py:369: UserWarning: Unrecognized setuptools command, proceeding with generating Cython sources and expanding templates
      run_build = parse_setuppy_commands()
    /bin/sh: svnversion: not found
    non-existing path in 'numpy/distutils': 'site.cfg'
    /bin/sh: svnversion: not found
    /usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'define_macros'
      warnings.warn(msg)
    _configtest.c:1:5: warning: conflicting types for built-in function 'exp'
     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: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: 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'
     int exp (void);
         ^~~
    _configtest.c:1:5: warning: conflicting types for built-in function 'asin'
     int asin (void);
         ^~~~
    _configtest.c:2:5: warning: conflicting types for built-in function 'cos'
     int cos (void);
         ^~~
    _configtest.c:3:5: warning: conflicting types for built-in function 'log'
     int log (void);
         ^~~
    _configtest.c:4:5: warning: conflicting types for built-in function 'fabs'
     int fabs (void);
         ^~~~
    _configtest.c:5:5: warning: conflicting types for built-in function 'tanh'
     int tanh (void);
         ^~~~
    _configtest.c:6:5: warning: conflicting types for built-in function 'atan'
     int atan (void);
         ^~~~
    _configtest.c:7:5: warning: conflicting types for built-in function 'acos'
     int acos (void);
         ^~~~
    _configtest.c:8:5: warning: conflicting types for built-in function 'floor'
     int floor (void);
         ^~~~~
    _configtest.c:9:5: warning: conflicting types for built-in function 'fmod'
     int fmod (void);
         ^~~~
    _configtest.c:10:5: warning: conflicting types for built-in function 'sqrt'
     int sqrt (void);
         ^~~~
    _configtest.c:11:5: warning: conflicting types for built-in function 'cosh'
     int cosh (void);
         ^~~~
    _configtest.c:12:5: warning: conflicting types for built-in function 'modf'
     int modf (void);
         ^~~~
    _configtest.c:13:5: warning: conflicting types for built-in function 'sinh'
     int sinh (void);
         ^~~~
    _configtest.c:14:5: warning: conflicting types for built-in function 'frexp'
     int frexp (void);
         ^~~~~
    _configtest.c:15:5: warning: conflicting types for built-in function 'exp'
     int exp (void);
         ^~~
    _configtest.c:16:5: warning: conflicting types for built-in function 'tan'
     int tan (void);
         ^~~
    _configtest.c:17:5: warning: conflicting types for built-in function 'ceil'
     int ceil (void);
         ^~~~
    _configtest.c:18:5: warning: conflicting types for built-in function 'log10'
     int log10 (void);
         ^~~~~
    _configtest.c:19:5: warning: conflicting types for built-in function 'sin'
     int sin (void);
         ^~~
    _configtest.c:20:5: warning: conflicting types for built-in function 'ldexp'
     int ldexp (void);
         ^~~~~
    _configtest.c:1:5: warning: conflicting types for built-in function 'log2'
     int log2 (void);
         ^~~~
    _configtest.c:2:5: warning: conflicting types for built-in function 'pow'
     int pow (void);
         ^~~
    _configtest.c:4:5: warning: conflicting types for built-in function 'exp2'
     int exp2 (void);
         ^~~~
    _configtest.c:5:5: warning: conflicting types for built-in function 'atan2'
     int atan2 (void);
         ^~~~~
    _configtest.c:7:5: warning: conflicting types for built-in function 'rint'
     int rint (void);
         ^~~~
    _configtest.c:11:5: warning: conflicting types for built-in function 'cbrt'
     int cbrt (void);
         ^~~~
    _configtest.c:12:5: warning: conflicting types for built-in function 'nextafter'
     int nextafter (void);
         ^~~~~~~~~
    _configtest.c:13:5: warning: conflicting types for built-in function 'trunc'
     int trunc (void);
         ^~~~~
    _configtest.o: In function `main':
    /tmp/easy_install-xjA3le/numpy-1.14.4/_configtest.c:42: undefined reference to `backtrace'
    collect2: error: ld returned 1 exit status
    _configtest.o: In function `main':
    /tmp/easy_install-xjA3le/numpy-1.14.4/_configtest.c:42: undefined reference to `backtrace'
    collect2: error: ld returned 1 exit status
    _configtest.c:1:5: warning: conflicting types for built-in function 'rint'
     int rint (void);
         ^~~~
    _configtest.c:1:5: warning: conflicting types for built-in function 'trunc'
     int trunc (void);
         ^~~~~
    _configtest.c:1:5: warning: conflicting types for built-in function 'exp2'
     int exp2 (void);
         ^~~~
    _configtest.c:1:5: warning: conflicting types for built-in function 'log2'
     int log2 (void);
         ^~~~
    _configtest.c:1:5: warning: conflicting types for built-in function 'atan2'
     int atan2 (void);
         ^~~~~
    _configtest.c:1:5: warning: conflicting types for built-in function 'pow'
     int pow (void);
         ^~~
    _configtest.c:1:5: warning: conflicting types for built-in function 'nextafter'
     int nextafter (void);
         ^~~~~~~~~
    _configtest.c:1:5: warning: conflicting types for built-in function 'cbrt'
     int cbrt (void);
         ^~~~
    _configtest.o: In function `main':
    /tmp/easy_install-xjA3le/numpy-1.14.4/_configtest.c:6: undefined reference to `backtrace'
    collect2: error: ld returned 1 exit status
    _configtest.o: In function `main':
    /tmp/easy_install-xjA3le/numpy-1.14.4/_configtest.c:6: undefined reference to `backtrace'
    collect2: error: ld returned 1 exit status
    _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' [-Wimplicit-int]
     int __declspec(thread) foo;
         ^~~~~~~~~~
    _configtest.c:11:1: error: expected '{' at end of input
     }
     ^
    _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' [-Wimplicit-int]
     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 'cosf'
     int cosf (void);
         ^~~~
    _configtest.c:2:5: warning: conflicting types for built-in function 'coshf'
     int coshf (void);
         ^~~~~
    _configtest.c:3:5: warning: conflicting types for built-in function 'rintf'
     int rintf (void);
         ^~~~~
    _configtest.c:4:5: warning: conflicting types for built-in function 'fabsf'
     int fabsf (void);
         ^~~~~
    _configtest.c:5:5: warning: conflicting types for built-in function 'floorf'
     int floorf (void);
         ^~~~~~
    _configtest.c:6:5: warning: conflicting types for built-in function 'nextafterf'
     int nextafterf (void);
         ^~~~~~~~~~
    _configtest.c:7:5: warning: conflicting types for built-in function 'tanhf'
     int tanhf (void);
         ^~~~~
    _configtest.c:8:5: warning: conflicting types for built-in function 'log10f'
     int log10f (void);
         ^~~~~~
    _configtest.c:9:5: warning: conflicting types for built-in function 'logf'
     int logf (void);
         ^~~~
    _configtest.c:10:5: warning: conflicting types for built-in function 'sinhf'
     int sinhf (void);
         ^~~~~
    _configtest.c:11:5: warning: conflicting types for built-in function 'acosf'
     int acosf (void);
         ^~~~~
    _configtest.c:12:5: warning: conflicting types for built-in function 'sqrtf'
     int sqrtf (void);
         ^~~~~
    _configtest.c:13:5: warning: conflicting types for built-in function 'ldexpf'
     int ldexpf (void);
         ^~~~~~
    _configtest.c:14:5: warning: conflicting types for built-in function 'hypotf'
     int hypotf (void);
         ^~~~~~
    _configtest.c:15:5: warning: conflicting types for built-in function 'log2f'
     int log2f (void);
         ^~~~~
    _configtest.c:16:5: warning: conflicting types for built-in function 'exp2f'
     int exp2f (void);
         ^~~~~
    _configtest.c:17:5: warning: conflicting types for built-in function 'atanf'
     int atanf (void);
         ^~~~~
    _configtest.c:18:5: warning: conflicting types for built-in function 'fmodf'
     int fmodf (void);
         ^~~~~
    _configtest.c:19:5: warning: conflicting types for built-in function 'atan2f'
     int atan2f (void);
         ^~~~~~
    _configtest.c:20:5: warning: conflicting types for built-in function 'cbrtf'
     int cbrtf (void);
         ^~~~~
    _configtest.c:21:5: warning: conflicting types for built-in function 'modff'
     int modff (void);
         ^~~~~
    _configtest.c:22:5: warning: conflicting types for built-in function 'ceilf'
     int ceilf (void);
         ^~~~~
    _configtest.c:23:5: warning: conflicting types for built-in function 'log1pf'
     int log1pf (void);
         ^~~~~~
    _configtest.c:24:5: warning: conflicting types for built-in function 'asinf'
     int asinf (void);
         ^~~~~
    _configtest.c:25:5: warning: conflicting types for built-in function 'copysignf'
     int copysignf (void);
         ^~~~~~~~~
    _configtest.c:26:5: warning: conflicting types for built-in function 'acoshf'
     int acoshf (void);
         ^~~~~~
    _configtest.c:27:5: warning: conflicting types for built-in function 'sinf'
     int sinf (void);
         ^~~~
    _configtest.c:28:5: warning: conflicting types for built-in function 'tanf'
     int tanf (void);
         ^~~~
    _configtest.c:29:5: warning: conflicting types for built-in function 'atanhf'
     int atanhf (void);
         ^~~~~~
    _configtest.c:30:5: warning: conflicting types for built-in function 'truncf'
     int truncf (void);
         ^~~~~~
    _configtest.c:31:5: warning: conflicting types for built-in function 'asinhf'
     int asinhf (void);
         ^~~~~~
    _configtest.c:32:5: warning: conflicting types for built-in function 'frexpf'
     int frexpf (void);
         ^~~~~~
    _configtest.c:33:5: warning: conflicting types for built-in function 'powf'
     int powf (void);
         ^~~~
    _configtest.c:34:5: warning: conflicting types for built-in function 'expf'
     int expf (void);
         ^~~~
    _configtest.c:35:5: warning: conflicting types for built-in function 'expm1f'
     int expm1f (void);
         ^~~~~~
    _configtest.c:1:5: warning: conflicting types for built-in function 'tanhl'
     int tanhl (void);
         ^~~~~
    _configtest.c:2:5: warning: conflicting types for built-in function 'log10l'
     int log10l (void);
         ^~~~~~
    _configtest.c:3:5: warning: conflicting types for built-in function 'nextafterl'
     int nextafterl (void);
         ^~~~~~~~~~
    _configtest.c:4:5: warning: conflicting types for built-in function 'coshl'
     int coshl (void);
         ^~~~~
    _configtest.c:5:5: warning: conflicting types for built-in function 'cosl'
     int cosl (void);
         ^~~~
    _configtest.c:6:5: warning: conflicting types for built-in function 'floorl'
     int floorl (void);
         ^~~~~~
    _configtest.c:7:5: warning: conflicting types for built-in function 'rintl'
     int rintl (void);
         ^~~~~
    _configtest.c:8:5: warning: conflicting types for built-in function 'fabsl'
     int fabsl (void);
         ^~~~~
    _configtest.c:9:5: warning: conflicting types for built-in function 'acosl'
     int acosl (void);
         ^~~~~
    _configtest.c:10:5: warning: conflicting types for built-in function 'ldexpl'
     int ldexpl (void);
         ^~~~~~
    _configtest.c:11:5: warning: conflicting types for built-in function 'sqrtl'
     int sqrtl (void);
         ^~~~~
    _configtest.c:12:5: warning: conflicting types for built-in function 'logl'
     int logl (void);
         ^~~~
    _configtest.c:13:5: warning: conflicting types for built-in function 'expm1l'
     int expm1l (void);
         ^~~~~~
    _configtest.c:14:5: warning: conflicting types for built-in function 'hypotl'
     int hypotl (void);
         ^~~~~~
    _configtest.c:15:5: warning: conflicting types for built-in function 'log2l'
     int log2l (void);
         ^~~~~
    _configtest.c:16:5: warning: conflicting types for built-in function 'copysignl'
     int copysignl (void);
         ^~~~~~~~~
    _configtest.c:17:5: warning: conflicting types for built-in function 'exp2l'
     int exp2l (void);
         ^~~~~
    _configtest.c:18:5: warning: conflicting types for built-in function 'atanl'
     int atanl (void);
         ^~~~~
    _configtest.c:19:5: warning: conflicting types for built-in function 'frexpl'
     int frexpl (void);
         ^~~~~~
    _configtest.c:20:5: warning: conflicting types for built-in function 'atan2l'
     int atan2l (void);
         ^~~~~~
    _configtest.c:21:5: warning: conflicting types for built-in function 'sinhl'
     int sinhl (void);
         ^~~~~
    _configtest.c:22:5: warning: conflicting types for built-in function 'fmodl'
     int fmodl (void);
         ^~~~~
    _configtest.c:23:5: warning: conflicting types for built-in function 'log1pl'
     int log1pl (void);
         ^~~~~~
    _configtest.c:24:5: warning: conflicting types for built-in function 'asinl'
     int asinl (void);
         ^~~~~
    _configtest.c:25:5: warning: conflicting types for built-in function 'ceill'
     int ceill (void);
         ^~~~~
    _configtest.c:26:5: warning: conflicting types for built-in function 'sinl'
     int sinl (void);
         ^~~~
    _configtest.c:27:5: warning: conflicting types for built-in function 'cbrtl'
     int cbrtl (void);
         ^~~~~
    _configtest.c:28:5: warning: conflicting types for built-in function 'acoshl'
     int acoshl (void);
         ^~~~~~
    _configtest.c:29:5: warning: conflicting types for built-in function 'atanhl'
     int atanhl (void);
         ^~~~~~
    _configtest.c:30:5: warning: conflicting types for built-in function 'tanl'
     int tanl (void);
         ^~~~
    _configtest.c:31:5: warning: conflicting types for built-in function 'truncl'
     int truncl (void);
         ^~~~~~
    _configtest.c:32:5: warning: conflicting types for built-in function 'powl'
     int powl (void);
         ^~~~
    _configtest.c:33:5: warning: conflicting types for built-in function 'expl'
     int expl (void);
         ^~~~
    _configtest.c:34:5: warning: conflicting types for built-in function 'modfl'
     int modfl (void);
         ^~~~~
    _configtest.c:35:5: warning: conflicting types for built-in function 'asinhl'
     int asinhl (void);
         ^~~~~~
    _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_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:1:5: warning: conflicting types for built-in function 'clog'
     int clog (void);
         ^~~~
    _configtest.c:2:5: warning: conflicting types for built-in function 'ctan'
     int ctan (void);
         ^~~~
    _configtest.c:3:5: warning: conflicting types for built-in function 'casinh'
     int casinh (void);
         ^~~~~~
    _configtest.c:4:5: warning: conflicting types for built-in function 'cacosh'
     int cacosh (void);
         ^~~~~~
    _configtest.c:5:5: warning: conflicting types for built-in function 'cabs'
     int cabs (void);
         ^~~~
    _configtest.c:6:5: warning: conflicting types for built-in function 'conj'
     int conj (void);
         ^~~~
    _configtest.c:7:5: warning: conflicting types for built-in function 'csqrt'
     int csqrt (void);
         ^~~~~
    _configtest.c:8:5: warning: conflicting types for built-in function 'creal'
     int creal (void);
         ^~~~~
    _configtest.c:9:5: warning: conflicting types for built-in function 'cproj'
     int cproj (void);
         ^~~~~
    _configtest.c:10:5: warning: conflicting types for built-in function 'cpow'
     int cpow (void);
         ^~~~
    _configtest.c:11:5: warning: conflicting types for built-in function 'csinh'
     int csinh (void);
         ^~~~~
    _configtest.c:12:5: warning: conflicting types for built-in function 'catan'
     int catan (void);
         ^~~~~
    _configtest.c:13:5: warning: conflicting types for built-in function 'ctanh'
     int ctanh (void);
         ^~~~~
    _configtest.c:14:5: warning: conflicting types for built-in function 'ccosh'
     int ccosh (void);
         ^~~~~
    _configtest.c:15:5: warning: conflicting types for built-in function 'cimag'
     int cimag (void);
         ^~~~~
    _configtest.c:16:5: warning: conflicting types for built-in function 'casin'
     int casin (void);
         ^~~~~
    _configtest.c:17:5: warning: conflicting types for built-in function 'carg'
     int carg (void);
         ^~~~
    _configtest.c:18:5: warning: conflicting types for built-in function 'csin'
     int csin (void);
         ^~~~
    _configtest.c:19:5: warning: conflicting types for built-in function 'cexp'
     int cexp (void);
         ^~~~
    _configtest.c:20:5: warning: conflicting types for built-in function 'ccos'
     int ccos (void);
         ^~~~
    _configtest.c:21:5: warning: conflicting types for built-in function 'cacos'
     int cacos (void);
         ^~~~~
    _configtest.c:22:5: warning: conflicting types for built-in function 'catanh'
     int catanh (void);
         ^~~~~~
    _configtest.c:1:5: warning: conflicting types for built-in function 'ctanhf'
     int ctanhf (void);
         ^~~~~~
    _configtest.c:2:5: warning: conflicting types for built-in function 'csinhf'
     int csinhf (void);
         ^~~~~~
    _configtest.c:3:5: warning: conflicting types for built-in function 'cprojf'
     int cprojf (void);
         ^~~~~~
    _configtest.c:4:5: warning: conflicting types for built-in function 'cacoshf'
     int cacoshf (void);
         ^~~~~~~
    _configtest.c:5:5: warning: conflicting types for built-in function 'cacosf'
     int cacosf (void);
         ^~~~~~
    _configtest.c:6:5: warning: conflicting types for built-in function 'cargf'
     int cargf (void);
         ^~~~~
    _configtest.c:7:5: warning: conflicting types for built-in function 'cpowf'
     int cpowf (void);
         ^~~~~
    _configtest.c:8:5: warning: conflicting types for built-in function 'csinf'
     int csinf (void);
         ^~~~~
    _configtest.c:9:5: warning: conflicting types for built-in function 'clogf'
     int clogf (void);
         ^~~~~
    _configtest.c:10:5: warning: conflicting types for built-in function 'ccoshf'
     int ccoshf (void);
         ^~~~~~
    _configtest.c:11:5: warning: conflicting types for built-in function 'conjf'
     int conjf (void);
         ^~~~~
    _configtest.c:12:5: warning: conflicting types for built-in function 'casinhf'
     int casinhf (void);
         ^~~~~~~
    _configtest.c:13:5: warning: conflicting types for built-in function 'ccosf'
     int ccosf (void);
         ^~~~~
    _configtest.c:14:5: warning: conflicting types for built-in function 'ctanf'
     int ctanf (void);
         ^~~~~
    _configtest.c:15:5: warning: conflicting types for built-in function 'cexpf'
     int cexpf (void);
         ^~~~~
    _configtest.c:16:5: warning: conflicting types for built-in function 'cimagf'
     int cimagf (void);
         ^~~~~~
    _configtest.c:17:5: warning: conflicting types for built-in function 'catanhf'
     int catanhf (void);
         ^~~~~~~
    _configtest.c:18:5: warning: conflicting types for built-in function 'casinf'
     int casinf (void);
         ^~~~~~
    _configtest.c:19:5: warning: conflicting types for built-in function 'catanf'
     int catanf (void);
         ^~~~~~
    _configtest.c:20:5: warning: conflicting types for built-in function 'csqrtf'
     int csqrtf (void);
         ^~~~~~
    _configtest.c:21:5: warning: conflicting types for built-in function 'crealf'
     int crealf (void);
         ^~~~~~
    _configtest.c:22:5: warning: conflicting types for built-in function 'cabsf'
     int cabsf (void);
         ^~~~~
    _configtest.c:1:5: warning: conflicting types for built-in function 'csinhl'
     int csinhl (void);
         ^~~~~~
    _configtest.c:2:5: warning: conflicting types for built-in function 'ctanhl'
     int ctanhl (void);
         ^~~~~~
    _configtest.c:3:5: warning: conflicting types for built-in function 'cacosl'
     int cacosl (void);
         ^~~~~~
    _configtest.c:4:5: warning: conflicting types for built-in function 'cacoshl'
     int cacoshl (void);
         ^~~~~~~
    _configtest.c:5:5: warning: conflicting types for built-in function 'cprojl'
     int cprojl (void);
         ^~~~~~
    _configtest.c:6:5: warning: conflicting types for built-in function 'cargl'
     int cargl (void);
         ^~~~~
    _configtest.c:7:5: warning: conflicting types for built-in function 'ccoshl'
     int ccoshl (void);
         ^~~~~~
    _configtest.c:8:5: warning: conflicting types for built-in function 'conjl'
     int conjl (void);
         ^~~~~
    _configtest.c:9:5: warning: conflicting types for built-in function 'csinl'
     int csinl (void);
         ^~~~~
    _configtest.c:10:5: warning: conflicting types for built-in function 'clogl'
     int clogl (void);
         ^~~~~
    _configtest.c:11:5: warning: conflicting types for built-in function 'cexpl'
     int cexpl (void);
         ^~~~~
    _configtest.c:12:5: warning: conflicting types for built-in function 'ccosl'
     int ccosl (void);
         ^~~~~
    _configtest.c:13:5: warning: conflicting types for built-in function 'ctanl'
     int ctanl (void);
         ^~~~~
    _configtest.c:14:5: warning: conflicting types for built-in function 'cpowl'
     int cpowl (void);
         ^~~~~
    _configtest.c:15:5: warning: conflicting types for built-in function 'casinhl'
     int casinhl (void);
         ^~~~~~~
    _configtest.c:16:5: warning: conflicting types for built-in function 'csqrtl'
     int csqrtl (void);
         ^~~~~~
    _configtest.c:17:5: warning: conflicting types for built-in function 'casinl'
     int casinl (void);
         ^~~~~~
    _configtest.c:18:5: warning: conflicting types for built-in function 'catanl'
     int catanl (void);
         ^~~~~~
    _configtest.c:19:5: warning: conflicting types for built-in function 'catanhl'
     int catanhl (void);
         ^~~~~~~
    _configtest.c:20:5: warning: conflicting types for built-in function 'creall'
     int creall (void);
         ^~~~~~
    _configtest.c:21:5: warning: conflicting types for built-in function 'cabsl'
     int cabsl (void);
         ^~~~~
    _configtest.c:22:5: warning: conflicting types for built-in function 'cimagl'
     int cimagl (void);
         ^~~~~~
    File: build/src.linux-x86_64-2.7/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
    #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_RINT 1
    #define HAVE_TRUNC 1
    #define HAVE_EXP2 1
    #define HAVE_LOG2 1
    #define HAVE_ATAN2 1
    #define HAVE_POW 1
    #define HAVE_NEXTAFTER 1
    #define HAVE_STRTOLL 1
    #define HAVE_STRTOULL 1
    #define HAVE_CBRT 1
    #define HAVE_STRTOLD_L 1
    #define HAVE_FALLOCATE 1
    #define HAVE_XMMINTRIN_H 1
    #define HAVE_EMMINTRIN_H 1
    #define HAVE_FEATURES_H 1
    #define HAVE_XLOCALE_H 1
    #define HAVE_DLFCN_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_MUL_OVERFLOW 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_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_SIGNBIT
    #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
    #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
    _configtest.c:1:5: warning: conflicting types for built-in function 'exp'
     int exp (void);
         ^~~
    File: build/src.linux-x86_64-2.7/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_ISFINITE
    #define NPY_HAVE_DECL_SIGNBIT
    #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 0x0000000C

    #ifndef __STDC_FORMAT_MACROS
    #define __STDC_FORMAT_MACROS 1
    #endif

    EOF
    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
    In file included from numpy/core/src/npymath/ieee754.c.src:9:0:
    numpy/core/include/numpy/utils.h:17:24: error: pasting "__NPY_UNUSED_TAGGED" and "*" does not give a valid preprocessing token
     #define NPY_UNUSED(x) (__NPY_UNUSED_TAGGED ## x) __COMP_NPY_UNUSED
                            ^
    numpy/core/src/npymath/ieee754.c.src:802:38: note: in expansion of macro 'NPY_UNUSED'
     int npy_get_floatstatus_barrier(char NPY_UNUSED(*param))
                                          ^~~~~~~~~~
    numpy/core/src/npymath/ieee754.c.src:802:49: error: expected ')' before '*' token
     int npy_get_floatstatus_barrier(char NPY_UNUSED(*param))
                                                     ^
    numpy/core/include/numpy/utils.h:17:47: note: in definition of macro 'NPY_UNUSED'
     #define NPY_UNUSED(x) (__NPY_UNUSED_TAGGED ## x) __COMP_NPY_UNUSED
                                                   ^
    In file included from numpy/core/src/npymath/ieee754.c.src:9:0:
    numpy/core/include/numpy/utils.h:17:24: error: pasting "__NPY_UNUSED_TAGGED" and "*" does not give a valid preprocessing token
     #define NPY_UNUSED(x) (__NPY_UNUSED_TAGGED ## x) __COMP_NPY_UNUSED
                            ^
    numpy/core/src/npymath/ieee754.c.src:802:38: note: in expansion of macro 'NPY_UNUSED'
     int npy_get_floatstatus_barrier(char NPY_UNUSED(*param))
                                          ^~~~~~~~~~
    numpy/core/src/npymath/ieee754.c.src:802:49: error: expected ')' before '*' token
     int npy_get_floatstatus_barrier(char NPY_UNUSED(*param))
                                                     ^
    numpy/core/include/numpy/utils.h:17:47: note: in definition of macro 'NPY_UNUSED'
     #define NPY_UNUSED(x) (__NPY_UNUSED_TAGGED ## x) __COMP_NPY_UNUSED
                                                   ^
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-build-fUc8dq/pandas/setup.py", line 631, in <module>
        **setuptools_kwargs)
      File "/usr/lib/python2.7/distutils/core.py", line 111, in setup
        _setup_distribution = dist = klass(attrs)
      File "/usr/lib/python2.7/site-packages/setuptools/dist.py", line 317, in __init__
        self.fetch_build_eggs(attrs['setup_requires'])
      File "/usr/lib/python2.7/site-packages/setuptools/dist.py", line 372, in fetch_build_eggs
        replace_conflicting=True,
      File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 846, in resolve
        dist = best[req.key] = env.best_match(req, ws, installer)
      File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 1118, in best_match
        return self.obtain(req, installer)
      File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 1130, in obtain
        return installer(requirement)
      File "/usr/lib/python2.7/site-packages/setuptools/dist.py", line 440, in fetch_build_egg
        return cmd.easy_install(req)
      File "/usr/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 674, in easy_install
        return self.install_item(spec, dist.location, tmpdir, deps)
      File "/usr/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 700, in install_item
        dists = self.install_eggs(spec, download, tmpdir)
      File "/usr/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 881, in install_eggs
        return self.build_and_install(setup_script, setup_base)
      File "/usr/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 1120, in build_and_install
        self.run_setup(setup_script, setup_base, args)
      File "/usr/lib/python2.7/site-packages/setuptools/command/easy_install.py", line 1108, in run_setup
        raise DistutilsError("Setup script exited with %s" % (v.args[0],))
    distutils.errors.DistutilsError: Setup script exited with error: Command "gcc -fno-strict-aliasing -Os -fomit-frame-pointer -g -DNDEBUG -Os -fomit-frame-pointer -g -DTHREAD_STACK_SIZE=0x100000 -fPIC -Ibuild/src.linux-x86_64-2.7/numpy/core/src/npymath -Inumpy/core/include -Ibuild/src.linux-x86_64-2.7/numpy/core/include/numpy -Inumpy/core/src/private -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/src/npysort -I/usr/include/python2.7 -Ibuild/src.linux-x86_64-2.7/numpy/core/src/private -Ibuild/src.linux-x86_64-2.7/numpy/core/src/npymath -Ibuild/src.linux-x86_64-2.7/numpy/core/src/private -Ibuild/src.linux-x86_64-2.7/numpy/core/src/npymath -Ibuild/src.linux-x86_64-2.7/numpy/core/src/private -Ibuild/src.linux-x86_64-2.7/numpy/core/src/npymath -c build/src.linux-x86_64-2.7/numpy/core/src/npymath/ieee754.c -o build/temp.linux-x86_64-2.7/build/src.linux-x86_64-2.7/numpy/core/src/npymath/ieee754.o -MMD -MF build/temp.linux-x86_64-2.7/build/src.linux-x86_64-2.7/numpy/core/src/npymath/ieee754.o.d" failed with exit status 1

    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-build-fUc8dq/pandas/
You are using pip version 9.0.1, however version 10.0.1 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
The command '/bin/sh -c pip install --requirement requirements.txt' returned a non-zero code: 1
make: *** [container_image] Error 1
@gsunner
Copy link
Contributor

gsunner commented Jun 12, 2018

@koverholt After the example "sklearn_iris_docker" we updated our wrapping process to use s2i (source to image).
This is reflected in the example "sklearn_iris".

Could you try this example and let us know if you get any issues.

https://github.com/SeldonIO/seldon-core/blob/master/examples/models/sklearn_iris/sklearn_iris.ipynb

@koverholt
Copy link
Author

Thanks for the info. I did previously run the s2i-based examples, including sklearn_iris, but I was hoping to instead use the Dockerfile-based approach directly with the Python wrapper for flexibility.

Does the s2i-based approach mean that the Docker wrapper application/approach is going to be deprecated? I was hoping they were both going to be supported per the documentation at https://github.com/SeldonIO/seldon-core/blob/master/docs/wrappers/readme.md.

@ukclivecox
Copy link
Contributor

We intend to support the core python wrappers. The s2i integration uses them under the hood.

@ukclivecox
Copy link
Contributor

Also note, s2i has an experimental --as-dockerfile option.

@ukclivecox
Copy link
Contributor

Please reopen if still relevant.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants