This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
Re: 20071013 snapshot fails to build on s390x
- From: William Cohen <wcohen at redhat dot com>
- To: David Wilder <dwilder at us dot ibm dot com>
- Cc: SystemTAP <systemtap at sources dot redhat dot com>, dsmith at redhat dot com
- Date: Sun, 14 Oct 2007 21:49:13 -0400
- Subject: Re: 20071013 snapshot fails to build on s390x
- References: <47124F59.5020608@us.ibm.com> <4712552F.2080509@us.ibm.com>
David Wilder wrote:
David Wilder wrote:
It build ok on i386 but not on s390x.
Here is the error.
mv -f .deps/stap-translate.Tpo .deps/stap-translate.Po
g++ -DHAVE_CONFIG_H -I. -DBINDIR='"/usr/local/bin"'
-DPKGDATADIR='"/usr/local/share/systemtap"'
-DPKGLIBDIR='"/usr/local/libexec/systemtap"' -Iinclude-elfutils -Wall
-Wextra -Werror -g -O2 -MT stap-tapsets.o -MD -MP -MF
.deps/stap-tapsets.Tpo -c -o stap-tapsets.o `test -f 'tapsets.cxx' ||
echo './'`tapsets.cxx
tapsets.cxx: In member function ‘virtual void
mark_query::handle_query_module()’:
tapsets.cxx:5221: error: cast from ‘char*’ to ‘unsigned int’ loses
precision
tapsets.cxx:5223: error: cast from ‘char*’ to ‘unsigned int’ loses
precision
tapsets.cxx:5239: error: cast from ‘char*’ to ‘uint’ loses precision
tapsets.cxx:5240: error: cast from ‘char*’ to ‘uint’ loses precision
tapsets.cxx:5254: error: cast from ‘char*’ to ‘uint’ loses precision
tapsets.cxx:5258: error: cast from ‘char*’ to ‘uint’ loses precision
tapsets.cxx:5266: error: cast from ‘char*’ to ‘uint’ loses precision
tapsets.cxx:5268: error: cast from ‘char*’ to ‘uint’ loses precision
make[2]: *** [stap-tapsets.o] Error 1
Here is the patch.
David S. Please review my patch and make sure it won't break your last
update.
http://sources.redhat.com/ml/systemtap-cvs/2007-q4/msg00077.html
Dave..
This patch is also needed for x86_64. -Will