-
Notifications
You must be signed in to change notification settings - Fork 849
Description
This can be easily fixed in your GHC installation:
sed -i 's/-fno-PIE/-no-pie/g' ~/.stack/programs/x86_64-linux/ghc-nopie-8.0.1/lib/ghc-8.0.1/settings
Hopefully a fixed bindist (or the newer GHC 8.0.2 which ships with this fix already) will be released soon
Steps needed to support Linux distributions that enable PIE by default (Ubuntu 16.10, Debian Sid, etc.)
- Release Stack 1.2.1
- Discover hsc2hs/config build errors cause (edit: maybe hsc2hs uses autotools directly? anyhow now we have a solution)
- Prepare new ghc nopie build to fix the hsc2hs errors?
Old issue description:
This it the same issue that I reported in this other ticket, but I now realized that my "fix" of removing ~/.stack/programs/x86_64-linux/ghc-8.0.1/ actually brought stack in an inconsistent state... and without it being aware of it, it was always selecting the system-installed ghc.
I thus moved away the whole ~/.stack/ directory, and tried to setup again... I tried both with lts version 7 and 6 (with --no-system-ghc), and the setup of ghc fails at linking step with both versions
I'm running Ubuntu 16.10, and I'm running
gcc (Ubuntu 6.2.0-5ubuntu12) 6.2.0 20161005
GNU ld (GNU Binutils for Ubuntu) 2.27
The error is the same as in the other ticket, which I'll link again here
Stack version
Version 1.2.0 x86_64 hpack-0.14.0
Method of installation
Installed into ~/.local/bin/ via stack upgrade