lancaster-university / codal-microbit-v2

CODAL target for the micro:bit v2.x series of devices
MIT License
43 stars 52 forks source link

StreamRecording.cpp build error on latest codal-core repo #380

Closed JasJassal closed 1 year ago

JasJassal commented 1 year ago

Following the build instructions from microbit-v2-samples results in pulling down the codal-core repo headed at the following patch: d7ea466 (HEAD) Exposd a call to dump the heap state when not in full memory debug mode

This errors with: microbit-v2-samples/libraries/codal-core/source/streams/StreamRecording.cpp:80:9: error: 'codal_dmesg_flush' was not declared in this scope codal_dmesg_flush();

Rolling back to HEAD (commit a116354) on codal-core seems to result in a successful build. (Debian based host)

Using the dockerfile instructions also results in the same error:

/opt/microbit-samples/libraries/codal-core/source/streams/StreamRecording.cpp: In member function 'void codal::StreamRecording::printChain()': /opt/microbit-samples/libraries/codal-core/source/streams/StreamRecording.cpp:80:9: error: 'codal_dmesg_flush' was not declared in this scope codal_dmesg_flush(); ^~~~~

JasJassal commented 1 year ago

Realise now I probably should have raised this on microbit-v2-samples repo.

microbit-carlos commented 1 year ago

Thanks for the report @JasJassal! This should be fixed in the latest commits, could you clean your environment and try again (you can delete the build and librarires folder to download everything again and rebuild from zero).

JasJassal commented 1 year ago

Verified builds using build.py. Thanks.