Bug 238633 - devel/hs-hashable: fix build on non-x86
Summary: devel/hs-hashable: fix build on non-x86
Status: Closed Works As Intended
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-haskell mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-06-16 23:06 UTC by Piotr Kubaj
Modified: 2019-06-17 07:12 UTC (History)
3 users (show)

See Also:
bugzilla: maintainer-feedback? (haskell)


Attachments
patch (491 bytes, patch)
2019-06-16 23:06 UTC, Piotr Kubaj
pkubaj: maintainer-approval? (haskell)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Piotr Kubaj freebsd_committer 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 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 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 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 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 2019-06-17 07:12:39 UTC
(In reply to mikael.urankar from comment #4)
Ah, you're right, sorry for the noise.