Building now works for me in Debian Unstable after applying JWE's patch
from https://savannah.gnu.org/bugs/?48319
'make check' gives a few failing tests:
.build/libinterp/corefcn/data.cc-tst ........................ PASS
999/1005
FAIL 6
.build/libinterp/corefcn/graphics.cc-tst .................... PASS
36/39
FAIL 3
scripts/gui/uimenu.m ........................................ PASS
0/3
FAIL 3
scripts/image/ntsc2rgb.m .................................... PASS
21/22
FAIL 1
scripts/image/rgb2ntsc.m .................................... PASS
17/18
FAIL 1
scripts/plot/util/allchild.m ................................ PASS
2/3
FAIL 1
scripts/plot/util/findall.m ................................. PASS
0/1
FAIL 1
scripts/plot/util/graphics_toolkit.m ........................ PASS
0/2
FAIL 2
Summary:
PASS 14045
FAIL 18
XFAIL 29
SKIPPED 43