Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 42666 - dev-libs/g-wrap-1.3.4 fails to build with -Wall
Summary: dev-libs/g-wrap-1.3.4 fails to build with -Wall
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Alastair Tse (RETIRED)
URL:
Whiteboard:
Keywords:
: 57320 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-02-23 15:55 UTC by Justin Findlay
Modified: 2007-03-16 15:34 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Justin Findlay 2004-02-23 15:55:47 UTC
In a plain sandbox, g-wrap builds successfully while directly calling configure and make, but when I ebuild it, it doesn't build successfully.

justin@archimedes justin $ cp /usr/portage/distfiles/g-wrap-1.3.4.tar.gz .
justin@archimedes justin $ tar -xzf g-wrap-1.3.4.tar.gz && cd g-wrap-1.3.4
justin@archimedes g-wrap-1.3.4 $ ./configure && make

Successful build.

archimedes root # emerge -v g-wrap
#...
gcc -DHAVE_CONFIG_H -I. -I. -I.. -O2 -Wall -Wno-uninitialized -Werror -g -I ../g-wrap -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/include/glib-1.2 -I/usr/lib/glib/include -march=athlon-xp -fmessage-length=0 -pipe -Wall -MT gw-test-glib.lo -MD -MP -MF .deps/gw-test-glib.Tpo -c gw-test-glib.c  -fPIC -DPIC -o .libs/gw-test-glib.lo
rm -f .libs/gw-test-standard.lo
gcc -DHAVE_CONFIG_H -I. -I. -I.. -O2 -Wall -Wno-uninitialized -Werror -g -I ../g-wrap -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/include/glib-1.2 -I/usr/lib/glib/include -march=athlon-xp -fmessage-length=0 -pipe -Wall -MT gw-test-standard.lo -MD -MP -MF .deps/gw-test-standard.Tpo -c gw-test-standard.c  -fPIC -DPIC -o .libs/gw-test-standard.lo
gw-test-glib.c: In function `gw__tmp18_gw_test_gw_standard_echo_gchars_caller_owned_wrapper':
gw-test-glib.c:159: warning: `gw__c_arg0' might be used uninitialized in this function
make[2]: *** [gw-test-glib.lo] Error 1
make[2]: *** Waiting for unfinished jobs....
gcc -DHAVE_CONFIG_H -I. -I. -I.. -O2 -Wall -Wno-uninitialized -Werror -g -I ../g-wrap -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/include/glib-1.2 -I/usr/lib/glib/include -march=athlon-xp -fmessage-length=0 -pipe -Wall -MT gw-test-standard.lo -MD -MP -MF .deps/gw-test-standard.Tpo -c gw-test-standard.c -o gw-test-standard.o >/dev/null 2>&1
mv -f .libs/gw-test-standard.lo gw-test-standard.lo
make[2]: Leaving directory `/var/tmp/portage/g-wrap-1.3.4/work/g-wrap-1.3.4/test'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/g-wrap-1.3.4/work/g-wrap-1.3.4'
make: *** [all] Error 2
 
!!! ERROR: dev-libs/g-wrap-1.3.4 failed.
!!! Function src_compile, Line 35, Exitcode 2
!!! (no error message)

archimedes root # emerge -v info
Portage 2.0.50-r1 (default-x86-1.4, gcc-3.3.2, glibc-2.3.2-r9, 2.6.3-gentoo-r1)
=================================================================
System uname: 2.6.3-gentoo-r1 i686 AMD Athlon(TM) XP 2100+
Gentoo Base System version 1.4.3.13
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.58-r1
Automake: sys-devel/automake-1.7.7
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE=""
ARCH="x86"
AUTOCLEAN="yes"
BASH_ENV="/etc/portage/bashrc"
CC="gcc"
CCACHE_SIZE="2G"
CFLAGS="-march=athlon-xp -fmessage-length=0 -O3 -pipe -Wall"
CG_COMPILER_EXE="/usr/bin/cgc"
CHOST="i686-pc-linux-gnu"
CLASSPATH="/opt/blackdown-jdk-1.4.1/jre/lib/rt.jar:.:."
CLEAN_DELAY="5"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CVS_RSH="ssh"
CXX="g++"
CXXFLAGS="-march=athlon-xp -fmessage-length=0 -O3 -pipe -Wall"
DISPLAY=":0.0"
DISTDIR="/usr/portage/distfiles"
EDITOR="/usr/bin/vim"
FEATURES="autoaddcvs buildpkg ccache sandbox sfperms strict userpriv usersandbox"
FETCHCOMMAND="/usr/bin/wget -t 5 --passive-ftp -P ${DISTDIR} ${URI}"
GDK_USE_XFT="1"
GENTOO_MIRRORS="ftp://gentoo.noved.org/ http://gentoo.noved.org/ http://128.213.5.34/gentoo/ http://gentoo.chem.wisc.edu/gentoo/ http://gentoo.ccccom.com"
GLIBC_SSP_CHECKED="1"
GRP_STAGE23_USE="ipv6 pam tcpd readline nls ssl gpm perl python berkdb acl ncurses"
GUILE_LOAD_PATH="/usr/share/guile/1.6"
G_BROKEN_FILENAMES="1"
HOME="/root"
HOSTNAME="archimedes"
INFODIR="/usr/share/info:/usr/X11R6/info"
INFOPATH="/usr/share/info:/usr/share/gcc-data/i686-pc-linux-gnu/3.3/info"
INPUTRC="/etc/inputrc"
JAVAC="/opt/blackdown-jdk-1.4.1/bin/javac"
JAVA_HOME="/opt/blackdown-jdk-1.4.1"
JDK_HOME="/opt/blackdown-jdk-1.4.1"
KDEDIR="/usr/kde/3.2"
KDEDIRS="/usr"
LESS="-R"
LESSOPEN="|lesspipe.sh %s"
LOGNAME="root"
LS_COLORS="no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.bz2=01;31:*.deb=01;31:*.rpm=01;31:*.jpg=01;35:*.gif=01;35:*.bmp=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.png=01;35:*.mpg=01;35:*.avi=01;35:*.fli=01;35:*.gl=01;35:*.dl=01;35:"
MAKEOPTS="-j2"
MANPATH="/usr/share/man:/usr/local/share/man:/usr/share/gcc-data/i686-pc-linux-gnu/3.3/man:/usr/X11R6/man::/opt/blackdown-jdk-1.4.1/man:/usr/qt/3/man:/usr/qt/3/doc/man"
MOZILLA_FIVE_HOME="/usr/lib/mozilla"
NOCOLOR="false"
PAGER="/usr/bin/less"
PATH="/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/opt/bin:/usr/i686-pc-linux-gnu/gcc-bin/3.3:/usr/X11R6/bin:/opt/blackdown-jdk-1.4.1/bin:/opt/blackdown-jdk-1.4.1/jre/bin:/usr/qt/3/bin:/usr/kde/3.2/sbin:/usr/kde/3.2/bin:/usr/kde/3.1/sbin:/usr/kde/3.1/bin"
PKGDIR="/usr/portage/packages"
PORTAGE_BINHOST_CHUNKSIZE="3000"
PORTAGE_CACHEDIR="/var/cache/edb/dep/"
PORTAGE_CALLER="emerge"
PORTAGE_GID="250"
PORTAGE_MASTER_PID="23924"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PRELINK_PATH=""
PRELINK_PATH_MASK="/opt"
PS1="\[\033[01;31m\]\h \[\033[01;34m\]\W \$ \[\033[00m\]"
PWD="/root"
PYTHONDOCS="/usr/share/doc/python-docs-2.3.3/html"
QMAKESPEC="linux-g++"
QTDIR="/usr/qt/3"
RESUMECOMMAND="/usr/bin/wget -c -t 5 --passive-ftp -P ${DISTDIR} ${URI}"
RPMDIR="/usr/portage/rpm"
RSYNC_RETRIES="3"
RSYNC_TIMEOUT="180"
SANE_CONFIG_DIR="/etc/sane.d"
SGML_CATALOG_FILES="/etc/sgml/sgml-ent.cat:/etc/sgml/sgml-docbook.cat:/etc/sgml/dsssl-docbook-stylesheets.cat:/etc/sgml/openjade-1.3.2.cat:/etc/sgml/sgml-docbook-3.0.cat:/etc/sgml/sgml-docbook-3.1.cat:/etc/sgml/sgml-docbook-4.1.cat:/etc/sgml/sgml-docbook-4.0.cat:/etc/sgml/sgml-docbook-4.2.cat:/etc/sgml/sgml-lite.cat"
SHELL="/bin/bash"
SHLVL="1"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
TERM="xterm"
USE="3dfx 3dnow X Xaw3d acl acpi adns alsa apache2 apm arts atlas avi berkdb bidi bonobo cdr cjk crypt cscope cups curl dga directfb doc dvd dvdr encode esd ethereal evo fam fastcgi fbcon flac foomaticdb freetds gb gd gdbm ggi gif glut gnome gphoto2 gpm gstreamer gtk gtk2 gtkhtml guile imap imlib innodb ipv6 java jikes jpeg junit kde kerberos krb4 ladcca ldap lems lesstif libg++ libgda libwww mad maildir mbox mcal mikmod mmx motif mozilla mpeg mpi mysql nas ncurses nls odbc oggvorbis opengl oss pam pda pdflib perl plotutils png postgres ppds prelude python qt quicktime readline ruby sasl scanner sdl slang slp snmp socks5 speex spell sqlite ssl svga tcltk tcpd tetex tiff truetype unicode usb wxwindows x86 xinerama xml2 xmms xosd xv zlib"
USER="root"
USERLAND="GNU"
USE_EXPAND="VIDEO_CARDS INPUT_DEVICES LINGUAS"
XARGS="xargs -r"
XINITRC="/etc/X11/xinit/xinitrc"
_="/usr/bin/emerge"
Comment 1 Alastair Tse (RETIRED) gentoo-dev 2004-02-28 14:21:54 UTC
can you try disabling ccache and removing things from your CFLAGS like the -f* options?
Comment 2 Justin Findlay 2004-02-28 16:55:08 UTC
According to your suggestions, I played with the CFLAGS and FEATURES values and discovered that the '-Wall' gcc flag was causing the error, perhaps because glimpse thinks there is depreciated code in the package.  Thanks, it emerges if I remove that flag.
Comment 3 Alastair Tse (RETIRED) gentoo-dev 2004-02-28 17:11:04 UTC
yeah, -Wall combined with -Werror will abort anything with the slightest warning. i missed that when i looked at the compile command. its not advised to have -Wall in your CFLAGS. 
Comment 4 Marijn Schouten (RETIRED) gentoo-dev 2007-03-16 15:34:55 UTC
*** Bug 57320 has been marked as a duplicate of this bug. ***