[CRIU] [PATCH] [v5] travis: enable compilation for ppc64le

Laurent Dufour ldufour at linux.vnet.ibm.com
Wed May 4 02:09:20 PDT 2016


On 27/04/2016 20:25, Andrey Vagin wrote:
> From: Andrew Vagin <avagin at virtuozzo.com>
> 
> qemu-static from ubuntu/xenial contains a required fix
> and now we can execute compilation for ppc64le in travis.
> 
> v2: rebase on criu-dev
> v3: set QEMU_CPU=POWER8 to avoid segfaults of qemu-ppc64le-static
> 
>> By default, both qemu and gcc5 produce code on ppc64el which will run on
>> POWER7 platform.  However, in debian gcc build instruction, gcc is explicitly
>> built to produce code for POWER8 platform, which, obviously has additional
>> instructions.
> 
> v4: use ubuntu:trusty. xenial and wily has a bug:
> Processing triggers for libc-bin (2.21-0ubuntu4.1) ...
> /sbin/ldconfig.real: 5: /sbin/ldconfig.real: Syntax error: ")" unexpected
> /sbin/ldconfig.real: 5: /sbin/ldconfig.real: Syntax error: ")" unexpected
> 
> v5: arm, x86, aarch64 were removed by mistake
>

Thanks Andrew !

Tested-by: Laurent Dufour <ldufour at linux.vnet.ibm.com>


> Signed-off-by: Andrew Vagin <avagin at virtuozzo.com>
> ---
>  .travis.yml                          | 1 +
>  scripts/build/Dockerfile.ppc64le.hdr | 3 ++-
>  scripts/build/Dockerfile.tmpl        | 4 +++-
>  scripts/build/extract-deb-pkg        | 4 ++--
>  4 files changed, 8 insertions(+), 4 deletions(-)
> 
> diff --git a/.travis.yml b/.travis.yml
> index 121a7c7..5cd1366 100644
> --- a/.travis.yml
> +++ b/.travis.yml
> @@ -7,6 +7,7 @@ env:
>    - TR_ARCH=x86_64
>    - TR_ARCH=armv7hf
>    - TR_ARCH=aarch64
> +  - TR_ARCH=ppc64le
>  script:
>    - sudo make -C scripts/build $TR_ARCH
>    - sudo ./scripts/travis-tests $TR_ARCH
> diff --git a/scripts/build/Dockerfile.ppc64le.hdr b/scripts/build/Dockerfile.ppc64le.hdr
> index 7976d4e..6c4b22e 100644
> --- a/scripts/build/Dockerfile.ppc64le.hdr
> +++ b/scripts/build/Dockerfile.ppc64le.hdr
> @@ -1,3 +1,4 @@
> -FROM ppc64le/ubuntu
> +FROM ppc64le/ubuntu:trusty
> 
> +ENV QEMU_CPU POWER8
>  COPY scripts/build/qemu-user-static/usr/bin/qemu-ppc64le-static /usr/bin/qemu-ppc64le-static
> diff --git a/scripts/build/Dockerfile.tmpl b/scripts/build/Dockerfile.tmpl
> index ca890d1..2769958 100644
> --- a/scripts/build/Dockerfile.tmpl
> +++ b/scripts/build/Dockerfile.tmpl
> @@ -1,6 +1,8 @@
> +RUN apt-get clean
> +
>  RUN apt-get update
> 
> -RUN apt-get update && apt-get install -y \
> +RUN apt-get install -y \
>                  build-essential \
>                  protobuf-c-compiler \
>                  libprotobuf-c0-dev \
> diff --git a/scripts/build/extract-deb-pkg b/scripts/build/extract-deb-pkg
> index 8ccec37..da527e8 100755
> --- a/scripts/build/extract-deb-pkg
> +++ b/scripts/build/extract-deb-pkg
> @@ -3,8 +3,8 @@ set -e
>  test -d $1 && exit
>  mkdir $1
>  cd $1
> -pkg=`curl http://mirror.yandex.ru/debian/dists/jessie/main/binary-amd64/Packages.gz | zcat | grep "Filename.*$1" | awk '{ print $2 }'`
> -wget "http://mirror.yandex.ru/debian/$pkg"
> +pkg=`curl http://mirror.yandex.ru/ubuntu/ubuntu/dists/xenial/universe/binary-amd64/Packages.gz | zcat | grep "Filename.*$1" | awk '{ print $2 }'`
> +wget "http://mirror.yandex.ru/ubuntu/$pkg"
>  pkg=`basename $pkg`
>  ar vx $pkg
>  tar -xJvf data.tar.xz
> 



More information about the CRIU mailing list