Created attachment 197930 [details] patch GCC treats const int as a variable and forbids creating arrays of a size of such variable. Switch from const int to define to fix it. Tested on powerpc64 and amd64. Hardware sponsored by IntegriCloud.
Hi Thank you for reporting this. I'm the upstream author and just ran into this bug as well. There should be a slightly different fix in the next day or so.
Upstream tracking https://bitbucket.org/ctuffli/smart/issues/9
Updated in version 0.0.11
A commit references this bug: Author: jrm Date: Fri Oct 12 22:19:31 UTC 2018 New revision: 481943 URL: https://svnweb.freebsd.org/changeset/ports/481943 Log: sysutils/smart: Update to 0.0.11 and fix build on mips(64), powerpc PR: 232087 Reported by: pkubaj@anongoth.pl Changes: head/sysutils/smart/Makefile head/sysutils/smart/distinfo
Piotr, could you confirm that this works on mips, mips64, and powerpc64?
I do not have any of the hardware listed here to confirm the fix. Please re-open if it's still an issue.
(In reply to Joseph Mingrone from comment #6) Sorry about that, I forgot about this bug! Yes, it works on powerpc64.