A bonded copy failed during the build stack in the cifs directory

I follow these instructions . I successfully completed stack new and stack setup , but the stack build failed.

I found a git issue that this could be due to additional files listed in the cabal file, but deleting them did not fix the problem (and I just use new-template without any changes). I am on Ubuntu 14.04 and installed stack using script. Is there anything else I can learn?

It looks like this may be due to what I'm trying to build inside the cifs directory. Is there anything I can do to handle this?

 # stack build ehri-haskell-0.1.0.0: configure (lib + exe) Configuring ehri-haskell-0.1.0.0... ehri-haskell-0.1.0.0: build (lib + exe) Preprocessing library ehri-haskell-0.1.0.0... Preprocessing executable 'ehri-haskell-exe' for ehri-haskell-0.1.0.0... ehri-haskell-0.1.0.0: copy/register Installing library in /mnt/docs/RubymineProjects/ehri-haskell/.stack-work/install/x86_64-linux/lts-8.6/8.0.2/lib/x86_64-linux-ghc-8.0.2/ehri-haskell-0.1.0.0-Kh3VLZPfbij7EgcL22QBMN Installing executable(s) in /mnt/docs/RubymineProjects/ehri-haskell/.stack-work/install/x86_64-linux/lts-8.6/8.0.2/bin /mnt/docs/RubymineProjects/ehri-haskell/.stack-work/install/x86_64-linux/lts-8.6/8.0.2/bin/.copyFile5965166491189641421.tmp: copyFile: does not exist (Host is down) 'cabal copy' failed. Error message: -- While building package ehri-haskell-0.1.0.0 using: /root/.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 copy Process exited with code: ExitFailure 1 One possible cause of this issue is: * No module named "Main". The 'main-is' source file should usually have a header indicating that it a 'Main' module. # stack --version Version 1.4.0, Git revision e714f1dd3fade19496d91bd6a017e435a96a6bcd (4640 commits) x86_64 hpack-0.17.0 
+5
source share
1 answer

It seems that the problem is related to the depth of the folder in which the project lives (Windows 10, x64). From the moment when the depth exceeds a certain threshold, the described error appears. Therefore, try moving the project folder to the directory tree.

+2
source

Source: https://habr.com/ru/post/1266135/


All Articles