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

Bug 521496

Summary: net-libs/xrootd-4.0.0 - .../work/xrootd-4.0.0/src/XrdApps/XrdCpy.cc:753:42: error: 'iKey.genDestCgi(XrdClient*, const char*)::<anonymous union>::intV[1]' may be used uninitialized in this function [-Werror=uninitialized]
Product: Gentoo Linux Reporter: Davide <sbdmmg>
Component: Current packagesAssignee: Gentoo Science Physics related packages <sci-physics>
Status: RESOLVED FIXED    
Severity: normal CC: bircoph, sbdmmg
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log

Description Davide 2014-08-29 10:47:56 UTC
Created attachment 383902 [details]
build.log

Perhaps similar to https://bugs.gentoo.org/show_bug.cgi?id=520632 ?
(but here with net-libs/xrootd-4.0.0)


Portage 2.2.8-r1 (default/linux/x86/13.0, gcc-4.7.3, glibc-2.19-r1, 3.14.16-gentoo i686)
=================================================================
                        System Settings
=================================================================
System uname: Linux-3.14.16-gentoo-i686-Intel-R-_Core-TM-_i5-3427U_CPU_@_1.80GHz-with-gentoo-2.2
KiB Mem:     3328828 total,    199544 free
KiB Swap:    3999996 total,   2498580 free
Timestamp of tree: Sat, 23 Aug 2014 20:15:01 +0000
ld GNU ld (Gentoo 2.23.2 p1.0) 2.23.2
app-shells/bash:          4.2_p45
dev-java/java-config:     2.2.0
dev-lang/python:          2.7.7, 3.3.5-r1
dev-util/cmake:           2.8.12.2-r1
dev-util/pkgconfig:       0.28-r1
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.12.6, 1.13.4
sys-devel/binutils:       2.23.2
sys-devel/gcc:            4.5.4, 4.7.3-r1
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2-r1
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.13 (virtual/os-headers)
sys-libs/glibc:           2.19-r1
Repositories: gentoo science x-portage
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
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 /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -march=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -march=i686 -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"
FFLAGS="-O2 -march=i686 -pipe"
GENTOO_MIRRORS="http://mirror.mcs.anl.gov/pub/gentoo/ rsync://mirror.mcs.anl.gov/gentoo/ ftp://mirror.mcs.anl.gov/pub/gentoo/"
LANG="C"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j5"
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"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/science /usr/local/portage"
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa berkdb bzip2 cdr cli consolekit cracklib crypt cxx dbus divx dri dvd flac fortran gdbm gif iconv icu id3 ipv6 kde lame midi modules mp3 mp4 mplayer ncurses nls nptl ogg opengl openmp pam pcre policykit pulseaudio qt3support qt4 readline realmedia session ssl svg tcpd udev unicode v4l v4l2 video webkit wmp x86 zlib" ABI_X86="32" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 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" 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="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="intel" 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:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 Davide 2014-08-29 10:49:32 UTC
# emerge -pqv '=net-libs/xrootd-4.0.0::gentoo'
[ebuild     U ] net-libs/xrootd-4.0.0 [3.2.1] USE="readline ssl -doc -fuse -kerberos -perl {-test%}"
Comment 2 Davide 2014-08-30 16:41:32 UTC
On the same machine, when trying to compile
without portage, the build of v4.0.3 works fine,
while v4.0.0 fails.
It probably needs just a version bump 4.0.0->4.0.3

----------------------------------
cd /tmp
wget http://xrootd.org/download/v4.0.3/xrootd-4.0.3.tar.gz
tar xzf xrootd-4.0.3.tar.gz
mkdir xrootd-4.0.3-install xrootd-4.0.3-build
cd xrootd-4.0.3-build
cmake /tmp/xrootd-4.0.3/ -DCMAKE_INSTALL_PREFIX=/tmp/xrootd-4.0.3-install/ -DENABLE_PERL=FALSE
make
...

Linking CXX executable xrootd
[ 98%] Built target xrootd
Scanning dependencies of target xrootdfs
[ 99%] Building CXX object src/CMakeFiles/xrootdfs.dir/XrdFfs/XrdFfsXrootdfs.cc.o
Linking CXX executable xrootdfs
[ 99%] Built target xrootdfs
Scanning dependencies of target xrdcp
[ 99%] Building CXX object src/XrdCl/CMakeFiles/xrdcp.dir/XrdClCopy.cc.o
Linking CXX executable xrdcp
[ 99%] Built target xrdcp
Scanning dependencies of target xrdfs
[100%] Building CXX object src/XrdCl/CMakeFiles/xrdfs.dir/XrdClFS.cc.o
[100%] Building CXX object src/XrdCl/CMakeFiles/xrdfs.dir/XrdClFSExecutor.cc.o                                                                                                                                                   
Linking CXX executable xrdfs
[100%] Built target xrdfs
Comment 3 Davide 2014-09-21 07:23:37 UTC
Hi

  If I move to net-libs/xrootd-4.0.3 with a local overlay,
the package compiles just fine on x86.
Using the same 'ebuild' and the same 'files'.
It really looks like a version bump 4.0.0->4.0.3 would
suffice (see comment#2).
Can you add 4.0.3 to the tree, please?
Comment 4 Andrew Savchenko gentoo-dev 2014-10-24 23:07:37 UTC
Hello,

I bumped xrootd to 4.0.4 in science overlay.

Meanwhile real cause of your prublem is -Werror flag and update alone is not enough in general case, since different CXXFLAGS combinations on different hosts may produce different warnings. That's why it is general Gentoo policy to remove -Werror from *FLAGS. This is done for 4.0.4
Comment 5 Davide 2014-12-07 02:26:23 UTC
Thank you, it works like a charm.