Size: a a a

2021 March 19

JS

Jerzy Syrowiecki in Haskell
Denys
У меня не получается скинуть ошибку, так как по указаному пути не существует следующей папки: /private/var/folders/zl/3r15y_3d7kq3d964n590489c0000gn/T/stack-cfc58d8a9a7cb6b2/, как такое может быть?
папка временная и уже удалена.

не надо скидывать ничего, скопируйте текст, который уже выведен на терминал
источник

L

Lierdakil in Haskell
Denys
У меня не получается скинуть ошибку, так как по указаному пути не существует следующей папки: /private/var/folders/zl/3r15y_3d7kq3d964n590489c0000gn/T/stack-cfc58d8a9a7cb6b2/, как такое может быть?
... а при чём тут эта папка? там же английским по чёрному написано "прокрутите терминал вверх, ошибка там"
источник

D

Denys in Haskell
happy           > [2 of 2] Compiling StackSetupShim   ( /Users/dklypkin/.stack/setup-exe-src/setup-shim-mPHDZzAJ.hs, /private/var/folders/zl/3r15y_3d7kq3d964n590489c0000gn/T/stack-c7719d5cc11ce441/happy-1.19.5/.stack-work/dist/x86_64-osx/Cabal-1.24.2.0/setup/StackSetupShim.o )
happy           > Linking /private/var/folders/zl/3r15y_3d7kq3d964n590489c0000gn/T/stack-c7719d5cc11ce441/happy-1.19.5/.stack-work/dist/x86_64-osx/Cabal-1.24.2.0/setup/setup ...
happy           >
happy           > In file included from /var/folders/zl/3r15y_3d7kq3d964n590489c0000gn/T/ghc40128_0/ghc_8.c:1:0: error:
happy           >
happy           >
happy           > 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))
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           > #if ZERO_SLOP_FOR_LDV_PROF && !ZERO_SLOP_FOR_SANITY_CHECK
happy           >                                ^
источник

D

Denys in Haskell
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           > Configuring happy-1.19.5...
happy           > build
happy           > Building happy-1.19.5...
happy           > Preprocessing executable 'happy' for happy-1.19.5...
happy           > setup: The program 'happy' is required but it could not be found
источник

JS

Jerzy Syrowiecki in Haskell
happy требует установленного happy для сборки
источник

JS

Jerzy Syrowiecki in Haskell
я думал, это в какой-то версии починили
источник

JS

Jerzy Syrowiecki in Haskell
Denys
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           > Configuring happy-1.19.5...
happy           > build
happy           > Building happy-1.19.5...
happy           > Preprocessing executable 'happy' for happy-1.19.5...
happy           > setup: The program 'happy' is required but it could not be found
у вас какая версия stack? покажите stack --version
источник

D

Denys in Haskell
stack --version
Version 2.5.1.1 x86_64
источник

JS

Jerzy Syrowiecki in Haskell
а resolver какой?
источник

JS

Jerzy Syrowiecki in Haskell
ghc-8.0 относительно старенький. это вы чужой проект собираете?
источник

L

Lierdakil in Haskell
Jerzy Syrowiecki
а resolver какой?
lts-8.21 там
источник

L

Lierdakil in Haskell
в смысле свежести всё плохо, последнее обновление 4 года тому
источник

JS

Jerzy Syrowiecki in Haskell
а, проект из книжки
источник

JS

Jerzy Syrowiecki in Haskell
Denys
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           > Configuring happy-1.19.5...
happy           > build
happy           > Building happy-1.19.5...
happy           > Preprocessing executable 'happy' for happy-1.19.5...
happy           > setup: The program 'happy' is required but it could not be found
установите happy отдельно. попробуйте stack install happy вне проекта запустить (в домашнем каталоге, например)
источник

L

Lierdakil in Haskell
Это вероятно даже сработает. Потому что у меня всё собралось, но у меня happy в системе торчит.
источник

JS

Jerzy Syrowiecki in Haskell
да, у меня lts-9 собирает happy сам, lts-8 требует установленного happy
источник

D

Denys in Haskell
stack install happy
Copying from /Users/dklypkin/.stack/snapshots/x86_64-osx/8539974944c3e69b5fd4ecddc41ee4bb3c56c8a0310c76cfb69db9d52ea48752/8.10.4/bin/happy to /Users/dklypkin/.local/bin/happy

Copied executables to /Users/dklypkin/.local/bin:
- happy
источник

JS

Jerzy Syrowiecki in Haskell
Denys
stack install happy
Copying from /Users/dklypkin/.stack/snapshots/x86_64-osx/8539974944c3e69b5fd4ecddc41ee4bb3c56c8a0310c76cfb69db9d52ea48752/8.10.4/bin/happy to /Users/dklypkin/.local/bin/happy

Copied executables to /Users/dklypkin/.local/bin:
- happy
теперь можно собрать проект
источник

JS

Jerzy Syrowiecki in Haskell
а я попробую собрать simonmar/parconc-examples с изменением resolver на 9
источник

A

Andrey in Haskell
$HOME/.local/bin должна быть в $PATH
источник