emerge numpy-1.13.3-r100 finished. but many error message showed up. gentoo ~ # grep -i error /var/tmp/portage/dev-python/numpy-1.13.3-r100/temp/build.log collect2: error: ld returned 1 exit status collect2: error: ld returned 1 exit status _configtest.c:1:10: fatal error: sys/endian.h: No such file or directory _configtest.c:1:10: fatal error: sys/endian.h: No such file or directory _configtest.c:7:12: error: ‘SIZEOF_LONGDOUBLE’ undeclared (first use in this function); did you mean ‘SIZEOF_LONG_DOUBLE’? _configtest.c:7:12: error: ‘SIZEOF_LONGDOUBLE’ undeclared (first use in this function); did you mean ‘SIZEOF_LONG_DOUBLE’? collect2: error: ld returned 1 exit status collect2: error: ld returned 1 exit status _configtest.c:1:10: fatal error: xlocale.h: No such file or directory _configtest.c:1:10: fatal error: xlocale.h: No such file or directory _configtest.c:5:24: error: expected declaration specifiers before ‘foo’ _configtest.c:9:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token _configtest.c:11:1: error: expected ‘{’ at end of input _configtest.c:5:24: error: expected declaration specifiers before ‘foo’ _configtest.c:9:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token _configtest.c:11:1: error: expected ‘{’ at end of input _configtest.c:8:12: error: ‘HAVE_DECL_SIGNBIT’ undeclared (first use in this function); did you mean ‘HAVE_DECL_ISNAN’? _configtest.c:8:12: error: ‘HAVE_DECL_SIGNBIT’ undeclared (first use in this function); did you mean ‘HAVE_DECL_ISNAN’? #error config.h should never be included directly, include npy_config.h instead collect2: error: ld returned 1 exit status collect2: error: ld returned 1 exit status collect2: error: ld returned 1 exit status collect2: error: ld returned 1 exit status _configtest.c:1:10: fatal error: sys/endian.h: No such file or directory _configtest.c:1:10: fatal error: sys/endian.h: No such file or directory _configtest.c:7:12: error: ‘SIZEOF_LONGDOUBLE’ undeclared (first use in this function); did you mean ‘SIZEOF_LONG_DOUBLE’? _configtest.c:7:12: error: ‘SIZEOF_LONGDOUBLE’ undeclared (first use in this function); did you mean ‘SIZEOF_LONG_DOUBLE’? collect2: error: ld returned 1 exit status collect2: error: ld returned 1 exit status _configtest.c:1:10: fatal error: xlocale.h: No such file or directory _configtest.c:1:10: fatal error: xlocale.h: No such file or directory _configtest.c:5:24: error: expected declaration specifiers before ‘foo’ _configtest.c:9:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token _configtest.c:11:1: error: expected ‘{’ at end of input _configtest.c:5:24: error: expected declaration specifiers before ‘foo’ _configtest.c:9:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token _configtest.c:11:1: error: expected ‘{’ at end of input _configtest.c:8:12: error: ‘HAVE_DECL_SIGNBIT’ undeclared (first use in this function); did you mean ‘HAVE_DECL_ISNAN’? _configtest.c:8:12: error: ‘HAVE_DECL_SIGNBIT’ undeclared (first use in this function); did you mean ‘HAVE_DECL_ISNAN’? #error config.h should never be included directly, include npy_config.h instead collect2: error: ld returned 1 exit status collect2: error: ld returned 1 exit status collect2: error: ld returned 1 exit status collect2: error: ld returned 1 exit status _configtest.c:1:10: fatal error: sys/endian.h: No such file or directory _configtest.c:1:10: fatal error: sys/endian.h: No such file or directory _configtest.c:7:12: error: ‘SIZEOF_LONGDOUBLE’ undeclared (first use in this function); did you mean ‘SIZEOF_LONG_DOUBLE’? _configtest.c:7:12: error: ‘SIZEOF_LONGDOUBLE’ undeclared (first use in this function); did you mean ‘SIZEOF_LONG_DOUBLE’? collect2: error: ld returned 1 exit status collect2: error: ld returned 1 exit status _configtest.c:1:10: fatal error: xlocale.h: No such file or directory _configtest.c:1:10: fatal error: xlocale.h: No such file or directory _configtest.c:5:24: error: expected declaration specifiers before ‘foo’ _configtest.c:9:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token _configtest.c:11:1: error: expected ‘{’ at end of input _configtest.c:5:24: error: expected declaration specifiers before ‘foo’ _configtest.c:9:1: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘{’ token _configtest.c:11:1: error: expected ‘{’ at end of input _configtest.c:8:12: error: ‘HAVE_DECL_SIGNBIT’ undeclared (first use in this function); did you mean ‘HAVE_DECL_ISNAN’? _configtest.c:8:12: error: ‘HAVE_DECL_SIGNBIT’ undeclared (first use in this function); did you mean ‘HAVE_DECL_ISNAN’? #error config.h should never be included directly, include npy_config.h instead collect2: error: ld returned 1 exit status collect2: error: ld returned 1 exit status collect2: error: ld returned 1 exit status collect2: error: ld returned 1 exit status copying numpy/core/tests/test_indexerrors.py -> /var/tmp/portage/dev-python/numpy-1.13.3-r100/image/_python2.7/usr/lib64/python2.7/site-packages/numpy/core/tests/ collect2: error: ld returned 1 exit status collect2: error: ld returned 1 exit status copying numpy/core/tests/test_indexerrors.py -> /var/tmp/portage/dev-python/numpy-1.13.3-r100/image/_python3.5/usr/lib64/python3.5/site-packages/numpy/core/tests/ collect2: error: ld returned 1 exit status collect2: error: ld returned 1 exit status Reproducible: Always Steps to Reproduce: 1.emerge -v1 numpy 2. 3. Actual Results: errors show up Expected Results: no error shows up
Created attachment 514784 [details] emerge --info
Created attachment 514786 [details] emerge -pqv
This particular version is from the sage-on-gentoo overlay. That being said I don't think this stuff is specific to it. The only extra thing I have is an upstream patch that is pure python. I'd like to remind the original poster to attach build logs. I have such message in my own logs. This is during the configuration phase, nothing particular happening there, numpy is trying to figure the properties of the compiler and linker like a configure script would. A more complete relevant bit of log is ########### compile options: '-Inumpy/core/src/private -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/src/npys$ x86_64-pc-linux-gnu-gcc: _configtest.c _configtest.c:1:5: warning: conflicting types for built-in function ‘exp’ [-Wbuiltin-declaration-mismatch] int exp (void); ^~~ x86_64-pc-linux-gnu-gcc -march=native -O2 -pipe _configtest.o -o _configtest _configtest.o: In function `main': _configtest.c:(.text.startup+0x5): undefined reference to `exp' collect2: error: ld returned 1 exit status _configtest.o: In function `main': _configtest.c:(.text.startup+0x5): undefined reference to `exp' collect2: error: ld returned 1 exit status failure. removing: _configtest.c _configtest.o C compiler: x86_64-pc-linux-gnu-gcc -march=native -O2 -pipe -march=native -O2 -pipe -fno-strict-aliasing -fPIC compile options: '-Inumpy/core/src/private -Inumpy/core/src -Inumpy/core -Inumpy/core/src/npymath -Inumpy/core/src/multiarray -Inumpy/core/src/umath -Inumpy/core/src/npys$ x86_64-pc-linux-gnu-gcc: _configtest.c _configtest.c:1:5: warning: conflicting types for built-in function ‘exp’ [-Wbuiltin-declaration-mismatch] int exp (void); ^~~ x86_64-pc-linux-gnu-gcc -march=native -O2 -pipe _configtest.o -lm -o _configtest success! ################## This is numpy trying to figure out if you need to add "-lm" for mathematical functions or not. Please close this "Invalid".