Skip to content

gcc-5: error: unrecognized command line option '-no-pie'

Summary

GHC attempts to use -no-pie with a GCC compiler that does not support this option.

$ cabal v1-install --jobs=64 --max-backjumps=100000 --only-dependencies
gcc-5: error: unrecognized command line option '-no-pie'
`gcc-5' failed in phase `C Compiler'. (Exit code: 1)

Steps to reproduce

With the Pandoc source code:

cabal v1-install --jobs=64 --max-backjumps=100000 --only-dependencies

With Homebrew on Linux:

brew install pandoc

Expected behavior

What do you expect the reproducer described above to do?

Compile and install Pandoc without using the GCC -no-pie option, which is not supported by GCC 5.

Environment

  • GHC version used: 8.6.5

Optional:

  • Operating System:

CentOS Linux release 7.1.1503 (Core) with Homebrew on Linux

  • System Architecture:

Intel(R) Xeon(R) CPU E7-8867 v3 @ 2.50GHz

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information