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

Build failure: elmPackages.elm-format #370084

Closed
agj opened this issue Jan 2, 2025 · 4 comments
Closed

Build failure: elmPackages.elm-format #370084

agj opened this issue Jan 2, 2025 · 4 comments
Labels
0.kind: build failure A package fails to build 6.topic: darwin Running or building packages on Darwin 6.topic: haskell

Comments

@agj
Copy link

agj commented Jan 2, 2025

Steps To Reproduce

Steps to reproduce the behavior:

  1. Run nix run 'github:nixos/nixpkgs/nixpkgs-unstable#elmPackages.elm-format'

Build log

Build Log
error: builder for '/nix/store/8ra6hqkkjmi2c10zblh9rxynnssfqril-ghc-9.2.8.drv' failed with exit code 2;
       last 25 log lines:
       >           |                                      ^
       >           |                                       void
       >     |
       > 498 | EXTERN_INLINE void write_barrier     () {} /* nothing */
       >     |                                      ^
       >
       > includes/stg/SMP.h:499:38: error:
       >      warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
       >       499 | EXTERN_INLINE void store_load_barrier() {} /* nothing */
       >           |                                      ^
       >           |                                       void
       >     |
       > 499 | EXTERN_INLINE void store_load_barrier() {} /* nothing */
       >     |                                      ^
       >
       > includes/stg/SMP.h:500:38: error:
       >      warning: a function declaration without a prototype is deprecated in all versions of C [-Wstrict-prototypes]
       >       500 | EXTERN_INLINE void load_load_barrier () {} /* nothing */
       >           |                                      ^
       >           |                                       void
       >     |
       > 500 | EXTERN_INLINE void load_load_barrier () {} /* nothing */
       >     |                                      ^
       > 3 warnings generated.
       > make: *** [Makefile:128: all] Error 2
       For full logs, run 'nix log /nix/store/8ra6hqkkjmi2c10zblh9rxynnssfqril-ghc-9.2.8.drv'.
error: 1 dependencies of derivation '/nix/store/aifsaswcd83wbxr4rqkf7b7qh8qx1vzq-elm-format-0.8.7.drv' failed to build

Here's a gist with the full 7000+ lines log.

Additional context

Nothing in particular.

Metadata

  • system: "x86_64-darwin"
  • host os: Darwin 21.6.0, macOS 12.7.5
  • multi-user?: yes
  • sandbox: no
  • version: nix-env (Nix) 2.24.11
  • channels(Ale): "nixpkgs"
  • channels(root): "nixpkgs"
  • nixpkgs: /nix/store/4amrsybzwd75s8b2d2znma9zpj48npsz-source

Notify maintainers

@avh4 @turboMaCk


Note for maintainers: Please tag this issue in your PR.


Add a 👍 reaction to issues you find important.

@djacu
Copy link
Member

djacu commented Jan 2, 2025

This only appears to be affecting Darwin builds. Still appears to be building fine on Linux according to hydra.

@turboMaCk
Copy link
Member

turboMaCk commented Jan 2, 2025

Thanks for reporting this. Unfortunetely Darwin build issues are a bit harder for me to debug but I will try look what this could be about. If there is anyone else willing to look into this please do.

EDIT: From the log it looks like GHC fails to build. So this one will be up to haskell packages folks to address.

@t4ccer t4ccer added the 6.topic: darwin Running or building packages on Darwin label Jan 2, 2025
@sternenseemann
Copy link
Member

Duplicate of #367686.

@sternenseemann sternenseemann closed this as not planned Won't fix, can't repro, duplicate, stale Jan 2, 2025
@sternenseemann
Copy link
Member

A possible workaround could be to override the used stdenv to use clang < 18 as cc. As the linked issue describes, I've been trying to figure out the cause of the issue over christmas, but so far to no avail. Maybe the upstream developers will have some input in the coming days.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0.kind: build failure A package fails to build 6.topic: darwin Running or building packages on Darwin 6.topic: haskell
Projects
None yet
Development

No branches or pull requests

5 participants