<div dir="ltr">cpphs isn't a direct option. It won't install on SmartOS with Cabal. GCC 4.7 is the earliest GCC supported so I'll have to try something else for SmartOS.<div><br></div><div>It looks like the GCC Specs are the problem.</div><div><br></div><div>On Ubuntu the Spec for cpp is:</div><div><br></div><div><div>*cpp:</div><div>%{posix:-D_POSIX_SOURCE} %{pthread:-D_REENTRANT}</div></div><div><br></div><div>On SmartOS the Spec for cpp is:</div><div><br></div><div><div>*cpp:</div><div>%{,assembler-with-cpp:-P} %(cpp_subtarget)</div></div><div><br></div><div>I think this is how the -P gets injected. I think this is correctable. I had a similar issue with -std=c99 which is the default for C compiling on Ubuntu but not on SmartOS leading to issues with compiling source that isn't old school C (like persistent-sqlite).</div><div><br></div><div>Anyways I must retire from this and entertain my guests. Happy New Year folks.</div><div><br></div><div><br><div class="gmail_quote"><div dir="ltr">On Thu, Dec 31, 2015 at 5:19 PM Alain O'Dea <<a href="mailto:alain.odea@gmail.com" target="_blank">alain.odea@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Thanks for the clarification. I understand now.<br><div class="gmail_quote"><div dir="ltr">On Thu, Dec 31, 2015 at 16:52 Karel Gardas <<a href="mailto:karel.gardas@centrum.cz" target="_blank">karel.gardas@centrum.cz</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 12/31/15 07:41 PM, Alain O'Dea wrote:<br>
> Yes. I can do that.<br>
><br>
> On SmartOS it may not be GCC 3.4.3 causing this. I see this on GCC 4.7.x<br>
> through 4.9.x. The paths to gcc on SmartOS also differ. I'll have to<br>
> verify that as part of checking this.<br>
<br>
This is misunderstanding. GCC 3.4.3 provides *correct* CPP behavior,<br>
while all 4.x provides broken CPP. That means as a workaround when GCC<br>
3.4.3 is installed I set it as GHC's CPP automatically on Solaris. When<br>
it is not available, then GHC behaves like you've seen when using CPP...<br>
<br>
Hopefully this is more clear now,<br>
<br>
Karel<br>
<br>
</blockquote></div></blockquote></div></div></div>