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

chreekat opened this Issue Jan 17, 2016 · 3 comments


None yet
2 participants

chreekat commented Jan 17, 2016

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


  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
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

This comment has been minimized.


chreekat commented Jan 17, 2016

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:

mgsloan added a commit that referenced this issue Jan 19, 2016


This comment has been minimized.


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?


This comment has been minimized.


chreekat commented Jan 19, 2016

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!

@chreekat chreekat closed this Jan 19, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment