Wrong Endian, ghc-pwd and ghc-cabal on ghc 8.0.1 for powerpc64le (IBM Power)
I tried to compile ghc-8.0.1 from source using the powerpc64/unknown linux .tar.xz file (since the other file was for AIX).
The ghc-pwd and ghc-cabal files won't execute even after stripping them with strip.
The libraries included are Big Endian instead of Little Endian.
I replaced the libffi library by the local one on my system (IBM Power8 with redhatenterpriseserver).
ghc complains there is no cabal file after naming a symlink to cabal (on /bin) ghc-cabal (instead of the faulty ghc-cabal file).
See attached file.