Some months back I did ok with bookworm and Rpi 5 and 4b. Please see this post.
What were the errors? It would not generate the proper binary files?