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

"call to undeclared function tzset" error when building with GHC 9.10 (WASM) #266

Open
brandonchinn178 opened this issue Dec 20, 2024 · 1 comment
Labels
Milestone

Comments

@brandonchinn178
Copy link

Getting this error when building time-1.12.2 with GHC 9.10 (with WASM support):

lib/cbits/HsTime.c:14:5: error:
     error: call to undeclared function 'tzset'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
       14 |     tzset();
          |     ^
   |
14 |     tzset();
   |     ^
1 error generated.

Any ideas?
Link: https://github.com/fourmolu/fourmolu/actions/runs/12424275294/job/34689168809

@Erchiusx
Copy link

Current workarrounds see this issue

You can also use a cabal.project file to specify this behaviour, where this repo provides an example

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

No branches or pull requests

3 participants