/bin/sh ./libtool --tag=CC --mode=compile x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I/var/tmp/portage/sys-libs/libieee1284-0.2.11-r4/work/libieee1284-0.2.11 -I./include -I/var/tmp/portage/sys-libs/libieee1284-0.2.11-r4/work/libieee1284-0.2.11/include -I/usr/include/python -fpic -O2 -pipe -march=native -Wall -c -o src/src_ieee1284module_la-ieee1284module.lo `test -f 'src/ieee1284module.c' || echo '/var/tmp/portage/sys-libs/libieee1284-0.2.11-r4/work/libieee1284-0.2.11/'`src/ieee1284module.c x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I/var/tmp/portage/sys-libs/libieee1284-0.2.11-r4/work/libieee1284-0.2.11 -I./include -I/var/tmp/portage/sys-libs/libieee1284-0.2.11-r4/work/libieee1284-0.2.11/include -I/usr/include/python -fpic -O2 -pipe -march=native -Wall -c /var/tmp/portage/sys-libs/libieee1284-0.2.11-r4/work/libieee1284-0.2.11/src/ieee1284module.c -fPIC -DPIC -o src/.libs/src_ieee1284module_la-ieee1284module.o /var/tmp/portage/sys-libs/libieee1284-0.2.11-r4/work/libieee1284-0.2.11/src/ieee1284module.c:20:20: fatal error: Python.h: No such file or directory compilation terminated. make: *** [Makefile:630: src/src_ieee1284module_la-ieee1284module.lo] Error 1 * ERROR: sys-libs/libieee1284-0.2.11-r4::gentoo failed (compile phase): ------------------------------------------------------------------- This is an unstable amd64 chroot image at a tinderbox (==build bot) name: desktop-gcc5_20170517-212950 ------------------------------------------------------------------- gcc-config -l: [1] x86_64-pc-linux-gnu-5.4.0 * Available Python interpreters, in order of preference: [1] python3.4 [2] python3.6 (fallback) [3] python2.7 (fallback) [4] pypy3 (fallback) Available Ruby profiles: [1] ruby21 (with Rubygems) [2] ruby22 (with Rubygems) * java-config: The following VMs are available for generation-2: Available Java Virtual Machines: (none found)
Created attachment 474490 [details] emerge-info.txt
Created attachment 474492 [details] config.log.tbz2
Created attachment 474494 [details] emerge-history.txt
Created attachment 474496 [details] environment
Created attachment 474498 [details] etc.portage.tbz2
Created attachment 474500 [details] sys-libs:libieee1284-0.2.11-r4:20170527-043300.log
Created attachment 474502 [details] temp.tbz2
A patch is simple: append-cflags `python2-config --includes` fixes the problem. Probably the problem should better be fixed upstream, though.
I think the relevant thing here is that it is failing to detect python version, that can be seen in configure stage: checking for python version... File "<string>", line 1 import sys; print sys.version[:3] ^ SyntaxError: invalid syntax checking for python platform... File "<string>", line 1 import sys; print sys.platform ^ SyntaxError: invalid syntax Because later, in CFLAGS, the includes are being appended correctly, like: -I/usr/include/python That is missing the 2.7, because the variable of the python version is empty,
*** Bug 624580 has been marked as a duplicate of this bug. ***
[master 8c950f9ec68] sys-libs/libieee1284: python needs to be handled for both arches in multilib (#619810) 1 file changed, 48 insertions(+) create mode 100644 sys-libs/libieee1284/libieee1284-0.2.11-r5.ebuild
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=728e570925f881201953985c72fbda4351d871c0 commit 728e570925f881201953985c72fbda4351d871c0 Author: Thomas Deutschmann <whissi@gentoo.org> AuthorDate: 2017-10-29 17:08:07 +0000 Commit: Thomas Deutschmann <whissi@gentoo.org> CommitDate: 2017-10-29 17:08:40 +0000 sys-libs/libieee1284: Rev bump to fix multilib usage The fix from bug 619810 (commit 8c950f9ec6) was wrong and caused the breakage seen in bug 634218. Thanks to Mike Gilbert for finding the root cause for bug 619810. Fixes: https://bugs.gentoo.org/634218 Bug: https://bugs.gentoo.org/619810 Package-Manager: Portage-2.3.13, Repoman-2.3.4 RepoMan-Options: --force sys-libs/libieee1284/libieee1284-0.2.11-r6.ebuild | 48 +++++++++++++++++++++++ 1 file changed, 48 insertions(+)}