Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 332303 - gnome-base/libgnome-keyring-2.30.1 fails to build on arm/ia64/sparc with USE="test"
Summary: gnome-base/libgnome-keyring-2.30.1 fails to build on arm/ia64/sparc with USE=...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL: https://bugzilla.gnome.org/show_bug.c...
Whiteboard:
Keywords:
Depends on:
Blocks: 324077
  Show dependency tree
 
Reported: 2010-08-11 16:50 UTC by Markus Meier
Modified: 2010-10-09 15:16 UTC (History)
4 users (show)

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


Attachments
gnome-base:libgnome-keyring-2.30.1:20100808-131310.log (gnome-base:libgnome-keyring-2.30.1:20100808-131310.log,32.45 KB, text/plain)
2010-08-11 16:51 UTC, Markus Meier
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Meier gentoo-dev 2010-08-11 16:50:24 UTC
seems to be a '-Werror' issue, as USE="test" adds this flag.

 * USE:  arm elibc_glibc kernel_linux test userland_GNU
>>> Unpacking source...
>>> Unpacking libgnome-keyring-2.30.1.tar.bz2 to /var/tmp/portage/gnome-base/libgnome-keyring-2.30.1/work
>>> Source unpacked in /var/tmp/portage/gnome-base/libgnome-keyring-2.30.1/work
>>> Preparing source in /var/tmp/portage/gnome-base/libgnome-keyring-2.30.1/work/libgnome-keyring-2.30.1 ...
 * Fixing OMF Makefiles ...
  [ ok ]
 * Running elibtoolize in: libgnome-keyring-2.30.1
 *   Applying portage-2.2.patch ...
 *   Applying sed-1.5.6.patch ...
 *   Applying as-needed-2.2.6.patch ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/gnome-base/libgnome-keyring-2.30.1/work/libgnome-keyring-2.30.1 ...
 * econf: updating libgnome-keyring-2.30.1/config.guess with /usr/share/gnuconfig/config.guess
 * econf: updating libgnome-keyring-2.30.1/config.sub with /usr/share/gnuconfig/config.sub
./configure --prefix=/usr --build=armv5tel-softfloat-linux-gnueabi --host=armv5tel-softfloat-linux-gnueabi --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --disable-debug --enable-tests --disable-gtk-doc
<snip>
BUILD
  Debug Build:          no
  Tests, -Werror:       yes

>>> Source configured.
<snip>
libtool: compile:  armv5tel-softfloat-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I.. -DPREFIX=\"/usr\" -DBINDIR=\"/usr/bin\" -DLIBEXECDIR=\"/usr/libexec\" -DGNOMELOCA
LEDIR=\"/usr/share/locale\" -I.. -I.. -pthread -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/eggdbus-1 -I/usr/include/glib-2.0 -I/usr/lib/gli
b-2.0/include -DGKR_DBUS_MAJOR_VERSION=1 -DGKR_DBUS_MINOR_VERSION=2 -DGKR_DBUS_MICRO_VERSION=24 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -Wall -Wchar-s
ubscripts -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wcast-align -Wsign-compare -O2 -march=armv5te -pipe -Wno-strict-aliasing -
Wno-sign-compare -Werror -MT gnome-keyring.lo -MD -MP -MF .deps/gnome-keyring.Tpo -c gnome-keyring.c  -fPIC -DPIC -o .libs/gnome-keyring.o
mv -f .deps/gkr-session.Tpo .deps/gkr-session.Plo
/bin/sh ../libtool  --tag=CC   --mode=compile armv5tel-softfloat-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I.. -DPREFIX=\""/usr"\" -DBINDIR=\""/usr/bin"\" -DLIBEXECD
IR=\""/usr/libexec"\" -DGNOMELOCALEDIR=\""/usr/share/locale"\" -I.. -I.. -pthread -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/eggdbus-1 -I/
usr/include/glib-2.0 -I/usr/lib/glib-2.0/include   -DGKR_DBUS_MAJOR_VERSION=1 -DGKR_DBUS_MINOR_VERSION=2 -DGKR_DBUS_MICRO_VERSION=24  -I/usr/include/glib-2.0 -I/u
sr/lib/glib-2.0/include       -Wall       -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes   -Wnested-externs -Wpointer-arith        -Wcast-align -Ws
ign-compare     -O2 -march=armv5te -pipe -Wno-strict-aliasing -Wno-sign-compare -Werror -MT gnome-keyring-memory.lo -MD -MP -MF .deps/gnome-keyring-memory.Tpo -c 
-o gnome-keyring-memory.lo gnome-keyring-memory.c
libtool: compile:  armv5tel-softfloat-linux-gnueabi-gcc -DHAVE_CONFIG_H -I. -I.. -DPREFIX=\"/usr\" -DBINDIR=\"/usr/bin\" -DLIBEXECDIR=\"/usr/libexec\" -DGNOMELOCA
LEDIR=\"/usr/share/locale\" -I.. -I.. -pthread -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/eggdbus-1 -I/usr/include/glib-2.0 -I/usr/lib/gli
b-2.0/include -DGKR_DBUS_MAJOR_VERSION=1 -DGKR_DBUS_MINOR_VERSION=2 -DGKR_DBUS_MICRO_VERSION=24 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -Wall -Wchar-s
ubscripts -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wcast-align -Wsign-compare -O2 -march=armv5te -pipe -Wno-strict-aliasing -
Wno-sign-compare -Werror -MT gnome-keyring-memory.lo -MD -MP -MF .deps/gnome-keyring-memory.Tpo -c gnome-keyring-memory.c  -fPIC -DPIC -o .libs/gnome-keyring-memo
ry.o
cc1: warnings being treated as errors
gnome-keyring.c: In function 'find_network_password_filter':
gnome-keyring.c:3830: error: cast increases required alignment of target type
make[3]: *** [gnome-keyring.lo] Error 1
make[3]: *** Waiting for unfinished jobs....
mv -f .deps/gnome-keyring-memory.Tpo .deps/gnome-keyring-memory.Plo
make[3]: Leaving directory `/var/tmp/portage/gnome-base/libgnome-keyring-2.30.1/work/libgnome-keyring-2.30.1/library'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/gnome-base/libgnome-keyring-2.30.1/work/libgnome-keyring-2.30.1/library'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/gnome-base/libgnome-keyring-2.30.1/work/libgnome-keyring-2.30.1'
make: *** [all] Error 2
 * ERROR: gnome-base/libgnome-keyring-2.30.1 failed:
 *   compile failure
 * 
 * Call stack:
 *     ebuild.sh, line   54:  Called src_compile
 *   environment, line 2880:  Called gnome2_src_compile
 *   environment, line 2228:  Called die
 * The specific snippet of code:
 *       emake || die "compile failure"

Portage 2.1.8.3 (default/linux/arm/10.0/desktop, gcc-4.4.3, glibc-2.11.2-r0, 2.6.34 armv5tel)
=================================================================
System uname: Linux-2.6.34-armv5tel-Feroceon_88FR131_rev_1_-v5l-with-gentoo-2.0.1
Timestamp of tree: Wed, 11 Aug 2010 16:30:01 +0000
app-shells/bash:     4.0_p37
dev-lang/python:     2.5.4-r4, 2.6.5-r2
dev-util/cmake:      2.6.4-r3
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.1-r1
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.13, 2.65
sys-devel/automake:  1.4_p6-r1, 1.5-r1, 1.6.3-r1, 1.7.9-r2, 1.8.5-r4, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.3.4, 4.4.3-r2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="arm"
ACCEPT_LICENSE="* -@EULA"
CBUILD="armv5tel-softfloat-linux-gnueabi"
CFLAGS="-O2 -march=armv5te -pipe"
CHOST="armv5tel-softfloat-linux-gnueabi"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/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="-O2 -march=armv5te -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests collision-protect distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict test unmerge-logs unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://minil/gentoo-portage"
USE="X a52 aac acl acpi alsa apache2 arm berkdb bluetooth branding bzip2 cairo cdr cli consolekit cracklib crypt cxx dbus dts dvdr emboss encode exif fam firefox flac fortran gdbm gif gpm gtk hal iconv jpeg kpathsea lcms ldap libnotify mad mikmod mng modules mp3 mp4 mpeg mudflap ncurses nls nptl nptlonly ogg opengl openmp pam pango pcre pdf perl png ppds pppd python qt3support qt4 readline reflection sdl session spell spl ssl startup-notification svg sysfs tcpd test tiff truetype unicode usb vorbis xcb xml xorg xulrunner xv xvid zlib" 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 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" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fbdev glint mach64 mga nv r128 radeon savage sis tdfx trident    voodoo" 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, FFLAGS, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Markus Meier gentoo-dev 2010-08-11 16:51:22 UTC
Created attachment 242463 [details]
gnome-base:libgnome-keyring-2.30.1:20100808-131310.log
Comment 2 Gilles Dartiguelongue (RETIRED) gentoo-dev 2010-08-25 08:00:14 UTC
looks like -Werror is enabled when building tests. Removing it should make it work.
Comment 3 Pacho Ramos gentoo-dev 2010-09-06 12:01:03 UTC
I have reported this upstream since they are passing Werror when enabling tests intentionally and, probably, they will prefer to get this failures. Anyway, if upstream doesn't care in the next days, feel free to ping us here to drop Werror until properly fixed

Thanks
Comment 4 Arun Raghavan (RETIRED) gentoo-dev 2010-09-08 06:37:43 UTC
Markus, could you try the patch I've attached on the upstream bug report?
Comment 5 Raúl Porcel (RETIRED) gentoo-dev 2010-09-20 20:35:19 UTC
Are you sure this is arch specific? I'm able to reproduce the failure on ia64 too, and the patch doesn't fix it.

libtool: compile:  ia64-unknown-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I.. -DPREFIX=\"/usr\" -DBINDIR=\"/usr/bin\" -DLIBEXECDIR=\"/usr/libexec\" -DGNOMELOCALEDIR=\"/usr/share/locale\" -I.. -I.. -pthread -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/eggdbus-1 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DGKR_DBUS_MAJOR_VERSION=1 -DGKR_DBUS_MINOR_VERSION=2 -DGKR_DBUS_MICRO_VERSION=24 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -Wall -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wcast-align -Wsign-compare -O2 -pipe -Wno-strict-aliasing -Wno-sign-compare -Werror -MT gnome-keyring.lo -MD -MP -MF .deps/gnome-keyring.Tpo -c gnome-keyring.c  -fPIC -DPIC -o .libs/gnome-keyring.o
cc1: warnings being treated as errors
gnome-keyring.c: In function 'find_network_password_filter':
gnome-keyring.c:3830: error: cast increases required alignment of target type
make[3]: *** [gnome-keyring.lo] Error 1
make[3]: Leaving directory `/var/tmp/portage/gnome-base/libgnome-keyring-2.30.1/work/libgnome-keyring-2.30.1/library'
Comment 6 Gilles Dartiguelongue (RETIRED) gentoo-dev 2010-09-20 21:16:43 UTC
it is that or gcc version specific. I tested on amd64 and x86 and had no problem.
Comment 7 Raúl Porcel (RETIRED) gentoo-dev 2010-09-25 16:51:42 UTC
Fails on sparc too :P
Comment 8 Raúl Porcel (RETIRED) gentoo-dev 2010-09-25 16:58:20 UTC
The problem is that both arm/ia64/sparc are arches that don't like unaligned accesses, so i think that if you use -Wcast-align on those arches, it complains.

FYI mozilla did this:

    if test -z "$INTEL_CC"; then
       # Don't use -Wcast-align with ICC
       case "$CPU_ARCH" in
           # And don't use it on hppa, ia64, sparc, since it's noisy there
           hppa | ia64 | sparc)
           ;;
           *)
        _WARNINGS_CFLAGS="${_WARNINGS_CFLAGS} -Wcast-align"
           ;;

Looks like arm is another noisy arch too :)
Comment 9 Pacho Ramos gentoo-dev 2010-10-09 15:16:54 UTC
+  09 Oct 2010; Pacho Ramos <pacho@gentoo.org>
+  libgnome-keyring-2.30.1.ebuild:
+  Drop -Werror even when building tests (bug #332303 by Markus Meier, Raúl
+  Porcel and others).
+