Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

c2hs: Prelude.head: empty list #216

Open
acoret opened this issue Sep 12, 2018 · 4 comments
Open

c2hs: Prelude.head: empty list #216

acoret opened this issue Sep 12, 2018 · 4 comments

Comments

@acoret
Copy link

acoret commented Sep 12, 2018

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

@fkm3
Copy link
Contributor

fkm3 commented Sep 12, 2018

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?

@acoret
Copy link
Author

acoret commented Sep 13, 2018

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

@blackgnezdo
Copy link
Contributor

The closest that I can find is haskell/c2hs#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.

@KiaraGrouwstra
Copy link

KiaraGrouwstra commented Feb 13, 2020

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants