This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

elfutils issues when building systemtap rpm from snapshot on rawhide


When attempting to build a systemtap rpm with elfutils-0.116 and a snapshot of the systemtap I ran across a problem on i386 rawhide. I did not see this problem when building the elfutil-0.116-1.src.rpm nor was it a problem on FC4. Below is the portion of the output listing the error messages and the problem lines in line2addr.c from the attempted rawhide build.

-Will

if gcc -DHAVE_CONFIG_H -D_GNU_SOURCE -I. -I/home/wcohen/rh-rpms/BUILD/systemtap-0.4.2/build-elfutils/../elfutils-0.116/tests -I.. -I/home/wcohen/rh-rpms/BUILD/systemtap-0.4.2/build-elfutils/../elfutils-0.116/libasm -I/home/wcohen/rh-rpms/BUILD/systemtap-0.4.2/build-elfutils/../elfutils-0.116/libdw -I/home/wcohen/rh-rpms/BUILD/systemtap-0.4.2/build-elfutils/../elfutils-0.116/libdwfl -I/home/wcohen/rh-rpms/BUILD/systemtap-0.4.2/build-elfutils/../elfutils-0.116/libebl -I/home/wcohen/rh-rpms/BUILD/systemtap-0.4.2/build-elfutils/../elfutils-0.116/libelf -I/home/wcohen/rh-rpms/BUILD/systemtap-0.4.2/build-elfutils/../elfutils-0.116/lib -I.. -Wall -Werror -Wextra -std=gnu99 -Wformat=2 -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=pentium4 -fasynchronous-unwind-tables -MT addrscopes.o -MD -MP -MF ".deps/addrscopes.Tpo" -c -o addrscopes.o /home/wcohen/rh-rpms/BUILD/systemtap-0.4.2/build-elfutils/../elfutils-0.116/tests/addrscopes.c; \
then mv -f ".deps/addrscopes.Tpo" ".deps/addrscopes.Po"; else rm -f ".deps/addrscopes.Tpo"; exit 1; fi
cc1: warnings being treated as errors
/home/wcohen/rh-rpms/BUILD/systemtap-0.4.2/build-elfutils/../elfutils-0.116/tests/line2addr.c: In function 'handle_module':
/home/wcohen/rh-rpms/BUILD/systemtap-0.4.2/build-elfutils/../elfutils-0.116/tests/line2addr.c:77: warning: too few arguments for format
/home/wcohen/rh-rpms/BUILD/systemtap-0.4.2/build-elfutils/../elfutils-0.116/tests/line2addr.c: In function 'main':
/home/wcohen/rh-rpms/BUILD/systemtap-0.4.2/build-elfutils/../elfutils-0.116/tests/line2addr.c:107: warning: format '%a' expects type 'float *', but argument 3 has type 'char **'


line 77:


printf (":%d");


looks like it should be:

printf (":%d", col);

line 107:

      switch (sscanf (a.arg, "%a[^:]:%d", &a.file, &a.line))
	{

In some versions %a spec allocates memory, but in the rawhide compiler
(C99) it is equivalent to %f and causes a mismatch.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]