You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
The Grinch stole all the vowels: Odd naming in .cabal/store (macOS) #7209
@gbaz: I protest, this isn't a just a "user-question". I strongly hope this crutch will be dropped as soon as possible! It is already requiring workarounds, see agda/agda@b44a0bd.
Sorry, I tried to read through the big diff, but I can't figure out what the workaround is there? It seems to me that the naming in cabal's store should be an internal detail that users don't have to concern themselves with.
It seems like Big Sur has improved linker limitations that existed with prior mac os versions, but this is entirely an ad-hoc thing we noticed at work, not something I have any clear documentation of, and even if this is true, we can't remove the vowel stripping anytime soon. If we can confirm that it is true, and to what degree it is true (i.e. did they just bump the limit, remove it, raise it drastically?), then maybe we could start a clock at least.
Sorry, I tried to read through the big diff, but I can't figure out what the workaround is there? It seems to me that the naming in cabal's store should be an internal detail that users don't have to concern themselves with.
To normalize an error message, we replace Agda-$VER-$HASH by <<Agda-package>>. However, due to the OP, we also have to consider Agd-$VER-$HASH, on macOS.
I agree that "the naming in cabal's store should be an internal detail that users don't have to concern themselves with", but unfortunately, is leaks e.g. through error locations given by HasCallStack and the like.
Also, as long as there is no automatic garbage collection, the user might have to go into .cabal/store and manually delete stuff, and is then confronted with cryptic packages like sn-1.4.7.1-51bc2765 (quiz: where did this one come from?).
More seriously: if you just go and selectively delete stuff in .cabal/store you most likely break everything, simpler to delete whole store. OTOH, you can look into into cabal-hash.txt files: they look something like:
Are we tracking the upstream issue somewhere? Maybe it would be good to a add a pointer here.
I think we should keep this open so that we can remember to revert the workaround as soon as upstream is fixed. (Unfortunately, we won't get any help from github with the tracking unless the upstream issue is also on github (very unlikely).)
My 5c, Cabal should support using as old GHCs as you can relatively easily install. @hasufell's GHCup has GHC-8.4.4 in its list as today, so I'd expect being able to use latest cabal-install with that compiler (edit: at least that).
"Cabal support" is ambiguous term. Being buildable with is one interpretation, this issue is however about being able to use&command.
First of all: Supporting anything but the latest minor version of a major GHC release is nonsensical. I can't believe that cabal devs are actually suggesting such practice.
Second: I can backport the fix downstream until 8.4 if you really care. Those would be GHCup-only patch releases though.
I can backport the fix downstream until 8.4 if you really care
I don't see any challenge in doing something different for particular GHC versions in Cabal / cabal-install: there are a lot of feature check conditionals.
That said, I actually have no idea what is the latest GHC working on recent macOS versions, and this being macOS-only issue. Maybe the fix in GHC is so old, that nothing without isn't usuable on macOS anyway. (Anything older than GHC-9.2 isn't usable on arm based macs, AFAIK).
It seems to be a recurring confusion and it does not seem to be documented anywhere. Could the Cabal team clarify which versions of GHC are supported to be driven by Cabal (not which GHCs are supported to build Cabal sources)?
8.10.7 is kinda usable on Mac ARM, but a pretty rough experience.
Maybe on macOS contemporary to 8.10 it was, but I was never able to use anything prior to 9.2 on Apple Silicon because of toolchain upgrades (llvm version and such).
While there's no formal documentation that I'm aware of, .github/workflows/validate.yml lists the supported-for-building and supported-for-driving-only ghcs in the matrix sections of the validate and validate-old-ghcs jobs respectively. The stalled validate-actions PR moves these to a config file.
The sting in the tail of 8.10.7 is ghcjs, which some people still use.
That's not even an official compiler.
I've worked at a company that uses that and they use nix heavily, because there is absolutely no way you could sensibly do ghcjs development without nix (and for nix it wouldn't matter at all whether we drop support for these old ghc versions).
Our GHC support window is five years for the Cabal library and three years for cabal-install: that is, the Cabal library must be buildable out-of-the-box with the dependencies that shipped with GHC for at least five years.
Combining this with GHC's (arguably excessively aggressive) release schedule means a lot of older ghcs in both support windows.
I don't think the window for driving ghc, as opposed to building it, is published anywhere. It's come up before, and we really should resolve what it should be and document it with the other windows.
Activity
phadej commentedon Dec 21, 2020
About a third?
No it doesn't, but things are less likely to hit the limit
Yes. See e.g. #5220
No. People work on it though, e.g. #7094
It's a necessary hack, for now.
[ #5302 ] `cabal test` macOS: work around haskell/cabal#7209
[ fix #5302 ] make 'cabal test' work for part of the test-suite (#5536)
andreasabel commentedon Sep 5, 2021
@gbaz: I protest, this isn't a just a "user-question". I strongly hope this crutch will be dropped as soon as possible! It is already requiring workarounds, see agda/agda@b44a0bd.
gbaz commentedon Sep 5, 2021
Sorry, I tried to read through the big diff, but I can't figure out what the workaround is there? It seems to me that the naming in cabal's store should be an internal detail that users don't have to concern themselves with.
It seems like Big Sur has improved linker limitations that existed with prior mac os versions, but this is entirely an ad-hoc thing we noticed at work, not something I have any clear documentation of, and even if this is true, we can't remove the vowel stripping anytime soon. If we can confirm that it is true, and to what degree it is true (i.e. did they just bump the limit, remove it, raise it drastically?), then maybe we could start a clock at least.
andreasabel commentedon Sep 6, 2021
@gbaz wrote:
Sorry for the long diff (commits got squashed), the workaround is here:
https://github.com/agda/agda/blob/731f300deac14e10792a0bbf22c86cbe0c9c7e4b/test/Utils.hs#L315-L327
To normalize an error message, we replace
Agda-$VER-$HASHby<<Agda-package>>. However, due to the OP, we also have to considerAgd-$VER-$HASH, on macOS.I agree that "the naming in cabal's store should be an internal detail that users don't have to concern themselves with", but unfortunately, is leaks e.g. through error locations given by
HasCallStackand the like.Also, as long as there is no automatic garbage collection, the user might have to go into
.cabal/storeand manually delete stuff, and is then confronted with cryptic packages likesn-1.4.7.1-51bc2765(quiz: where did this one come from?).phadej commentedon Sep 6, 2021
easy,
aeson.More seriously: if you just go and selectively delete stuff in
.cabal/storeyou most likely break everything, simpler to delete whole store. OTOH, you can look into intocabal-hash.txtfiles: they look something like:It's great that there are these "receipt" files!
andreasabel commentedon Sep 6, 2021
Congrats, @phadej! (I suppose
aesonwas too easy, it's ubiquitous.)jneira commentedon Nov 11, 2021
@andreasabel is there some actionable here? do you think we should keep this open, tracking and blocked on a upstream os clear and coumented fix?
andreasabel commentedon Nov 11, 2021
Are we tracking the upstream issue somewhere? Maybe it would be good to a add a pointer here.
I think we should keep this open so that we can remember to revert the workaround as soon as upstream is fixed. (Unfortunately, we won't get any help from github with the tracking unless the upstream issue is also on github (very unlikely).)
27 remaining items
hasufell commentedon Feb 24, 2026
It seems the earliest GHC release containing the fix is
9.2.19.0.2.Anything lower than 9.2.x is not even listed on the status page anymore and can be considered EOL: https://gitlab.haskell.org/ghc/ghc/-/wikis/GHC%20Status
Stop stealing the vowels
hasufell commentedon Feb 24, 2026
It appears cabal devs still find it useful to support GHC 8.10.6, so we can't apply the fix.
phadej commentedon Feb 24, 2026
My 5c,
Cabalshould support using as old GHCs as you can relatively easily install. @hasufell's GHCup has GHC-8.4.4 in its list as today, so I'd expect being able to use latestcabal-installwith that compiler (edit: at least that)."Cabal support" is ambiguous term. Being buildable with is one interpretation, this issue is however about being able to use&command.
hasufell commentedon Feb 24, 2026
First of all: Supporting anything but the latest minor version of a major GHC release is nonsensical. I can't believe that cabal devs are actually suggesting such practice.
Second: I can backport the fix downstream until 8.4 if you really care. Those would be GHCup-only patch releases though.
phadej commentedon Feb 24, 2026
I don't see any challenge in doing something different for particular GHC versions in
Cabal/cabal-install: there are a lot of feature check conditionals.That said, I actually have no idea what is the latest GHC working on recent macOS versions, and this being macOS-only issue. Maybe the fix in GHC is so old, that nothing without isn't usuable on macOS anyway. (Anything older than GHC-9.2 isn't usable on arm based macs, AFAIK).
hasufell commentedon Feb 24, 2026
Yes, x86_64 mac is probably going to be phased out in a year or so. I don't think we should be investing here.
8.10.7 is kinda usable on Mac ARM, but a pretty rough experience.
geekosaur commentedon Feb 24, 2026
The sting in the tail of 8.10.7 is ghcjs, which some people still use.
Bodigrim commentedon Feb 24, 2026
It seems to be a recurring confusion and it does not seem to be documented anywhere. Could the Cabal team clarify which versions of GHC are supported to be driven by Cabal (not which GHCs are supported to build Cabal sources)?
Maybe on macOS contemporary to 8.10 it was, but I was never able to use anything prior to 9.2 on Apple Silicon because of toolchain upgrades (llvm version and such).
geekosaur commentedon Feb 24, 2026
While there's no formal documentation that I'm aware of,
.github/workflows/validate.ymllists the supported-for-building and supported-for-driving-only ghcs in thematrixsections of thevalidateandvalidate-old-ghcsjobs respectively. The stalledvalidate-actionsPR moves these to a config file.hasufell commentedon Feb 24, 2026
That's not even an official compiler.
I've worked at a company that uses that and they use nix heavily, because there is absolutely no way you could sensibly do ghcjs development without nix (and for nix it wouldn't matter at all whether we drop support for these old ghc versions).
geekosaur commentedon Feb 24, 2026
I mentioned that mainly because I know people still use it (sadly). The real reason for this is https://github.com/haskell/cabal/blob/master/CONTRIBUTING.md?plain=1#L270-L271.
Combining this with GHC's (arguably excessively aggressive) release schedule means a lot of older ghcs in both support windows.
geekosaur commentedon Feb 24, 2026
I don't think the window for driving ghc, as opposed to building it, is published anywhere. It's come up before, and we really should resolve what it should be and document it with the other windows.
hasufell commentedon Feb 24, 2026
I don't think anyone uses ghcjs without nix.