On 17/10/20 15:09, Peter Maydell wrote: > Traceback (most recent call last): > File "scripts/mtest2make.py", line 37, in <module> > introspect = json.load(sys.stdin) > File "/usr/lib/python3.6/json/__init__.py", line 299, in load > parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw) > File "/usr/lib/python3.6/json/__init__.py", line 354, in loads > return _default_decoder.decode(s) > File "/usr/lib/python3.6/json/decoder.py", line 339, in decode > obj, end = self.raw_decode(s, idx=_w(s, 0).end()) > File "/usr/lib/python3.6/json/decoder.py", line 357, in raw_decode > raise JSONDecodeError("Expecting value", s, err.value) from None > json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0) > make: *** Deleting file 'Makefile.mtest' > > followed by: > > ERROR: Cannot find Ninja
The most likely cause is that the Makefile is forcing configure to rerun because you don't have ninja in config-host.mak; this works (as shown by the error) but only after mtest2make has barfed. I can add a dependency from Makefile.mtest to config-host.mak which technically isn't needed but doesn't hurt. OpenBSD and NetBSD call the ninja package "ninja-build" unlike FreeBSD. I'm sure I had used the right name but well I didn't. I'll send a v3. Paolo