Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 599102 - dev-python/pyicu-1.9.3-r1 - build failed: layoutengine.cpp:27:33: fatal error: layout/LayoutEngine.h: No such file or directory
Summary: dev-python/pyicu-1.9.3-r1 - build failed: layoutengine.cpp:27:33: fatal error...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Marek Szuba
URL:
Whiteboard:
Keywords:
: 599132 (view as bug list)
Depends on:
Blocks:
 
Reported: 2016-11-07 04:39 UTC by tman
Modified: 2016-11-10 09:18 UTC (History)
2 users (show)

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


Attachments
/mnt/portage/logs/dev-python:pyicu-1.9.3-r1:20161107-043641.log (dev-python:pyicu-1.9.3-r1:20161107-043641.log,11.26 KB, text/plain)
2016-11-07 04:41 UTC, tman
Details
emerge --info dev-python/pyicu (emerge-info-pyicu.txt,6.49 KB, text/plain)
2016-11-07 18:59 UTC, Roman Piták
Details
/var/tmp/portage/dev-python/pyicu-1.9.3-r1/temp/build.log (build.log,10.95 KB, text/plain)
2016-11-07 19:01 UTC, Roman Piták
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tman 2016-11-07 04:39:08 UTC
from locale.cpp:24:
/usr/include/features.h:166:0: note: this is the location of the previous definition
 # define _XOPEN_SOURCE 700
 ^
x86_64-pc-linux-gnu-g++ -march=core-avx-i -O2 -pipe -fPIC -I/usr/include/python2.7 -c regex.cpp -o /var/tmp/portage/dev-python/pyicu-1.9.3-r1/work/PyICU-1.9.3-python2_7/build/temp.linux-x86_64-2.7/regex.o -DPYICU_VER="1.9.3"
x86_64-pc-linux-gnu-g++ -march=core-avx-i -O2 -pipe -fPIC -I/usr/include/python2.7 -c unicodeset.cpp -o /var/tmp/portage/dev-python/pyicu-1.9.3-r1/work/PyICU-1.9.3-python2_7/build/temp.linux-x86_64-2.7/unicodeset.o -DPYICU_VER="1.9.3"
x86_64-pc-linux-gnu-g++ -march=core-avx-i -O2 -pipe -fPIC -I/usr/include/python2.7 -c script.cpp -o /var/tmp/portage/dev-python/pyicu-1.9.3-r1/work/PyICU-1.9.3-python2_7/build/temp.linux-x86_64-2.7/script.o -DPYICU_VER="1.9.3"
In file included from /usr/include/python2.7/Python.h:8:0,
                 from common.h:33,
                 from script.cpp:27:
/usr/include/python2.7/pyconfig.h:1193:0: warning: "_POSIX_C_SOURCE" redefined
 #define _POSIX_C_SOURCE 200112L
 ^
In file included from /usr/include/stdlib.h:24:0,
                 from script.cpp:24:
/usr/include/features.h:225:0: note: this is the location of the previous definition
 # define _POSIX_C_SOURCE 200809L
 ^
In file included from /usr/include/python2.7/Python.h:8:0,
                 from common.h:33,
                 from script.cpp:27:
/usr/include/python2.7/pyconfig.h:1215:0: warning: "_XOPEN_SOURCE" redefined
 #define _XOPEN_SOURCE 600
 ^
In file included from /usr/include/stdlib.h:24:0,
                 from script.cpp:24:
/usr/include/features.h:166:0: note: this is the location of the previous definition
 # define _XOPEN_SOURCE 700
 ^
x86_64-pc-linux-gnu-g++ -march=core-avx-i -O2 -pipe -fPIC -I/usr/include/python2.7 -c format.cpp -o /var/tmp/portage/dev-python/pyicu-1.9.3-r1/work/PyICU-1.9.3-python2_7/build/temp.linux-x86_64-2.7/format.o -DPYICU_VER="1.9.3"
x86_64-pc-linux-gnu-g++ -march=core-avx-i -O2 -pipe -fPIC -I/usr/include/python2.7 -c dateformat.cpp -o /var/tmp/portage/dev-python/pyicu-1.9.3-r1/work/PyICU-1.9.3-python2_7/build/temp.linux-x86_64-2.7/dateformat.o -DPYICU_VER="1.9.3"
x86_64-pc-linux-gnu-g++ -march=core-avx-i -O2 -pipe -fPIC -I/usr/include/python2.7 -c layoutengine.cpp -o /var/tmp/portage/dev-python/pyicu-1.9.3-r1/work/PyICU-1.9.3-python2_7/build/temp.linux-x86_64-2.7/layoutengine.o -DPYICU_VER="1.9.3"
layoutengine.cpp:27:33: fatal error: layout/LayoutEngine.h: No such file or directory
compilation terminated.
error: command 'x86_64-pc-linux-gnu-g++' failed with exit status 1
 * ERROR: dev-python/pyicu-1.9.3-r1::gentoo failed (compile phase):
 *   (no error message)
 * 
 * Call stack:


Reproducible: Always




Portage 2.3.2 (python 3.4.5-final-0, default/linux/amd64/13.0/desktop/plasma/systemd, gcc-5.4.0, glibc-2.23-r2, 4.8.6-gentoo x86_64)
=================================================================
System uname: Linux-4.8.6-gentoo-x86_64-Intel-R-_Core-TM-_i7-3740QM_CPU_@_2.70GHz-with-gentoo-2.3
KiB Mem:    24626132 total,  23204232 free
KiB Swap:   26488828 total,  26488828 free
Timestamp of repository gentoo: Mon, 07 Nov 2016 04:00:01 +0000
Timestamp of repository poly-c: Sun, 06 Nov 2016 03:25:23 +0000
sh bash 4.4-r1
ld GNU ld (Gentoo 2.26.1 p1.0) 2.26.1
app-shells/bash:          4.4-r1::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.24.0-r2::gentoo
dev-lang/python:          2.7.12::gentoo, 3.4.5::gentoo, 3.5.2::gentoo
dev-util/cmake:           3.6.3::gentoo
dev-util/pkgconfig:       0.29.1::gentoo
sys-apps/baselayout:      2.3::gentoo
sys-apps/openrc:          0.22.3::gentoo
sys-apps/sandbox:         2.10-r2::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r2::gentoo
sys-devel/automake:       1.13.4-r1::gentoo, 1.14.1-r1::gentoo, 1.15-r2::gentoo
sys-devel/binutils:       2.26.1::gentoo
sys-devel/gcc:            5.4.0::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r2::gentoo
sys-devel/make:           4.2.1::gentoo
sys-kernel/linux-headers: 4.7::gentoo (virtual/os-headers)
sys-libs/glibc:           2.23-r2::gentoo
Repositories:
Comment 1 tman 2016-11-07 04:41:31 UTC
Created attachment 452560 [details]
/mnt/portage/logs/dev-python:pyicu-1.9.3-r1:20161107-043641.log
Comment 2 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2016-11-07 12:25:03 UTC
*** Bug 599132 has been marked as a duplicate of this bug. ***
Comment 3 Roman Piták 2016-11-07 18:57:24 UTC
Same here.
Comment 4 Roman Piták 2016-11-07 18:59:20 UTC
Created attachment 452634 [details]
emerge --info dev-python/pyicu
Comment 5 Roman Piták 2016-11-07 19:01:05 UTC
Created attachment 452636 [details]
/var/tmp/portage/dev-python/pyicu-1.9.3-r1/temp/build.log
Comment 6 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2016-11-08 08:50:08 UTC
icu-58.1 entirely dropped the layoutengine part:

http://userguide.icu-project.org/layoutengine

The replacement engine can be added through installation of dev-libs/icu-le-hb but unfortunately that package changes header location so pyicu will still fail to find the header(s).
Comment 7 Marek Szuba archtester gentoo-dev 2016-11-08 10:41:20 UTC
Thanks for the report. Looks like upstream has fixed this 1.9.4, I'll have a look at it in the next couple of days.
Comment 8 Juergen Rose 2016-11-10 09:06:58 UTC
(In reply to Marek Szuba from comment #7)
> Thanks for the report. Looks like upstream has fixed this 1.9.4, I'll have a
> look at it in the next couple of days.

Is there not any patch?
Comment 9 Marek Szuba archtester gentoo-dev 2016-11-10 09:18:09 UTC
Turns out icu-58.1 support in 1.9.4 is not complete yet because it still tries to link against libicule, even when not needed. I have backported a couple of commits from upstream master which address the problem and now all seems to be well. Tested on amd64 with PYTHON_TARGETS="python2_7 python3_4 python3_5", with dev-libs/icu at both 57.1 (i.e. current stable) and 58.1.