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

Building with ghcjs: "ghc-pkg: Prelude.chr: bad argument: 2980338" #1665

Closed
chreekat opened this issue Jan 17, 2016 · 3 comments
Closed

Building with ghcjs: "ghc-pkg: Prelude.chr: bad argument: 2980338" #1665

chreekat opened this issue Jan 17, 2016 · 3 comments

Comments

@chreekat
Copy link
Member

I'm trying to build a hello-world app with reflex-dom. The build keeps dying with the error message mentioned in the title.

Also,

  1. The build gets a little further (compiles/registers a few more libraries) every time.
  2. The "bad argument" changes from one big number to another.

Here's two examples. The first is verbose, and with some older version of stack. The second is not verbose, and run with master as of this very moment. (Version 1.0.1, Git revision c4d36d888f01b9467c4cfbe612461e126330677a (dirty) (3075 commits) x86_64)

Repro could take a long time because of all the upfront building that has to happen, but here are the steps:

git clone --recursive https://github.com/chreekat/multi-fladdermus.git
cd multi-fladdermus/fladdermus-client
git checkout 306df51724a9e8ccae4a7262d0b3d3613caa8c65
stack setup
stack build

A conflating factor could be:


This is probably unrelated, but I find it strange that I see this message at the beginning of every run:

data-default-class-0.0.1: using precompiled package
@chreekat
Copy link
Member Author

Ah! I did a while ! stack build; do sleep 5; done loop, and hit a fix point. :)

Here is the verbose output I get every time now: http://lpaste.net/149831

@mgsloan
Copy link
Contributor

mgsloan commented Jan 19, 2016

Interesting, thanks for the report! Still building that version of GHCJS, so I haven't tested your repro. I have pushed a probable fix, though. Does it resolve the issue for you?

@chreekat
Copy link
Member Author

Success! I had to unregister data-default-class, but after doing so stack build ran successfully and my hello-world app ran correctly in the browser. Thanks!

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

2 participants