[OE-core] [PATCH v3] valgrind: Update 3.12.0 -> 3.13.0
Bob Cochran
openembedded at mindchasers.com
Tue Jul 11 17:16:16 UTC 2017
On 07/11/2017 04:43 AM, Burton, Ross wrote:
>
> On 9 July 2017 at 08:35, Soren Brinkmann <soren.brinkmann at xilinx.com
> <mailto:soren.brinkmann at xilinx.com>> wrote:
>
> Signed-off-by: Soren Brinkmann <soren.brinkmann at xilinx.com
> <mailto:soren.brinkmann at xilinx.com>>
> ---
> v3:
> - rebased onto latest master branch
> v2:
> - no change
>
>
> Fails to build on PPC if ptest is enabled:
> http://errors.yoctoproject.org/Errors/Details/147237/
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
I suppose the 7.1 compiler is uncovering some issues with some of the
assembly language that has gone undetected before.
Using 3.12 with master branch / GCCVERSION 7.1 fails in coregrind:
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
| ../../valgrind-3.12.0/coregrind/m_debuglog.c: In function
'local_sys_write_stderr':
| ../../valgrind-3.12.0/coregrind/m_debuglog.c:203:4: error: PIC
register clobbered by 'r2' in 'asm'
| __asm__ volatile (
| ^~~~~~~
| ../../valgrind-3.12.0/coregrind/m_debuglog.c: In function
'vgPlain_debugLog':
| ../../valgrind-3.12.0/coregrind/m_debuglog.c:228:4: error: PIC
register clobbered by 'r2' in 'asm'
| __asm__ volatile (
| ^~~~~~~
*************
Using 3.13 patch with master branch / GCCVERSION 7.1 fails in tests/ppc64
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
| ../../../../valgrind-3.13.0/none/tests/ppc64/test_isa_2_06_part2.c: In
function 'usage':
|
../../../../valgrind-3.13.0/none/tests/ppc64/test_isa_2_06_part2.c:1778:3:
warning: implicit declaration of function 'fprintf'
[-Wimplicit-function-declaration]
| fprintf(stderr,
| ^~~~~~~
|
../../../../valgrind-3.13.0/none/tests/ppc64/test_isa_2_06_part2.c:1778:3:
warning: incompatible implicit declaration of built-in function 'fprintf'
|
../../../../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'
|
../../../../valgrind-3.13.0/none/tests/ppc64/test_isa_2_06_part2.c:1778:11:
error: 'stderr' undeclared (first use in this function)
| fprintf(stderr,
| ^~~~~~
|
../../../../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
| At top level:
|
../../../../valgrind-3.13.0/none/tests/ppc64/test_isa_2_06_part2.c:1776:13:
warning: 'usage' defined but not used [-Wunused-function]
| static void usage (void)
| ^~~~~
Bob
>
> Ross
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20170711/1ff79a04/attachment-0002.html>
More information about the Openembedded-core
mailing list