[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

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



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


Reply to: