On Thu, Aug 29, 2019 at 04:16:13PM +0000, Wieczorkiewicz, Pawel wrote: > > > On 29. Aug 2019, at 17:58, Konrad Rzeszutek Wilk > wrote: > > +CODE_GET_EXPECT=$(shell objdump -d --insn-width=1 $(1) | grep -A6 -E '<'$(2)'>:' | tail -n +2 | awk 'BEGIN {printf "{"} {printf "0x%s,", $$2}' | sed 's/,$$/}/g') > > Ony my Hikey 960 when I compile using an native compiler I get: > > gcc -DBUILD_ID -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes -Wdeclaration-after-statement -Wno-unused-but-set-variable -Wno-unused-local-typedefs -O1 -fno-omit-frame-pointer -nostdinc -fno-builtin -fno-common -Werror -Wredundant-decls -Wno-pointer-arith -Wvla -pipe -D__XEN__ -include /home/xen.git/xen/include/xen/config.h '-D__OBJECT_FILE__="xen_expectations.o"' -Wa,--strip-local-absolute -g -MMD -MF ./.xen_expectations.o.d -mcpu=generic -mgeneral-regs-only -I/home/xen.git/xen/include -fno-stack-protector -fno-exceptions -Wnested-externs -DGCC_HAS_VISIBILITY_ATTRIBUTE -DBUILD_ID -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes -Wdeclaration-after-statement -Wno-unused-but-set-variable -Wno-unused-local-typedefs -c xen_expectations.c -o xen_expectations.o > /home/xen.git/xen/Rules.mk:202: recipe for target 'xen_expectations.o' failed > make[3]: Circular expect_config.h <- xen_expectations.o dependency dropped. > In file included from xen_expectations.c:6:0: > expect_config.h:1:23: error: large integer implicitly truncated to unsigned type > [-Werror=overflow] > #define EXPECT_BYTES {0xf0000260,0x00f00002,0xe000f000,0x12e000f0,0x9112e000,0x > c09112e0} > ^ > xen_expectations.c:28:17: note: in expansion of macro ‘EXPECT_BYTES’ > .data = EXPECT_BYTES > ^~~~~~~~~~~~ > expect_config.h:1:34: error: large integer implicitly truncated to unsigned type > [-Werror=overflow] > #define EXPECT_BYTES {0xf0000260,0x00f00002,0xe000f000,0x12e000f0,0x9112e000,0x > c09112e0} > ^ > xen_expectations.c:28:17: note: in expansion of macro ‘EXPECT_BYTES’ > .data = EXPECT_BYTES > ^~~~~~~~~~~~ > expect_config.h:1:45: error: large integer implicitly truncated to unsigned type > [-Werror=overflow] > #define EXPECT_BYTES {0xf0000260,0x00f00002,0xe000f000,0x12e000f0,0x9112e000,0x > c09112e0} > … > > make[3]: Leaving directory '/home/xen.git/xen/test/livepatch' > Makefile:11: recipe for target 'build' failed > make[2]: Leaving directory '/home/xen.git/xen/test' > Makefile:85: recipe for target '_tests' failed > make[1]: Leaving directory '/home/xen.git/xen' > Makefile:45: recipe for target 'tests' failed > root@hikey960:/home/xen.git/xen# cat test/livepatch/expect_config.h > #define EXPECT_BYTES {0xf0000260,0x00f00002,0xe000f000,0x12e000f0,0x9112e000,0xc09112e0} > #define EXPECT_BYTES_COUNT 6 > > > > Could you please try with the patch attached? It compiled, but the test-case was not happy. See attached the full serial log > > > > > Amazon Development Center Germany GmbH > Krausenstr. 38 > 10117 Berlin > Geschaeftsfuehrung: Christian Schlaeger, Ralf Herbrich > Eingetragen am Amtsgericht Charlottenburg unter HRB 149173 B > Sitz: Berlin > Ust-ID: DE 289 237 879 > > > > If it still fails, could you please send me the output for the following > command with this build? > > objdump -d xen-syms | sed -n -e '/:$/,/^$/ p' | tail -n +2 Also included in the serial log. > > Best Regards, > Pawel Wieczorkiewicz > > >