Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 592788 - dev-qt/qtcore-5.6.1: qcore_unix_p.h:170:12: error: ‘::pipe2’ has not been declared
Summary: dev-qt/qtcore-5.6.1: qcore_unix_p.h:170:12: error: ‘::pipe2’ has not been dec...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All FreeBSD
: Normal normal (vote)
Assignee: Qt Bug Alias
URL: http://code.qt.io/cgit/qt/qtbase.git/...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-09-03 12:25 UTC by Chí-Thanh Christopher Nguyễn
Modified: 2017-05-14 01:56 UTC (History)
2 users (show)

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


Attachments
build.log (build.log,348.85 KB, text/plain)
2016-09-03 12:25 UTC, Chí-Thanh Christopher Nguyễn
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Chí-Thanh Christopher Nguyễn gentoo-dev 2016-09-03 12:25:59 UTC
Created attachment 444892 [details]
build.log

dev-qt/qtcore-5.6.1 fails to build on amd64-fbsd

In file included from ../../include/QtCore/5.6.1/QtCore/private/qcore_unix_p.h:1:
0,
                 from tools/qelapsedtimer_unix.cpp:47:
../../include/QtCore/5.6.1/QtCore/private/../../../../../src/corelib/kernel/qcore_unix_p.h: In function ‘int qt_safe_pipe(int*, int)’:
../../include/QtCore/5.6.1/QtCore/private/../../../../../src/corelib/kernel/qcore_unix_p.h:170:12: error: ‘::pipe2’ has not been declared
     return ::pipe2(pipefd, flags); // pipe2 is documented not to return EINTR
            ^
../../include/QtCore/5.6.1/QtCore/private/../../../../../src/corelib/kernel/qcore_unix_p.h: In function ‘int qt_safe_dup2(int, int, int)’:
../../include/QtCore/5.6.1/QtCore/private/../../../../../src/corelib/kernel/qcore_unix_p.h:220:21: error: ‘::dup3’ has not been declared
     EINTR_LOOP(ret, ::dup3(oldfd, newfd, flags ? O_CLOEXEC : 0));
                     ^
../../include/QtCore/5.6.1/QtCore/private/../../../../../src/corelib/kernel/qcore_unix_p.h:73:15: note: in definition of macro ‘EINTR_LOOP’
         var = cmd;                              \
               ^
gmake: *** [Makefile:18905: .obj/qelapsedtimer_unix.o] Error 1

# emerge --info
Portage 2.3.0 (python 3.4.5-final-0, default/bsd/fbsd/amd64/10.3, gcc-5.4.0, freebsd-lib-10.3-r1, 10.3-r4-Gentoo amd64)
=================================================================
System uname: FreeBSD-10.3-r4-Gentoo-amd64-64bit-ELF
KiB Mem:     3883016 total
KiB Swap:    8388608 total
Timestamp of repository gentoo: Fri, 02 Sep 2016 14:15:01 +0000
sh sh
ld GNU ld (Gentoo 2.26.1 p1.0) 2.26.1
app-shells/bash:         4.3_p46::gentoo
dev-lang/perl:           5.24.0-r1::gentoo
dev-lang/python:         2.7.12::gentoo, 3.4.5::gentoo
dev-util/cmake:          3.6.1::gentoo
dev-util/pkgconfig:      0.29.1::gentoo
sys-apps/baselayout:     2.2-r1::gentoo
sys-apps/openrc:         0.21.4::gentoo
sys-devel/autoconf:      2.13::gentoo, 2.69-r2::gentoo
sys-devel/automake:      1.14.1-r1::gentoo, 1.15-r2::gentoo
sys-devel/binutils:      2.25.1-r1::gentoo, 2.26.1::gentoo
sys-devel/gcc:           4.9.3::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-freebsd/freebsd-lib: 10.3-r1::gentoo (virtual/os-headers)
Repositories:

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

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

ACCEPT_KEYWORDS="amd64-fbsd ~amd64-fbsd"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-gentoo-freebsd10.3"
CFLAGS="-O2 -pipe -march=btver1"
CHOST="x86_64-gentoo-freebsd10.3"
CONFIG_PROTECT="/boot/device.hints /etc /usr/share/gnupg/qualified.txt"
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/terminfo"
CXXFLAGS="-O2 -pipe -march=btver1"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs chflags config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://ftp.spline.inf.fu-berlin.de/mirrors/gentoo/"
INSTALL_MASK="/usr/lib/systemd"
LANG="en_GB.UTF-8"
LDFLAGS=""
MAKEOPTS="-j2"
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="X a52 aac acl acpi amd64-fbsd berkdb bluetooth branding cairo cdda cdr consolekit cracklib crypt cups cxx dbus dri dts dvd dvdr emboss encode exif fam firefox flac gdbm gif glamor gstreamer gtk iconv ipv6 jpeg lcms libnotify mad mmx mmxext mng modules mp3 mp4 mpeg multilib ncurses nls ogg opengl oss pam pango pcre pdf png ppds python2 qt3support qt4 readline sdl spell sse sse2 ssl startup-notification svg tcpd tiff truetype udisks unicode upower usb vorbis webp wxwidgets x264 xattr xcb xml xv xvid zfs zlib" ABI_X86="64" 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="mmx mmxext popcnt sse sse2 sse3 ssse3 sse4a" ELIBC="FreeBSD" 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" KERNEL="FreeBSD" L10N="de en" 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="ruby23" USERLAND="BSD" VIDEO_CARDS="radeon" 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, EMERGE_DEFAULT_OPTS, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 Yuta SATOH 2016-09-08 11:54:29 UTC
Fixed in upstream.
Would you try the patch ?

mkdir -p /etc/portage/patches/dev-qt/qtcore
wget -O /etc/portage/patches/dev-qt/qtcore/bug592788.patch \
"http://code.qt.io/cgit/qt/qtbase.git/patch/src/corelib/tools/qelapsedtimer_unix.cpp?id=bfa53e1c67eddb14887cda37d7c89c76f4cce378"
ACCEPT_KEYWORDS=amd64 emerge -pv =dev-qt/qtcore-5.6.1


QT Team,
Probably, it will be fixed in version 5.6.2 or later.
http://code.qt.io/cgit/qt/qtbase.git/commit/src/corelib/tools/qelapsedtimer_unix.cpp?h=5.6.2&id=bfa53e1c67eddb14887cda37d7c89c76f4cce378
Comment 2 Chí-Thanh Christopher Nguyễn gentoo-dev 2016-09-08 12:54:34 UTC
The patch fixes the problem.
Comment 3 Davide Pesavento (RETIRED) gentoo-dev 2017-05-14 01:56:03 UTC
This was indeed fixed in 5.6.2 a long time ago.