Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 612288

Summary: dev-db/postgresql-9.6.2[-server]: pgfeutils related parallel build failure
Product: Gentoo Linux Reporter: Sergey Ilinykh <rion4ik>
Component: Current packagesAssignee: PgSQL Bugs <pgsql-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: lordvan
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 351559    
Attachments: build.log

Description Sergey Ilinykh 2017-03-11 09:47:52 UTC
I think it's related to "server" use flag. I build without it.

The error happens on linking pgbench util which requires libpgfeutils.a.
And this libpgfeutils.a is removed and recreated several times during linking of pgbench.

emerge --info dev-db/postgresql
Portage 2.3.4 (python 2.7.13-final-0, default/linux/amd64/13.0/developer, gcc-5.4.0, glibc-2.24-r1, 4.10.1-ck x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.10.1-ck-x86_64-Intel-R-_Core-TM-_i7-3610QM_CPU_@_2.30GHz-with-gentoo-2.3
KiB Mem:    16303196 total,   4488476 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Sat, 11 Mar 2017 05:43:38 +0000
sh bash 4.4_p12
ld GNU ld (Gentoo 2.26.1 p1.0) 2.26.1
distcc 3.2rc1 x86_64-pc-linux-gnu [disabled]
ccache version 3.3.4 [disabled]
app-shells/bash:          4.4_p12::gentoo
dev-java/java-config:     2.2.0-r3::gentoo
dev-lang/perl:            5.24.1-r1::gentoo
dev-lang/python:          2.7.13::gentoo, 3.4.6::gentoo, 3.5.3::gentoo, 3.6.0::gentoo
dev-util/ccache:          3.3.4::gentoo
dev-util/cmake:           3.7.2::gentoo
dev-util/pkgconfig:       0.29.1::gentoo
sys-apps/baselayout:      2.3::gentoo
sys-apps/openrc:          0.24::gentoo
sys-apps/sandbox:         2.10-r4::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.26.1::gentoo, 2.27::gentoo
sys-devel/gcc:            5.4.0-r3::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1::gentoo
sys-kernel/linux-headers: 4.10::gentoo (virtual/os-headers)
sys-libs/glibc:           2.24-r1::gentoo
Repositories:

gentoo
    location: /home/portage/portage
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/gentoo.git
    priority: -1000

inango
    location: /home/rion/work/overlay
    masters: gentoo

hnaparst
    location: /var/lib/layman/hnaparst
    sync-type: laymansync
    sync-uri: https://github.com/hnaparst/overlay.git
    masters: gentoo
    priority: 50

mozilla
    location: /var/lib/layman/mozilla
    sync-type: laymansync
    sync-uri: git://anongit.gentoo.org/proj/mozilla.git
    masters: gentoo
    priority: 50

rion
    location: /home/rion/projects/rion-overlay
    sync-type: git
    sync-uri: git://github.com/rion-overlay/rion-overlay.git
    sync-user: rion:rion
    masters: gentoo
    priority: 50

Installed sets: @system
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe -maes"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /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/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O2 -pipe -maes"
DISTDIR="/home/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified digest distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms sign splitdebug strict test-fail-continue unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="ru_RU.UTF-8"
LDFLAGS="-Wl,--hash-style=gnu -Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j9"
PKGDIR="/home/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="/home/portage/build"
USE="X a52 aac acl acpi alsa amd64 avahi avx bash-completion berkdb bluetooth branding bs2b bzip2 cairo cdda cddb cdio cdr cli consolekit cracklib crypt cups custom-optimization cxx dbus dri dts dv dvb dvd dvdnav dvdr egl emboss encode exif faac faad fam ffmpeg firefox flac fuse gallium gif glamor gles glitz gnome-keyring google gphoto2 gpm gsm gstreamer gtk gtk3 h323 iconv idn ipv6 jabber java6 jingle jpeg jpeg2k kde kipi ladspa lcms libass libcanberra libnotify libsecret mad mate mng modemmanager modplug modules mp3 mp4 mpeg mtp multilib natspec ncurses networkmanager nls nptl offensive ogg opengl openmp pam pango pch pcmcia pcre pdf pm-utils png policykit ppds pulseaudio qalculate qml qt3support qt5 readline rtmp samba scanner schroedinger sdl seccomp semantic-desktop session sip smp snmp speex spell ssl startup-notification subversion svg symlink tcpd theora threads thunar tiff tokenizer truetype udev udisks unicode upnp upower usb v4l v4l2 vaapi vhosts vnc vorbis vpx wayland webkit webp wifi x264 xattr xcb xcomposite xinerama xml xv xvid xvmc zlib" ABI_X86="64" 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="dav dav_fs authn_file auth_basic auth_digest authz_groupfile authz_host dir mime log_config" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2 canon" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx popcnt mmx mmxext sse sse2 ssse3 sse3 sse4 sse4_1 sse4_2" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="pc" INPUT_DEVICES="evdev synaptics" KERNEL="linux" L10N="ru ru-RU en" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="ru ru_RU en" NETBEANS_MODULES="apisupport harness ide nb websvccommon php profiler webcommon cnd ergonomics dlight" NGINX_MODULES_HTTP="dav fastcgi flv access auth_basic autoindex charset browser empty_gif gzip map memcached rewrite userid" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_6" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby24" SANE_BACKENDS="net" USERLAND="GNU" VIDEO_CARDS="intel 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"
USE_PYTHON="2.7"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

=================================================================
                        Package Settings
=================================================================

dev-db/postgresql-9.6.2::gentoo was built with the following:
USE="nls pam readline ssl threads xml zlib -doc -kerberos -ldap -libressl -perl -pg_legacytimestamp -python (-selinux) -server -static-libs -tcl -uuid" ABI_X86="64" LINGUAS="en ru -af -cs -de -es -fa -fr -hr -hu -it -ko -nb -pl -pt_BR -ro -sk -sl -sv -tr -zh_CN -zh_TW" PYTHON_SINGLE_TARGET="python2_7 -python3_4 -python3_5 -python3_6" PYTHON_TARGETS="python2_7 python3_6 -python3_4 -python3_5



Reproducible: Always
Comment 1 Sergey Ilinykh 2017-03-11 09:49:08 UTC
Created attachment 466668 [details]
build.log
Comment 2 Thomas Raschbacher gentoo-dev 2017-06-19 09:30:00 UTC
different file it fails on, but same problem it seems.
MAKEOPTS"-j1" builds fine.
Comment 3 Aaron W. Swenson gentoo-dev 2017-07-14 10:41:35 UTC
I think I have this fixed. I just needed to tweak the patch a bit.

I've committed the change to my overlay first, and would appreciate you giving it a go before I commit it to the tree.

My overlay is at:
https://github.com/titanofold/titanofold-gentoo-x86
Comment 4 Aaron W. Swenson gentoo-dev 2017-08-12 12:08:30 UTC
Fixed with bug 627462