Skip to content

Fix teensy-resid crash and compile issues for Pi0#303

Open
aminch wants to merge 1 commit intorandyrossi:masterfrom
aminch:pi0-compile-n-crash-fix
Open

Fix teensy-resid crash and compile issues for Pi0#303
aminch wants to merge 1 commit intorandyrossi:masterfrom
aminch:pi0-compile-n-crash-fix

Conversation

@aminch
Copy link
Contributor

@aminch aminch commented Sep 27, 2025

When trying to build for Pi Zero (Pi0) I ran into compile problems, and then a crash on start up. Proposed pull request for this issue: #302

The compile issues were related to the missing types and redundant header which I updated to the siddefs.h header in teensy-resid so that the changes only affected that module and Pi0 build. Adding these fixed the compile problems.

I also updated the make_all.sh to build the teensy-resid during a build for Pi0 as that was missing, and added a call to the autogen.sh for vice to make it easier to compile from a clean repo.

Once it compiled I got a crash on startup which is shown in the log in this issue: #302

This turned out to be a problem with the return of the call from set_sampling_parameters when it was called from resid.cc line 253, into the built teensy-resid library. It was missing the return value, which caused the startup crash.

I added a seprate script reset_repo.sh as a simple way to reset all the repo and submodule back to a clean state, to make it easier to test building from a directly checked out respository. Not needed in the pull request but I found it nice to have.

* Fix teensy-resid compile issues and start up crash for Pi0
* Run autogen for vice everytime
* Add script to easily rest repo to a clean state
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant