AJChapman / formatting

Format strings type-safely with combinators
BSD 3-Clause "New" or "Revised" License
164 stars 39 forks source link

Installation problem (OpenSUSE Tumbleweed, GHC 8.0.2) #32

Closed bapcyk closed 6 years ago

bapcyk commented 6 years ago

I tried to add the package to my cabal file and then to build a project (with stack), but get:

Error: 
--  While building package double-conversion-2.0.2.0 using:
      /home/bapcyk/.stack/setup-exe-cache/x86_64-linux/Cabal-simple_mPHDZzAJ_1.24.2.0_ghc-8.0.2 --builddir=.stack-work/dist/x86_64-linux/Cabal-1.24.2.0 build --ghc-options " -ddump-hi -ddump-to-file"
    Process exited with code: ExitFailure 1
    Logs have been written to: /home/bapcyk/prj/automation/mytest/.stack-work/logs/double-conversion-2.0.2.0.log

    Configuring double-conversion-2.0.2.0...
    Building double-conversion-2.0.2.0...
    Preprocessing library double-conversion-2.0.2.0...
    [1 of 3] Compiling Data.Double.Conversion.FFI ( Data/Double/Conversion/FFI.hs, .stack-work/dist/x86_64-linux/Cabal-1.24.2.0/build/Data/Double/Conversion/FFI.o )
    [2 of 3] Compiling Data.Double.Conversion.Text ( Data/Double/Conversion/Text.hs, .stack-work/dist/x86_64-linux/Cabal-1.24.2.0/build/Data/Double/Conversion/Text.o )
    [3 of 3] Compiling Data.Double.Conversion.ByteString ( Data/Double/Conversion/ByteString.hs, .stack-work/dist/x86_64-linux/Cabal-1.24.2.0/build/Data/Double/Conversion/ByteString.o )
    gcc: error trying to exec 'cc1plus': execvp: No such file or directory
    `gcc' failed in phase `C Compiler'. (Exit code: 1)

Warning: Build failed, but optimistically launching GHCi anyway
The following GHC options are incompatible with GHCi and have not been passed to it: -Werror -threaded
Configuring GHCi with the following packages: ...
Using main module: 1. Package `mytest' component exe:mytest-exe with main-is file: /home/bapcyk/prj/automation/mytest/app/Main.hs
Progress: 1/4GHCi, version 8.0.2: http://www.haskell.org/ghc/  :? for help
<command line>: cannot satisfy -package formatting-6.2.4
    (use -v for more information)

I don't see any C-packages dependencies of the formatting-package (but is it one?)... I have installed GCC sure and early I installed already packages with C libs in the deps. list (for regexp) w/o any problems.

bapcyk commented 6 years ago

The reason of bug was missing gcc-g++ package. Not the bug