Source: gcc-5 Version: 5.3.1-10 Severity: normal User: debian-powe...@lists.debian.org Usertags: powerpcspe
Hello! gcc-5 currently fails to build from source on powerpcspe because it incorrectly enables Ada on this architecture despite it has not been bootstrapped here yet. This happens because rules.defs triggers Ada support on powerpcspe by reading DEB_HOST_ARCH_CPU which, however, prints "powerpc" and not "powerpcspe", see below: buildd@atlantis:~$ dpkg-architecture DEB_BUILD_ARCH=powerpcspe DEB_BUILD_ARCH_BITS=32 DEB_BUILD_ARCH_CPU=powerpc DEB_BUILD_ARCH_ENDIAN=big DEB_BUILD_ARCH_OS=linux DEB_BUILD_GNU_CPU=powerpc DEB_BUILD_GNU_SYSTEM=linux-gnuspe DEB_BUILD_GNU_TYPE=powerpc-linux-gnuspe DEB_BUILD_MULTIARCH=powerpc-linux-gnuspe DEB_HOST_ARCH=powerpcspe DEB_HOST_ARCH_BITS=32 DEB_HOST_ARCH_CPU=powerpc DEB_HOST_ARCH_ENDIAN=big DEB_HOST_ARCH_OS=linux DEB_HOST_GNU_CPU=powerpc DEB_HOST_GNU_SYSTEM=linux-gnuspe DEB_HOST_GNU_TYPE=powerpc-linux-gnuspe DEB_HOST_MULTIARCH=powerpc-linux-gnuspe DEB_TARGET_ARCH=powerpcspe DEB_TARGET_ARCH_BITS=32 DEB_TARGET_ARCH_CPU=powerpc DEB_TARGET_ARCH_ENDIAN=big DEB_TARGET_ARCH_OS=linux DEB_TARGET_GNU_CPU=powerpc DEB_TARGET_GNU_SYSTEM=linux-gnuspe DEB_TARGET_GNU_TYPE=powerpc-linux-gnuspe DEB_TARGET_MULTIARCH=powerpc-linux-gnuspe buildd@atlantis:~$ Thus, in order to make sure Ada is disabled on powerpcspe while it has not been bootstrapped yet, we need to trigger by testing DEB_HOST_ARCH: ifneq (,$(filter $(DEB_TARGET_ARCH),powerpcspe x32)) with_ada := disabled for architecture $(DEB_TARGET_ARCH) endif This has been verified to work on real powerpcspe hardware. Cheers, 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