<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Feb 1, 2020 at 5:31 AM Simon Jakobi via Haskell-Cafe <<a href="mailto:haskell-cafe@haskell.org" target="_blank">haskell-cafe@haskell.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Maybe. Though it seems to me that the pre-processor isn't missing, but<br>
it's doing the wrong thing…<br>
<br>
I'd suggest to open an issue at<br>
<a href="https://gitlab.haskell.org/ghc/ghc/issues" rel="noreferrer" target="_blank">https://gitlab.haskell.org/ghc/ghc/issues</a> – there should be people who<br>
can tell more exactly what's going wrong here.<br></blockquote><div><br></div><div>Yep, the problem is with Clang's preprocessor. Running it manually results in a bunch of<br></div><div><br></div><div> warning: missing terminating ' character [-Winvalid-pp-token]</div><div><br></div><div>messages.</div><div><br></div><div>Stumbling upon a ' character makes cpp stop preprocessing current macro. This is the case for IsValue instance, which contain typeOf' method.</div><div><br></div><div>Not sure if this should be reported to the package developer, GHC devs or Clang devs.<br></div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
Am Sa., 1. Feb. 2020 um 02:16 Uhr schrieb Brandon Martin<br>
<<a href="mailto:brandon@codedmart.com" target="_blank">brandon@codedmart.com</a>>:<br>
><br>
> Hmm... maybe I am missing a package in FreeBSD then? Is that the possible suggestion?<br>
><br>
> --<br>
> Brandon Martin<br>
><br>
> On Fri, Jan 31, 2020, at 5:12 PM, Simon Jakobi wrote:<br>
> > I think the error suggests that the C pre-processor doesn't work as<br>
> > expected. Look at the source around the error locations:<br>
> ><br>
> > <a href="https://github.com/rblaze/haskell-dbus/blob/43b1382ce93f08272fd6fda253d977f604214b2e/lib/DBus/Internal/Types.hs#L452-L481" rel="noreferrer" target="_blank">https://github.com/rblaze/haskell-dbus/blob/43b1382ce93f08272fd6fda253d977f604214b2e/lib/DBus/Internal/Types.hs#L452-L481</a><br>
> ><br>
> > "HsType" is a variable name used in the CPP definition.<br>
> ><br>
> > Am Sa., 1. Feb. 2020 um 01:58 Uhr schrieb Brandon Martin<br>
> > <<a href="mailto:brandon@codedmart.com" target="_blank">brandon@codedmart.com</a>>:<br>
> > ><br>
> > > Yes I am. I put allow newer in both because stack complained about dependencies, and suggested it. I just put it in as a quick test to see if I could build it. Cabal didn't complain about dependencies, but got the same error.<br>
> > ><br>
> > > --<br>
> > > Brandon Martin<br>
> > ><br>
> > > On Fri, Jan 31, 2020, at 4:55 PM, Simon Jakobi wrote:<br>
> > > > Are you using the same dependency set (including GHC version) that you<br>
> > > > used on Linux too?<br>
> > > ><br>
> > > > Why did you enable allow-newer?<br>
> > > ><br>
> > > > Am Sa., 1. Feb. 2020 um 01:30 Uhr schrieb Brandon Martin<br>
> > > > <<a href="mailto:brandon@codedmart.com" target="_blank">brandon@codedmart.com</a>>:<br>
> > > > ><br>
> > > > > I am trying to build haskell-dbus on FreeBSD 12.1. I have tried with stack 2.1.3.1, and with cabal 2.4.0.0. I am seeing this error:<br>
> > > > ><br>
> > > > > Not in scope: type constructor or class ‘HsType’<br>
> > > > ><br>
> > > > > Full error: <a href="https://gist.github.com/codedmart/2b04438566ed8e985d909db7d426649c" rel="noreferrer" target="_blank">https://gist.github.com/codedmart/2b04438566ed8e985d909db7d426649c</a><br>
> > > > ><br>
> > > > > HsType is part of ghc unless I am missing something. I am new to using FreeBSD as I usually use Linux. This package builds fine for me on Linux.<br>
> > > > ><br>
> > > > > Thanks<br>
> > > > ><br>
> > > > > --<br>
> > > > > Brandon Martin<br>
> > > > ><br>
> > > > > _______________________________________________<br>
> > > > > Haskell-Cafe mailing list<br>
> > > > > To (un)subscribe, modify options or view archives go to:<br>
> > > > > <a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe" rel="noreferrer" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe</a><br>
> > > > > Only members subscribed via the mailman list are allowed to post.<br>
> > > ><br>
> ><br>
_______________________________________________<br>
Haskell-Cafe mailing list<br>
To (un)subscribe, modify options or view archives go to:<br>
<a href="http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe" rel="noreferrer" target="_blank">http://mail.haskell.org/cgi-bin/mailman/listinfo/haskell-cafe</a><br>
Only members subscribed via the mailman list are allowed to post.</blockquote></div></div>