Hi Dennis, Seems like the GHC settings file is incorrect. There is an SO answer that explains how to change this on OSX: https://stackoverflow.com/questions/50386787/cabal-install-gcc-failed-in-pha... and a defect (https://github.com/haskell/haskell-platform/issues/304) This may not be your exact situation but you can adjust settings accordingly based on the path provided (/Library/Frameworks/GHC.framework/Versions/8.4.2-x86_64/usr/lib/ghc-8.4.2/settings). Regards Sumit On Mon, 14 Jan 2019 at 23:47, <beginners-request@haskell.org> wrote:
----------------------------------------------------------------------
Message: 1 Date: Sun, 13 Jan 2019 08:39:42 -0800 From: Dennis Raddle <dennis.raddle@gmail.com> To: Haskell Beginners <beginners@haskell.org> Subject: [Haskell-beginners] -no-pie Message-ID: <CAKxLvooVcHrQ1h_L5a0z_wLJNpM_g9R8D55oExyb=wAQ6J86vA@mail.gmail.com> Content-Type: text/plain; charset="utf-8"
I'm on MacOS Sierra. I'm using stack, but I also sometimes use the system GHC for situations where stack is problematic (one of my applications spawns GHC as part of a work-loop cycle and it's faster to run the system GHC).
My system GHC is 8.4.2.
I just started getting an error on compilation with the system GC: clang: error unknown argument: -no-pie
Does I just need to update the system GHC or is this a symptom of something deeper?