Build and Test Notes:
----------------------
TEST PPA: 
https://launchpad.net/~ibhagat/+archive/ubuntu/tenacious-gcc-defaults-1.234
TEST PPA PACKAGE VERSION: gcc-defaults_1.234ubuntu1~ppa1_source.changes

Tested on a tenacious container:
$ add-apt-repository ppa:ibhagat/tenacious-gcc-defaults-1.234

$ apt dist-upgrade
Not upgrading:                  
  cpp  cpp-x86-64-linux-gnu  gcc  gcc-x86-64-linux-gnu

Summary:
  Upgrading: 0, Installing: 0, Removing: 0, Not Upgrading: 4
root@eddie:~# gcc -v
...
gcc version 15.3.0 (Ubuntu 15.3.0-4ubuntu1) 

$ apt install cpp gcc 2>&1 | tail -20
Building dependency tree...
Reading state information...
Solving dependencies...
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:

Unsatisfied dependencies:
 cpp : Depends: cpp-16 (>= 16.2.0-2~) but it is not installable
       Depends: cpp-x86-64-linux-gnu (= 4:16.2.0-1ubuntu1~ppa1) but 
4:15.2.0-5ubuntu1 is to be installed
 gcc : Depends: cpp-x86-64-linux-gnu (= 4:16.2.0-1ubuntu1~ppa1) but 
4:15.2.0-5ubuntu1 is to be installed
       Depends: gcc-16 (>= 16.2.0-2~) but it is not installable
       Depends: gcc-x86-64-linux-gnu (= 4:16.2.0-1ubuntu1~ppa1) but 
4:15.2.0-5ubuntu1 is to be installed
Error: Unable to satisfy dependencies. Reached two conflicting assignments:
   1. cpp:amd64=4:16.2.0-1ubuntu1~ppa1 is selected as an upgrade
   2. cpp:amd64=4:16.2.0-1ubuntu1~ppa1 Depends cpp-16 (>= 16.2.0-2~)
      but none of the choices are installable:
      [no choices]

$ add-apt-repository universe
$ apt list --upgradable
cpp-x86-64-linux-gnu/tenacious 4:16.2.0-1ubuntu1~ppa1 amd64 [upgradable from: 
4:15.2.0-5ubuntu1]
cpp/tenacious 4:16.2.0-1ubuntu1~ppa1 amd64 [upgradable from: 4:15.2.0-5ubuntu1]
gcc-x86-64-linux-gnu/tenacious 4:16.2.0-1ubuntu1~ppa1 amd64 [upgradable from: 
4:15.2.0-5ubuntu1]
gcc/tenacious 4:16.2.0-1ubuntu1~ppa1 amd64 [upgradable from: 4:15.2.0-5ubuntu1]


$ apt dist-upgrade
(works fine now after adding universe)

Tested some compiler, and cross compiler invocations.

$ for bin in   gcc g++ cpp gfortran   aarch64-linux-gnu-gcc 
aarch64-linux-gnu-g++ aarch64-linux-gnu-cpp aarch64-linux-gnu-gfortran   
riscv64-linux-gnu-gcc riscv64-linux-gnu-g++   s390x-linux-gnu-gcc 
s390x-linux-gnu-g++; do   printf "%s -> %s | %s\n" "$bin" "$(readlink -f 
$(command -v $bin))" "$($bin --version | head -n1)"; done
gcc -> /usr/bin/x86_64-linux-gnu-gcc-16 | gcc (Ubuntu 16.2.0-4ubuntu1) 16.2.0
g++ -> /usr/bin/x86_64-linux-gnu-g++-16 | g++ (Ubuntu 16.2.0-4ubuntu1) 16.2.0
cpp -> /usr/bin/x86_64-linux-gnu-cpp-16 | cpp (Ubuntu 16.2.0-4ubuntu1) 16.2.0
gfortran -> /usr/bin/x86_64-linux-gnu-gfortran-16 | GNU Fortran (Ubuntu 
16.2.0-4ubuntu1) 16.2.0
aarch64-linux-gnu-gcc -> /usr/bin/aarch64-linux-gnu-gcc-16 | 
aarch64-linux-gnu-gcc (Ubuntu 16.2.0-3ubuntu1) 16.2.0
aarch64-linux-gnu-g++ -> /usr/bin/aarch64-linux-gnu-g++-16 | 
aarch64-linux-gnu-g++ (Ubuntu 16.2.0-3ubuntu1) 16.2.0
aarch64-linux-gnu-cpp -> /usr/bin/aarch64-linux-gnu-cpp-16 | 
aarch64-linux-gnu-cpp (Ubuntu 16.2.0-3ubuntu1) 16.2.0
aarch64-linux-gnu-gfortran -> /usr/bin/aarch64-linux-gnu-gfortran-16 | GNU 
Fortran (Ubuntu 16.2.0-3ubuntu1) 16.2.0
riscv64-linux-gnu-gcc -> /usr/bin/riscv64-linux-gnu-gcc-16 | 
riscv64-linux-gnu-gcc (Ubuntu 16.2.0-3ubuntu1) 16.2.0
riscv64-linux-gnu-g++ -> /usr/bin/riscv64-linux-gnu-g++-16 | 
riscv64-linux-gnu-g++ (Ubuntu 16.2.0-3ubuntu1) 16.2.0
s390x-linux-gnu-gcc -> /usr/bin/s390x-linux-gnu-gcc-16 | s390x-linux-gnu-gcc 
(Ubuntu 16.2.0-3ubuntu1) 16.2.0
s390x-linux-gnu-g++ -> /usr/bin/s390x-linux-gnu-g++-16 | s390x-linux-gnu-g++ 
(Ubuntu 16.2.0-3ubuntu1) 16.2.0

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

Title:
  Please merge gcc-defaults 1.234 into tenacious (default to GCC 16)

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


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to