Closed fanoush closed 2 years ago
Oh, well, I guess the answer is here https://github.com/keith-packard/lola/commit/0b09e90d17664e5f7391f5b749cfeed1cb488530 Looks like lola version 1.4 in latest debian is too old (?) so the README.md is too optimistic :-(
OK sudo vi $(which lola)
and pasting those three lines there fixed the build.
BTW at first I was guessing gawk and some gnu extension since after second read of readme you mention gawk but it is not in install instructions (and bullseye does not install gawk by default, there is mawk) but that was not it, mawk is probably good enough.
Oh, well, I guess the answer is here keith-packard/lola@0b09e90 Looks like lola version 1.4 in latest debian is too old (?) so the README.md is too optimistic :-(
I couldn't find anything in README.md that even mentions the version of lola required; it only talks about installing lola from debian unstable. That's not wrong, but it's also not very helpful.
OK
sudo vi $(which lola)
and pasting those three lines there fixed the build.BTW at first I was guessing gawk and some gnu extension since after second read of readme you mention gawk but it is not in install instructions (and bullseye does not install gawk by default, there is mawk) but that was not it, mawk is probably good enough.
Not having gawk won't stop the programs from being built, but it will prevent the build from completing successfully as the snek build scripts use a GNU extension, strtonum
, which isn't available in mawk.
That's not wrong, but it's also not very helpful.
Yes, indeed. It is I who was too optimistic :-) Referring to stable and unstable is not very specific so I was just hoping it was written when bullseye was not released yet. But that was bad guess as most probably unstable -> bullseye switch was done much earlier than its release date.
As for gawk - after first failure I actually retried only inside ports/posix so didn't notice mawk failure. Anyway putting gawk into that # apt install lola gcc-avr
.... line in README could help too.
I'll leave this open as merging the PR will close it but thanks, problem solved.
I am trying to build from source on debian 11 bullseye i386 (old laptop) and aarch64 (raspberry Pi4 with 64bit OS) and on both of them it fails like this
I can see that mising stuff is declared in C macro PARSE_TOP here https://github.com/keith-packard/snek/blob/main/snek-parse.c#L39 but I don't see the macro being used anywhere so I'm not sure how this is supposed to work. also in generated
ports/posix/snek-gram.h
macroPARSE_TOP
is not used anywhere.I installed dependencies including lola as per readme, lola was downloaded as
I am trying default main branch if that matters.