Skip to content

Trouble building with profiling enabled #50

@nagaflokhu

Description

@nagaflokhu

I am unable to build this package with cabal. In particular, running cabal install -p random produces the following error message:

/usr/bin/ld.gold: fatal error: -pie and -r are incompatible
collect2: error: ld returned 1 exit status
`gcc' failed in phase `Linker'. (Exit code: 1)
cabal: Leaving directory '/tmp/cabal-tmp-22972/random-1.1'
cabal: Error: some packages failed to install:
random-1.1-9LLJAJa4iQFLJiLXBOBXBV failed during the building phase. The
exception was:
ExitFailure 1

There are also warnings about tab characters further up cabal's message.

cabal install random (without the -p flag) doesn't give me errors.

Some relevant information:

$ cabal --version
cabal-install version 2.2.0.0
compiled using version 2.2.0.0 of the Cabal library
$ ghc --version
The Glorious Glasgow Haskell Compilation System, version 8.4.3
$ gcc --version
gcc (GCC) 8.2.1 20180831
$ grep DISTRIB /etc/lsb-release 
DISTRIB_ID=ManjaroLinux
DISTRIB_RELEASE=18.0.0
DISTRIB_CODENAME=Illyria
DISTRIB_DESCRIPTION="Manjaro Linux"

Please let me know if I can help and thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions