[Bug 1872854] Re: GCC-10 library conflict on s390x

Otto Kekäläinen 1872854 at bugs.launchpad.net
Wed Apr 15 10:53:27 UTC 2020


Sorry for sloppy bug report. Here are exact steps to reproduce on a
Ubuntu 18.04 host (arch amd64) running s390x in a Docker container. The
bug is not repeatable on amd64 since the s390x packages available on
Bionic is slightly different.

# Install s390x emulators
sudo apt install qemu-user-static qemu-system-s390x

# Enable experimental mode in Docker
cat /etc/docker/daemon.json
{
"experimental": true
}
sudo systemctl restart docker

# Pull s390x Bionic
docker pull --platform linux/s390x ubuntu:bionic

# Prepare and build container
mkdir s390x; cd s390x
cp /usr/bin/qemu-s390x-static .
cat Dockerfile
FROM  ubuntu:bionic 
COPY ./qemu-s390x-static /usr/bin/qemu-s390x-static
RUN uname -a
RUN apt-get update -y && \
    apt-get install --yes --no-install-suggests --no-install-recommends software-properties-common curl gpg gpg-agent dirmngr ca-certificates && \
    echo 'deb http://ppa.launchpad.net/ubuntu-toolchain-r/test/ubuntu bionic main' >> /etc/apt/sources.list.d/toolchain.list && \
    apt-key adv --keyserver keyserver.ubuntu.com --recv 60C317803A41BA51845E371A1E9377A2BA9EF27F && \
    apt-get update -y
RUN apt-get --no-install-suggests --no-install-recommends install clang-7 clang-8 g++-5 g++-7 g++-8 g++-9

# Run
docker build --tag ubuntu:bionic-s390x .

# Result
Step 3/3 : RUN apt-get --no-install-suggests --no-install-recommends install clang-7 clang-8 g++-5 g++-7 g++-8 g++-9
 ---> Running in c3bd447b3aad
Reading package lists...
Building dependency tree...
Reading state information...
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 clang-7 : Depends: libstdc++-7-dev but it is not going to be installed
           Depends: libgcc-7-dev but it is not going to be installed
           Depends: libobjc-7-dev but it is not going to be installed
 clang-8 : Depends: libstdc++-7-dev but it is not going to be installed
           Depends: libgcc-7-dev but it is not going to be installed
           Depends: libobjc-7-dev but it is not going to be installed
 g++-7 : Depends: gcc-7 (= 7.5.0-3ubuntu1~18.04) but it is not going to be installed
         Depends: libstdc++-7-dev (= 7.5.0-3ubuntu1~18.04) but it is not going to be installed
 g++-9 : Depends: gcc-9 (= 9.2.1-17ubuntu1~18.04.1) but it is not going to be installed
         Depends: libstdc++-9-dev (= 9.2.1-17ubuntu1~18.04.1) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to gcc-10 in Ubuntu.
https://bugs.launchpad.net/bugs/1872854

Title:
  GCC-10 library conflict on s390x

Status in gcc-10 package in Ubuntu:
  New

Bug description:
  The upload

    gcc-10        10-20200405-0ubuntu1~18.04      Matthias Klose
  (2020-04-06)

  to

    https://launchpad.net/~ubuntu-toolchain-r/+archive/ubuntu/test

  
  Seems to have rendered certain combinations of GCC uninstallable on s390x. This is a test PPA yes, but it happens to be one of the default ones on Travis-CI so it matters.

  
  Example scenario:

  root at d5ba67a84ccb:/# apt-get install libgcc-7-dev
  Reading package lists... Done
  Building dependency tree
  Reading state information... Done
  The following packages will be REMOVED:
    libcc1-0 libgcc-s1
  The following NEW packages will be installed:
    libgcc-7-dev
  0 upgraded, 1 newly installed, 2 to remove and 12 not upgraded.
  Need to get 641 kB of archives.
  After this operation, 5158 kB of additional disk space will be used.
  Do you want to continue? [Y/n] y
  Get:1 http://ports.ubuntu.com/ubuntu-ports bionic-updates/main s390x libgcc-7-dev s390x 7.5.0-3ubuntu1~18.04 [641 kB]
  Fetched 641 kB in 6s (110 kB/s)
  debconf: delaying package configuration, since apt-utils is not installed
  (Reading database ... 10706 files and directories currently installed.)
  Removing libcc1-0:s390x (10-20200405-0ubuntu1~18.04) ...
  Removing libgcc-s1:s390x (10-20200405-0ubuntu1~18.04) ...
  Selecting previously unselected package libgcc-7-dev:s390x.
  (Reading database ... 10700 files and directories currently installed.)
  Preparing to unpack .../libgcc-7-dev_7.5.0-3ubuntu1~18.04_s390x.deb ...
  Unpacking libgcc-7-dev:s390x (7.5.0-3ubuntu1~18.04) ...
  Setting up libgcc-7-dev:s390x (7.5.0-3ubuntu1~18.04) ...
  Processing triggers for libc-bin (2.27-3ubuntu1) ...
  root at d5ba67a84ccb:/# apt-get install gcc-7
  /usr/bin/apt-get: error while loading shared libraries: libgcc_s.so.1: cannot open shared object file: No such file or directory

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gcc-10/+bug/1872854/+subscriptions



More information about the foundations-bugs mailing list