[CRIU] criu check --extra output and dump failure
Dmitry Safonov
0x7f454c46 at gmail.com
Tue Apr 18 03:32:36 PDT 2017
2017-04-18 12:58 GMT+03:00 Brinkmann, Harald
<Harald.Brinkmann at bst-international.com>:
>
> Hi Dmitry,
>
> On Thu, 2017-04-13 at 17:54 +0300, Dmitry Safonov wrote:
>> 2017-04-13 17:33 GMT+03:00 Dmitry Safonov <0x7f454c46 at gmail.com>:
>> > 2017-04-13 16:59 GMT+03:00 Brinkmann, Harald
>> > <Harald.Brinkmann at bst-international.com>:
>> >> Just wondering, could you send me the actual compiler commands generated
>> >> by 'make' around the generation of the criu/pie/parasite.built-in.o
>> >> file. Maybe there is a hint there somewhere that I could follow up?
>> >
>> > The only hint, that was the solution of the very similar issue as yours
>> > previously, is that ld line shouldn't have `-r' flag. Otherwise, toolchains
>> > that I've tried didn't do relocations in resulting PIE. There was also a
>> > couple of arm reports about the same relocation issue, so removing this
>> > flag solved issues for me and community people.
>
> Hmmm, your linker commands look totally different to mine. And yes,
> there is that '-r'-flag:
>
> arm-v7a-linux-gnueabihf-gcc -c -I__BUILD_HOME__/platform-imx6/sysroot-target/usr/include/libnl3 -march=armv7-a -march=armv7-a -O2 -g -Wall -Wformat-security -Werror -DCONFIG_ARMV7 -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -iquote include/ -iquote __BUILD_HOME__/platform-imx6/build-target/criu-2.12.1/criu/pie/piegen -iquote __BUILD_HOME__/platform-imx6/build-target/criu-2.12.1/criu/arch/arm/include -iquote __BUILD_HOME__/platform-imx6/build-target/criu-2.12.1/criu/include -iquote __BUILD_HOME__/platform-imx6/build-target/criu-2.12.1/include -iquote __BUILD_HOME__/platform-imx6/build-target/criu-2.12.1 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0 -Wp,-U_FORTIFY_SOURCE -Wp,-D_FORTIFY_SOURCE=0 -fno-strict-aliasing -iquote __BUILD_HOME__/platform-imx6/build-target/criu-2.12.1/criu/include -iquote __BUILD_HOME__/platform-imx6/build-target/criu-2.12.1/include -iquote __BUILD_HOME__/platform-imx6/build-target/criu-2.12.1/images -iquote __BUILD_HOME__/platform-imx6/build-target/criu-2.12.1/criu/pie -iquote __BUILD_HOME__/platform-imx6/build-target/criu-2.12.1/criu/arch/arm -iquote __BUILD_HOME__/platform-imx6/build-target/criu-2.12.1/criu/arch/arm/include -iquote __BUILD_HOME__/platform-imx6/build-target/criu-2.12.1/ -I/usr/include/libnl3 -DCR_NOGLIBC -fpie -Wa,--noexecstack -fno-stack-protector -marm criu/pie/parasite.c -o criu/pie/parasite.o
> /bin/sh -c "echo 'OUTPUT_ARCH(arm)' > criu/pie/pie.lds.S"
> arm-v7a-linux-gnueabihf-gcc -c -I__BUILD_HOME__/platform-imx6/sysroot-target/usr/include/libnl3 -march=armv7-a -march=armv7-a -O2 -g -Wall -Wformat-security -Werror -DCONFIG_ARMV7 -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -iquote include/ -iquote __BUILD_HOME__/platform-imx6/build-target/criu-2.12.1/criu/pie/piegen -iquote __BUILD_HOME__/platform-imx6/build-target/criu-2.12.1/criu/arch/arm/include -iquote __BUILD_HOME__/platform-imx6/build-target/criu-2.12.1/criu/include -iquote __BUILD_HOME__/platform-imx6/build-target/criu-2.12.1/include -iquote __BUILD_HOME__/platform-imx6/build-target/criu-2.12.1 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0 -Wp,-U_FORTIFY_SOURCE -Wp,-D_FORTIFY_SOURCE=0 -fno-strict-aliasing -iquote __BUILD_HOME__/platform-imx6/build-target/criu-2.12.1/criu/include -iquote __BUILD_HOME__/platform-imx6/build-target/criu-2.12.1/include -iquote __BUILD_HOME__/platform-imx6/build-target/criu-2.12.1/images -iquote __BUILD_HOME__/platform-imx6/build-target/criu-2.12.1/criu/pie -iquote __BUILD_HOME__/platform-imx6/build-target/criu-2.12.1/criu/arch/arm -iquote __BUILD_HOME__/platform-imx6/build-target/criu-2.12.1/criu/arch/arm/include -iquote __BUILD_HOME__/platform-imx6/build-target/criu-2.12.1/ -I/usr/include/libnl3 -DCR_NOGLIBC -fpie -Wa,--noexecstack -fno-stack-protector -marm criu/pie/restorer.c -o criu/pie/restorer.o
> /bin/sh -c "cat criu/pie/pie.lds.S.in >> criu/pie/pie.lds.S"
> arm-v7a-linux-gnueabihf-ld -r -o criu/pie/parasite.built-in.o ./criu/arch/arm/parasite-head.o criu/pie/parasite.o ./criu/arch/arm/syscalls.built-in.o
> arm-v7a-linux-gnueabihf-ld -T criu/pie/pie.lds.S -o criu/pie/parasite.built-in.bin.o criu/pie/parasite.built-in.o criu/pie/lib.a
> arm-v7a-linux-gnueabihf-objcopy -O binary criu/pie/parasite.built-in.bin.o criu/pie/parasite.built-in.bin
> /bin/sh criu/pie/../../scripts/gen-offsets.sh criu/pie/parasite parasite > criu/pie/parasite-blob.h
> arm-v7a-linux-gnueabihf-ld -r -o criu/pie/restorer.built-in.o ./criu/arch/arm/restorer.o criu/pie/restorer.o ./criu/arch/arm/syscalls.built-in.o
> arm-v7a-linux-gnueabihf-ld -T criu/pie/pie.lds.S -o criu/pie/restorer.built-in.bin.o criu/pie/restorer.built-in.o criu/pie/lib.a
>
> And I cannot even find any references in my sources to this:
> compel/arch/arm/scripts/compel-pack.lds.S
Yes, sorry about that - I gave output for master branch rather than
2.12.1 release.
Could you provide build output on master?
As v3.0 release is at hand with the stuff in master, it would be good
to fix it right there.
> I have added my complete criu build log as an attachment in order to
> keep the formatting reasonably intact.
>
> Regards
>
> Harald
>
>
--
Dmitry
More information about the CRIU
mailing list