Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 644552 - dev-python/numpy-1.13.3-r100 emerge report errors
Summary: dev-python/numpy-1.13.3-r100 emerge report errors
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal
Assignee: Gentoo Science Related Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-01-14 14:37 UTC by fkhp
Modified: 2018-01-16 12:58 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (info,7.89 KB, text/plain)
2018-01-14 14:40 UTC, fkhp
Details
emerge -pqv (pqv,131 bytes, text/plain)
2018-01-14 14:41 UTC, fkhp
Details

Note You need to log in before you can comment on or make changes to this bug.
Description fkhp 2018-01-14 14:37:46 UTC
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
Comment 1 fkhp 2018-01-14 14:40:44 UTC
Created attachment 514784 [details]
emerge --info
Comment 2 fkhp 2018-01-14 14:41:12 UTC
Created attachment 514786 [details]
emerge -pqv
Comment 3 François Bissey 2018-01-15 19:26:22 UTC
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".