Bug 238633

Summary: devel/hs-hashable: fix build on non-x86
Product: Ports & Packages Reporter: Piotr Kubaj <pkubaj>
Component: Individual Port(s)Assignee: freebsd-haskell (Nobody) <haskell>
Status: Closed Works As Intended    
Severity: Affects Only Me CC: arrowd, haskell, mikael
Priority: --- Flags: bugzilla: maintainer-feedback? (haskell)
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
patch pkubaj: maintainer-approval? (haskell)

Description Piotr Kubaj freebsd_committer freebsd_triage 2019-06-16 23:06:16 UTC
Created attachment 205152 [details]
patch

This port doesn't build on powerpc64 (and probably other architectures) with INTEGER_GMP enabled. Enable it only on amd64 and i386.
Comment 1 Gleb Popov freebsd_committer freebsd_triage 2019-06-17 06:33:51 UTC
I've been told it does build on !x86 arches with that option enabled. Can you please share a build log with error?
Comment 2 Piotr Kubaj freebsd_committer freebsd_triage 2019-06-17 06:42:24 UTC
https://talos.anongoth.pl/data/powerpc64-default/2019-06-13_22h32m33s/logs/errors/hs-hashable-1.2.7.0_6,1.log

=======================<phase: configure      >============================
===>  Configuring for hs-hashable-1.2.7.0_6,1
[1 of 1] Compiling Main             ( Setup.hs, Setup.o )
Linking ./setup ...
Configuring hashable-1.2.7.0...
setup: Encountered missing dependencies:
integer-gmp >=0.2

*** Error code 1
Comment 3 Gleb Popov freebsd_committer freebsd_triage 2019-06-17 07:02:11 UTC
You probably have built lang/ghc with GMP=OFF, that's where the error comes.
Comment 4 Mikael Urankar freebsd_committer freebsd_triage 2019-06-17 07:03:45 UTC
it builds fine on the cluster
http://pylon.nyi.freebsd.org/data/head-powerpc64-default/p503933_s348887/logs/hs-
hashable-1.2.7.0_6,1.log

make sure ghc is built with the GMP option
Comment 5 Piotr Kubaj freebsd_committer freebsd_triage 2019-06-17 07:12:39 UTC
(In reply to mikael.urankar from comment #4)
Ah, you're right, sorry for the noise.