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

2015-12-13 Thread John Paul Adrian Glaubitz
On 12/12/2015 10:27 PM, John Paul Adrian Glaubitz wrote: > 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

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

2015-12-13 Thread John Paul Adrian Glaubitz
On 12/13/2015 12:05 PM, John Paul Adrian Glaubitz wrote: > Ok, this seems to be a bit more complicated as the linker settings have > to be explicitly set in the ghc source code directly. I have tried > building hscolour manually which initially works but eventually fails > with: > >

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

2015-12-13 Thread John Paul Adrian Glaubitz
On 12/12/2015 10:27 PM, John Paul Adrian Glaubitz wrote: > 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. Oops, forgot the link: > [1]

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

2015-12-13 Thread John Paul Adrian Glaubitz
On 12/13/2015 07:04 PM, John Paul Adrian Glaubitz wrote: > On 12/13/2015 12:32 PM, John Paul Adrian Glaubitz wrote: >> I am about to file an upstream bug report in ghc so upstream can >> develop a proper fix similar to the older fix for sparc [2]. > > Attaching a proposed fix which I have also

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

2015-12-13 Thread John Paul Adrian Glaubitz
On 12/13/2015 12:32 PM, John Paul Adrian Glaubitz wrote: > I am about to file an upstream bug report in ghc so upstream can > develop a proper fix similar to the older fix for sparc [2]. Attaching a proposed fix which I have also posted upstream [1]. Cheers, Adrian > [1]

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

2015-12-13 Thread John Paul Adrian Glaubitz
Hi Joachim! As per discussion on IRC in #debian-haskell, I have revised my patch a bit after doing a build test on amd64 which triggered a few warnings which this new patch eliminates. ghc builds cleanly on amd64 with my patch applied. My patch basically is a copy of the patch which added

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

2015-12-12 Thread John Paul Adrian Glaubitz
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