Size: a a a

2021 March 19

D

Denys in Haskell
спасибо большое, проблемы с happy нет, но появилось новая ошибка
источник

D

Denys in Haskell
/Users/dklypkin/.stack/snapshots/x86_64-osx/50255fe2db6e83b0971ea7ec0a25affd12c7d24f079b02fbce55f57793ddc25f/8.0.2/bin
happy           > [16 of 18] Compiling ProduceGLRCode   ( src/ProduceGLRCode.lhs, .stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/happy/happy-tmp/ProduceGLRCode.o )
happy           > [17 of 18] Compiling Parser           ( .stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/happy/happy-tmp/Parser.hs, .stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/happy/happy-tmp/Parser.o )
happy           > [18 of 18] Compiling Main             ( src/Main.lhs, .stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/happy/happy-tmp/Main.o )
happy           > Linking .stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/happy/happy ...
happy           >
happy           > /private/var/folders/zl/3r15y_3d7kq3d964n590489c0000gn/T/stack-f14df5198f2df1e8/happy-1.19.5/In file included from /var/folders/zl/3r15y_3d7kq3d964n590489c0000gn/T/ghc40786_0/ghc_49.c:1:0: error:
happy           >
happy           >
happy           > /private/var/folders/zl/3r15y_3d7kq3d964n590489c0000gn/T/stack-f14df5198f2df1e8/happy-1.19.5/In file included from /Users/dklypkin/.stack/programs/x86_64-osx/ghc-8.0.2/lib/ghc-8.0.2/include/Rts.h:217:0: error:
happy           >
happy           >
happy           > /Users/dklypkin/.stack/programs/x86_64-osx/ghc-8.0.2/lib/ghc-8.0.2/include/rts/storage/ClosureMacros.h:505:5: error:
happy           >      warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
happy           > #if ZERO_SLOP_FOR_LDV_PROF || ZERO_SLOP_FOR_SANITY_CHECK
happy           >     ^
happy           >
happy           > /Users/dklypkin/.stack/programs/x86_64-osx/ghc-8.0.2/lib/ghc-8.0.2/include/rts/storage/ClosureMacros.h:502:37: error:
happy           >      note: expanded from macro 'ZERO_SLOP_FOR_LDV_PROF'
happy           > #define ZERO_SLOP_FOR_LDV_PROF     (defined(PROFILING))
happy           >                                     ^
happy           >
happy           > /Users/dklypkin/.stack/programs/x86_64-osx/ghc-8.0.2/lib/ghc-8.0.2/include/rts/storage/ClosureMacros.h:505:31: error:
happy           >      warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
happy           > #if ZERO_SLOP_FOR_LDV_PROF || ZERO_SLOP_FOR_SANITY_CHECK
happy           >                               ^
happy           >
happy           > /Users/dklypkin/.stack/programs/x86_64-osx/ghc-8.0.2/lib/ghc-8.0.2/include/rts/storage/ClosureMacros.h:503:37: error:
happy           >      note: expanded from macro 'ZERO_SLOP_FOR_SANITY_CHECK'
happy           > #define ZERO_SLOP_FOR_SANITY_CHECK (defined(DEBUG) && !defined(THREADED_RTS))
happy           >                                     ^
happy           >
happy           > /Users/dklypkin/.stack/programs/x86_64-osx/ghc-8.0.2/lib/ghc-8.0.2/include/rts/storage/ClosureMacros.h:505:31: error:
happy           >      warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
happy           >
happy           > /Users/dklypkin/.stack/programs/x86_64-osx/ghc-8.0.2/lib/ghc-8.0.2/include/rts/storage/ClosureMacros.h:503:56: error:
happy           >      note: expanded from macro 'ZERO_SLOP_FOR_SANITY_CHECK'
happy           > #define ZERO_SLOP_FOR_SANITY_CHECK (defined(DEBUG) && !defined(THREADED_RTS))
happy           >                                                        ^
happy           >
happy           > /Users/dklypkin/.stack/programs/x86_64-osx/ghc-8.0.2/lib/ghc-8.0.2/include/rts/storage/ClosureMacros.h:523:5: error:
happy           >      warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
happy           > #if ZERO_SLOP_FOR_LDV_PROF && !ZERO_SLOP_FOR_SANITY_CHECK
happy           >     ^
happy           >
happy           > /Users/dklypkin/.stack/programs/x86_64-osx/ghc-8.0.2/lib/ghc-8.0.2/include/rts/storage/ClosureMacros.h:502:37: error:
happy           >      note: expanded from macro 'ZERO_SLOP_FOR_LDV_PROF'
happy           > #define ZERO_SLOP_FOR_LDV_PROF     (defined(PROFILING))
h
источник

D

Denys in Haskell
appy           >                                     ^
happy           >
happy           > /Users/dklypkin/.stack/programs/x86_64-osx/ghc-8.0.2/lib/ghc-8.0.2/include/rts/storage/ClosureMacros.h:523:32: error:
happy           >      warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
happy           > #if ZERO_SLOP_FOR_LDV_PROF && !ZERO_SLOP_FOR_SANITY_CHECK
happy           >                                ^
happy           >
happy           > /Users/dklypkin/.stack/programs/x86_64-osx/ghc-8.0.2/lib/ghc-8.0.2/include/rts/storage/ClosureMacros.h:503:37: error:
happy           >      note: expanded from macro 'ZERO_SLOP_FOR_SANITY_CHECK'
happy           > #define ZERO_SLOP_FOR_SANITY_CHECK (defined(DEBUG) && !defined(THREADED_RTS))
happy           >                                     ^
happy           >
happy           > /Users/dklypkin/.stack/programs/x86_64-osx/ghc-8.0.2/lib/ghc-8.0.2/include/rts/storage/ClosureMacros.h:523:32: error:
happy           >      warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
happy           >
happy           > /Users/dklypkin/.stack/programs/x86_64-osx/ghc-8.0.2/lib/ghc-8.0.2/include/rts/storage/ClosureMacros.h:503:56: error:
happy           >      note: expanded from macro 'ZERO_SLOP_FOR_SANITY_CHECK'
happy           > #define ZERO_SLOP_FOR_SANITY_CHECK (defined(DEBUG) && !defined(THREADED_RTS))
happy           >                                                        ^
happy           >
happy           > /Users/dklypkin/.stack/programs/x86_64-osx/ghc-8.0.2/lib/ghc-8.0.2/include/rts/storage/ClosureMacros.h:552:5: error:
happy           >      warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
happy           > #if ZERO_SLOP_FOR_LDV_PROF && !ZERO_SLOP_FOR_SANITY_CHECK
happy           >     ^
happy           >
happy           > /Users/dklypkin/.stack/programs/x86_64-osx/ghc-8.0.2/lib/ghc-8.0.2/include/rts/storage/ClosureMacros.h:502:37: error:
happy           >      note: expanded from macro 'ZERO_SLOP_FOR_LDV_PROF'
happy           > #define ZERO_SLOP_FOR_LDV_PROF     (defined(PROFILING))
happy           >                                     ^
happy           >
happy           > /Users/dklypkin/.stack/programs/x86_64-osx/ghc-8.0.2/lib/ghc-8.0.2/include/rts/storage/ClosureMacros.h:552:32: error:
happy           >      warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
happy           > #if ZERO_SLOP_FOR_LDV_PROF && !ZERO_SLOP_FOR_SANITY_CHECK
happy           >                                ^
happy           >
happy           > /Users/dklypkin/.stack/programs/x86_64-osx/ghc-8.0.2/lib/ghc-8.0.2/include/rts/storage/ClosureMacros.h:503:37: error:
happy           >      note: expanded from macro 'ZERO_SLOP_FOR_SANITY_CHECK'
happy           > #define ZERO_SLOP_FOR_SANITY_CHECK (defined(DEBUG) && !defined(THREADED_RTS))
happy           >                                     ^
happy           >
happy           > /Users/dklypkin/.stack/programs/x86_64-osx/ghc-8.0.2/lib/ghc-8.0.2/include/rts/storage/ClosureMacros.h:552:32: error:
happy           >      warning: macro expansion producing 'defined' has undefined behavior [-Wexpansion-to-defined]
happy           >
happy           > /Users/dklypkin/.stack/programs/x86_64-osx/ghc-8.0.2/lib/ghc-8.0.2/include/rts/storage/ClosureMacros.h:503:56: error:
happy           >      note: expanded from macro 'ZERO_SLOP_FOR_SANITY_CHECK'
happy           > #define ZERO_SLOP_FOR_SANITY_CHECK (defined(DEBUG) && !defined(THREADED_RTS))
happy           >                                                        ^
happy           > 9 warnings generated.
happy           > clang: warning: argument unused during compilation: '-no-pie' [-Wunused-command-line-argument]
happy           > copy/register
happy           > Installing executable(s) in
happy           > /Users/dklypkin/.stack/snapshots/x86_64-osx/50255fe2db6e83b0971ea7ec0a25affd12c7d24f079b02fbce55f57793ddc25f/8.0.2/bin
Progress 3/4

--  While building packa
источник

D

Denys in Haskell
ge accelerate-1.0.0.0 (scroll up to its section to see the error) using:
     /Users/dklypkin/.stack/setup-exe-cache/x86_64-osx/Cabal-simple_mPHDZzAJ_1.24.2.0_ghc-8.0.2 --builddir=.stack-work/dist/x86_64-osx/Cabal-1.24.2.0 build --ghc-options ""
   Process exited with code: ExitFailure 1
источник

A

Andrey in Haskell
долистайте до ошибок от пакета accelerate как вам советуют
источник

AA

A64m AL256m qn<co... in Haskell
к акселерейту же небось надо ставить всякие куды
источник

D

Denys in Haskell
accelerate      > [ 1 of 66] Compiling Data.Atomic      ( Data/Atomic.hs, .stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/Data/Atomic.o )
accelerate      > [ 2 of 66] Compiling Data.Array.Accelerate.Type ( Data/Array/Accelerate/Type.hs, .stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/Data/Array/Accelerate/Type.o )
accelerate      > <command line>: can't load .so/.DLL for: /Users/dklypkin/.stack/snapshots/x86_64-osx/50255fe2db6e83b0971ea7ec0a25affd12c7d24f079b02fbce55f57793ddc25f/8.0.2/lib/x86_64-osx-ghc-8.0.2/libHSbase-orphans-0.5.4-ABoxiBf7nXc7Qqh66CgYc9-ghc8.0.2.dylib (dlopen(/Users/dklypkin/.stack/snapshots/x86_64-osx/50255fe2db6e83b0971ea7ec0a25affd12c7d24f079b02fbce55f57793ddc25f/8.0.2/lib/x86_64-osx-ghc-8.0.2/libHSbase-orphans-0.5.4-ABoxiBf7nXc7Qqh66CgYc9-ghc8.0.2.dylib, 5): REBASE_OPCODE_SET_SEGMENT_AND_OFFSET_ULEB has segment 2 which is not a writable segment (__LINKEDIT) in /Users/dklypkin/.stack/snapshots/x86_64-osx/50255fe2db6e83b0971ea7ec0a25affd12c7d24f079b02fbce55f57793ddc25f/8.0.2/lib/x86_64-osx-ghc-8.0.2/libHSbase-orphans-0.5.4-ABoxiBf7nXc7Qqh66CgYc9-ghc8.0.2.dylib)
источник

AA

A64m AL256m qn<co... in Haskell
вообще разве бывают маки с инвидией?
источник

AA

A64m AL256m qn<co... in Haskell
вообще у акселерейта должны быть другие еще более экспериментальные бекенды
источник

AA

A64m AL256m qn<co... in Haskell
но лучше с ним вообще не связываться, конечно
источник

JS

Jerzy Syrowiecki in Haskell
во brew появился пакет haskell-language-server
источник

A

Andrey in Haskell
либо задирать LTS (+ версию компилятора), либо билдить под llvm бэкенд
источник

JS

Jerzy Syrowiecki in Haskell
какая-то странная ошибка, в интернетах пишут, что случается с разными пакетами, всем помогает поднять LTS
источник

JS

Jerzy Syrowiecki in Haskell
похоже, как-то смешиваются библиотеки, собранные разными компиляторами
источник

JS

Jerzy Syrowiecki in Haskell
что у них общего — это stack и макинтош
источник

D

Denys in Haskell
сделав lts-9.0, результат такой:
источник

D

Denys in Haskell
stack build
accelerate      > configure
accelerate      > Configuring accelerate-1.0.0.0...
accelerate      > build
accelerate      > Building accelerate-1.0.0.0...
accelerate      > Preprocessing library accelerate-1.0.0.0...
accelerate      > [ 1 of 66] Compiling Data.Atomic      ( Data/Atomic.hs, .stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/Data/Atomic.o )
accelerate      > [ 2 of 66] Compiling Data.Array.Accelerate.Type ( Data/Array/Accelerate/Type.hs, .stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/Data/Array/Accelerate/Type.o )
accelerate      > <command line>: can't load .so/.DLL for: /Users/dklypkin/.stack/snapshots/x86_64-osx/50255fe2db6e83b0971ea7ec0a25affd12c7d24f079b02fbce55f57793ddc25f/8.0.2/lib/x86_64-osx-ghc-8.0.2/libHSbase-orphans-0.5.4-ABoxiBf7nXc7Qqh66CgYc9-ghc8.0.2.dylib (dlopen(/Users/dklypkin/.stack/snapshots/x86_64-osx/50255fe2db6e83b0971ea7ec0a25affd12c7d24f079b02fbce55f57793ddc25f/8.0.2/lib/x86_64-osx-ghc-8.0.2/libHSbase-orphans-0.5.4-ABoxiBf7nXc7Qqh66CgYc9-ghc8.0.2.dylib, 5): REBASE_OPCODE_SET_SEGMENT_AND_OFFSET_ULEB has segment 2 which is not a writable segment (__LINKEDIT) in /Users/dklypkin/.stack/snapshots/x86_64-osx/50255fe2db6e83b0971ea7ec0a25affd12c7d24f079b02fbce55f57793ddc25f/8.0.2/lib/x86_64-osx-ghc-8.0.2/libHSbase-orphans-0.5.4-ABoxiBf7nXc7Qqh66CgYc9-ghc8.0.2.dylib)
Progress 1/2

--  While building package accelerate-1.0.0.0 (scroll up to its section to see the error) using:
     /Users/dklypkin/.stack/setup-exe-cache/x86_64-osx/Cabal-simple_mPHDZzAJ_1.24.2.0_ghc-8.0.2 --builddir=.stack-work/dist/x86_64-osx/Cabal-1.24.2.0 build --ghc-options ""
   Process exited with code: ExitFailure 1
❯ nvim stack.yaml
❯ stack build

Error: While constructing the build plan, the following exceptions were encountered:

In the dependencies for parconc-examples-0.4.7(+accelerate +distributed):
   distributed-process must match >=0.5 && <0.7, but the stack configuration has no specified version  (latest matching version is 0.6.6)
   distributed-process-simplelocalnet must match ==0.2.*, but the stack configuration has no specified version  (latest matching version
                                      is 0.2.4)
   repa must match >=3.2 && <3.5, but the stack configuration has no specified version  (latest matching version is 3.4.1.4)
needed since parconc-examples is a build target.

Some different approaches to resolving this:

 * Recommended action: try adding the following to your extra-deps
   in /Users/dklypkin/haskell-projects/parallel-concurent-haskell/parconc-examples/stack.yaml:

- distributed-process-0.6.6@sha256:5958661e4bceb18f38e9eb9828a58d1c811102f84a74376d7b18b88cde8ba1e7,7086
- distributed-process-simplelocalnet-0.2.4@sha256:044a003f81a648f9fb9b1c7ae9cd8f753f5f1c32d9db5ff8b31e91e91f525ed7,3189
- repa-3.4.1.4@sha256:5a99bde69fe96a18d70aae23f47c8f719b1134558dca3ee5a7c15423b68a132e,3323

Plan construction failed.
источник

JS

Jerzy Syrowiecki in Haskell
Denys
stack build
accelerate      > configure
accelerate      > Configuring accelerate-1.0.0.0...
accelerate      > build
accelerate      > Building accelerate-1.0.0.0...
accelerate      > Preprocessing library accelerate-1.0.0.0...
accelerate      > [ 1 of 66] Compiling Data.Atomic      ( Data/Atomic.hs, .stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/Data/Atomic.o )
accelerate      > [ 2 of 66] Compiling Data.Array.Accelerate.Type ( Data/Array/Accelerate/Type.hs, .stack-work/dist/x86_64-osx/Cabal-1.24.2.0/build/Data/Array/Accelerate/Type.o )
accelerate      > <command line>: can't load .so/.DLL for: /Users/dklypkin/.stack/snapshots/x86_64-osx/50255fe2db6e83b0971ea7ec0a25affd12c7d24f079b02fbce55f57793ddc25f/8.0.2/lib/x86_64-osx-ghc-8.0.2/libHSbase-orphans-0.5.4-ABoxiBf7nXc7Qqh66CgYc9-ghc8.0.2.dylib (dlopen(/Users/dklypkin/.stack/snapshots/x86_64-osx/50255fe2db6e83b0971ea7ec0a25affd12c7d24f079b02fbce55f57793ddc25f/8.0.2/lib/x86_64-osx-ghc-8.0.2/libHSbase-orphans-0.5.4-ABoxiBf7nXc7Qqh66CgYc9-ghc8.0.2.dylib, 5): REBASE_OPCODE_SET_SEGMENT_AND_OFFSET_ULEB has segment 2 which is not a writable segment (__LINKEDIT) in /Users/dklypkin/.stack/snapshots/x86_64-osx/50255fe2db6e83b0971ea7ec0a25affd12c7d24f079b02fbce55f57793ddc25f/8.0.2/lib/x86_64-osx-ghc-8.0.2/libHSbase-orphans-0.5.4-ABoxiBf7nXc7Qqh66CgYc9-ghc8.0.2.dylib)
Progress 1/2

--  While building package accelerate-1.0.0.0 (scroll up to its section to see the error) using:
     /Users/dklypkin/.stack/setup-exe-cache/x86_64-osx/Cabal-simple_mPHDZzAJ_1.24.2.0_ghc-8.0.2 --builddir=.stack-work/dist/x86_64-osx/Cabal-1.24.2.0 build --ghc-options ""
   Process exited with code: ExitFailure 1
❯ nvim stack.yaml
❯ stack build

Error: While constructing the build plan, the following exceptions were encountered:

In the dependencies for parconc-examples-0.4.7(+accelerate +distributed):
   distributed-process must match >=0.5 && <0.7, but the stack configuration has no specified version  (latest matching version is 0.6.6)
   distributed-process-simplelocalnet must match ==0.2.*, but the stack configuration has no specified version  (latest matching version
                                      is 0.2.4)
   repa must match >=3.2 && <3.5, but the stack configuration has no specified version  (latest matching version is 3.4.1.4)
needed since parconc-examples is a build target.

Some different approaches to resolving this:

 * Recommended action: try adding the following to your extra-deps
   in /Users/dklypkin/haskell-projects/parallel-concurent-haskell/parconc-examples/stack.yaml:

- distributed-process-0.6.6@sha256:5958661e4bceb18f38e9eb9828a58d1c811102f84a74376d7b18b88cde8ba1e7,7086
- distributed-process-simplelocalnet-0.2.4@sha256:044a003f81a648f9fb9b1c7ae9cd8f753f5f1c32d9db5ff8b31e91e91f525ed7,3189
- repa-3.4.1.4@sha256:5a99bde69fe96a18d70aae23f47c8f719b1134558dca3ee5a7c15423b68a132e,3323

Plan construction failed.
Recommended action: try adding the following to your extra-deps
источник

JS

Jerzy Syrowiecki in Haskell
а вот фигушки, он потом 2 разных версии network-transport предлагает
источник

JS

Jerzy Syrowiecki in Haskell
можно попробовать allow-newer: true
источник