Bug#807777: ghc: Please adjust linker options for sparc64 (patch supplied)

John Paul Adrian Glaubitz glaubitz at physik.fu-berlin.de
Sat Dec 12 21:27:42 UTC 2015


Package: ghc
Version: 7.10.3-3
Severity: important
Tags: patch
User: debian-sparc at 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 - glaubitz at debian.org
`. `'   Freie Universitaet Berlin - glaubitz at physik.fu-berlin.de
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sparc64-linker-options.patch
Type: text/x-diff
Size: 510 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-haskell-maintainers/attachments/20151212/b028ceed/attachment.patch>


More information about the Pkg-haskell-maintainers mailing list