haskell icon indicating copy to clipboard operation
haskell copied to clipboard

c2hs: Prelude.head: empty list

Open acoret opened this issue 7 years ago • 4 comments

failed in Install,I tried stack build.

Situation

I git clone it,and stack build,it download the proper version ghc,then build almost thing (take lot of time) ,and finally just throw out c2hs: Prelude.head: empty list ` tensorflow-0.2.0.0: build (lib) Log files have been written to: /home/uncrepter/git-software/tensorflow-haskell/.stack-work/logs/ Progress 1/5

-- While building custom Setup.hs for package tensorflow-0.2.0.0 using: /home/uncrepter/.stack/setup-exe-cache/x86_64-linux-tinfo6/Cabal-simple_mPHDZzAJ_2.0.1.0_ghc-8.2.2 --builddir=.stack-work/dist/x86_64-linux-tinfo6/Cabal-2.0.1.0 build lib:tensorflow --ghc-options " -ddump-hi -ddump-to-file -fdiagnostics-color=always" Process exited with code: ExitFailure 1 Logs have been written to: /home/uncrepter/git-software/tensorflow-haskell/.stack-work/logs/tensorflow-0.2.0.0.log

Preprocessing library for tensorflow-0.2.0.0..
c2hs: Prelude.head: empty list

` i think i just need to go back use python or cpp

acoret avatar Sep 12 '18 09:09 acoret

Can you provide some more context: What operating system are you using? Are you following the "Build with Docker on Linux" instructions in the README, or something else?

fkm3 avatar Sep 12 '18 14:09 fkm3

im using archlinux,docker didnt work on my computer,so i have to build my self,i have follow the dockerfile to install dependency,protoc and tensorflow-cuda

acoret avatar Sep 13 '18 14:09 acoret

The closest that I can find is https://github.com/haskell/c2hs/issues/192 If you can catch the command line used to invoke c2hs (stack -v might be useful) and you also collect the inputs to c2hs, we can probably figure out if it really is this issue or not.

You could start by including c2hs version.

blackgnezdo avatar Sep 13 '18 18:09 blackgnezdo

I also ran into this, also using Arch. @blackgnezdo versions used: tensorflow 0.2.0.0, c2hs 0.28.6.

KiaraGrouwstra avatar Feb 13 '20 11:02 KiaraGrouwstra