Hi -

On Tue, Jul 04, 2006 at 12:50:40AM +0200, Martin Michlmayr wrote:
> Package: systemtap
> [...]
> Your package fails to build with GCC 4.2.  [...]
> ...
> > if gcc -D_GNU_SOURCE -DHAVE_CONFIG_H 
> > -DOBJDIR=\"/build/tbm/systemtap-0.0.20060610/build-tree/src/build-elfutils/libebl\"
> >  -I. -I../../../../build-tree/elfutils-0.121/libebl -I.. 
> > -I../../../../build-tree/elfutils-0.121/libebl 
> > -I../../../../build-tree/elfutils-0.121/libelf 
> > -I../../../../build-tree/elfutils-0.121/libdw 
> > -I../../../../build-tree/elfutils-0.121/lib -I..   -fpic -Wall -Wshadow 
> > -Werror -Wunused -Wextra -Wformat=2 -std=gnu99 -g -O2 -MT eblobjnote.o -MD 
> > -MP -MF ".deps/eblobjnote.Tpo" -c -o eblobjnote.o 
> > ../../../../build-tree/elfutils-0.121/libebl/eblobjnote.c; \
> >     then mv -f ".deps/eblobjnote.Tpo" ".deps/eblobjnote.Po"; else rm -f 
> > ".deps/eblobjnote.Tpo"; exit 1; fi
> > cc1: warnings being treated as errors
> > ../../../../build-tree/elfutils-0.121/libebl/eblobjnote.c: In function 
> > 'ebl_object_note':
> > ../../../../build-tree/elfutils-0.121/libebl/eblobjnote.c:80: warning: 
> > statement with no effect

According to Roland McGrath, this is likely a bug in gcc rather than
elfutils.  Would you mind redirecting the bug report in that
direction?  Here is the subject bit of elfutils source (though it may
not be quite enough to trigger the warning):

     69   if (! ebl->object_note (name, type, descsz, desc))
     70     /* The machine specific function did not know this type.  */
     71     switch (type)
     72       {
     73       case NT_VERSION:
     74         if (strcmp (name, "GNU") == 0 && descsz >= 8)
     75           {
     76             struct
     77             {
     78               uint32_t os;
     79               uint32_t version[descsz / 4 - 1];
     80             } *tag = (__typeof (tag)) desc;
     81
     82             const char *os;
     83             switch (tag->os)
     84               {
     85               case ELF_NOTE_OS_LINUX:
     86                 os = "Linux";
     87                 break;

- FChE


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to