[Bug 1895632] Re: builds for libc 2.32 break all cross toolchains - missing libnss-nis-<arch>-cross

Christian Ehrhardt  1895632 at bugs.launchpad.net
Wed Sep 16 13:54:25 UTC 2020


Builds of glibc and cross-toolchain-base-ports are in groovy proposed.
Therefore in proposed (where things build) one can already again install the dependencies:

# apt install gcc-alpha-linux-gnu
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following packages were automatically installed and are no longer required:
  libnvpair1linux libuutil1linux libzfs2linux libzpool2linux
Use 'apt autoremove' to remove them.
The following additional packages will be installed:
  binutils binutils-alpha-linux-gnu binutils-common binutils-x86-64-linux-gnu cpp-10-alpha-linux-gnu cpp-alpha-linux-gnu gcc-10-alpha-linux-gnu gcc-10-alpha-linux-gnu-base
  gcc-10-cross-base-ports libatomic1-alpha-cross libbinutils libc6.1-alpha-cross libc6.1-dev-alpha-cross libctf0 libgcc-10-dev-alpha-cross libgcc-s1-alpha-cross libgomp1-alpha-cross
  libitm1-alpha-cross linux-libc-dev-alpha-cross
Suggested packages:
  binutils-doc gcc-10-locales cpp-doc gcc-10-doc autoconf automake libtool flex bison gdb-alpha-linux-gnu gcc-doc
The following NEW packages will be installed:
  binutils-alpha-linux-gnu cpp-10-alpha-linux-gnu cpp-alpha-linux-gnu gcc-10-alpha-linux-gnu gcc-10-alpha-linux-gnu-base gcc-10-cross-base-ports gcc-alpha-linux-gnu libatomic1-alpha-cross
  libc6.1-alpha-cross libc6.1-dev-alpha-cross libgcc-10-dev-alpha-cross libgcc-s1-alpha-cross libgomp1-alpha-cross libitm1-alpha-cross linux-libc-dev-alpha-cross
The following packages will be upgraded:
  binutils binutils-common binutils-x86-64-linux-gnu libbinutils libctf0
5 upgraded, 15 newly installed, 0 to remove and 121 not upgraded.
Need to get 27.4 MB of archives.
After this operation, 71.1 MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 http://archive.ubuntu.com/ubuntu groovy/main amd64 libctf0 amd64 2.35-3ubuntu1 [47.4 kB]
Get:2 http://archive.ubuntu.com/ubuntu groovy/main amd64 binutils-x86-64-linux-gnu amd64 2.35-3ubuntu1 [1644 kB]
Get:3 http://archive.ubuntu.com/ubuntu groovy/main amd64 libbinutils amd64 2.35-3ubuntu1 [481 kB]
Get:4 http://archive.ubuntu.com/ubuntu groovy/main amd64 binutils amd64 2.35-3ubuntu1 [3376 B]
Get:5 http://archive.ubuntu.com/ubuntu groovy/main amd64 binutils-common amd64 2.35-3ubuntu1 [212 kB]
Get:6 http://archive.ubuntu.com/ubuntu groovy/universe amd64 gcc-10-alpha-linux-gnu-base amd64 10.2.0-3ubuntu1cross1 [20.3 kB]
Get:7 http://archive.ubuntu.com/ubuntu groovy/universe amd64 cpp-10-alpha-linux-gnu amd64 10.2.0-3ubuntu1cross1 [6359 kB]
Get:8 http://archive.ubuntu.com/ubuntu groovy/universe amd64 cpp-alpha-linux-gnu amd64 4:10.1.0-1ubuntu1 [6136 B]
Get:9 http://archive.ubuntu.com/ubuntu groovy/universe amd64 binutils-alpha-linux-gnu amd64 2.35-3ubuntu1 [1129 kB]
Get:10 http://archive.ubuntu.com/ubuntu groovy/universe amd64 gcc-10-cross-base-ports all 10.2.0-3ubuntu1cross1 [15.4 kB]
Get:11 http://archive.ubuntu.com/ubuntu groovy-proposed/universe amd64 libc6.1-alpha-cross all 2.32-0ubuntu3cross2 [1189 kB]
Get:12 http://archive.ubuntu.com/ubuntu groovy/universe amd64 libgcc-s1-alpha-cross all 10.2.0-3ubuntu1cross1 [30.2 kB]
Get:13 http://archive.ubuntu.com/ubuntu groovy/universe amd64 libgomp1-alpha-cross all 10.2.0-3ubuntu1cross1 [99.5 kB]
Get:14 http://archive.ubuntu.com/ubuntu groovy/universe amd64 libitm1-alpha-cross all 10.2.0-3ubuntu1cross1 [27.0 kB]
Get:15 http://archive.ubuntu.com/ubuntu groovy/universe amd64 libatomic1-alpha-cross all 10.2.0-3ubuntu1cross1 [8356 B]
Get:16 http://archive.ubuntu.com/ubuntu groovy/universe amd64 libgcc-10-dev-alpha-cross all 10.2.0-3ubuntu1cross1 [265 kB]
Get:17 http://archive.ubuntu.com/ubuntu groovy/universe amd64 gcc-10-alpha-linux-gnu amd64 10.2.0-3ubuntu1cross1 [12.8 MB]
Get:18 http://archive.ubuntu.com/ubuntu groovy/universe amd64 gcc-alpha-linux-gnu amd64 4:10.1.0-1ubuntu1 [1412 B]
Get:19 http://archive.ubuntu.com/ubuntu groovy-proposed/universe amd64 linux-libc-dev-alpha-cross all 5.8.0-19.20cross2 [1092 kB]
Get:20 http://archive.ubuntu.com/ubuntu groovy-proposed/universe amd64 libc6.1-dev-alpha-cross all 2.32-0ubuntu3cross2 [1971 kB]
Fetched 27.4 MB in 4s (6587 kB/s)                 
(Reading database ... 57783 files and directories currently installed.)
Preparing to unpack .../00-libctf0_2.35-3ubuntu1_amd64.deb ...
Unpacking libctf0:amd64 (2.35-3ubuntu1) over (2.35-2ubuntu1) ...
Preparing to unpack .../01-binutils-x86-64-linux-gnu_2.35-3ubuntu1_amd64.deb ...
Unpacking binutils-x86-64-linux-gnu (2.35-3ubuntu1) over (2.35-2ubuntu1) ...
Preparing to unpack .../02-libbinutils_2.35-3ubuntu1_amd64.deb ...
Unpacking libbinutils:amd64 (2.35-3ubuntu1) over (2.35-2ubuntu1) ...
Preparing to unpack .../03-binutils_2.35-3ubuntu1_amd64.deb ...
Unpacking binutils (2.35-3ubuntu1) over (2.35-2ubuntu1) ...
Preparing to unpack .../04-binutils-common_2.35-3ubuntu1_amd64.deb ...
Unpacking binutils-common:amd64 (2.35-3ubuntu1) over (2.35-2ubuntu1) ...
Selecting previously unselected package gcc-10-alpha-linux-gnu-base:amd64.
Preparing to unpack .../05-gcc-10-alpha-linux-gnu-base_10.2.0-3ubuntu1cross1_amd64.deb ...
Unpacking gcc-10-alpha-linux-gnu-base:amd64 (10.2.0-3ubuntu1cross1) ...
Selecting previously unselected package cpp-10-alpha-linux-gnu.
Preparing to unpack .../06-cpp-10-alpha-linux-gnu_10.2.0-3ubuntu1cross1_amd64.deb ...
Unpacking cpp-10-alpha-linux-gnu (10.2.0-3ubuntu1cross1) ...
Selecting previously unselected package cpp-alpha-linux-gnu.
Preparing to unpack .../07-cpp-alpha-linux-gnu_4%3a10.1.0-1ubuntu1_amd64.deb ...
Unpacking cpp-alpha-linux-gnu (4:10.1.0-1ubuntu1) ...
Selecting previously unselected package binutils-alpha-linux-gnu.
Preparing to unpack .../08-binutils-alpha-linux-gnu_2.35-3ubuntu1_amd64.deb ...
Unpacking binutils-alpha-linux-gnu (2.35-3ubuntu1) ...
Selecting previously unselected package gcc-10-cross-base-ports.
Preparing to unpack .../09-gcc-10-cross-base-ports_10.2.0-3ubuntu1cross1_all.deb ...
Unpacking gcc-10-cross-base-ports (10.2.0-3ubuntu1cross1) ...
Selecting previously unselected package libc6.1-alpha-cross.
Preparing to unpack .../10-libc6.1-alpha-cross_2.32-0ubuntu3cross2_all.deb ...
Unpacking libc6.1-alpha-cross (2.32-0ubuntu3cross2) ...
Selecting previously unselected package libgcc-s1-alpha-cross.
Preparing to unpack .../11-libgcc-s1-alpha-cross_10.2.0-3ubuntu1cross1_all.deb ...
Unpacking libgcc-s1-alpha-cross (10.2.0-3ubuntu1cross1) ...
Selecting previously unselected package libgomp1-alpha-cross.
Preparing to unpack .../12-libgomp1-alpha-cross_10.2.0-3ubuntu1cross1_all.deb ...
Unpacking libgomp1-alpha-cross (10.2.0-3ubuntu1cross1) ...
Selecting previously unselected package libitm1-alpha-cross.
Preparing to unpack .../13-libitm1-alpha-cross_10.2.0-3ubuntu1cross1_all.deb ...
Unpacking libitm1-alpha-cross (10.2.0-3ubuntu1cross1) ...
Selecting previously unselected package libatomic1-alpha-cross.
Preparing to unpack .../14-libatomic1-alpha-cross_10.2.0-3ubuntu1cross1_all.deb ...
Unpacking libatomic1-alpha-cross (10.2.0-3ubuntu1cross1) ...
Selecting previously unselected package libgcc-10-dev-alpha-cross.
Preparing to unpack .../15-libgcc-10-dev-alpha-cross_10.2.0-3ubuntu1cross1_all.deb ...
Unpacking libgcc-10-dev-alpha-cross (10.2.0-3ubuntu1cross1) ...
Selecting previously unselected package gcc-10-alpha-linux-gnu.
Preparing to unpack .../16-gcc-10-alpha-linux-gnu_10.2.0-3ubuntu1cross1_amd64.deb ...
Unpacking gcc-10-alpha-linux-gnu (10.2.0-3ubuntu1cross1) ...
Selecting previously unselected package gcc-alpha-linux-gnu.
Preparing to unpack .../17-gcc-alpha-linux-gnu_4%3a10.1.0-1ubuntu1_amd64.deb ...
Unpacking gcc-alpha-linux-gnu (4:10.1.0-1ubuntu1) ...
Selecting previously unselected package linux-libc-dev-alpha-cross.
Preparing to unpack .../18-linux-libc-dev-alpha-cross_5.8.0-19.20cross2_all.deb ...
Unpacking linux-libc-dev-alpha-cross (5.8.0-19.20cross2) ...
Selecting previously unselected package libc6.1-dev-alpha-cross.
Preparing to unpack .../19-libc6.1-dev-alpha-cross_2.32-0ubuntu3cross2_all.deb ...
Unpacking libc6.1-dev-alpha-cross (2.32-0ubuntu3cross2) ...
Setting up gcc-10-cross-base-ports (10.2.0-3ubuntu1cross1) ...
Setting up linux-libc-dev-alpha-cross (5.8.0-19.20cross2) ...
Setting up binutils-common:amd64 (2.35-3ubuntu1) ...
Setting up binutils-alpha-linux-gnu (2.35-3ubuntu1) ...
Setting up libc6.1-alpha-cross (2.32-0ubuntu3cross2) ...
Setting up libgcc-s1-alpha-cross (10.2.0-3ubuntu1cross1) ...
Setting up libatomic1-alpha-cross (10.2.0-3ubuntu1cross1) ...
Setting up libgomp1-alpha-cross (10.2.0-3ubuntu1cross1) ...
Setting up gcc-10-alpha-linux-gnu-base:amd64 (10.2.0-3ubuntu1cross1) ...
Setting up libbinutils:amd64 (2.35-3ubuntu1) ...
Setting up libctf0:amd64 (2.35-3ubuntu1) ...
Setting up libc6.1-dev-alpha-cross (2.32-0ubuntu3cross2) ...
Setting up libitm1-alpha-cross (10.2.0-3ubuntu1cross1) ...
Setting up cpp-10-alpha-linux-gnu (10.2.0-3ubuntu1cross1) ...
Setting up cpp-alpha-linux-gnu (4:10.1.0-1ubuntu1) ...
Setting up binutils-x86-64-linux-gnu (2.35-3ubuntu1) ...
Setting up libgcc-10-dev-alpha-cross (10.2.0-3ubuntu1cross1) ...
Setting up binutils (2.35-3ubuntu1) ...
Setting up gcc-10-alpha-linux-gnu (10.2.0-3ubuntu1cross1) ...
Setting up gcc-alpha-linux-gnu (4:10.1.0-1ubuntu1) ...
Processing triggers for libc-bin (2.31-0ubuntu11) ...
Processing triggers for man-db (2.9.3-2) ...


Is that enough to kick plenty of retries or do you want to wait for something before doing so?

-- 
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/1895632

Title:
  builds for libc 2.32 break all cross toolchains - missing libnss-
  nis-<arch>-cross

Status in cross-toolchain-base-ports package in Ubuntu:
  New
Status in gcc-10 package in Ubuntu:
  Invalid
Status in glibc package in Ubuntu:
  Fix Committed

Bug description:
  ## TL;DR ##

  cross-toolchain-base-ports 38ubuntu1 builds dependencies to
  libnss-nis-<arch>-cross at version 2.32-0ubuntu2cross1, but misses to
  build those packages themselve.
  Most likely, but not surely yet, due to the split of libnss-nisplus from glibc.

  ## Detail ##

  Hi,
  I was first seeing this in a qemu build hanging as dependency wait which worked
  a day before.
  => https://launchpad.net/ubuntu/+source/qemu/1:5.0-5ubuntu8/+build/19940985
  But the build fails at
    Missing build dependencies: libnsl-dev-alpha-cross

  
  At first it seemed the Problem came with new glibc:
   libc6.1-dev-alpha-cross | 2.31-0ubuntu9cross1   | groovy/universe          | all
   libc6.1-dev-alpha-cross | 2.32-0ubuntu2cross1   | groovy-proposed/universe | all

  Dependency tree - 2.31-0ubuntu9cross1 (worked)
  libc6.1-dev-alpha-cross
   \- libc6.1-alpha-cross
   \- linux-libc-dev-alpha-cross

  Dependency tree - 2.32-0ubuntu2cross1 (fails)
  libc6.1-dev-alpha-cross
   \- libc6.1-alpha-cross
   \- linux-libc-dev-alpha-cross

  In essence we use gcc-s390x-linux-gnu,gcc-alpha-linux-gnu,
  gcc-powerpc64-linux-gnu,gcc-sparc64-linux-gnu,gcc-hppa-linux-gnu,
  gcc-riscv64-linux-gnu for different ROM builds and
  libc6.1-dev-alpha-cross for a corner case.
  They will pull in their respective cross builds packages:
  E.g.: gcc-s390x-linux-gnu
         \- gcc-10-s390x-linux-gnu
            \- libgcc-10-dev-s390x-cross
            \- libc6-dev-s390x-cross

  It is not just libnsl-dev-alpha-cross, all such dependencies now explode:
  Here from build logs:
  The following packages have unmet dependencies:
   libc6-hppa-cross : Depends: libnss-nis-hppa-cross but it is not installable
                      Depends: libnss-nisplus-hppa-cross but it is not installable
   libc6-ppc64-cross : Depends: libnss-nis-ppc64-cross but it is not installable
                       Depends: libnss-nisplus-ppc64-cross but it is not installable
   libc6-riscv64-cross : Depends: libnss-nis-riscv64-cross but it is not installable
                         Depends: libnss-nisplus-riscv64-cross but it is not installable
   libc6-s390x-cross : Depends: libnss-nis-s390x-cross but it is not installable
                       Depends: libnss-nisplus-s390x-cross but it is not installable
   libc6-sparc64-cross : Depends: libnss-nis-sparc64-cross but it is not installable
                         Depends: libnss-nisplus-sparc64-cross but it is not installable
   libc6.1-alpha-cross : Depends: libnss-nis-alpha-cross but it is not installable
                         Depends: libnss-nisplus-alpha-cross but it is not installable
   libc6.1-dev-alpha-cross : Depends: rpcsvc-proto-alpha-cross but it is not installable
                             Depends: libtirpc-dev-alpha-cross but it is not installable
                             Depends: libnsl-dev-alpha-cross but it is not installable

  This is reproducible as easy as going into groovy proposed (e.g. container)
  $ apt install gcc-alpha-linux-gnu
  ...
  The following packages have unmet dependencies:
   libc6.1-alpha-cross : Depends: libnss-nis-alpha-cross but it is not installable
                         Depends: libnss-nisplus-alpha-cross but it is not installable
  E: Unable to correct problems, you have held broken packages.

  This repeats for all arches cross toolchains as outlined above.

  The dependency is new in the new version of the packages:

  I wondered if I might look the wrong way, but then on IRC I saw:
    [09:25] <vorlon> doko: hmm so, Broken libc6-dev-i386-cross:amd64
    Depends on rpcsvc-proto-i386-cross:amd64
  Which is part of the same scope.

  Also clearly the new version is what adds the bad dependencies:

  # apt-cache show libc6-riscv64-cross | grep -e ^Vers -e ^Dep
  Version: 2.32-0ubuntu2cross1
  Depends: libnss-nis-riscv64-cross, libnss-nisplus-riscv64-cross
  Version: 2.31-0ubuntu9cross1

  That is out of src cross-toolchain-base-ports:
    cross-toolchain-base-ports | 36ubuntu4   | groovy/universe          | source
    cross-toolchain-base-ports | 38ubuntu1   | groovy-proposed/universe | source

  Which seems to generate versions along glibc as the packages are then
  versioned like: "2.32-0ubuntu2cross1"

  I would assume that this is cross-toolchain-base-ports not yet considering
  src:libnss-nisplus which is new in groovy and states:
  Description-en: NSS module for using NIS+ as a naming service
   This package provides a Name Service Switch that allows your NIS+ server
   act as a name service. This means providing user account information,
   group id's, host information, aliases, netgroups, and basically anything
   else that you would normally get from /etc flat files.
   .
   This module was formerly part of glibc, but is now standalone to be able
   to link against TI-RPC for IPv6 support.

  So maybe that needs to be considered somehow within cross-toolchain-
  base-ports?

  P.S. also adding glibc and gcc-10 bug tasks, but mostly for tracking
  as those are tightly coupled

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cross-toolchain-base-ports/+bug/1895632/+subscriptions



More information about the foundations-bugs mailing list