Package: ghc Version: 7.10.3-3 Severity: important Tags: patch User: debian-sp...@lists.debian.org Usertags: sparc64
Hello! I just successfully built the first ghc Debian packages for sparc64 with the help of bootstrapping ghc on amd64. In order to successfully build ghc on sparc64, I had to add -optl-Wl,-no-relax to SRC_HC_OPTS as otherwise gcc would pass "-r" and "--relax" to ld which is not allowed on sparc*. ghc upstream actually contains a fix for this [1] which, unfortuntely, applies to sparc but not sparc64 as the latter is not natively supported by ghc yet and not detected as ArchSPARC. Native sparc64 support could possibly happen in the future though since ghc already seems to have NGC support for SPARCv9 according to the source code. Anyway, please apply the attached patch to make ghc build on sparc64. 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
--- debian/rules.orig 2015-12-06 13:56:27.000000000 +0100 +++ debian/rules 2015-12-12 22:16:57.646797482 +0100 @@ -43,6 +43,9 @@ override_dh_auto_configure: dh_autoreconf perl -- boot echo "SRC_HC_OPTS += -lffi -optl-pthread" >> mk/build.mk +ifneq (,$(filter $(DEB_HOST_ARCH), sparc64)) + echo "SRC_HC_OPTS += -optl-Wl,-no-relax" >> mk/build.mk +endif echo "HADDOCK_DOCS := YES" >> mk/build.mk echo "XSLTPROC_OPTS += --nonet" >> mk/build.mk ifneq (,$(findstring $(DEB_HOST_ARCH), arm64 armel armhf))