Bug#1052251: gcc-powerpc-linux-gnu: gcc-powerpc64-linux-gnu is not available on ppc64el (aka ppc64le)

2023-09-19 Thread Thomas Fitzsimmons
Package: gcc-powerpc-linux-gnu
Version: 4:12.2.0-5
Severity: wishlist

Hi,

It would be nice if the big-endian 64-bit PowerPC cross-compiler driver
and its dependencies were available on ppc64el, like the 32-bit one:

$ uname -a
Linux hostname 5.14.0-1-powerpc64le #1 SMP Debian 5.14.6-3 (2021-09-28) ppc64le 
GNU/Linux
$ apt install gcc-powerpc-linux-gnu gcc-powerpc64le-linux-gnu 
gcc-powerpc64-linux-gnu
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Note, selecting 'gcc' instead of 'gcc-powerpc64le-linux-gnu'
E: Unable to locate package gcc-powerpc64-linux-gnu
$

I tried to rebuild gcc-12-cross-ports-12 with this patch:

diff -u gcc-12-cross-ports-12/debian/rules\~ gcc-12-cross-ports-12/debian/rules
--- gcc-12-cross-ports-12/debian/rules~ 2023-09-19 09:17:56.949841567 -0400
+++ gcc-12-cross-ports-12/debian/rules  2023-09-18 12:27:32.511544126 -0400
@@ -90,7 +90,7 @@
 else ifeq ($(HOST_ARCH),ppc64)
   CROSS_ARCHS = ppc64el
 else ifeq ($(HOST_ARCH),ppc64el)
-  CROSS_ARCHS = amd64 i386 $(if $(filter $(vendor), Ubuntu), powerpc) \
+  CROSS_ARCHS = amd64 i386 $(if $(filter $(vendor), Ubuntu), powerpc) 
ppc64 \
armel armhf arm64 s390x
 else
   CROSS_ARCHS =
@@ -112,7 +112,7 @@
 else ifeq ($(HOST_ARCH),arm64)
   CROSS_ARCHS = x32 riscv64
 else ifeq ($(HOST_ARCH),ppc64el)
-  CROSS_ARCHS = x32 riscv64 $(if $(filter $(vendor), Ubuntu),, powerpc)
+  CROSS_ARCHS = x32 riscv64 $(if $(filter $(vendor), Ubuntu),, powerpc) 
ppc64
 else
   CROSS_ARCHS =
 endif

but the build failed with:

[...]
make[2]: *** [debian/rules2:1292: stamps/05-build-stamp] Error 1
make[2]: Leaving directory '[...]/gcc-12-cross-ports-12/gcc'
make[1]: *** [debian/rules:51: build] Error 2
make[1]: Leaving directory '[...]/gcc-12-cross-ports-12/gcc'
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2
make: *** [debian/rules:382: stamp-dir/build-gcc.ppc64] Error 2
dpkg-buildpackage: error: debian/rules build subprocess returned exit status 2

I can post more of the log if that would help (the full log is 72M), but
I suspect I omitted something that would be an obvious fix for the
package maintainer.

Thank you,
Thomas



Results for 12.3.0 (Debian 12.3.0-9) testsuite on riscv64-unknown-linux-gnu

2023-09-19 Thread Matthias Klose
LAST_UPDATED: Obtained from git: releases/gcc-12.3.0 revision 
8fc1a49c9312b05d925b7d21f1d2145d70818151

=== acats tests ===

=== acats Summary ===
# of expected passes2328
# of unexpected failures0
Native configuration is riscv64-unknown-linux-gnu

=== g++ tests ===


Running target unix
FAIL: c-c++-common/asan/pointer-compare-1.c   -O0  execution test
FAIL: c-c++-common/asan/pointer-compare-1.c   -O1  execution test
FAIL: c-c++-common/asan/pointer-compare-1.c   -O2  execution test
FAIL: c-c++-common/asan/pointer-compare-1.c   -O3 -g  execution test
FAIL: c-c++-common/asan/pointer-compare-1.c   -Os  execution test
FAIL: c-c++-common/asan/pointer-compare-1.c   -O2 -flto -fno-use-linker-plugin 
-flto-partition=none  execution test
FAIL: c-c++-common/asan/pointer-compare-1.c   -O2 -flto -fuse-linker-plugin 
-fno-fat-lto-objects  execution test
FAIL: c-c++-common/asan/pointer-compare-2.c   -O0  execution test
FAIL: c-c++-common/asan/pointer-compare-2.c   -O1  execution test
FAIL: c-c++-common/asan/pointer-compare-2.c   -O2  execution test
FAIL: c-c++-common/asan/pointer-compare-2.c   -O3 -g  execution test
FAIL: c-c++-common/asan/pointer-compare-2.c   -Os  execution test
FAIL: c-c++-common/asan/pointer-compare-2.c   -O2 -flto -fno-use-linker-plugin 
-flto-partition=none  execution test
FAIL: c-c++-common/asan/pointer-compare-2.c   -O2 -flto -fuse-linker-plugin 
-fno-fat-lto-objects  execution test
FAIL: c-c++-common/asan/pointer-compare-3.c   -O0  execution test
FAIL: c-c++-common/asan/pointer-compare-3.c   -O1  execution test
FAIL: c-c++-common/asan/pointer-compare-3.c   -O2  execution test
FAIL: c-c++-common/asan/pointer-compare-3.c   -O3 -g  execution test
FAIL: c-c++-common/asan/pointer-compare-3.c   -Os  execution test
FAIL: c-c++-common/asan/pointer-compare-3.c   -O2 -flto -fno-use-linker-plugin 
-flto-partition=none  execution test
FAIL: c-c++-common/asan/pointer-compare-3.c   -O2 -flto -fuse-linker-plugin 
-fno-fat-lto-objects  execution test
WARNING: c-c++-common/asan/pr59063-2.c   -O0  (test for excess errors) program 
timed out.
FAIL: c-c++-common/asan/pr59063-2.c   -O0  (test for excess errors)
FAIL: c-c++-common/asan/pr59063-2.c   -O0  execution test
WARNING: c-c++-common/asan/pr59063-2.c   -O1  (test for excess errors) program 
timed out.
FAIL: c-c++-common/asan/pr59063-2.c   -O1  (test for excess errors)
FAIL: c-c++-common/asan/pr59063-2.c   -O1  execution test
WARNING: c-c++-common/asan/pr59063-2.c   -O2  (test for excess errors) program 
timed out.
FAIL: c-c++-common/asan/pr59063-2.c   -O2  (test for excess errors)
FAIL: c-c++-common/asan/pr59063-2.c   -O2  execution test
WARNING: c-c++-common/asan/pr59063-2.c   -O3 -g  (test for excess errors) 
program timed out.
FAIL: c-c++-common/asan/pr59063-2.c   -O3 -g  (test for excess errors)
FAIL: c-c++-common/asan/pr59063-2.c   -O3 -g  execution test
WARNING: c-c++-common/asan/pr59063-2.c   -Os  (test for excess errors) program 
timed out.
FAIL: c-c++-common/asan/pr59063-2.c   -Os  (test for excess errors)
FAIL: c-c++-common/asan/pr59063-2.c   -Os  execution test
WARNING: c-c++-common/asan/pr59063-2.c   -O2 -flto -fno-use-linker-plugin 
-flto-partition=none  (test for excess errors) program timed out.
FAIL: c-c++-common/asan/pr59063-2.c   -O2 -flto -fno-use-linker-plugin 
-flto-partition=none  (test for excess errors)
FAIL: c-c++-common/asan/pr59063-2.c   -O2 -flto -fno-use-linker-plugin 
-flto-partition=none  execution test
WARNING: c-c++-common/asan/pr59063-2.c   -O2 -flto -fuse-linker-plugin 
-fno-fat-lto-objects  (test for excess errors) program timed out.
FAIL: c-c++-common/asan/pr59063-2.c   -O2 -flto -fuse-linker-plugin 
-fno-fat-lto-objects  (test for excess errors)
FAIL: c-c++-common/asan/pr59063-2.c   -O2 -flto -fuse-linker-plugin 
-fno-fat-lto-objects  execution test
FAIL: c-c++-common/asan/pr98920.c   -O0  execution test
FAIL: c-c++-common/asan/pr98920.c   -O1  execution test
FAIL: c-c++-common/asan/pr98920.c   -O2  execution test
FAIL: c-c++-common/asan/pr98920.c   -O3 -g  execution test
FAIL: c-c++-common/asan/pr98920.c   -Os  execution test
FAIL: c-c++-common/asan/pr98920.c   -O2 -flto -fno-use-linker-plugin 
-flto-partition=none  execution test
FAIL: c-c++-common/asan/pr98920.c   -O2 -flto -fuse-linker-plugin 
-fno-fat-lto-objects  execution test
FAIL: g++.dg/asan/asan_test.C   -O2  AddressSanitizer_VariousMallocsTest 
execution test
FAIL: g++.dg/asan/asan_test.C   -O2  AddressSanitizer_CallocTest execution test
FAIL: g++.dg/asan/asan_test.C   -O2  AddressSanitizer_CallocReturnsZeroMem 
execution test
FAIL: g++.dg/asan/asan_test.C   -O2  AddressSanitizer_LargeMallocTest 
Ident((char*)malloc(size))[-1] = 0 output pattern test
FAIL: g++.dg/asan/asan_test.C   -O2  AddressSanitizer_LargeMallocTest 
Ident((char*)malloc(size))[-1] = 0 output pattern test
FAIL: g++.dg/asan/asan_test.C   -O2  AddressSanitizer_LargeMallocTest 
Ident((char*)malloc(size))[-1] = 0 output pattern

Results for 14.0.0 20230917 (experimental) [master r14-4078-g68845f7c4d5] (Debian 20230917-1) testsuite on aarch64-unknown-linux-gnu

2023-09-19 Thread Matthias Klose
LAST_UPDATED: Sun Sep 17 05:21:18 UTC 2023 (revision r14-4078-g68845f7c4d5)

Native configuration is aarch64-unknown-linux-gnu

=== libatomic tests ===


Running target unix

=== libatomic Summary ===

# of expected passes54
=== libffi tests ===


Running target unix

=== libffi Summary ===

# of expected passes1574
=== libgo tests ===


Running target unix
FAIL: os

=== libgo Summary ===

# of expected passes195
# of unexpected failures1
/build/reproducible-path/gcc-snapshot-20230917/build/./gcc/gccgo version 14.0.0 
20230917 (experimental) [master r14-4078-g68845f7c4d5] (Debian 20230917-1)

=== libgomp tests ===


Running target unix

=== libgomp Summary ===

# of expected passes15223
# of expected failures  285
# of unsupported tests  678
=== libitm tests ===


Running target unix

=== libitm Summary ===

# of expected passes44
# of expected failures  3
# of unsupported tests  1
=== libphobos tests ===


Running target unix
FAIL: libphobos.exceptions/rt_trap_exceptions.d output pattern test
FAIL: libphobos.lifetime/large_aggregate_destroy_21097.d (test for excess 
errors)
UNRESOLVED: libphobos.lifetime/large_aggregate_destroy_21097.d compilation 
failed to produce executable
FAIL: libphobos.phobos/std/format/internal/floats.d (test for excess errors)
FAIL: libphobos.phobos/std/format/internal/floats.d execution test
FAIL: libphobos.phobos/std/format/internal/write.d execution test
FAIL: libphobos.phobos/std/internal/math/gammafunction.d execution test
FAIL: libphobos.phobos/std/math/hardware.d execution test
FAIL: libphobos.phobos_shared/std/format/internal/floats.d (test for excess 
errors)
FAIL: libphobos.phobos_shared/std/format/internal/floats.d execution test
FAIL: libphobos.phobos_shared/std/format/internal/write.d execution test
FAIL: libphobos.phobos_shared/std/internal/math/gammafunction.d execution test
FAIL: libphobos.phobos_shared/std/math/hardware.d execution test

=== libphobos Summary ===

# of expected passes1042
# of unexpected failures12
# of unresolved testcases   1
# of unsupported tests  2
=== libstdc++ tests ===


Running target unix

=== libstdc++ Summary ===

# of expected passes18722
# of expected failures  126
# of unsupported tests  386
=== acats tests ===

=== acats Summary ===
# of expected passes2328
# of unexpected failures0

=== g++ tests ===


Running target unix
FAIL: g++.dg/contracts/contracts-tmpl-spec2.C   output pattern test
FAIL: g++.dg/cpp0x/vt-88982.C  -std=c++14 (test for excess errors)
FAIL: g++.dg/cpp0x/vt-88982.C  -std=c++17 (test for excess errors)
FAIL: g++.dg/cpp0x/vt-88982.C  -std=c++20 (test for excess errors)
FAIL: g++.dg/cpp1y/auto-fn61.C  -std=c++14 (test for excess errors)
FAIL: g++.dg/cpp1y/auto-fn61.C  -std=c++17 (test for excess errors)
FAIL: g++.dg/cpp1y/auto-fn61.C  -std=c++20 (test for excess errors)
FAIL: c-c++-common/goacc/kernels-decompose-pr100400-1-3.c  -std=c++98 (test for 
excess errors)
FAIL: c-c++-common/goacc/kernels-decompose-pr100400-1-3.c  -std=c++14 (test for 
excess errors)
FAIL: c-c++-common/goacc/kernels-decompose-pr100400-1-3.c  -std=c++17 (test for 
excess errors)
FAIL: c-c++-common/goacc/kernels-decompose-pr100400-1-3.c  -std=c++20 (test for 
excess errors)
FAIL: c-c++-common/goacc/kernels-decompose-pr100400-1-4.c  -std=c++98 (test for 
excess errors)
FAIL: c-c++-common/goacc/kernels-decompose-pr100400-1-4.c  -std=c++14 (test for 
excess errors)
FAIL: c-c++-common/goacc/kernels-decompose-pr100400-1-4.c  -std=c++17 (test for 
excess errors)
FAIL: c-c++-common/goacc/kernels-decompose-pr100400-1-4.c  -std=c++20 (test for 
excess errors)

=== g++ Summary ===

# of expected passes359199
# of unexpected failures15
# of expected failures  2829
# of unsupported tests  11181
/build/reproducible-path/gcc-snapshot-20230917/build/gcc/xg++  version 14.0.0 
20230917 (experimental) [master r14-4078-g68845f7c4d5] (Debian 20230917-1) 

=== gcc tests ===


Running target unix
FAIL: gcc.dg/guality/example.c   -O1  -DPREVENT_OPTIMIZATION  execution test
FAIL: gcc.dg/guality/pr43051-1.c   -O1  -DPREVENT_OPTIMIZATION  line 34 c == 
&a[0]
FAIL: gcc.dg/guality/pr43051-1.c   -O1  -DPREVENT_OPTIMIZATION  line 39 c == 
&a[0]
FAIL: gcc.dg/guality/pr43051-1.c   -O2  -DPREVENT_OPTIMIZATION  line 34 c == 
&a[0]
FAIL: gcc.dg/guality/pr43051-1.c   -O2  -DPREVENT_OPTIMIZATION  line 39 c == 
&a[0]
FAIL: gcc.dg/guality/pr43051-1.c   -O2 -flto -fno-use-linker-plugin 
-flto-partition=none  -DPREVENT_OPTIMIZATION line 34 c == &a[0]
FAIL: gcc.dg/guality/