[CRIU] criu check --extra output and dump failure

Brinkmann, Harald Harald.Brinkmann at bst-international.com
Wed Apr 19 00:05:37 PDT 2017


On Tue, 2017-04-18 at 18:37 +0300, Dmitry Safonov wrote:
> 2017-04-18 18:26 GMT+03:00 Brinkmann, Harald
> <Harald.Brinkmann at bst-international.com>:
> >
> > On Tue, 2017-04-18 at 17:58 +0300, Dmitry Safonov wrote:
> >> > compel/Makefile:44: HOSTCFLAGS are -I__BUILD_HOST__/platform-imx6/sysroot-host/lib/pkgconfig/../../include -march=armv7-a -march=armv7-a -O2 -g -Wall -Wformat-security -Werror -DCONFIG_ARMV7 -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE  -iquote include/  -DNO_RELOCS
> >>
> >> Here is in the host's CFLAGS "-march=armv7-a" - that looks wrong.
> >> Please, run instead with attached diff - it should fix this problem.
> >
> > I have run this with both diffs applied. Still no joy. This looks OK:
> >
> > compel/Makefile:42: host-ccflags-y are -DINCLUDEDIR=\"/usr/local/include\" -DLIBEXECDIR=\"/usr/local/libexec\" -DLIBDIR=\"/usr/local/lib/x86_64-linux-gnu\" -DSTATIC_LIB=\"libcompel.a\" -DDYN_LIB=\"libcompel.so.1\" -iquote compel/arch/arm/src/lib/include -iquote compel/include -fno-strict-aliasing -fPIC -I compel/include/uapi
> > compel/Makefile:43: ccflags-y are -DINCLUDEDIR=\"/usr/local/include\" -DLIBEXECDIR=\"/usr/local/libexec\" -DLIBDIR=\"/usr/local/lib/x86_64-linux-gnu\" -DSTATIC_LIB=\"libcompel.a\" -DDYN_LIB=\"libcompel.so.1\" -iquote compel/arch/arm/src/lib/include -iquote compel/include -fno-strict-aliasing -fPIC -I compel/include/uapi
> > compel/Makefile:44: HOSTCFLAGS are -I/__BUILD_HOST__/platform-imx6/sysroot-host/lib/pkgconfig/../../include  -DNO_RELOCS
> >
> > But I then get this:
> >
> > gcc -M -MT compel/src/main-host.d -MT compel/src/main-host.o -I/home/brih/dev/ptx/ps5000.BSP/platform-imx6/sysroot-host/lib/pkgconfig/../../include -DNO_RELOCS -DINCLUDEDIR=\"/usr/local/include\" -DLIBEXECDIR=\"/usr/local/libexec\" -DLIBDIR=\"/usr/local/lib/x86_64-linux-gnu\" -DSTATIC_LIB=\"libcompel.a\" -DDYN_LIB=\"libcompel.so.1\" -iquote compel/arch/arm/src/lib/include -iquote compel/include -fno-strict-aliasing -fPIC -I compel/include/uapi compel/src/main-host.c -o compel/src/main-host.d
> > compel/src/main-host.c:56:2: error: #error "CONFIG_<ARCH> not defined, or unsupported ARCH"
> >  #error "CONFIG_<ARCH> not defined, or unsupported ARCH"
> >   ^
> > compel/src/main-host.c:56:2: error: #error "CONFIG_<ARCH> not defined, or unsupported ARCH"
> >  #error "CONFIG_<ARCH> not defined, or unsupported ARCH"
> >   ^
>
> Oh, well, here we go :)
> Please, shot with a new diff.

This looks better:


compel/Makefile:42: host-ccflags-y are -DINCLUDEDIR=\"/usr/local/include\" -DLIBEXECDIR=\"/usr/local/libexec\" -DLIBDIR=\"/usr/local/lib/x86_64-linux-gnu\" -DSTATIC_LIB=\"libcompel.a\" -DDYN_LIB=\"libcompel.so.1\" -iquote compel/arch/arm/src/lib/include -iquote compel/include -fno-strict-aliasing -fPIC -I compel/include/uapi
compel/Makefile:43: ccflags-y are -DINCLUDEDIR=\"/usr/local/include\" -DLIBEXECDIR=\"/usr/local/libexec\" -DLIBDIR=\"/usr/local/lib/x86_64-linux-gnu\" -DSTATIC_LIB=\"libcompel.a\" -DDYN_LIB=\"libcompel.so.1\" -iquote compel/arch/arm/src/lib/include -iquote compel/include -fno-strict-aliasing -fPIC -I compel/include/uapi
compel/Makefile:44: HOSTCFLAGS are -I__BUILD_HOST__/platform-imx6/sysroot-host/lib/pkgconfig/../../include  -Wall -Wformat-security -Werror -DCONFIG_ARMV7 -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -iquote include/ -DNO_RELOCS

gcc -M -MT compel/src/lib/handle-elf-host.d -MT compel/src/lib/handle-elf-host.o -I/__BUILD_HOST__/platform-imx6/sysroot-host/lib/pkgconfig/../../include -Wall -Wformat-security -Werror -DCONFIG_ARMV7 -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -iquote include/ -DNO_RELOCS -DINCLUDEDIR=\"/usr/local/include\" -DLIBEXECDIR=\"/usr/local/libexec\" -DLIBDIR=\"/usr/local/lib/x86_64-linux-gnu\" -DSTATIC_LIB=\"libcompel.a\" -DDYN_LIB=\"libcompel.so.1\" -iquote compel/arch/arm/src/lib/include -iquote compel/include -fno-strict-aliasing -fPIC -I compel/include/uapi compel/src/lib/handle-elf-host.c -o compel/src/lib/handle-elf-host.d

gcc -c -I__BUILD_HOST__/platform-imx6/sysroot-host/lib/pkgconfig/../../include -Wall -Wformat-security -Werror -DCONFIG_ARMV7 -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -iquote include/ -DNO_RELOCS -DINCLUDEDIR=\"/usr/local/include\" -DLIBEXECDIR=\"/usr/local/libexec\" -DLIBDIR=\"/usr/local/lib/x86_64-linux-gnu\" -DSTATIC_LIB=\"libcompel.a\" -DDYN_LIB=\"libcompel.so.1\" -iquote compel/arch/arm/src/lib/include -iquote compel/include -fno-strict-aliasing -fPIC -I compel/include/uapi compel/src/lib/handle-elf-host.c -o compel/src/lib/handle-elf-host.o


Next I need to fix the paths and I am having protoc trouble. I'm sure I
will get back to you after that.


--

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




More information about the CRIU mailing list