Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 57320 - dev-libs/g-wrap-1.3.4-r1 failed to compile with -Wall (gcc 3.4.1
Summary: dev-libs/g-wrap-1.3.4-r1 failed to compile with -Wall (gcc 3.4.1
Status: RESOLVED DUPLICATE of bug 42666
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Please assign to toolchain
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-07-16 12:51 UTC by Aaron Peterson
Modified: 2007-03-16 15:34 UTC (History)
0 users

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 Aaron Peterson 2004-07-16 12:51:26 UTC
I think this is for scheme...

I have gcc 3.4.1, and I have -Wall Cflag.. 

Reproducible: Always
Steps to Reproduce:
1.
2.
3.

Actual Results:  

Some deprecated features have been used.  Set the environment
variable GUILE_WARN_DEPRECATED to "detailed" and rerun the
program to get more information.  Set it to "no" to suppress
this message.
if /bin/sh ../libtool --mode=compile 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 -pipe -fomit-frame-pointer -Wall  -MT gw-test-glib.lo -MD -MP
-MF ".deps/gw-test-glib.Tpo" \
  -c -o gw-test-glib.lo `test -f 'gw-test-glib.c' || echo './'`gw-test-glib.c; \
then mv ".deps/gw-test-glib.Tpo" ".deps/gw-test-glib.Plo"; \
else rm -f ".deps/gw-test-glib.Tpo"; exit 1; \
fi
mkdir .libs
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 -pipe
-fomit-frame-pointer -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
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]: Leaving directory `/var/tmp/portage/g-wrap-1.3.4-r1/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-r1/work/g-wrap-1.3.4'
make: *** [all] Error 2

!!! ERROR: dev-libs/g-wrap-1.3.4-r1 failed.
!!! Function src_compile, Line 29, Exitcode 2
!!! emake failed

bash-2.05b#


bash-2.05b# emerge --info
Portage 2.0.50-r9 (default-x86-1.4, gcc-3.4.1, glibc-2.3.4.20040619-r0,
2.6.7-gentoo-r11)
=================================================================
System uname: 2.6.7-gentoo-r11 i686 AMD Athlon(TM) XP 1700+
Gentoo Base System version 1.5.1
distcc 2.16 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer -Wall"
CHOST="i686-pc-linux-gnu"
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.3/share/config
/usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /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/terminfo /etc/env.d"
CXXFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer -Wall"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://gentoo.oregonstate.edu
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="3dnow X aac aalib accessibility acl acpi acpi4linux alsa amd apache2 apm
arts artswrappersuid audiofile avi berkdb bidi bonobo canna cdr cjk cjkcrypt
crypt cscope cups dga directfb divx4linux doc dv dvb dvd encode esd evms2 faad
fam fbcon ffmpeg flac flash foomaticdb freetype freewnn fs gdbm ggi gif gnome
gpm gstreamer gtk gtk2 gtkhtml guile imagemagick imap imlib jack java javascript
joystick jpeg kde kerberos krb4 ldap libcss libdvdread libg++ libwww linguas_es
linguas_ru linguas_zh_CN linguas_zh_TW mad maildir md5sum mdb mikmod mmx motif
mozilla mpeg mpeg4 mule mysql nas ncurses net nls nptl nvidia oggvorbis opengl
oss pam pdflib perl pic png postgres python qt quicktime readline samba sasl
scanner sdl slang spell sse ssl svg svga tcltk tcpd tetex theora threads tiff
transcode truetype unicode usb v4l vhosts virus-scan x86 xine xinerama xml2 xmms
xv xvid zeo zlib"
Comment 1 Aaron Peterson 2004-07-26 14:19:45 UTC
still happening, 

I also use the -Wall cflag... to catch buggy code

I think uninitialized use gets caught by that...


upstream?
Comment 2 Aaron Peterson 2004-07-26 14:34:01 UTC
It compiled without the -Wall

This ebuild needs to filter -Wall out... or.. better yet, upstream needs to fix it... ... or make sure the -Wno-uninitialized comes after the -Wall

This is a bug, that is just being ignored / worked arround by the -Wno-uninitialized CFLAG

I don't think that this is a gcc-porting problem, assign to whom?  I looked for other assignies of deb-libs.. but I didn't see any obvious email to add to the cc-list
Comment 3 Mark Loeser (RETIRED) gentoo-dev 2005-11-23 22:52:50 UTC
Don't put -Wall in your cflags.
Comment 4 Marijn Schouten (RETIRED) gentoo-dev 2007-03-16 15:34:36 UTC
reopen
Comment 5 Marijn Schouten (RETIRED) gentoo-dev 2007-03-16 15:34:55 UTC

*** This bug has been marked as a duplicate of bug 42666 ***