Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 568452 - dev-python/PyQt5-5.5.1 fatal error: sip.h: No such file or directory
Summary: dev-python/PyQt5-5.5.1 fatal error: sip.h: No such file or directory
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Qt Bug Alias
URL:
Whiteboard:
Keywords:
: 573804 580348 601222 603642 605074 608154 608156 (view as bug list)
Depends on:
Blocks: python-abi-letters
  Show dependency tree
 
Reported: 2015-12-16 17:08 UTC by Alex Barker
Modified: 2017-03-28 21:58 UTC (History)
10 users (show)

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


Attachments
build.log (build.log,620.38 KB, text/x-log)
2015-12-16 17:09 UTC, Alex Barker
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alex Barker 2015-12-16 17:08:34 UTC
Portage 2.2.26 (python 2.7.11-final-0, default/linux/amd64/13.0/desktop/plasma, gcc-4.9.3, glibc-2.22-r1, 4.3.2-gentoo x86_64)
=================================================================
System uname: Linux-4.3.2-gentoo-x86_64-Intel-R-_Core-TM-_i7_CPU_950_@_3.07GHz-with-gentoo-2.2
KiB Mem:    24686828 total,   6031984 free
KiB Swap:    2000088 total,   1999916 free
Timestamp of repository gentoo: Wed, 16 Dec 2015 15:45:01 +0000
sh bash 4.3_p42
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
app-shells/bash:          4.3_p42::gentoo
dev-java/java-config:     2.2.0::gentoo
dev-lang/perl:            5.22.0::gentoo
dev-lang/python:          2.7.11::gentoo, 3.4.3-r5::gentoo, 3.5.1::gentoo
dev-util/cmake:           3.4.1::gentoo
dev-util/pkgconfig:       0.29::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.19.1::gentoo
sys-apps/sandbox:         2.9::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r1::gentoo
sys-devel/automake:       1.11.6-r1::gentoo, 1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo
sys-devel/gcc:            4.9.3::gentoo, 5.3.0::gentoo
sys-devel/gcc-config:     1.8::gentoo
sys-devel/libtool:        2.4.6-r1::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 4.3::gentoo (virtual/os-headers)
sys-libs/glibc:           2.22-r1::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.us.gentoo.org/gentoo-portage
    priority: -1000

local_overlay
    location: /usr/local/portage
    masters: gentoo
    priority: 0

hasufell
    location: /var/lib/layman/hasufell
    masters: gentoo
    priority: 50

java
    location: /var/lib/layman/java
    masters: gentoo
    priority: 50

miramir
    location: /var/lib/layman/miramir
    masters: gentoo
    priority: 50

mrueg
    location: /var/lib/layman/mrueg
    masters: gentoo
    priority: 50

proaudio
    location: /var/lib/layman/proaudio
    masters: gentoo
    priority: 50

science
    location: /var/lib/layman/science
    masters: gentoo
    priority: 50

steam-overlay
    location: /var/lib/layman/steam-overlay
    masters: gentoo
    priority: 50

torbrowser
    location: /var/lib/layman/torbrowser
    masters: gentoo
    priority: 50

tox-overlay
    location: /var/lib/layman/tox-overlay
    masters: gentoo
    priority: 50

wtk
    location: /var/lib/layman/wtk
    masters: gentoo
    priority: 50

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -fomit-frame-pointer -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/maven-bin-2.2/conf /usr/share/maven-bin-3.3/conf"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.6/ext-active/ /etc/php/cgi-php5.6/ext-active/ /etc/php/cli-php5.6/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps=y"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j10"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac acl acpi alsa amd64 amr berkdb branding btrfs bzip2 cairo cdda cddb cdr cifs cli consolekit cracklib crypt cups curl custom-cflags cxx dbus declarative dri dts dvd dvdr emboss encode exif faac fam fat ffmpeg firefox flac fortran ftp gdbm gif glamor gnutls gpm gsm gstreamer gtk hal hfs iconv icu ipv6 jpeg kde kipi lame lcms legacy-systray libnotify lm_sensors lto lzma mad mmx mmxext mng modules mozilla mp3 mp4 mpeg multilib musepack mysql ncurses networkmanager nfs nls nptl nptlonl nsplugin ntfs offensive ogg openal opengl openmp opus pam pango pcre pdf phonon pic plasma png policykit popcnt ppds python3 qml qt3support qt4 qt5 rar rdesktop rdp readline samba sdl seccomp session speex spell sqlite sse sse2 sse3 sse4 sse4_1 sse4_2 ssl ssse3 startup-notification steamgames_source_engine svg system-sqlite tcpd theora threads tiff truetype udev udisks unicode upower usb v4l vaapi vdpau vnc vorbis vpx wavpack widgets wxwidgets x264 xattr xcb xcomposite xfs xinerama xml xscreensaver xv xvid xvmc zip zlib" ABI_X86="64 32" ALSA_CARDS="hda-intel" APACHE2_MODULES="access_compat actions alias auth_basic authn_core authz_core authz_host autoindex dir env filter log_config mime negotiation rewrite setenvif unique_id unixd" APACHE2_MPMS="prefork" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en en_US" NETBEANS_MODULES="apisupport cnd dlight harness ide java nb php profiler websvccommon" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby20 ruby21 ruby22" SANE_BACKENDS="artec_eplus48u" USERLAND="GNU" VIDEO_CARDS="amdgpu radeon radeonsi" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON


Reproducible: Always
Comment 1 Alex Barker 2015-12-16 17:09:05 UTC
Created attachment 419374 [details]
build.log
Comment 2 Davide Pesavento (RETIRED) gentoo-dev 2015-12-16 17:17:59 UTC
In file included from sipQtCoreQResource.cpp:24:0:
sipAPIQtCore.h:28:17: fatal error: sip.h: No such file or directory
 #include <sip.h>
                 ^
compilation terminated.
Comment 3 Davide Pesavento (RETIRED) gentoo-dev 2015-12-16 17:22:36 UTC
sip.h used to be installed in /usr/include/python3.4/sip.h but now (after the recent python revbumps) other packages look for it in /usr/include/python3.4m

Rebuilding sip should solve the problem.

@python, what's the suggested fix?
Comment 4 Alex Barker 2015-12-16 17:25:33 UTC
Also have dev-python/sip-4.17

Both /usr/include/python2.7/sip.h and /usr/include/python3.4/sip.h exist.
Comment 5 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2015-12-16 17:53:18 UTC
We're going to release a news item with rebuild instructions. Probably today.
Comment 6 Gary E. Miller 2015-12-16 18:17:51 UTC
(In reply to Davide Pesavento from comment #3)
> Rebuilding sip should solve the problem.

Same problem here, sip.h not where PyQt expects it.

This did solve the problem for me:

# emerge -1a  dev-python/sip
Comment 7 Davide Pesavento (RETIRED) gentoo-dev 2015-12-19 14:26:48 UTC
(In reply to Michał Górny from comment #5)
> We're going to release a news item with rebuild instructions. Probably today.

Those instructions did not rebuild sip on my system because they do not detect misplaced headers.

Anyway, sip was revbumped, and while that is not really a solution, it's good enough for me.
Comment 8 Davide Pesavento (RETIRED) gentoo-dev 2016-02-05 01:49:31 UTC
*** Bug 573804 has been marked as a duplicate of this bug. ***
Comment 9 Davide Pesavento (RETIRED) gentoo-dev 2016-04-19 00:01:14 UTC
*** Bug 580348 has been marked as a duplicate of this bug. ***
Comment 10 Davide Pesavento (RETIRED) gentoo-dev 2016-04-22 20:36:05 UTC
(In reply to Davide Pesavento from comment #7)
> (In reply to Michał Górny from comment #5)
> > We're going to release a news item with rebuild instructions. Probably today.
> 
> Those instructions did not rebuild sip on my system because they do not
> detect misplaced headers.
> 
> Anyway, sip was revbumped, and while that is not really a solution, it's
> good enough for me.

@python: I'm reopening this because we keep getting reports from users that upgrade (manually I guess) sip *before* python, and it's gonna bite us again when the subslotted python becomes stable anyway.

We need a proper solution.
Comment 11 Mike Gilbert gentoo-dev 2016-04-22 21:35:15 UTC
(In reply to Davide Pesavento from comment #10)

I could add a headers rebuild to the news item. I think this should work:

emerge -1v /usr/include/python3.{345}

Beyond that, I'm open to suggestions.
Comment 12 Mike Gilbert gentoo-dev 2016-04-22 21:38:30 UTC
That should rather be:

emerge -1v /usr/include/python3.{3,4,5}
Comment 13 Davide Pesavento (RETIRED) gentoo-dev 2016-04-23 12:23:57 UTC
Yeah that would help a lot I think. Thanks.

The other possibility is using the subslot change to trigger a rebuild. That requires changing the eclass that generates $PYTHON_DEPS to add a slot operator to the dependency atoms. I'm not sure it would be worth the trouble though, and it wouldn't have an immediate effect on users because the reverse deps are currently installed without a sublot dep...
Comment 14 Mike Gilbert gentoo-dev 2016-04-23 18:18:54 UTC
Added to the existing news item.

https://gitweb.gentoo.org/data/gentoo-news.git/commit/?id=162f55236113926f9671216622adfa80a4bbf175

I'm a bit conflicted on re-posting a new news item (per GLEP 42) since most people don't need to do anything here.
Comment 15 Davide Pesavento (RETIRED) gentoo-dev 2016-04-23 18:50:10 UTC
Thanks. Stable users will receive the news item when they eventually upgrade, so I think this is enough.
Comment 16 Davide Pesavento (RETIRED) gentoo-dev 2016-04-23 18:51:49 UTC
(In reply to Davide Pesavento from comment #15)
> Stable users will receive the news item when they eventually upgrade

I mean, they will receive the *updated* news item containing the additional instructions.
Comment 17 Davide Pesavento (RETIRED) gentoo-dev 2016-11-30 18:14:54 UTC
*** Bug 601222 has been marked as a duplicate of this bug. ***
Comment 18 Jack 2016-12-07 03:57:45 UTC
I have just had the same problem with dev-python/PyQt4-4.11.4-r1 and dev-python/PyQt5-5.5.1 with dev-python/sip-4.18.  Reinstalling sip did allow both PyQt  versions to install.  I don't recall seeing any relevant new item, but of course if I didn't have a problem at the time, I may well have not noticed.  However, I don't see anything relevant in "eselect news list" so ?
Comment 19 Mike Gilbert gentoo-dev 2016-12-07 04:11:25 UTC
See comment 14.
Comment 20 Andreas Nyback 2016-12-08 20:40:36 UTC
Same for me today as comment 18 above for pyqt5.
Comment 14 about about updated news item contains
Display-If-Installed: =dev-lang/python-3.3.5-r4
Display-If-Installed: =dev-lang/python-3.3.5-r5

I am on python 3.4
Maybe that news item never showed up. I am not updating so often so my stable install might have jumped past those two versions of python in an update.

Just an info if it helps the devs to know
Comment 21 Mike Gilbert gentoo-dev 2016-12-08 21:28:08 UTC
(In reply to Andreas Nyback from comment #20)

You are reading the commit diff, which contains only a subset of the content. The full news item is here:

https://gitweb.gentoo.org/data/gentoo-news.git/tree/2015-12-16-python-abiflags-rebuild-needed/2015-12-16-python-abiflags-rebuild-needed.en.txt

It should have been displayed when you upgraded to python-3.4.5.
Comment 22 Andreas K. Hüttel archtester gentoo-dev 2016-12-31 10:43:01 UTC
*** Bug 603642 has been marked as a duplicate of this bug. ***
Comment 23 Davide Pesavento (RETIRED) gentoo-dev 2017-01-09 00:10:42 UTC
*** Bug 605074 has been marked as a duplicate of this bug. ***
Comment 24 Coacher 2017-02-03 21:17:37 UTC
*** Bug 608154 has been marked as a duplicate of this bug. ***
Comment 25 Jeroen Roovers (RETIRED) gentoo-dev 2017-02-03 21:23:00 UTC
*** Bug 608156 has been marked as a duplicate of this bug. ***
Comment 26 Jeroen Roovers (RETIRED) gentoo-dev 2017-02-03 21:23:38 UTC
You should keep this open until the fallout stops.
Comment 27 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2017-02-03 21:42:35 UTC
(In reply to Jeroen Roovers from comment #26)
> You should keep this open until the fallout stops.

You mean until Gentoo developers learn to read news?
Comment 28 Davide Pesavento (RETIRED) gentoo-dev 2017-03-28 21:58:32 UTC
I guess this can be closed now.