Page 17 of 17
Re: Brassica SCA [v1.0.0]
Posted: Wed Mar 19, 2025 12:48 pm
by Lērisama
I tried that and got the following error:
Code: Select all
cli-pb/Main.hs:40:13 error:
• Variable not in scope
asum :: [Parser ParadigmInput] -> Parser ParadigmInput
• Perhaps you meant one of these:
'sum' (imported from prelude), 'asumC' (imported from Conduit)
Perhaps you want to add 'asum' to the import list in the import of
'Data.Foldable' (cli-pb/Main.hs:8.1-29).
|
40 | <$> asum
| ^^^^
And then error messages caused by the above.
This is weird, as it seems to be an error in the compiling, which I'm sure worked fine when I tried it yesterday; I'm not sure what's going on.
Re: Brassica SCA [v1.0.0]
Posted: Wed Mar 19, 2025 9:58 pm
by bradrn
Lērisama wrote: ↑Wed Mar 19, 2025 12:48 pm
This is weird, as it seems to be an error in the compiling, which I'm sure worked fine when I tried it yesterday; I'm not sure what's going on.
This is in the paradigm builder (in directory
cli-pb). Perhaps you didn’t try building it yesterday.
It’s a strange error though… basically it’s saying that it can’t find the function
asum, which is weird since it’s a common function. My best guess is that you’re somehow stuck on a very old (pre-4.16) version of the base library, which didn’t define
asum. What does
ghc --version give you?
Re: Brassica SCA [v1.0.0]
Posted: Thu Mar 20, 2025 9:58 am
by Travis B.
One thing I should recommend is downloading GHC etc. directly rather than using what comes with your distros -- distros often lag behind, especially Debian-based ones (cough cough "stable" cough cough).
Re: Brassica SCA [v1.0.0]
Posted: Thu Mar 20, 2025 12:54 pm
by Lērisama
It claims to be The Glorious Glasgow Haskell Compilation System, version 9.0.2
Re: Brassica SCA [v1.0.0]
Posted: Thu Mar 20, 2025 8:41 pm
by bradrn
Travis B. wrote: ↑Thu Mar 20, 2025 9:58 am
One thing I should recommend is downloading GHC etc. directly rather than using what comes with your distros -- distros often lag behind, especially Debian-based ones (cough cough "stable" cough cough).
Wait… this makes me realise… I thought I recommended
GHCup already. But looks like I didn’t — no wonder Lērisama is having problems with painfully old GHC versions.
Lērisama, if you’re not already using GHCup, clean out your existing Haskell installation completely and reinstall it via GHCup. It should solve your problems. Distro packages of Haskell are famously bad.
Re: Brassica SCA [v1.0.0]
Posted: Fri Mar 21, 2025 2:22 am
by Lērisama
bradrn wrote: ↑Thu Mar 20, 2025 8:41 pm
Wait… this makes me realise… I thought I recommended
GHCup already. But looks like I didn’t — no wonder Lērisama is having problems with painfully old GHC versions.
Lērisama, if you’re not already using GHCup, clean out your existing Haskell installation completely and reinstall it via GHCup. It should solve your problems. Distro packages of Haskell are famously bad.
Aha, I was not aware of that. I'll try that at the weekend.
Re: Brassica SCA [v1.0.0]
Posted: Fri Mar 21, 2025 3:21 pm
by Lērisama
I managed to install ghcup tonight, and tried to recompile it. I got a lot of
Code: Select all
/usr/bin/ld.gold: error: cannot find -lgmp
collect2: error: ld returned 1 exit status
`gcc' failed in phase `Linker'. (Exit code: 1)
As well as warnings that
~ would soon cause an error, that
memset ans
memcpy is deprecated. It is also complaining that importing
Data.Semigroup is redundant.
Re: Brassica SCA [v1.0.0]
Posted: Fri Mar 21, 2025 3:23 pm
by Travis B.
Lērisama wrote: ↑Fri Mar 21, 2025 3:21 pm
I managed to install ghcup tonight, and tried to recompile it. I got a lot of
Code: Select all
/usr/bin/ld.gold: error: cannot find -lgmp
collect2: error: ld returned 1 exit status
`gcc' failed in phase `Linker'. (Exit code: 1)
As well as warnings that
~ would soon cause an error, that
memset ans
memcpy is deprecated. It is also complaining that importing
Data.Semigroup is redundant.
You probably need libgmp installed then.
Re: Brassica SCA [v1.0.0]
Posted: Fri Mar 21, 2025 3:32 pm
by Lērisama
Travis B. wrote: ↑Fri Mar 21, 2025 3:23 pm
Lērisama wrote: ↑Fri Mar 21, 2025 3:21 pm
I managed to install ghcup tonight, and tried to recompile it. I got a lot of
Code: Select all
/usr/bin/ld.gold: error: cannot find -lgmp
collect2: error: ld returned 1 exit status
`gcc' failed in phase `Linker'. (Exit code: 1)
As well as warnings that
~ would soon cause an error, that
memset ans
memcpy is deprecated. It is also complaining that importing
Data.Semigroup is redundant.
You probably need libgmp installed then.
I had
just shut the pi down. Sod's law strikes again!
Re: Brassica SCA [v1.0.0]
Posted: Sat Mar 22, 2025 4:25 am
by Lērisama
It works!
Re: Brassica SCA [v1.0.0]
Posted: Sat Mar 22, 2025 6:17 am
by Raphael
Lērisama wrote: ↑Sat Mar 22, 2025 4:25 amIt works!
*manic laughter*
Re: Brassica SCA [v1.0.0]
Posted: Sat Mar 22, 2025 6:42 am
by bradrn
Lērisama wrote: ↑Sat Mar 22, 2025 4:25 amIt works!
Amazing!