Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 420465 - app-crypt/mit-krb5-1.10.2 - In function ‘profile_copy’: prof_init.c:285:28: error: ‘new_profile’ may be used uninitialized in this function [-Werror=uninitialized]
Summary: app-crypt/mit-krb5-1.10.2 - In function ‘profile_copy’: prof_init.c:285:28: e...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Gentoo Kerberos Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-06-10 05:33 UTC by Torsten Kaiser
Modified: 2012-08-27 19:50 UTC (History)
2 users (show)

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


Attachments
build.log from retrying with gcc-4.6.3 (build.log,43.00 KB, text/plain)
2012-06-11 18:43 UTC, Torsten Kaiser
Details
mit-krb5-1.10.2_uninitilized_amdfam10.patch (mit-krb5-1.10.2_uninitialized_amdfam10.patch,294 bytes, patch)
2012-07-23 19:50 UTC, Eray Aslan
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Torsten Kaiser 2012-06-10 05:33:07 UTC
Trying to upgrade to mit-krb5-1.10.2 with gcc-4.6.3 and -O3 fails with:
x86_64-pc-linux-gnu-gcc -fPIC -DSHARED  -DHAS_STDARG -DLIBDIR=\"/usr/lib64\" -I../../include -I../../include -I.  -DKRB5_DEPRECATED=1 -DKRB5_PRIVATE -I/usr/include/et -pipe -march=amdfam10 -O3 -fomit-frame-pointer -fweb -frename-registers -ftracer -fno-strict-aliasing -fno-strict-overflow -Wall -Wcast-align -Wshadow -Wmissing-prototypes -Wno-format-zero-length -Woverflow -Wstrict-overflow -Wmissing-format-attribute -Wmissing-prototypes -Wreturn-type -Wmissing-braces -Wparentheses -Wswitch -Wunused-function -Wunused-label -Wunused-variable -Wunused-value -Wunknown-pragmas -Wsign-compare -Werror=uninitialized -Werror=declaration-after-statement -Werror=variadic-macros -Werror-implicit-function-declaration -pthread -c prof_err.c -o prof_err.so.o && mv -f prof_err.so.o prof_err.so
x86_64-pc-linux-gnu-gcc -fPIC -DSHARED  -DHAS_STDARG -DLIBDIR=\"/usr/lib64\" -I../../include -I../../include -I.  -DKRB5_DEPRECATED=1 -DKRB5_PRIVATE -I/usr/include/et -pipe -march=amdfam10 -O3 -fomit-frame-pointer -fweb -frename-registers -ftracer -fno-strict-aliasing -fno-strict-overflow -Wall -Wcast-align -Wshadow -Wmissing-prototypes -Wno-format-zero-length -Woverflow -Wstrict-overflow -Wmissing-format-attribute -Wmissing-prototypes -Wreturn-type -Wmissing-braces -Wparentheses -Wswitch -Wunused-function -Wunused-label -Wunused-variable -Wunused-value -Wunknown-pragmas -Wsign-compare -Werror=uninitialized -Werror=declaration-after-statement -Werror=variadic-macros -Werror-implicit-function-declaration -pthread -c prof_init.c -o prof_init.so.o && mv -f prof_init.so.o prof_init.so
prof_init.c: In function ‘profile_copy’:
prof_init.c:285:28: error: ‘new_profile’ may be used uninitialized in this function [-Werror=uninitialized]
prof_init.c:258:15: note: ‘new_profile’ was declared here
cc1: some warnings being treated as errors
make[2]: *** [prof_init.so] Error 1
make[2]: Leaving directory `/var/tmp/portage/app-crypt/mit-krb5-1.10.2/work/krb5-1.10.2/src/util/profile'
make[1]: *** [all-recurse] Error 1
make[1]: Leaving directory `/var/tmp/portage/app-crypt/mit-krb5-1.10.2/work/krb5-1.10.2/src/util'
make: *** [all-recurse] Error 1
 * ERROR: app-crypt/mit-krb5-1.10.2 failed (compile phase):
 *   emake failed


Reproducible: Always

Steps to Reproduce:
1. emerge gcc:4.6
2. gcc-config x86_64-pc-linux-gnu-4.6.3
3. emerge =mit-krb5-1.10.2



CFLAGS="-pipe -march=amdfam10 -O3 -fomit-frame-pointer -fweb -frename-registers -ftracer"
Using gcc-4.5.3-r2 with these flags compiles successfully.
Comment 1 Michael Weber (RETIRED) gentoo-dev 2012-06-11 10:30:00 UTC
Please attach the complete build.log and the outpuf of `emerge --info` as comment.
Comment 2 Torsten Kaiser 2012-06-11 18:43:38 UTC
Created attachment 315025 [details]
build.log from retrying with gcc-4.6.3

Portage 2.1.10.65 (default/linux/amd64/10.0, gcc-4.6.3, glibc-2.15-r2, 3.5.0-rc2 x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-3.5.0-rc2-x86_64-AMD_Phenom-tm-_II_X6_1090T_Processor-with-gentoo-2.1
Timestamp of tree: Mon, 11 Jun 2012 16:05:01 +0000
app-shells/bash:          4.2_p29
dev-java/java-config:     2.1.12
dev-lang/python:          2.7.3-r2, 3.2.3-r1
dev-util/cmake:           2.8.8-r2
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.1-r1
sys-apps/openrc:          0.10.2
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.5, 1.12.1
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.5.3-r2, 4.6.3
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 3.4 (virtual/os-headers)
sys-libs/glibc:           2.15-r2
Repositories: gentoo nx x11 sunrise local
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-pipe -march=amdfam10 -O3 -fomit-frame-pointer -fweb -frename-registers -ftracer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /var/bind /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.4/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cli-php5.4/ext-active/ /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="-pipe -march=amdfam10 -O3 -fomit-frame-pointer -fweb -frename-registers -ftracer"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps y --jobs=6 --load-average=7 --keep-going"
FEATURES="assume-digests binpkg-logs buildpkg config-protect-if-modified distlocks ebuild-locks fixlafiles news parallel-fetch parse-eapi-ebuild-head protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_GB.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="de en"
MAKEOPTS="-j6"
PKGDIR="/var/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --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="/usr/portage-local/layman/nx /usr/portage-local/layman/x11 /usr/portage-local/layman/sunrise /root/ebuilds"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext 7zip S3TC X a52 aac aalib ace acl acpi ads aften aio alisp alsa altenburgcards amarok amd64 amr amrnb amrr amrwb animgif ao apache2 apng aqua_theme archive async audacious audiofile autoipd avahi bcel bcp bdf beagle berkdb bigpatch binfilter bittorrent bl blas blender-game bluetooth bonusscripts boost bzip2 c++ cairo calendar caps carbone_theme cblas-external cdda cdio cdparanoia cdr cgi chm chroot cifsupcall cisco cli clucene cmdctrl cmdsubmenu compress connectionstatus consolekit contactnotes corefonts cpio cpufreq cracklib crypt cscope css ctype cups curl custom-optimization cutterlimit cutterqueue cuttime cvs cvsgraph cxx dar64 dbase dbm dbus dbx dc1394 declarative demo device-mapper divx djvu dlz dmi dmx dnotify doc domainkeys double-precision dpmod dri dts dv dvb dvbplayer dvd dvdarchive dvdchapjump dvdr dvdread dvi ecc editor egl elf emoticon encode enscript equalizer excel exif exiv2 expat extensions extra extra-algorithms extra-cardsets extraengine extras fam fat fbcon festival ffmpeg fftw file file-icons flac fluidsynth fmod font-server fontconfig fortran fping fpx ftp fts3 fuse g3dvl gcj gd gdbm gecko geoip gif gimp git gkrellm glib glibc-omitfp glitz glsa glut gmedia gmp gnutls gopher gpac gpg gpgme gphoto2 gpm graphics graphite graphviz gs gstreamer gtk gtk3 gudev gutenprint gzip hddtemp hdri highlight history html htmlhandbook http httpd hvm hwdb ical iceweasel iconv icq icu id3 id3tag ide idea ieee1394 image imagemagick imap infowidget inherit-graph inkjar innodb inotify ipfilter ipsec iptc ipv6 irc irrlicht ithreads jabber jack jad jadetex java java-external java6 jce jingle jit jni john jpeg jpeg2k juju jumpplay kde kdecards kdepim kexi kipi kmid kpathsea ktts latex lcms ldap libcaca libkms libmpeg2 libnotify libsamplerate libsexy libssh2 libvisual libwww liemikuutio lights lirc lircsettings livebuffer llvm lm_sensors logrotate logviewer loop-playback lua lucene lyx lzma lzo mad magic mail mailwrapper mainmenuhooks maps masquerade math matroska maya-shaderlibrary mbox mbrola md5sum mdev mdnsresponder-compat meanwhile menu-plugin menubar menuorg metric mhash midi mikmod mime mimencode minizip mixer mjpeg mmap mmx mmxext mng mod modplug modules motif mounts-check mozdevelop mozdom mozilla mp2 mp3 mp4 mp4live mpd mpeg mpeg2 mpg123 mplayer mppe-mppc mpu401 mschap msn mtp mudflap multilib multiprocess musepack music mysql mysqli mythtv nagios-dns nagios-ntp nagios-ping nagios-ssh nat ncurses net netjack netmeeting network network-cron networkmanager nfs nfsidmap nfsv4 nfsv41 nls nntp normalize nova nptl nsplugin nspr nss ntfs ntfsprogs nuv offensive ogg ogg123 ole openexr opengl openmp openssh openssl openvg openvpn pam pango pascal pcap pcre pda pdf pdfimport perl php physfs pixmaps pkcs11 plasma player pmu png policykit posix postfix postscript povray pppd pptp pth pulseaudio python qemu qt3support qt4 query-browser quicktime radio rar raw rc5 rdesktop readline realmedia remix replaygain restrict-javascript rle rss rtc rtmp rtsp samba sasl sbig scanner screen script sdk sdl sdl-image sdl-sound sdlaudio seamonkey search secure-delete semantic-desktop sensord server session shared-dricore shorten shout sid signatures simplexml skins smime smp smtp sndfile sockets socks5 solver songs sortrecords sound soundex sounds sox speech speedo speex spell spice sql sqlite sqlite3 sse sse2 sse3 sse4a ssl stars stats stemmer stlport stream submenu subtitles subversion suhosin svg svgz swat sylpheed sysfs syslog system-libvncserver system-sqlite systray sysvipc szip t1lib taglib tagwriting tb4 tcpd teletext tetex tex texteffect textures tftp tga themes theora thesaurus threads threadsafe tidy tiff timercmd timerinfo tk tls toolbar tools transcode trayicon truetype tta ttxtsubs twolame ui unicode unlock-notify usb usbredir userfiles utils uudeview uuencode v4l v4l2 valgrind vamp vcd vcdx vdr video videos vim-syntax visualization vlm vnc vncviewer voice volctrl vorbis vorbis-psy vpx wav wavpack web webdav webinterface webkit webm webp wifi winpopup wireshark wma wmf wmp wxwidgets x264 xa xanim xcb xcf xcomposite xen xext xface xforms xfs xft xhtml xine xinerama xml xorg xosd xplanet xpm xrandr xrender xscreensaver xsl xspice xv xvfb xvid xvmc xvnc yahoo yv12 zip zlib zrtp zvbi" 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" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="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 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" APACHE2_MPMS="worker" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" 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 ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="de en" PHP_TARGETS="php5-3" PYTHON_TARGETS="python3_2 python2_7" QEMU_SOFTMMU_TARGETS="x86_64 arm cris i386 m68k microblaze mips mips64 mips64el mipsel ppc ppc64 ppcemb sh4 sh4eb sparc sparc64" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="dummy fbdev v4l vesa 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:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

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

app-crypt/mit-krb5-1.10.2 was built with the following:
USE="doc keyutils (multilib) pkinit threads -openldap -test -xinetd" ELIBC="glibc" KERNEL="linux" USERLAND="GNU"
CFLAGS="-pipe -march=amdfam10 -O3 -fomit-frame-pointer -fweb -frename-registers -ftracer -fno-strict-aliasing -fno-strict-overflow"
CXXFLAGS="-pipe -march=amdfam10 -O3 -fomit-frame-pointer -fweb -frename-registers -ftracer -fno-strict-aliasing -fno-strict-overflow"

(The "mit-krb5-1.10.2 was built with" is from the successfull try with gcc-4.5.3. I did not change anything else except switching the gcc versions.)
Comment 3 Eray Aslan gentoo-dev 2012-07-23 19:50:43 UTC
Created attachment 319024 [details, diff]
mit-krb5-1.10.2_uninitilized_amdfam10.patch

Please check if march=native still errors out.  Also, can you please check if the attched patch works as intended?  Thank you.
Comment 4 James Cloos 2012-08-27 17:37:38 UTC
I can confirm that the patch in comment #3 enables 1.10.3 to successfully build (using gcc-4.7).
Comment 5 Eray Aslan gentoo-dev 2012-08-27 19:50:39 UTC
Thanks for confirming.  Patch added without a revbump.