<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">On 07/11/2017 04:43 AM, Burton, Ross
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAJTo0Lb6wS0cYqDmg87_sXh3+SV4mR+kmMA26XUKtscZ4B36GQ@mail.gmail.com">
<div dir="ltr">
<div class="gmail_extra"><br>
<div class="gmail_quote">On 9 July 2017 at 08:35, Soren
Brinkmann <span dir="ltr"><<a
href="mailto:soren.brinkmann@xilinx.com" target="_blank"
moz-do-not-send="true">soren.brinkmann@xilinx.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px
0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">
<div id="gmail-:3hs" class="gmail-a3s gmail-aXjCH
gmail-m15d26481ae6626fa">Signed-off-by: Soren Brinkmann
<<a href="mailto:soren.brinkmann@xilinx.com"
moz-do-not-send="true">soren.brinkmann@xilinx.com</a>><br>
---<br>
v3:<br>
- rebased onto latest master branch<br>
v2:<br>
- no change<br>
</div>
</blockquote>
</div>
<br>
Fails to build on PPC if ptest is enabled: <a
href="http://errors.yoctoproject.org/Errors/Details/147237/"
moz-do-not-send="true">http://errors.yoctoproject.org/Errors/Details/147237/</a></div>
</div>
</blockquote>
<br>
<br>
I find that both valgrind 3.12 and the proposed patch fail to build
with ppc64. Valgrind 3.12 builds with ppc64 if I switch GCCVERSION
back to 6.3<br>
<br>
I suppose the 7.1 compiler is uncovering some issues with some of
the assembly language that has gone undetected before. <br>
<br>
<br>
Using 3.12 with master branch / GCCVERSION 7.1 fails in coregrind:<br>
<br>
<br>
powerpc64-poky-linux-gcc -mhard-float -m64 -mcpu=e5500
--sysroot=/build/yocto/build_master/tmp/work/ppc64e5500-poky-linux/valgrind/3.12.0-r0/recipe-sysroot
-DHAVE_CONFIG_H -I. -I../../valgrind-3.12.0/coregrind -I..
-I../../valgrind-3.12.0 -I../../valgrind-3.12.0/include
-I../../valgrind-3.12.0/VEX/pub -I../VEX/pub -DVGA_ppc64be=1
-DVGO_linux=1 -DVGP_ppc64be_linux=1 -DVGPV_ppc64be_linux_vanilla=1
-I../../valgrind-3.12.0/coregrind
-DVG_LIBDIR="\"/usr/lib64/valgrind"\"
-DVG_PLATFORM="\"ppc64be-linux\"" -m64 -O2 -g -std=gnu99 -Wall
-Wmissing-prototypes -Wshadow -Wpointer-arith -Wstrict-prototypes
-Wmissing-declarations -Wcast-align -Wcast-qual -Wwrite-strings
-Wempty-body -Wformat -Wformat-security -Wignored-qualifiers
-Wmissing-parameter-type -Wold-style-declaration
-fno-stack-protector -fno-strict-aliasing -fno-builtin
-DENABLE_LINUX_TICKET_LOCK -g -feliminate-unused-debug-types
-fdebug-prefix-map=/build/yocto/build_master/tmp/work/ppc64e5500-poky-linux/valgrind/3.12.0-r0=/usr/src/debug/valgrind/3.12.0-r0
-fdebug-prefix-map=/build/yocto/build_master/tmp/work/ppc64e5500-poky-linux/valgrind/3.12.0-r0/recipe-sysroot-native=
-fdebug-prefix-map=/build/yocto/build_master/tmp/work/ppc64e5500-poky-linux/valgrind/3.12.0-r0/recipe-sysroot=
-c -o libcoregrind_ppc64be_linux_a-m_debuglog.o `test -f
'm_debuglog.c' || echo
'../../valgrind-3.12.0/coregrind/'`m_debuglog.c<br>
<br>
| ../../valgrind-3.12.0/coregrind/m_debuglog.c: In function
'local_sys_write_stderr':<br>
| ../../valgrind-3.12.0/coregrind/m_debuglog.c:203:4: error: PIC
register clobbered by 'r2' in 'asm'<br>
| __asm__ volatile (<br>
| ^~~~~~~<br>
| ../../valgrind-3.12.0/coregrind/m_debuglog.c: In function
'vgPlain_debugLog':<br>
| ../../valgrind-3.12.0/coregrind/m_debuglog.c:228:4: error: PIC
register clobbered by 'r2' in 'asm'<br>
| __asm__ volatile (<br>
| ^~~~~~~<br>
<br>
<br>
*************<br>
<br>
<br>
Using 3.13 patch with master branch / GCCVERSION 7.1 fails in
tests/ppc64<br>
<br>
<br>
powerpc64-poky-linux-gcc -mhard-float -m64 -mcpu=e5500
--sysroot=/build/yocto/build_master/tmp/work/ppc64e5500-poky-linux/valgrind/3.13.0-r0/recipe-sysroot
-DHAVE_CONFIG_H -I. -I../../../../valgrind-3.13.0/none/tests/ppc64
-I../../.. -I../../../../valgrind-3.13.0
-I../../../../valgrind-3.13.0/include
-I../../../../valgrind-3.13.0/coregrind -I../../../include
-I../../../../valgrind-3.13.0/VEX/pub -I../../../VEX/pub
-DVGA_ppc64be=1 -DVGO_linux=1 -DVGP_ppc64be_linux=1
-DVGPV_ppc64be_linux_vanilla=1 -Winline -Wall -Wshadow
-Wno-long-long -g -fno-stack-protector -m64 -Winline -Wall -O -g
-mregnames -m64 -g -feliminate-unused-debug-types
-fdebug-prefix-map=/build/yocto/build_master/tmp/work/ppc64e5500-poky-linux/valgrind/3.13.0-r0=/usr/src/debug/valgrind/3.13.0-r0
-fdebug-prefix-map=/build/yocto/build_master/tmp/work/ppc64e5500-poky-linux/valgrind/3.13.0-r0/recipe-sysroot-native=
-fdebug-prefix-map=/build/yocto/build_master/tmp/work/ppc64e5500-poky-linux/valgrind/3.13.0-r0/recipe-sysroot=
-c -o test_isa_2_06_part2-test_isa_2_06_part2.o `test -f
'test_isa_2_06_part2.c' || echo
'../../../../valgrind-3.13.0/none/tests/ppc64/'`test_isa_2_06_part2.c<br>
|
../../../../valgrind-3.13.0/none/tests/ppc64/test_isa_2_06_part2.c:
In function 'usage':<br>
|
../../../../valgrind-3.13.0/none/tests/ppc64/test_isa_2_06_part2.c:1778:3:
warning: implicit declaration of function 'fprintf'
[-Wimplicit-function-declaration]<br>
| fprintf(stderr,<br>
| ^~~~~~~<br>
|
../../../../valgrind-3.13.0/none/tests/ppc64/test_isa_2_06_part2.c:1778:3:
warning: incompatible implicit declaration of built-in function
'fprintf'<br>
|
../../../../valgrind-3.13.0/none/tests/ppc64/test_isa_2_06_part2.c:1778:3:
note: include '<stdio.h>' or provide a declaration of
'fprintf'<br>
|
../../../../valgrind-3.13.0/none/tests/ppc64/test_isa_2_06_part2.c:1778:11:
error: 'stderr' undeclared (first use in this function)<br>
| fprintf(stderr,<br>
| ^~~~~~<br>
|
../../../../valgrind-3.13.0/none/tests/ppc64/test_isa_2_06_part2.c:1778:11:
note: each undeclared identifier is reported only once for each
function it appears in<br>
| At top level:<br>
|
../../../../valgrind-3.13.0/none/tests/ppc64/test_isa_2_06_part2.c:1776:13:
warning: 'usage' defined but not used [-Wunused-function]<br>
| static void usage (void)<br>
| ^~~~~<br>
<br>
<br>
Bob<br>
<br>
<br>
<br>
<blockquote type="cite"
cite="mid:CAJTo0Lb6wS0cYqDmg87_sXh3+SV4mR+kmMA26XUKtscZ4B36GQ@mail.gmail.com">
<div dir="ltr">
<div class="gmail_extra"><br>
</div>
<div class="gmail_extra">Ross</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
</blockquote>
<p><br>
</p>
</body>
</html>