Build #9 for Random123-0.1.1
Package | Random123-0.1.1 |
---|
Install | BuildFailed |
---|---|
Docs | NotTried |
Tests | NotTried |
Time submitted | 2016-12-21 14:04:39.453957 UTC |
---|---|
Compiler | ghc-8.0.1.20161018 |
OS | linux |
Arch | x86_64 |
Dependencies | array-0.5.1.1, base-4.9.0.0, random-1.1 |
Flags | none |
Code Coverage
No Code Coverage was submitted for this report.
Build log
[view raw]
Resolving dependencies... Configuring random-1.1... Building random-1.1... Installed random-1.1 Configuring Random123-0.1.1... Building Random123-0.1.1... Failed to install Random123-0.1.1 Build log ( /home/builder/.cabal/logs/Random123-0.1.1.log ): cabal: Entering directory '/tmp/cabal-tmp-25722/Random123-0.1.1' Configuring Random123-0.1.1... Building Random123-0.1.1... Preprocessing library Random123-0.1.1... [1 of 6] Compiling System.Random.Random123.Types ( System/Random/Random123/Types.hs, dist/build/System/Random/Random123/Types.o ) System/Random/Random123/Types.hs:37:12: warning: [-Wdeprecations] In the use of ‘bitSize’ (imported from Data.Bits): Deprecated: "Use 'bitSizeMaybe' or 'finiteBitSize' instead" System/Random/Random123/Types.hs:43:12: warning: [-Wdeprecations] In the use of ‘bitSize’ (imported from Data.Bits): Deprecated: "Use 'bitSizeMaybe' or 'finiteBitSize' instead" System/Random/Random123/Types.hs:50:12: warning: [-Wdeprecations] In the use of ‘bitSize’ (imported from Data.Bits): Deprecated: "Use 'bitSizeMaybe' or 'finiteBitSize' instead" System/Random/Random123/Types.hs:56:12: warning: [-Wdeprecations] In the use of ‘bitSize’ (imported from Data.Bits): Deprecated: "Use 'bitSizeMaybe' or 'finiteBitSize' instead" System/Random/Random123/Types.hs:69:17: warning: [-Wdeprecations] In the use of ‘bitSize’ (imported from Data.Bits): Deprecated: "Use 'bitSizeMaybe' or 'finiteBitSize' instead" System/Random/Random123/Types.hs:74:19: warning: [-Wdeprecations] In the use of ‘bitSize’ (imported from Data.Bits): Deprecated: "Use 'bitSizeMaybe' or 'finiteBitSize' instead" System/Random/Random123/Types.hs:79:19: warning: [-Wdeprecations] In the use of ‘bitSize’ (imported from Data.Bits): Deprecated: "Use 'bitSizeMaybe' or 'finiteBitSize' instead" System/Random/Random123/Types.hs:85:17: warning: [-Wdeprecations] In the use of ‘bitSize’ (imported from Data.Bits): Deprecated: "Use 'bitSizeMaybe' or 'finiteBitSize' instead" System/Random/Random123/Types.hs:90:19: warning: [-Wdeprecations] In the use of ‘bitSize’ (imported from Data.Bits): Deprecated: "Use 'bitSizeMaybe' or 'finiteBitSize' instead" System/Random/Random123/Types.hs:95:19: warning: [-Wdeprecations] In the use of ‘bitSize’ (imported from Data.Bits): Deprecated: "Use 'bitSizeMaybe' or 'finiteBitSize' instead" [2 of 6] Compiling System.Random.Random123.Misc ( System/Random/Random123/Misc.hs, dist/build/System/Random/Random123/Misc.o ) [3 of 6] Compiling System.Random.Random123.Philox ( System/Random/Random123/Philox.hs, dist/build/System/Random/Random123/Philox.o ) [4 of 6] Compiling System.Random.Random123.RandomGen ( System/Random/Random123/RandomGen.hs, dist/build/System/Random/Random123/RandomGen.o ) [5 of 6] Compiling System.Random.Random123.Threefry ( System/Random/Random123/Threefry.hs, dist/build/System/Random/Random123/Threefry.o ) System/Random/Random123/Threefry.hs:98:11: error: • Could not deduce (Num a) arising from a use of ‘+’ from the context: Bits a bound by the type signature for: sbox' :: Bits a => Int -> (a -> RotationConstants) -> Array2 a -> Array2 a at System/Random/Random123/Threefry.hs:95:1-74 Possible fix: add (Num a) to the context of the type signature for: sbox' :: Bits a => Int -> (a -> RotationConstants) -> Array2 a -> Array2 a • In the expression: x0 + x1 In an equation for ‘x0'’: x0' = x0 + x1 In an equation for ‘sbox'’: sbox' r r_constant (!x0, !x1) = (x0', x1') where rot = getRotationConstant (r_constant (undefined :: a)) (r `mod` 8) x0' = x0 + x1 x1' = x0' `xor` (x1 `rotate` rot) System/Random/Random123/Threefry.hs:140:32: error: • Could not deduce (Num a) arising from a use of ‘+’ from the context: Bits a bound by the type signature for: pbox2 :: Bits a => (a, a, a) -> Int -> Array2 a -> Array2 a at System/Random/Random123/Threefry.hs:139:1-59 Possible fix: add (Num a) to the context of the type signature for: pbox2 :: Bits a => (a, a, a) -> Int -> Array2 a -> Array2 a • In the expression: x1' + fromIntegral tshift In the expression: (x0', x1' + fromIntegral tshift) In an equation for ‘pbox2’: pbox2 extended_key r x = (x0', x1' + fromIntegral tshift) where tshift = r `div` 4 + 1 (x0', x1') = addTuple2 x (shiftTuple2 tshift extended_key) System/Random/Random123/Threefry.hs:142:18: error: • Could not deduce (Num a) arising from a use of ‘addTuple2’ from the context: Bits a bound by the type signature for: pbox2 :: Bits a => (a, a, a) -> Int -> Array2 a -> Array2 a at System/Random/Random123/Threefry.hs:139:1-59 Possible fix: add (Num a) to the context of the type signature for: pbox2 :: Bits a => (a, a, a) -> Int -> Array2 a -> Array2 a • In the expression: addTuple2 x (shiftTuple2 tshift extended_key) In a pattern binding: (x0', x1') = addTuple2 x (shiftTuple2 tshift extended_key) In an equation for ‘pbox2’: pbox2 extended_key r x = (x0', x1' + fromIntegral tshift) where tshift = r `div` 4 + 1 (x0', x1') = addTuple2 x (shiftTuple2 tshift extended_key) System/Random/Random123/Threefry.hs:145:42: error: • Could not deduce (Num a) arising from a use of ‘+’ from the context: Bits a bound by the type signature for: pbox4 :: Bits a => (a, a, a, a, a) -> Int -> Array4 a -> Array4 a at System/Random/Random123/Threefry.hs:144:1-65 Possible fix: add (Num a) to the context of the type signature for: pbox4 :: Bits a => (a, a, a, a, a) -> Int -> Array4 a -> Array4 a • In the expression: x3' + fromIntegral tshift In the expression: (x0', x1', x2', x3' + fromIntegral tshift) In an equation for ‘pbox4’: pbox4 extended_key r x = (x0', x1', x2', x3' + fromIntegral tshift) where tshift = r `div` 4 + 1 (x0', x1', x2', x3') = addTuple4 x (shiftTuple4 tshift extended_key) System/Random/Random123/Threefry.hs:147:28: error: • Could not deduce (Num a) arising from a use of ‘addTuple4’ from the context: Bits a bound by the type signature for: pbox4 :: Bits a => (a, a, a, a, a) -> Int -> Array4 a -> Array4 a at System/Random/Random123/Threefry.hs:144:1-65 Possible fix: add (Num a) to the context of the type signature for: pbox4 :: Bits a => (a, a, a, a, a) -> Int -> Array4 a -> Array4 a • In the expression: addTuple4 x (shiftTuple4 tshift extended_key) In a pattern binding: (x0', x1', x2', x3') = addTuple4 x (shiftTuple4 tshift extended_key) In an equation for ‘pbox4’: pbox4 extended_key r x = (x0', x1', x2', x3' + fromIntegral tshift) where tshift = r `div` 4 + 1 (x0', x1', x2', x3') = addTuple4 x (shiftTuple4 tshift extended_key) System/Random/Random123/Threefry.hs:174:22: error: • Could not deduce (Num a) arising from a use of ‘addTuple2’ from the context: (ThreefryWord a, Bits a) bound by the type signature for: threefry2R :: (ThreefryWord a, Bits a) => Int -> Array2 a -> Array2 a -> Array2 a at System/Random/Random123/Threefry.hs:(165,1)-(169,15) Possible fix: add (Num a) to the context of the type signature for: threefry2R :: (ThreefryWord a, Bits a) => Int -> Array2 a -> Array2 a -> Array2 a • In the expression: addTuple2 key ctr In an equation for ‘starting_x’: starting_x = addTuple2 key ctr In an equation for ‘threefry2R’: threefry2R rounds key ctr | (rounds >= 1) && (rounds <= 32) = apply (threefryRound pbox sbox2) rounds starting_x | otherwise = error "The number of rounds in Threefry-2 must be between 1 and 32" where starting_x = addTuple2 key ctr pbox = pbox2 (extendKey2 key) System/Random/Random123/Threefry.hs:188:22: error: • Could not deduce (Num a) arising from a use of ‘addTuple4’ from the context: (ThreefryWord a, Bits a) bound by the type signature for: threefry4R :: (ThreefryWord a, Bits a) => Int -> Array4 a -> Array4 a -> Array4 a at System/Random/Random123/Threefry.hs:(179,1)-(183,15) Possible fix: add (Num a) to the context of the type signature for: threefry4R :: (ThreefryWord a, Bits a) => Int -> Array4 a -> Array4 a -> Array4 a • In the expression: addTuple4 key ctr In an equation for ‘starting_x’: starting_x = addTuple4 key ctr In an equation for ‘threefry4R’: threefry4R rounds key ctr | (rounds >= 1) && (rounds <= 72) = apply (threefryRound pbox sbox4) rounds starting_x | otherwise = error "The number of rounds in Threefry-4 must be between 1 and 72" where starting_x = addTuple4 key ctr pbox = pbox4 (extendKey4 key) cabal: Leaving directory '/tmp/cabal-tmp-25722/Random123-0.1.1' cabal: Error: some packages failed to install: Random123-0.1.1 failed during the building phase. The exception was: ExitFailure 1
Test log
No test log was submitted for this report.