Created attachment 212703 [details] patch New bootstrap: https://people.freebsd.org/~pkubaj/ghc-8.6.5-boot-powerpc64-freebsd-elfv2.tar.xz GCC is not required anymore on powerpc64 elfv2, but to also use lld, additional patch is necessary. Also add USES=compiler:c11 to use GCC from ports on elfv1, GHC can't be compiler with GCC 4.2.
Is iserv patch actually a proper fix? Is the comment true for FreeBSD as well as Solaris?
Um, the suggestion to remove lines with --export-dynamic was done by mikael@. I actually only generated the bootstrap and made the whole patch. So maybe mikael@ can explain :)
Without removing this parameter, linking fails with: ld: error: -r and --export-dynamic may not be used together
I reported an issue upstream about linker error: https://gitlab.haskell.org/ghc/ghc/issues/17962 As for patch, I'll commit it shortly.
I also want to update the arm bootstrap and drop gcc on these arches
Piotr, can you also regenerate the bootstrap on 12.1?
gcc is still required for elfv1? (it's been a while, I'm not sure)
(In reply to Mikael Urankar from comment #7) There's no need to regenerate the bootstrap. GHC won't build with GCC 4.2.
(In reply to Piotr Kubaj from comment #9) We can drop this if all the bootstraps are 8.6.5 https://github.com/freebsd/freebsd-ports/blob/master/lang/ghc/Makefile#L105
A commit references this bug: Author: arrowd Date: Thu Mar 26 18:33:21 UTC 2020 New revision: 529205 URL: https://svnweb.freebsd.org/changeset/ports/529205 Log: Update bootstraps for ARM architectures, get rid of GCC on powerpc64 elfv2/ PR: 245057 Submitted by: pkubaj, mikael Changes: head/lang/ghc/Makefile head/lang/ghc/distinfo head/lang/ghc/files/patch-utils_iserv_ghc.mk
Created attachment 212734 [details] patch binutils and gcc are not needed on arm anymore bump the required FreeBSD version to 12.1-RELEASE drop the need of binutils:strip, elftoolchain:strip slowness is fixed in 12.1-RELEASE
A commit references this bug: Author: arrowd Date: Fri Mar 27 17:45:39 UTC 2020 New revision: 529272 URL: https://svnweb.freebsd.org/changeset/ports/529272 Log: lang/ghc: Don't use GCC on ARM arches. Cleanup Makefile. PR: 245057 Submitted by: mikael Changes: head/lang/ghc/Makefile