Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 603782 - x11-libs/wxGTK-2.8.12.1-r2 build fail - missing thread.h
Summary: x11-libs/wxGTK-2.8.12.1-r2 build fail - missing thread.h
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo wxWidgets project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-12-26 18:33 UTC by causality
Modified: 2018-07-16 00:58 UTC (History)
2 users (show)

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


Attachments
Failed build log of x11-libs/wxGTK-2.8.12.1-r1 (build.log.xz,16.99 KB, application/x-xz)
2017-06-15 15:28 UTC, dE
Details

Note You need to log in before you can comment on or make changes to this bug.
Description causality 2016-12-26 18:33:31 UTC
I was trying to rebuild wxGTK-2.8.12.1-r2 in order to change a USE flag (specifically, to remove the "gstreamer" flag because then I can get rid of gstreamer:0.10 entirely).  I encountered an odd build error:

-----

x86_64-pc-linux-gnu-g++ -m32 -c -o basedll_threadpsx.o  -D__WXGTK__     -DWXBUILDING      -I/var/tmp/portage/x11-libs/wxGTK-2.8.12.1-r2/work/wxPython-src-2.8.12.1/src/regex  -DwxUSE_GUI=0 -DWXMAKINGDLL_BASE -DwxUSE_BASE=1 -fPIC -DPIC -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -I/var/tmp/portage/x11-libs/wxGTK-2.8.12.1-r2/work/wxPython-src-2.8.12.1-abi_x86_32.x86/lib/wx/include/gtk2-unicode-release-2.8 -I/var/tmp/portage/x11-libs/wxGTK-2.8.12.1-r2/work/wxPython-src-2.8.12.1/include -pthread -I/usr/include/gtk-2.0 -I/usr/lib32/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/libdrm -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib32/glib-2.0/include -pthread -Wall -Wundef -Wno-ctor-dtor-privacy -O2 -fno-strict-aliasing -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -march=native -O2 -finline-functions -ftracer -pipe -flto -fuse-linker-plugin -ffat-lto-objects -fno-strict-aliasing /var/tmp/portage/x11-libs/wxGTK-2.8.12.1-r2/work/wxPython-src-2.8.12.1/src/unix/threadpsx.cpp
x86_64-pc-linux-gnu-g++ -m32 -c -o basedll_event.o  -D__WXGTK__     -DWXBUILDING      -I/var/tmp/portage/x11-libs/wxGTK-2.8.12.1-r2/work/wxPython-src-2.8.12.1/src/regex  -DwxUSE_GUI=0 -DWXMAKINGDLL_BASE -DwxUSE_BASE=1 -fPIC -DPIC -D_FILE_OFFSET_BITS=64 -D_LARGE_FILES -I/var/tmp/portage/x11-libs/wxGTK-2.8.12.1-r2/work/wxPython-src-2.8.12.1-abi_x86_32.x86/lib/wx/include/gtk2-unicode-release-2.8 -I/var/tmp/portage/x11-libs/wxGTK-2.8.12.1-r2/work/wxPython-src-2.8.12.1/include -pthread -I/usr/include/gtk-2.0 -I/usr/lib32/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/libdrm -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib32/glib-2.0/include -pthread -Wall -Wundef -Wno-ctor-dtor-privacy -O2 -fno-strict-aliasing -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -march=native -O2 -finline-functions -ftracer -pipe -flto -fuse-linker-plugin -ffat-lto-objects -fno-strict-aliasing /var/tmp/portage/x11-libs/wxGTK-2.8.12.1-r2/work/wxPython-src-2.8.12.1/src/common/event.cpp
/var/tmp/portage/x11-libs/wxGTK-2.8.12.1-r2/work/wxPython-src-2.8.12.1/src/unix/threadpsx.cpp:51:24: fatal error: thread.h: No such file or directory
compilation terminated.
make: *** [Makefile:21662: basedll_threadpsx.o] Error 1

------

I examined that file /var/tmp/portage/x11-libs/wxGTK-2.8.12.1-r2/work/wxPython-src-2.8.12.1/src/unix/threadpsx.cpp and this appears to be the problematic section:

-----

#include <stdio.h>
#include <unistd.h>
#include <pthread.h>
#include <errno.h>
#include <time.h>
#ifdef HAVE_SCHED_H
    #include <sched.h>
#endif

#ifdef HAVE_THR_SETCONCURRENCY
    #include <thread.h>
#endif

-----

My standard /usr/include directories have a pthread.h, but not a thread.h.  Some /usr/include subdirectories have a "thread.h" but they're for things like libevent and llvm - not what wxGTK is seeking.

I discovered a workaround - by setting the PCH USE flag (precompiled headers), it builds successfully.  However, I still can't understand 1) why I was ever able to build without PCH in the first place in the past, and 2) where the past thread.h file came from (previous version of glibc??), what provided it, and why it's gone.  As it stands now, PCH is now a mandatory USE flag for this package and no longer optional.

I use Audacity and other packages that depend on wxGTK:2.8 so removing it wasn't an option for me.

My emerge --info:

# emerge --info
Portage 2.3.3 (python 2.7.12-final-0, default/linux/amd64/13.0/desktop/plasma, gcc-5.4.0, glibc-2.23-r3, 4.8.6-gentoo x86_64)
=================================================================
System uname: Linux-4.8.6-gentoo-x86_64-Intel-R-_Core-TM-_i5-6500_CPU_@_3.20GHz-with-gentoo-2.3
KiB Mem:    16372476 total,   5134380 free
KiB Swap:    2246652 total,   2239372 free
Timestamp of repository gentoo: Sun, 25 Dec 2016 14:15:01 +0000
sh bash 4.4_p5-r1
ld GNU ld (Gentoo 2.25.1 p1.1) 2.25.1
ccache version 3.3.3 [disabled]
app-shells/bash:          4.4_p5-r1::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.24.1_rc4::gentoo
dev-lang/python:          2.7.12::gentoo, 3.4.5::gentoo, 3.5.2::gentoo
dev-util/ccache:          3.3.3::gentoo
dev-util/cmake:           3.7.1::gentoo
dev-util/pkgconfig:       0.29.1::gentoo
sys-apps/baselayout:      2.3::gentoo
sys-apps/openrc:          0.23::gentoo
sys-apps/sandbox:         2.10-r2::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69-r2::gentoo
sys-devel/automake:       1.11.6-r2::gentoo, 1.13.4-r1::gentoo, 1.14.1-r1::gentoo, 1.15-r2::gentoo
sys-devel/binutils:       2.25.1-r1::gentoo, 2.26.1::gentoo, 2.27::gentoo
sys-devel/gcc:            4.9.3::gentoo, 4.9.4::gentoo, 5.3.0::gentoo, 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.9::gentoo (virtual/os-headers)
sys-libs/glibc:           2.23-r3::gentoo
Repositories:

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

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

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -finline-functions -ftracer -pipe -flto -fuse-linker-plugin -ffat-lto-objects"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0 /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -finline-functions -ftracer -pipe -flto -fuse-linker-plugin -ffat-lto-objects"
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 preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="ftp://cosmos.illinois.edu/pub/gentoo/ ftp://files.gentoo.gr ftp://ftp-stud.hs-esslingen.de/pub/Mirrors/gentoo/ ftp://ftp.dei.uc.pt/pub/linux/gentoo/ ftp://ftp.fi.muni.cz/pub/linux/gentoo/ ftp://ftp.free.fr/mirrors/ftp.gentoo.org/ ftp://ftp.gtlib.gatech.edu/pub/gentoo ftp://ftp.halifax.rwth-aachen.de/gentoo/ ftp://ftp.heanet.ie/pub/gentoo/ ftp://ftp.iij.ad.jp/pub/linux/gentoo/ ftp://ftp.jaist.ac.jp/pub/Linux/Gentoo/ ftp://ftp.kaist.ac.kr/gentoo/ ftp://ftp.las.ic.unicamp.br/pub/gentoo/ ftp://ftp.lecl.net/pub/gentoo/ ftp://ftp.linux.org.tr/gentoo/ ftp://ftp.mirrorservice.org/sites/distfiles.gentoo.org/ ftp://ftp.ntua.gr/pub/linux/gentoo/ ftp://ftp.rnl.tecnico.ulisboa.pt/pub/gentoo/gentoo-distfiles/ ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo ftp://ftp.swin.edu.au/gentoo ftp://ftp.twaren.net/Linux/Gentoo/ ftp://ftp.ucsb.edu/pub/mirrors/linux/gentoo/ ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo ftp://ftp.ussg.iu.edu/pub/linux/gentoo ftp://ftp.vectranet.pl/gentoo/ ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo ftp://gd.tuwien.ac.at/opsys/linux/gentoo/ ftp://gentoo.bloodhost.ru/ ftp://gentoo.c3sl.ufpr.br/gentoo/ ftp://gentoo.imj.fr/pub/gentoo/ ftp://gentoo.mirror.dkm.cz/pub/gentoo/ ftp://gentoo.mirror.web4u.cz/ ftp://gentoo.mirrors.ovh.net/gentoo-distfiles/ ftp://gentoo.mirrors.pair.com/ ftp://gentoo.netnitco.net/pub/mirrors/gentoo/source/ ftp://gentoo.wheel.sk/pub/linux/gentoo/ ftp://lug.mtu.edu/gentoo/ ftp://mirror.bytemark.co.uk/gentoo/ ftp://mirror.csclub.uwaterloo.ca/gentoo-distfiles/ ftp://mirror.iawnet.sandia.gov/pub/gentoo/ ftp://mirror.isoc.org.il/gentoo/ ftp://mirror.leaseweb.com/gentoo/ ftp://mirror.mdfnet.se/gentoo ftp://mirror.neolabs.kz/gentoo/pub ftp://mirror.netcologne.de/gentoo/ ftp://mirror.switch.ch/mirror/gentoo/ ftp://mirror.yandex.ru/gentoo-distfiles/ ftp://mirrors.linuxant.fr/distfiles.gentoo.org/ ftp://mirrors.rit.edu/gentoo/ ftp://mirrors.tera-byte.com/pub/gentoo ftp://mirrors.xmu.edu.cn/gentoo ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo ftp://trumpetti.atm.tut.fi/gentoo/ ftp://tux.rainside.sk/gentoo/ ftp://xeon.gentoo.ru/mirrors/gentoo/distfiles/ http://cosmos.illinois.edu/pub/gentoo/ http://files.gentoo.gr http://ftp-stud.hs-esslingen.de/pub/Mirrors/gentoo/ http://ftp.daum.net/gentoo/ http://ftp.dei.uc.pt/pub/linux/gentoo/ http://ftp.fi.muni.cz/pub/linux/gentoo/ http://ftp.halifax.rwth-aachen.de/gentoo/ http://ftp.heanet.ie/pub/gentoo/ http://ftp.iij.ad.jp/pub/linux/gentoo/ http://ftp.jaist.ac.jp/pub/Linux/Gentoo/ http://ftp.kaist.ac.kr/pub/gentoo/ http://ftp.lecl.net/pub/gentoo/ http://ftp.linux.org.tr/gentoo/ http://ftp.ntua.gr/pub/linux/gentoo/ http://ftp.rnl.tecnico.ulisboa.pt/pub/gentoo/gentoo-distfiles/ http://ftp.romnet.org/gentoo/ http://ftp.snt.utwente.nl/pub/os/linux/gentoo http://ftp.swin.edu.au/gentoo http://ftp.twaren.net/Linux/Gentoo/ http://ftp.ucsb.edu/pub/mirrors/linux/gentoo/ http://ftp.uni-erlangen.de/pub/mirrors/gentoo http://ftp.vectranet.pl/gentoo/ http://gd.tuwien.ac.at/opsys/linux/gentoo/ http://gentoo-euetib.upc.es/mirror/gentoo/ http://gentoo.aditsu.net:8000/ http://gentoo.bloodhost.ru/ http://gentoo.c3sl.ufpr.br/ http://gentoo.cs.uni.edu/ http://gentoo.gossamerhost.com http://gentoo.iteam.net.ua/ http://gentoo.mirror.dkm.cz/pub/gentoo/ http://gentoo.mirror.web4u.cz/ http://gentoo.mirrors.easynews.com/linux/gentoo/ http://gentoo.mirrors.ovh.net/gentoo-distfiles/ http://gentoo.mirrors.pair.com/ http://gentoo.mirrors.tds.net/gentoo http://gentoo.mirrors.tera-byte.com/ http://gentoo.modulix.net/gentoo/ http://gentoo.netnitco.net http://gentoo.osuosl.org/ http://gentoo.prz.rzeszow.pl http://gentoo.supp.name/ http://gentoo.wheel.sk/ http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://lug.mtu.edu/gentoo/ http://mirror.bytemark.co.uk/gentoo/ http://mirror.csclub.uwaterloo.ca/gentoo-distfiles/ http://mirror.eu.oneandone.net/linux/distributions/gentoo/gentoo/ http://mirror.iawnet.sandia.gov/gentoo/ http://mirror.isoc.org.il/pub/gentoo/ http://mirror.leaseweb.com/gentoo/ http://mirror.lug.udel.edu/pub/gentoo/ http://mirror.mdfnet.se/gentoo http://mirror.neolabs.kz/gentoo/pub http://mirror.netcologne.de/gentoo/ http://mirror.qubenet.net/mirror/gentoo/ http://mirror.switch.ch/ftp/mirror/gentoo/ http://mirror.usu.edu/mirrors/gentoo/ http://mirror.yandex.ru/gentoo-distfiles/ http://mirrors.163.com/gentoo/ http://mirrors.evowise.com/gentoo/ http://mirrors.linuxant.fr/distfiles.gentoo.org/ http://mirrors.rit.edu/gentoo/ http://mirrors.telepoint.bg/gentoo/ http://mirrors.xmu.edu.cn/gentoo http://mirrors.xservers.ro/gentoo/ http://trumpetti.atm.tut.fi/gentoo/ http://tux.rainside.sk/gentoo/ http://www.gtlib.gatech.edu/pub/gentoo http://www.las.ic.unicamp.br/pub/gentoo/ http://www.mirrorservice.org/sites/distfiles.gentoo.org/ rsync://ftp-stud.hs-esslingen.de/gentoo/ rsync://ftp.fi.muni.cz/pub/linux/gentoo/ rsync://ftp.halifax.rwth-aachen.de/gentoo/ rsync://ftp.heanet.ie/pub/gentoo/ rsync://ftp.iij.ad.jp/pub/linux/gentoo/ rsync://ftp.jaist.ac.jp/pub/Linux/Gentoo/ rsync://ftp.linux.org.tr/gentoo-distfiles/ rsync://ftp.rnl.tecnico.ulisboa.pt/pub/gentoo/gentoo-distfiles/ rsync://ftp.snt.utwente.nl/gentoo rsync://ftp.vectranet.pl/gentoo/ rsync://ftp6.linux.cz/pub/linux/gentoo/ rsync://gentoo.bloodhost.ru/gentoo-distfiles rsync://gentoo.c3sl.ufpr.br/gentoo/ rsync://gentoo.cs.uni.edu/gentoo-distfiles rsync://gentoo.gossamerhost.com/gentoo-distfiles/ rsync://gentoo.mirror.dkm.cz/gentoo/ rsync://gentoo.prz.rzeszow.pl/gentoo rsync://mirror.bytemark.co.uk/gentoo/ rsync://mirror.eu.oneandone.net/gentoo/ rsync://mirror.leaseweb.com/gentoo/ rsync://mirror.neolabs.kz/gentoo rsync://mirror.netcologne.de/gentoo/ rsync://mirrors.rit.edu/gentoo/ rsync://mirrors.telepoint.bg/gentoo/ rsync://mirrors.tera-byte.com/gentoo rsync://mirrors.xmu.edu.cn/gentoo/ rsync://rsync.gtlib.gatech.edu/gentoo rsync://rsync.mirrorservice.org/distfiles.gentoo.org/ rsync://trumpetti.atm.tut.fi/gentoo/"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu -Wl,--sort-common -Wl,--strip-debug -march=native -O2 -finline-functions -ftracer -pipe -flto -fuse-linker-plugin -ffat-lto-objects"
MAKEOPTS="-j4"
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 --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="3dnow 3dnowext X \ a52 aac aalib acl acpi alsa amd64 bash-completion berkdb bluetooth branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups cxx dbus declarative dri dts dvd dvdr emboss encode exif fam ffmpeg firefox flac fortran gdbm gif glamor gpm gtk iconv ipv6 jpeg jpeg2k kde kipi lcms ldap libnotify lzma mad mmx mmxext mng modules mp3 mp4 mpeg mplayer multilib mysql ncurses nls nptl offensive ogg opengl openmp openssl pam pango pcre pdf phonon plasma png policykit ppds python qml qt3support qt4 qt5 readline sdl seccomp session socks5 spell sse sse2 ssl startup-notification svg symlink tcpd tiff truetype udev udisks unicode upower usb videos vorbis widgets win32codecs wmf wxwidgets x264 xattr xcb xcomposite xine xinerama xml xscreensaver xv xvid zlib" ABI_X86="64 32" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" 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="aes avx avx2 fma3 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" GRUB_PLATFORMS="pc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" L10N="en en-US" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_4" RUBY_TARGETS="ruby21" USERLAND="GNU" VIDEO_CARDS="nvidia nv vesa" 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
Comment 1 Markus Walter 2017-03-22 13:51:38 UTC
I see a similar issue on ~amd64
Comment 2 dE 2017-06-15 15:28:34 UTC
Created attachment 476534 [details]
Failed build log of x11-libs/wxGTK-2.8.12.1-r1
Comment 3 dE 2017-06-15 15:29:13 UTC
one must try -std=c++0x
Comment 4 Mart Raudsepp gentoo-dev 2017-06-15 15:33:54 UTC
What for do you guys need wxGTK:2.8 at all over 3.0 anymore?
Comment 5 dE 2017-06-16 05:00:26 UTC
Audacity stable.
Comment 6 Mart Raudsepp gentoo-dev 2018-07-16 00:58:04 UTC
wxGTK:2.8 is p.masked for removal (bug 661284), thus this bug is now obsolete (and audacity stable uses wxGTK:3.0 by now)