Source: gcc-6 Version: 6_6.2.1-4 Severity: normal Tags: patch User: helm...@debian.org Usertags: rebootstrap
Hello! Currently, rebootstrap fails on sparc-linux-gnu because the gcc-6 package no longer builds with --mcpu=ultrasparc on this target. This was previously with the sparc-force-cpu.diff patch which got removed while fixing the multilib issue on sparc64. However, since gcc upstream still defaults to --mcpu=v7 on sparc (32-bit) by default, we need to set the CPU to "ultrasparc" in the Debian gcc package. This is achieved with the following simple patch: diff -Nru gcc-6-6.2.1.old/debian/rules2 gcc-6-6.2.1.new/debian/rules2 --- gcc-6-6.2.1.old/debian/rules2 2016-11-23 17:42:53.000000000 +0100 +++ gcc-6-6.2.1.new/debian/rules2 2016-11-23 17:42:02.417500510 +0100 @@ -541,6 +541,7 @@ ifneq (,$(findstring sparc-linux,$(DEB_TARGET_GNU_TYPE))) ifeq ($(biarch64),yes) CONFARGS += --enable-targets=all + CONFARGS += --with-cpu=ultrasparc endif endif I'm also attaching this patch as a separate file. I think the rebootstrap project will be happy to see sparc succeeding for cross-builds again :). Thanks, Adrian -- .''`. John Paul Adrian Glaubitz : :' : Debian Developer - glaub...@debian.org `. `' Freie Universitaet Berlin - glaub...@physik.fu-berlin.de `- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913
diff -Nru gcc-6-6.2.1.old/debian/rules2 gcc-6-6.2.1.new/debian/rules2 --- gcc-6-6.2.1.old/debian/rules2 2016-11-23 17:42:53.000000000 +0100 +++ gcc-6-6.2.1.new/debian/rules2 2016-11-23 17:42:02.417500510 +0100 @@ -541,6 +541,7 @@ ifneq (,$(findstring sparc-linux,$(DEB_TARGET_GNU_TYPE))) ifeq ($(biarch64),yes) CONFARGS += --enable-targets=all + CONFARGS += --with-cpu=ultrasparc endif endif