sgherbst / anasymod

A framework for FPGA emulation of mixed-signal systems
BSD 3-Clause "New" or "Revised" License
34 stars 9 forks source link

Firmware build process does not raise an exception on build errors #28

Closed sgherbst closed 4 years ago

sgherbst commented 4 years ago

Here's some sample output from the firmware compiler due to a syntax error. It would be helpful if anasymod raised an exception in this case, because the compiler produces a lot of output text and it can be easy to miss the error message. I believe the next step (upload firmware) does raise an exception due to a missing ELF file, but in then the user has to scroll back through the compiler output to figure out what went wrong.

../src/main.c: In function 'main':
../src/main.c:288:32: error: expected ';' before '}' token
  288 |                         nargs++
      |                                ^
      |                                ;
  289 |                     }
      |                     ~           
src/subdir.mk:24: recipe for target 'src/main.o' failed
makefile:33: recipe for target 'all' failed
make[1]: *** [src/main.o] Error 1
make: *** [all] Error 2