hedgewars-0.9.22: Haskell library 'base' required

3 replies [Last post]
YuGiOhJCJ
YuGiOhJCJ's picture
User offline. Last seen 1 year 26 weeks ago. Offline
Joined: 2010-08-27
Posts: 9

hello, I am trying to build hedgewars-0.9.22 on Slackware64 14.2 but I have a strange behavior: Each time I run cmake, the error message does not say the same thing. Moreover, the first error message is about "base" that is already installed on my computer.

See here:
---
$ cmake . -DNOSERVER=0 -DCMAKE_C_FLAGS:STRING="-O2 -fPIC" -DCMAKE_CXX_FLAGS:STRING="-O2 -fPIC" -DCMAKE_INSTALL_PREFIX=/usr
-- The C compiler identification is GNU 5.3.0
-- The CXX compiler identification is GNU 5.3.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Building 0.9.22-r11265 (4c4f22cc3fa4)
-- Performing Test HAVE_STACKPROTECTOR
-- Performing Test HAVE_STACKPROTECTOR - Success
-- Performing Test HAVE_VISIBILITY
-- Performing Test HAVE_VISIBILITY - Success
-- Performing Test HAVE_NOEXECSTACK
-- Performing Test HAVE_NOEXECSTACK - Success
-- Performing Test HAVE_ORIGIN
-- Performing Test HAVE_ORIGIN - Success
-- Performing Test HAVE_RELROFULL
-- Performing Test HAVE_RELROFULL - Success
-- Performing Test HAVE_ASNEEDED
-- Performing Test HAVE_ASNEEDED - Success
-- Using RELEASE configuration
-- Found GHC: /usr/bin/ghc
-- Looking for mask in Control.Exception
-- Looking for mask in Control.Exception - not found
CMake Error at cmake_modules/CheckHaskellModuleExists.cmake:49 (message):
Haskell library 'base' required
Call Stack (most recent call first):
gameServer/CMakeLists.txt:8 (check_haskell_module_exists)

-- Configuring incomplete, errors occurred!
See also "/tmp/build/hedgewars-src-0.9.22/CMakeFiles/CMakeOutput.log".
See also "/tmp/build/hedgewars-src-0.9.22/CMakeFiles/CMakeError.log".
$ cmake . -DNOSERVER=0 -DCMAKE_C_FLAGS:STRING="-O2 -fPIC" -DCMAKE_CXX_FLAGS:STRING="-O2 -fPIC" -DCMAKE_INSTALL_PREFIX=/usr
-- Building 0.9.22-r11265 (4c4f22cc3fa4)
-- Using RELEASE configuration
CMake Warning (dev) at cmake_modules/CheckHaskellModuleExists.cmake:14 (if):
Policy CMP0054 is not set: Only interpret if() arguments as variables or
keywords when unquoted. Run "cmake --help-policy CMP0054" for policy
details. Use the cmake_policy command to set the policy and suppress this
warning.

Quoted variables like "HS_MODULE_base_mask" will no longer be dereferenced
when the policy is set to NEW. Since the policy is not set the OLD
behavior will be used.
Call Stack (most recent call first):
gameServer/CMakeLists.txt:8 (check_haskell_module_exists)
This warning is for project developers. Use -Wno-dev to suppress it.

-- Looking for size in Data.Map
-- Looking for size in Data.Map - found
-- Looking for length in Data.Vector
-- Looking for length in Data.Vector - not found
CMake Error at cmake_modules/CheckHaskellModuleExists.cmake:49 (message):
Haskell library 'vector' required
Call Stack (most recent call first):
gameServer/CMakeLists.txt:10 (check_haskell_module_exists)

-- Configuring incomplete, errors occurred!
See also "/tmp/build/hedgewars-src-0.9.22/CMakeFiles/CMakeOutput.log".
See also "/tmp/build/hedgewars-src-0.9.22/CMakeFiles/CMakeError.log".
$ cmake . -DNOSERVER=0 -DCMAKE_C_FLAGS:STRING="-O2 -fPIC" -DCMAKE_CXX_FLAGS:STRING="-O2 -fPIC" -DCMAKE_INSTALL_PREFIX=/usr
-- Building 0.9.22-r11265 (4c4f22cc3fa4)
-- Using RELEASE configuration
CMake Warning (dev) at cmake_modules/CheckHaskellModuleExists.cmake:14 (if):
Policy CMP0054 is not set: Only interpret if() arguments as variables or
keywords when unquoted. Run "cmake --help-policy CMP0054" for policy
details. Use the cmake_policy command to set the policy and suppress this
warning.

Quoted variables like "HS_MODULE_base_mask" will no longer be dereferenced
when the policy is set to NEW. Since the policy is not set the OLD
behavior will be used.
Call Stack (most recent call first):
gameServer/CMakeLists.txt:8 (check_haskell_module_exists)
This warning is for project developers. Use -Wno-dev to suppress it.

-- Looking for pack in Data.ByteString
-- Looking for pack in Data.ByteString - found
-- Looking for putDigit in Text.Show.ByteString
-- Looking for putDigit in Text.Show.ByteString - not found
CMake Error at cmake_modules/CheckHaskellModuleExists.cmake:49 (message):
Haskell library 'bytestring-show' required
Call Stack (most recent call first):
gameServer/CMakeLists.txt:12 (check_haskell_module_exists)

-- Configuring incomplete, errors occurred!
See also "/tmp/build/hedgewars-src-0.9.22/CMakeFiles/CMakeOutput.log".
See also "/tmp/build/hedgewars-src-0.9.22/CMakeFiles/CMakeError.log".
$ cmake . -DNOSERVER=0 -DCMAKE_C_FLAGS:STRING="-O2 -fPIC" -DCMAKE_CXX_FLAGS:STRING="-O2 -fPIC" -DCMAKE_INSTALL_PREFIX=/usr
-- Building 0.9.22-r11265 (4c4f22cc3fa4)
-- Using RELEASE configuration
CMake Warning (dev) at cmake_modules/CheckHaskellModuleExists.cmake:14 (if):
Policy CMP0054 is not set: Only interpret if() arguments as variables or
keywords when unquoted. Run "cmake --help-policy CMP0054" for policy
details. Use the cmake_policy command to set the policy and suppress this
warning.

Quoted variables like "HS_MODULE_base_mask" will no longer be dereferenced
when the policy is set to NEW. Since the policy is not set the OLD
behavior will be used.
Call Stack (most recent call first):
gameServer/CMakeLists.txt:8 (check_haskell_module_exists)
This warning is for project developers. Use -Wno-dev to suppress it.

-- Looking for getHostName in Network.BSD
-- Looking for getHostName in Network.BSD - not found
CMake Error at cmake_modules/CheckHaskellModuleExists.cmake:49 (message):
Haskell library 'network' required
Call Stack (most recent call first):
gameServer/CMakeLists.txt:13 (check_haskell_module_exists)

-- Configuring incomplete, errors occurred!
See also "/tmp/build/hedgewars-src-0.9.22/CMakeFiles/CMakeOutput.log".
See also "/tmp/build/hedgewars-src-0.9.22/CMakeFiles/CMakeError.log".
$ cmake . -DNOSERVER=0 -DCMAKE_C_FLAGS:STRING="-O2 -fPIC" -DCMAKE_CXX_FLAGS:STRING="-O2 -fPIC" -DCMAKE_INSTALL_PREFIX=/usr
-- Building 0.9.22-r11265 (4c4f22cc3fa4)
-- Using RELEASE configuration
CMake Warning (dev) at cmake_modules/CheckHaskellModuleExists.cmake:14 (if):
Policy CMP0054 is not set: Only interpret if() arguments as variables or
keywords when unquoted. Run "cmake --help-policy CMP0054" for policy
details. Use the cmake_policy command to set the policy and suppress this
warning.

Quoted variables like "HS_MODULE_base_mask" will no longer be dereferenced
when the policy is set to NEW. Since the policy is not set the OLD
behavior will be used.
Call Stack (most recent call first):
gameServer/CMakeLists.txt:8 (check_haskell_module_exists)
This warning is for project developers. Use -Wno-dev to suppress it.

-- Looking for getCurrentTime in Data.Time
-- Looking for getCurrentTime in Data.Time - found
-- Looking for fix in Control.Monad.State
-- Looking for fix in Control.Monad.State - not found
CMake Error at cmake_modules/CheckHaskellModuleExists.cmake:49 (message):
Haskell library 'mtl' required
Call Stack (most recent call first):
gameServer/CMakeLists.txt:15 (check_haskell_module_exists)

-- Configuring incomplete, errors occurred!
See also "/tmp/build/hedgewars-src-0.9.22/CMakeFiles/CMakeOutput.log".
See also "/tmp/build/hedgewars-src-0.9.22/CMakeFiles/CMakeError.log".
$ cmake . -DNOSERVER=0 -DCMAKE_C_FLAGS:STRING="-O2 -fPIC" -DCMAKE_CXX_FLAGS:STRING="-O2 -fPIC" -DCMAKE_INSTALL_PREFIX=/usr
-- Building 0.9.22-r11265 (4c4f22cc3fa4)
-- Using RELEASE configuration
CMake Warning (dev) at cmake_modules/CheckHaskellModuleExists.cmake:14 (if):
Policy CMP0054 is not set: Only interpret if() arguments as variables or
keywords when unquoted. Run "cmake --help-policy CMP0054" for policy
details. Use the cmake_policy command to set the policy and suppress this
warning.

Quoted variables like "HS_MODULE_base_mask" will no longer be dereferenced
when the policy is set to NEW. Since the policy is not set the OLD
behavior will be used.
Call Stack (most recent call first):
gameServer/CMakeLists.txt:8 (check_haskell_module_exists)
This warning is for project developers. Use -Wno-dev to suppress it.

-- Looking for encode in Codec.Binary.Base64
-- Looking for encode in Codec.Binary.Base64 - not found
CMake Error at cmake_modules/CheckHaskellModuleExists.cmake:49 (message):
Haskell library 'dataenc' required
Call Stack (most recent call first):
gameServer/CMakeLists.txt:16 (check_haskell_module_exists)

-- Configuring incomplete, errors occurred!
See also "/tmp/build/hedgewars-src-0.9.22/CMakeFiles/CMakeOutput.log".
See also "/tmp/build/hedgewars-src-0.9.22/CMakeFiles/CMakeError.log".
$ cmake . -DNOSERVER=0 -DCMAKE_C_FLAGS:STRING="-O2 -fPIC" -DCMAKE_CXX_FLAGS:STRING="-O2 -fPIC" -DCMAKE_INSTALL_PREFIX=/usr
-- Building 0.9.22-r11265 (4c4f22cc3fa4)
-- Using RELEASE configuration
CMake Warning (dev) at cmake_modules/CheckHaskellModuleExists.cmake:14 (if):
Policy CMP0054 is not set: Only interpret if() arguments as variables or
keywords when unquoted. Run "cmake --help-policy CMP0054" for policy
details. Use the cmake_policy command to set the policy and suppress this
warning.

Quoted variables like "HS_MODULE_base_mask" will no longer be dereferenced
when the policy is set to NEW. Since the policy is not set the OLD
behavior will be used.
Call Stack (most recent call first):
gameServer/CMakeLists.txt:8 (check_haskell_module_exists)
This warning is for project developers. Use -Wno-dev to suppress it.

-- Looking for warningM in System.Log.Logger
-- Looking for warningM in System.Log.Logger - not found
CMake Error at cmake_modules/CheckHaskellModuleExists.cmake:49 (message):
Haskell library 'hslogger' required
Call Stack (most recent call first):
gameServer/CMakeLists.txt:17 (check_haskell_module_exists)

-- Configuring incomplete, errors occurred!
See also "/tmp/build/hedgewars-src-0.9.22/CMakeFiles/CMakeOutput.log".
See also "/tmp/build/hedgewars-src-0.9.22/CMakeFiles/CMakeError.log".
$ cmake . -DNOSERVER=0 -DCMAKE_C_FLAGS:STRING="-O2 -fPIC" -DCMAKE_CXX_FLAGS:STRING="-O2 -fPIC" -DCMAKE_INSTALL_PREFIX=/usr
-- Building 0.9.22-r11265 (4c4f22cc3fa4)
-- Using RELEASE configuration
CMake Warning (dev) at cmake_modules/CheckHaskellModuleExists.cmake:14 (if):
Policy CMP0054 is not set: Only interpret if() arguments as variables or
keywords when unquoted. Run "cmake --help-policy CMP0054" for policy
details. Use the cmake_policy command to set the policy and suppress this
warning.

Quoted variables like "HS_MODULE_base_mask" will no longer be dereferenced
when the policy is set to NEW. Since the policy is not set the OLD
behavior will be used.
Call Stack (most recent call first):
gameServer/CMakeLists.txt:8 (check_haskell_module_exists)
This warning is for project developers. Use -Wno-dev to suppress it.

-- Looking for createProcess in System.Process
-- Looking for createProcess in System.Process - found
-- Looking for decode in Data.ByteString.Lazy.UTF8
-- Looking for decode in Data.ByteString.Lazy.UTF8 - not found
CMake Error at cmake_modules/CheckHaskellModuleExists.cmake:49 (message):
Haskell library 'utf8-string' required
Call Stack (most recent call first):
gameServer/CMakeLists.txt:19 (check_haskell_module_exists)

-- Configuring incomplete, errors occurred!
See also "/tmp/build/hedgewars-src-0.9.22/CMakeFiles/CMakeOutput.log".
See also "/tmp/build/hedgewars-src-0.9.22/CMakeFiles/CMakeError.log".
$ cmake . -DNOSERVER=0 -DCMAKE_C_FLAGS:STRING="-O2 -fPIC" -DCMAKE_CXX_FLAGS:STRING="-O2 -fPIC" -DCMAKE_INSTALL_PREFIX=/usr
-- Building 0.9.22-r11265 (4c4f22cc3fa4)
-- Using RELEASE configuration
CMake Warning (dev) at cmake_modules/CheckHaskellModuleExists.cmake:14 (if):
Policy CMP0054 is not set: Only interpret if() arguments as variables or
keywords when unquoted. Run "cmake --help-policy CMP0054" for policy
details. Use the cmake_policy command to set the policy and suppress this
warning.

Quoted variables like "HS_MODULE_base_mask" will no longer be dereferenced
when the policy is set to NEW. Since the policy is not set the OLD
behavior will be used.
Call Stack (most recent call first):
gameServer/CMakeLists.txt:8 (check_haskell_module_exists)
This warning is for project developers. Use -Wno-dev to suppress it.

-- Looking for sha1 in Data.Digest.Pure.SHA
-- Looking for sha1 in Data.Digest.Pure.SHA - not found
CMake Error at cmake_modules/CheckHaskellModuleExists.cmake:49 (message):
Haskell library 'SHA' required
Call Stack (most recent call first):
gameServer/CMakeLists.txt:20 (check_haskell_module_exists)

-- Configuring incomplete, errors occurred!
See also "/tmp/build/hedgewars-src-0.9.22/CMakeFiles/CMakeOutput.log".
See also "/tmp/build/hedgewars-src-0.9.22/CMakeFiles/CMakeError.log".
$ cmake . -DNOSERVER=0 -DCMAKE_C_FLAGS:STRING="-O2 -fPIC" -DCMAKE_CXX_FLAGS:STRING="-O2 -fPIC" -DCMAKE_INSTALL_PREFIX=/usr
-- Building 0.9.22-r11265 (4c4f22cc3fa4)
-- Using RELEASE configuration
CMake Warning (dev) at cmake_modules/CheckHaskellModuleExists.cmake:14 (if):
Policy CMP0054 is not set: Only interpret if() arguments as variables or
keywords when unquoted. Run "cmake --help-policy CMP0054" for policy
details. Use the cmake_policy command to set the policy and suppress this
warning.

Quoted variables like "HS_MODULE_base_mask" will no longer be dereferenced
when the policy is set to NEW. Since the policy is not set the OLD
behavior will be used.
Call Stack (most recent call first):
gameServer/CMakeLists.txt:8 (check_haskell_module_exists)
This warning is for project developers. Use -Wno-dev to suppress it.

-- Looking for openHandle in System.Entropy
-- Looking for openHandle in System.Entropy - not found
CMake Error at cmake_modules/CheckHaskellModuleExists.cmake:49 (message):
Haskell library 'entropy' required
Call Stack (most recent call first):
gameServer/CMakeLists.txt:21 (check_haskell_module_exists)

-- Configuring incomplete, errors occurred!
See also "/tmp/build/hedgewars-src-0.9.22/CMakeFiles/CMakeOutput.log".
See also "/tmp/build/hedgewars-src-0.9.22/CMakeFiles/CMakeError.log".
$ cmake . -DNOSERVER=0 -DCMAKE_C_FLAGS:STRING="-O2 -fPIC" -DCMAKE_CXX_FLAGS:STRING="-O2 -fPIC" -DCMAKE_INSTALL_PREFIX=/usr
-- Building 0.9.22-r11265 (4c4f22cc3fa4)
-- Using RELEASE configuration
CMake Warning (dev) at cmake_modules/CheckHaskellModuleExists.cmake:14 (if):
Policy CMP0054 is not set: Only interpret if() arguments as variables or
keywords when unquoted. Run "cmake --help-policy CMP0054" for policy
details. Use the cmake_policy command to set the policy and suppress this
warning.

Quoted variables like "HS_MODULE_base_mask" will no longer be dereferenced
when the policy is set to NEW. Since the policy is not set the OLD
behavior will be used.
Call Stack (most recent call first):
gameServer/CMakeLists.txt:8 (check_haskell_module_exists)
This warning is for project developers. Use -Wno-dev to suppress it.

-- Looking for decompress in Codec.Compression.Zlib
-- Looking for decompress in Codec.Compression.Zlib - not found
CMake Error at cmake_modules/CheckHaskellModuleExists.cmake:49 (message):
Haskell library 'zlib' required
Call Stack (most recent call first):
gameServer/CMakeLists.txt:22 (check_haskell_module_exists)

-- Configuring incomplete, errors occurred!
See also "/tmp/build/hedgewars-src-0.9.22/CMakeFiles/CMakeOutput.log".
See also "/tmp/build/hedgewars-src-0.9.22/CMakeFiles/CMakeError.log".
$ cmake . -DNOSERVER=0 -DCMAKE_C_FLAGS:STRING="-O2 -fPIC" -DCMAKE_CXX_FLAGS:STRING="-O2 -fPIC" -DCMAKE_INSTALL_PREFIX=/usr
-- Building 0.9.22-r11265 (4c4f22cc3fa4)
-- Using RELEASE configuration
CMake Warning (dev) at cmake_modules/CheckHaskellModuleExists.cmake:14 (if):
Policy CMP0054 is not set: Only interpret if() arguments as variables or
keywords when unquoted. Run "cmake --help-policy CMP0054" for policy
details. Use the cmake_policy command to set the policy and suppress this
warning.

Quoted variables like "HS_MODULE_base_mask" will no longer be dereferenced
when the policy is set to NEW. Since the policy is not set the OLD
behavior will be used.
Call Stack (most recent call first):
gameServer/CMakeLists.txt:8 (check_haskell_module_exists)
This warning is for project developers. Use -Wno-dev to suppress it.

-- Looking for getStdGen in System.Random
-- Looking for getStdGen in System.Random - not found
CMake Error at cmake_modules/CheckHaskellModuleExists.cmake:49 (message):
Haskell library 'random' required
Call Stack (most recent call first):
gameServer/CMakeLists.txt:23 (check_haskell_module_exists)

-- Configuring incomplete, errors occurred!
See also "/tmp/build/hedgewars-src-0.9.22/CMakeFiles/CMakeOutput.log".
See also "/tmp/build/hedgewars-src-0.9.22/CMakeFiles/CMakeError.log".
$ cmake . -DNOSERVER=0 -DCMAKE_C_FLAGS:STRING="-O2 -fPIC" -DCMAKE_CXX_FLAGS:STRING="-O2 -fPIC" -DCMAKE_INSTALL_PREFIX=/usr
-- Building 0.9.22-r11265 (4c4f22cc3fa4)
-- Using RELEASE configuration
CMake Warning (dev) at cmake_modules/CheckHaskellModuleExists.cmake:14 (if):
Policy CMP0054 is not set: Only interpret if() arguments as variables or
keywords when unquoted. Run "cmake --help-policy CMP0054" for policy
details. Use the cmake_policy command to set the policy and suppress this
warning.

Quoted variables like "HS_MODULE_base_mask" will no longer be dereferenced
when the policy is set to NEW. Since the policy is not set the OLD
behavior will be used.
Call Stack (most recent call first):
gameServer/CMakeLists.txt:8 (check_haskell_module_exists)
This warning is for project developers. Use -Wno-dev to suppress it.

-- Found Lua: /usr/lib64/liblua.so
-- Could NOT find PhysFS (missing: PHYSFS_LIBRARY PHYSFS_INCLUDE_DIR)
CMake Error at CMakeLists.txt:197 (message):
Missing PhysFS! Rerun cmake with -DPHYSFS_SYSTEM=off to build the internal
version

-- Configuring incomplete, errors occurred!
See also "/tmp/build/hedgewars-src-0.9.22/CMakeFiles/CMakeOutput.log".
See also "/tmp/build/hedgewars-src-0.9.22/CMakeFiles/CMakeError.log".
$ ghc-pkg list
/usr/lib64/ghc-8.0.1/package.conf.d
Cabal-1.24.0.0
array-0.5.1.1
base-4.9.0.0
binary-0.8.3.0
bytestring-0.10.8.1
containers-0.5.7.1
deepseq-1.4.2.0
directory-1.2.6.2
filepath-1.4.1.0
ghc-8.0.1
ghc-boot-8.0.1
ghc-boot-th-8.0.1
ghc-prim-0.5.0.0
ghci-8.0.1
haskeline-0.7.2.3
hoopl-3.10.2.1
hpc-0.6.0.3
integer-gmp-1.0.0.1
pretty-1.1.3.3
process-1.4.2.0
rts-1.0
template-haskell-2.11.0.0
terminfo-0.4.0.2
time-1.6.0.1
transformers-0.5.2.0
unix-2.7.2.0
xhtml-3000.2.1
---

I am using ghc-8.0.1.

Any idea how to solve that please?

Thank you.
Best regards.

sheepluva
sheepluva's picture
User offline. Last seen 2 days 23 hours ago. Offline
Joined: 2009-07-18
Posts: 563

I think I read in live chat that a solution was found?
Please post it here so that other people may use it Smile

  sheepluva <- me  my code stats -> 
a Hedgewars Developer


   <- where I'm from  what I speak -> 

sheepluva
sheepluva's picture
User offline. Last seen 2 days 23 hours ago. Offline
Joined: 2009-07-18
Posts: 563

related [urlhttps://bugs.archlinux.org/task/50198?utm_source=dlvr.it&utm_medium=twitter[/url]

  sheepluva <- me  my code stats -> 
a Hedgewars Developer


   <- where I'm from  what I speak -> 

Hobbes1069
User offline. Last seen 3 years 28 weeks ago. Offline
Joined: 2010-05-23
Posts: 45

I'm having a similar problem with the new ghc version for the future Fedora 26 release.

-- Found GHC: /usr/bin/ghc
-- Looking for mask in Control.Exception
-- Looking for mask in Control.Exception - not found
CMake Error at cmake_modules/CheckHaskellModuleExists.cmake:49 (message):
  Haskell library 'base' required
Call Stack (most recent call first):
  gameServer/CMakeLists.txt:8 (check_haskell_module_exists)
-- Configuring incomplete, errors occurred!

Looking in CMakeError.log:

Determining if the function mask exists in the Control.Exception failed with the following output:

/builddir/build/BUILD/hedgewars-src-0.9.22/cmake_modules/checkModule.hs:5:20: error:
    * Cannot instantiate unification variable `t0'
      with a type involving foralls:
        ((forall a. IO a -> IO a) -> IO b0) -> IO b0
        GHC doesn't yet support impredicative polymorphism
    * In the second argument of `($)', namely `M.mask'
      In the expression: undefined $ M.mask
      In an equation for `main': main = undefined $ M.mask

It looks like the latest version of ghc doesn't like how checkModule.hs is setup.

User login

Copyright © 2004-2024 Hedgewars Project. All rights reserved. [ contact ]