Closed imphil closed 6 years ago
FuseSoC warns about unknown sections, but carry on anyway. Without seeing the core file, I think the problem here is that the backend parameter in the main section is set to spyglass
I agree however that FuseSoC should catch this error and exit gracefully
I added a patch now that ignores cores with an invalid backend parameter in the main section. I hoped to just ignore invalid parameters first, but other parts of the code relied on having a valid backend so we abort parsing the core for now and write a better warning when we encounter this situation. Good enough?
Yeah, ignoring the whole .core file is fine and actually expected in case of a non-recoverable parse error like this one. (It's the same behavior fusesoc should have with files which happen to end in .core but are not valid core files.)
With current master it works for me, I now get:
WARNING: Unknown section 'spyglass' in '/home/no56hud/src/optimsoc/examples/fpga/vcu108/compute_tile/compute_tile_vcu108-spyglass.core'
WARNING: Parse error. Ignoring file /home/no56hud/src/optimsoc/examples/fpga/vcu108/compute_tile/compute_tile_vcu108-spyglass.core: Invalid backend "spyglass"
Thanks for the quick fix!
From previous testings, I have a core file with a [spyglass] section. fusesoc (master as of today) recognizes this section as unsupported, but still throws an exception. Either the warning should be a fatal error, or (preferably) fusesoc should really ignore unknown sections.