[CRIU] criu check --extra output and dump failure
Brinkmann, Harald
Harald.Brinkmann at bst-international.com
Tue Apr 18 02:58:20 PDT 2017
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
I have added my complete criu build log as an attachment in order to
keep the formatting reasonably intact.
Regards
Harald
--
BST eltromat International GmbH
Werk Leopoldshöhe
Herforder Straße 249-251
D-33818 Leopoldshöhe
T: +49 (5208) 987-513
E: harald.brinkmann at bst-international.com
W: http://www.bst-eltromat.com
_______________________________________________________
Amtsgericht Bielefeld, HRB Nr. 30830
Geschäftsführer Kristian Jünke, Dr. Johann-Carsten Kipp, Dr. Gunter
Tautorus
Sitz der Gesellschaft: Bielefeld
Vertrauliche E-Mail von BST eltromat International GmbH
-------------- next part --------------
A non-text attachment was scrubbed...
Name: criu.build.log
Type: text/x-log
Size: 217966 bytes
Desc: criu.build.log
URL: <http://lists.openvz.org/pipermail/criu/attachments/20170418/c8c5f45b/attachment-0001.bin>
More information about the CRIU
mailing list