OSDN Git Service

tests/docker: Install static libc package in CentOS 7
authorPhilippe Mathieu-Daudé <f4bug@amsat.org>
Thu, 21 Jan 2021 17:28:28 +0000 (18:28 +0100)
committerThomas Huth <thuth@redhat.com>
Tue, 26 Jan 2021 14:39:34 +0000 (15:39 +0100)
commit4762c82cbda22b1036ce9dd2c5e951ac0ed0a7d3
tree0660201b08c172a6596cfedfbf8aaf56c406e3be
parent9cd69f1a270235b652766f00b94114f48a2d603f
tests/docker: Install static libc package in CentOS 7

We need to install the static libc package to be able to run
the TCG tests:

  $ make check-tcg
  ...
    BUILD   TCG tests for x86_64-softmmu
    BUILD   x86_64-softmmu guest-tests with cc
  /usr/bin/ld: hello: warning: allocated section `.notes' not in segment
  /usr/bin/ld: memory: warning: allocated section `.notes' not in segment
    BUILD   TCG tests for x86_64-linux-user
    BUILD   x86_64-linux-user guest-tests with cc
  /usr/bin/ld: cannot find -lpthread
  /usr/bin/ld: cannot find -lc
  collect2: error: ld returned 1 exit status
  make[2]: *** [threadcount] Error 1
  make[1]: *** [cross-build-guest-tests] Error 2
  make: *** [build-tcg-tests-x86_64-linux-user] Error 2

Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Wainer dos Santos Moschetta <wainersm@redhat.com>
Message-Id: <20210121172829.1643620-2-f4bug@amsat.org>
Signed-off-by: Thomas Huth <thuth@redhat.com>
tests/docker/dockerfiles/centos7.docker