Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 701060 - sys-libs/talloc-2.1.14 fails to build with distcc: problem with xattr.h
Summary: sys-libs/talloc-2.1.14 fails to build with distcc: problem with xattr.h
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's SAMBA Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-11-24 10:21 UTC by François Valenduc
Modified: 2022-07-27 04:27 UTC (History)
2 users (show)

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


Attachments
full build log file (build.log,47.71 KB, text/x-log)
2019-11-24 10:21 UTC, François Valenduc
Details

Note You need to log in before you can comment on or make changes to this bug.
Description François Valenduc 2019-11-24 10:21:05 UTC
Created attachment 597388 [details]
full build log file

talloc-2.1.14 or talloc-2.16 fails to build with this error:

[ 2/23] Compiling lib/replace/cwrap.c
11:10:31 runner x86_64-pc-linux-gnu-gcc -march=skylake -mmmx -mno-3dnow -msse -msse2 -msse3 -mssse3 -mno-sse4a -mcx16 -msahf -mmovbe -maes -mno-sha -mpclmul -mpopcnt -mabm -mno-lwp -mno-fma -mno-fma4 -mno-xop -mno-bmi -mno-sgx -mno-bmi2 -mno-pconfig -mno-wbnoinvd -mno-tbm -mavx -mavx2 -msse4.2 -msse4.1 -mlzcnt -mno-rtm -mno-hle -mrdrnd -mno-f16c -mno-fsgsbase -mrdseed -mprfchw -mno-adx -mfxsr -mxsave -mno-xsaveopt -mno-avx512f -mno-avx512er -mno-avx512cd -mno-avx512pf -mno-prefetchwt1 -mclflushopt -mno-xsavec -mno-xsaves -mno-avx512dq -mno-avx512bw -mno-avx512vl -mno-avx512ifma -mno-avx512vbmi -mno-avx5124fmaps -mno-avx5124vnniw -mno-clwb -mno-mwaitx -mno-clzero -mno-pku -mno-rdpid -mno-gfni -mno-shstk -mno-avx512vbmi2 -mno-avx512vnni -mno-vaes -mno-vpclmulqdq -mno-avx512bitalg -mno-movdiri -mno-movdir64b -mno-waitpkg -mno-cldemote -mno-ptwrite --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=4096 -mtune=skylake -O2 -pipe -fPIC -fstack-protector -DSTATIC_replace_MODULES=NULL -DSTATIC_replace_MODULES_PROTO=extern void __replace_dummy_module_proto(void) -MD -Idefault/lib/replace -I../lib/replace -Idefault -I.. -I/usr/local/include -D_GNU_SOURCE=1 -D_XOPEN_SOURCE_EXTENDED=1 ../lib/replace/cwrap.c -c -o default/lib/replace/cwrap_2.o
In file included from ../lib/replace/system/filesys.h:126,
                 from ../lib/replace/replace.c:28:
/usr/include/attr/xattr.h:5:2: warning: #warning "Please change your <attr/xattr.h> includes to <sys/xattr.h>" [-Wcpp]
    5 | #warning "Please change your <attr/xattr.h> includes to <sys/xattr.h>"
      |  ^~~~~~~
Waf: Leaving directory `/var/tmp/portage/sys-libs/talloc-2.1.14/work/talloc-2.1.14-abi_x86_64.amd64/bin'
Comment 1 François Valenduc 2019-11-24 10:21:56 UTC
output of emerge --info:

Portage 2.3.76 (python 3.6.9-final-0, default/linux/amd64/17.1/systemd, gcc-9.2.0, glibc-2.29-r2, 5.3.13 x86_64)
=================================================================
System uname: Linux-5.3.13-x86_64-Intel-R-_Core-TM-_i7-6600U_CPU_@_2.60GHz-with-gentoo-2.6
KiB Mem:     6101112 total,   4742960 free
KiB Swap:    1023996 total,   1023996 free
Timestamp of repository gentoo: Sat, 23 Nov 2019 00:45:01 +0000
Head commit of repository gentoo: 8a4eda9f6f20d497517dad0f0c45f4f0ae8dae8c
sh bash 4.4_p23-r1
ld GNU ld (Gentoo 2.32 p2) 2.32.0
distcc 3.3.3 x86_64-pc-linux-gnu [enabled]
app-shells/bash:          4.4_p23-r1::gentoo
dev-java/java-config:     2.2.0-r4::gentoo
dev-lang/perl:            5.28.2-r1::gentoo
dev-lang/python:          2.7.16::gentoo, 3.6.9::gentoo
dev-util/cmake:           3.14.6::gentoo
sys-apps/baselayout:      2.6-r1::gentoo
sys-apps/sandbox:         2.13::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r4::gentoo
sys-devel/automake:       1.16.1-r1::gentoo
sys-devel/binutils:       2.32-r1::gentoo
sys-devel/gcc:            9.2.0-r2::gentoo
sys-devel/gcc-config:     2.1::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1-r4::gentoo
sys-kernel/linux-headers: 4.19::gentoo (virtual/os-headers)
sys-libs/glibc:           2.29-r2::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-metamanifest: yes
    sync-rsync-extra-opts: 
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-max-age: 24

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

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=skylake -mmmx -mno-3dnow -msse -msse2 -msse3 -mssse3 -mno-sse4a -mcx16 -msahf -mmovbe -maes -mno-sha -mpclmul -mpopcnt -mabm -mno-lwp -mno-fma -mno-fma4 -mno-xop -mno-bmi -mno-sgx -mno-bmi2 -mno-pconfig -mno-wbnoinvd -mno-tbm -mavx -mavx2 -msse4.2 -msse4.1 -mlzcnt -mno-rtm -mno-hle -mrdrnd -mno-f16c -mno-fsgsbase -mrdseed -mprfchw -mno-adx -mfxsr -mxsave -mno-xsaveopt -mno-avx512f -mno-avx512er -mno-avx512cd -mno-avx512pf -mno-prefetchwt1 -mclflushopt -mno-xsavec -mno-xsaves -mno-avx512dq -mno-avx512bw -mno-avx512vl -mno-avx512ifma -mno-avx512vbmi -mno-avx5124fmaps -mno-avx5124vnniw -mno-clwb -mno-mwaitx -mno-clzero -mno-pku -mno-rdpid -mno-gfni -mno-shstk -mno-avx512vbmi2 -mno-avx512vnni -mno-vaes -mno-vpclmulqdq -mno-avx512bitalg -mno-movdiri -mno-movdir64b -mno-waitpkg -mno-cldemote -mno-ptwrite --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=4096 -mtune=skylake -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.6/conf"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=skylake -mmmx -mno-3dnow -msse -msse2 -msse3 -mssse3 -mno-sse4a -mcx16 -msahf -mmovbe -maes -mno-sha -mpclmul -mpopcnt -mabm -mno-lwp -mno-fma -mno-fma4 -mno-xop -mno-bmi -mno-sgx -mno-bmi2 -mno-pconfig -mno-wbnoinvd -mno-tbm -mavx -mavx2 -msse4.2 -msse4.1 -mlzcnt -mno-rtm -mno-hle -mrdrnd -mno-f16c -mno-fsgsbase -mrdseed -mprfchw -mno-adx -mfxsr -mxsave -mno-xsaveopt -mno-avx512f -mno-avx512er -mno-avx512cd -mno-avx512pf -mno-prefetchwt1 -mclflushopt -mno-xsavec -mno-xsaves -mno-avx512dq -mno-avx512bw -mno-avx512vl -mno-avx512ifma -mno-avx512vbmi -mno-avx5124fmaps -mno-avx5124vnniw -mno-clwb -mno-mwaitx -mno-clzero -mno-pku -mno-rdpid -mno-gfni -mno-shstk -mno-avx512vbmi2 -mno-avx512vnni -mno-vaes -mno-vpclmulqdq -mno-avx512bitalg -mno-movdiri -mno-movdir64b -mno-waitpkg -mno-cldemote -mno-ptwrite --param l1-cache-size=32 --param l1-cache-line-size=64 --param l2-cache-size=4096 -mtune=skylake -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs config-protect-if-modified distcc distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox 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://ftp.free.fr/mirrors/ftp.gentoo.org/"
LANG="fr_BE.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j6 -l4"
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="acl amd64 berkdb bzip2 cli crypt cxx dri fortran gdbm iconv ipv6 libtirpc multilib ncurses nls nptl openmp pam pcre readline seccomp split-usr ssl systemd tcpd udev unicode xattr zlib" ABI_X86="64" ADA_TARGET="gnat_2018" 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="actions alias auth_basic authn_alias authn_anon authn_core authn_dbm authn_file authz_core authz_dbm authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir env expires ext_filter file_cache filter headers include info log_config logio mime mime_magic negotiation rewrite setenvif socache_shmcb speling status unique_id unixd userdir usertrack vhost_alias proxy proxy_http proxy_wstunnel" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="mouse evdev" KERNEL="linux" L10N="fr" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" NETBEANS_MODULES="apisupport cnd groovy gsf harness ide identity j2ee java mobility nb php profiler soa visualweb webcommon websvccommon xml" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2" POSTGRES_TARGETS="postgres11" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python2_7 python3_6" RUBY_TARGETS="ruby24 ruby25" USERLAND="GNU" VIDEO_CARDS="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, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 2 François Valenduc 2019-11-24 10:24:33 UTC
I just noticed that the problem doesn't occur if I don't use distcc.
Comment 3 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2019-11-24 10:29:14 UTC
Please make sure to have >=sys-apps/attr-2.4.48 installed on all your distcc nodes.
Comment 4 François Valenduc 2019-11-24 10:32:03 UTC
attr-2.4.48-r3 is installed on all nodes.
Comment 5 Jan K 2020-02-09 09:03:15 UTC
I also hit some strange problem with talloc and distcc, where talloc compiles locally but fails to compile with distcc.
But from what I see it looks like it's not a problem with xattr.h, as a successful build also repeatedly emits a warning about it:
===========================================
[ 1/25] Generating talloc.vscript
[ 2/25] Generating pytalloc-util.vscript
[ 3/25] Compiling lib/replace/replace.c
09:40:23 runner x86_64-pc-linux-gnu-gcc -march=broadwell -mabm -maes --param l1-cache-line-size=64 --param l1-cache-size=32 --param l2-cache-size=3072 -O3 -pipe -fomit-frame-pointer -fPIC -fstack-protector -DSTATIC_replace_MODULES=NULL -DSTATIC_replace_MODULES_PROTO=extern void __replace_dummy_module_proto(void) -MD -Idefault/lib/replace -I../lib/replace -Idefault -I.. -I/usr/local/include -D_GNU_SOURCE=1 -D_XOPEN_SOURCE_EXTENDED=1 ../lib/replace/replace.c -c -o default/lib/replace/replace_2.o
In file included from ../lib/replace/system/filesys.h:126,
                 from ../lib/replace/replace.c:28:
/usr/include/attr/xattr.h:5:2: warning: #warning "Please change your <attr/xattr.h> includes to <sys/xattr.h>" [-Wcpp]
    5 | #warning "Please change your <attr/xattr.h> includes to <sys/xattr.h>"
      |  ^~~~~~~
[ 4/25] Compiling lib/replace/cwrap.c
09:40:23 runner x86_64-pc-linux-gnu-gcc -march=broadwell -mabm -maes --param l1-cache-line-size=64 --param l1-cache-size=32 --param l2-cache-size=3072 -O3 -pipe -fomit-frame-pointer -fPIC -fstack-protector -DSTATIC_replace_MODULES=NULL -DSTATIC_replace_MODULES_PROTO=extern void __replace_dummy_module_proto(void) -MD -Idefault/lib/replace -I../lib/replace -Idefault -I.. -I/usr/local/include -D_GNU_SOURCE=1 -D_XOPEN_SOURCE_EXTENDED=1 ../lib/replace/cwrap.c -c -o default/lib/replace/cwrap_2.o
[ 5/25] Generating PKGCONFIG_talloc.pc
[ 6/25] Generating PKGCONFIG_pytalloc-util.pc
[ 7/25] Compiling lib/replace/replace.c
09:40:23 runner x86_64-pc-linux-gnu-gcc -march=broadwell -mabm -maes --param l1-cache-line-size=64 --param l1-cache-size=32 --param l2-cache-size=3072 -O3 -pipe -fomit-frame-pointer -D_SAMBA_HOSTCC_ -fPIC -fstack-protector -DSTATIC_LIBREPLACE_HOSTCC_MODULES=NULL -DSTATIC_LIBREPLACE_HOSTCC_MODULES_PROTO=extern void __LIBREPLACE_HOSTCC_dummy_module_proto(void) -MD -Idefault/lib/replace -I../lib/replace -Idefault -I.. -I/usr/local/include -D_GNU_SOURCE=1 -D_XOPEN_SOURCE_EXTENDED=1 ../lib/replace/replace.c -c -o default/lib/replace/replace_1.o
In file included from ../lib/replace/system/filesys.h:126,
                 from ../lib/replace/replace.c:28:
/usr/include/attr/xattr.h:5:2: warning: #warning "Please change your <attr/xattr.h> includes to <sys/xattr.h>" [-Wcpp]
    5 | #warning "Please change your <attr/xattr.h> includes to <sys/xattr.h>"
      |  ^~~~~~~
===========================================

In my case with distcc the configure script failed to find standard library functions (rename, strerror, ftruncate, waitpid, ...) and subsequenty talloc complained that:
===========================================
[ 1/25] Compiling lib/replace/replace.c
09:26:37 runner x86_64-pc-linux-gnu-gcc -march=broadwell -mabm -maes --param l1-cache-line-size=64 --param l1-cache-size=32 --param l2-cache-size=3072 -O3 -pipe -fomit-frame-pointer -fPIC -fstack-protector -DSTATIC_replace_MODULES=NULL -DSTATIC_replace_MODULES_PROTO=extern void __replace_dummy_module_proto(void) -MD -Idefault/lib/replace -I../lib/replace -Idefault -I.. -I/usr/local/include -D_GNU_SOURCE=1 -D_XOPEN_SOURCE_EXTENDED=1 ../lib/replace/replace.c -c -o default/lib/replace/replace_2.o
In file included from ../lib/replace/replace.c:26:
../lib/replace/replace.h:195:14: error: conflicting types for ‘sys_errlist’
  195 | extern char *sys_errlist[];
      |              ^~~~~~~~~~~
In file included from /usr/include/stdio.h:781,
                 from ../lib/replace/replace.h:39,
                 from ../lib/replace/replace.c:26:
/usr/include/bits/sys_errlist.h:27:26: note: previous declaration of ‘sys_errlist’ was here
   27 | extern const char *const sys_errlist[];
      |                          ^~~~~~~~~~~
In file included from ../lib/replace/system/filesys.h:126,
                 from ../lib/replace/replace.c:28:
/usr/include/attr/xattr.h:5:2: warning: #warning "Please change your <attr/xattr.h> includes to <sys/xattr.h>" [-Wcpp]
    5 | #warning "Please change your <attr/xattr.h> includes to <sys/xattr.h>"
      |  ^~~~~~~
../lib/replace/replace.c: In function ‘rep_ftruncate’:
../lib/replace/replace.c:60:2: error: #error "you must have a ftruncate function"
   60 | #error "you must have a ftruncate function"
      |  ^~~~~
../lib/replace/replace.c: At top level:
../lib/replace/replace.c:714:5: error: conflicting types for ‘rep_readlink’
  714 | int rep_readlink(const char *path, char *buf, size_t bufsiz)
      |     ^~~~~~~~~~~~
In file included from ../lib/replace/replace.c:26:
../lib/replace/replace.h:330:9: note: previous declaration of ‘rep_readlink’ was here
  330 | ssize_t rep_readlink(const char *path, char *buf, size_t bufsize);
      |         ^~~~~~~~~~~~
distcc[55] ERROR: compile ../lib/replace/replace.c on localhost failed
===========================================