Closed nh2 closed 4 years ago
@qrilka said:
could it be about
major
not being a function but a macro in musl?
See:
That's a very good guess. https://forums.gentoo.org/viewtopic-t-1090818-start-0.html supports that.
We should find where in (apparently) unix-compat
it's used.
Found it:
foreign import ccall unsafe "unix_major" unix_major :: CDev -> CUInt
unsigned int unix_major(dev_t dev){ return major(dev); }
Luckily github shows at the top the most recent commit named Fix sysmacros.h include for non-glibc libcs (#43)
https://github.com/jacobstanley/unix-compat/commit/4394fb8d02cbe1eba8c9e83007296339a8e18b0d
https://github.com/jacobstanley/unix-compat/pull/43
Fixed in unix-compat-0.5.2
, and we have 0.5.1
.
That explains it, thanks @qrilka !
https://buildkite.com/nh2/static-haskell-nix/builds/273#a06ac192-1741-4de4-bac5-e470c724a6d0
With the latest nixpkgs
master
upgrade it shows: