Try adding an include <wx/choice.h> to file advancedcompileroptionsdlg.cpp.
Hmm... I don't think anyone has touched that source file for 4-6 weeks. Thus, if this
#include was missing, one of the several hundred Linux users building Code::Blocks regularly should have had that problem several weeks ago already, I think. (Otherwise, we seriously need to work on our communication, guys

).
But it's worth a shot anyway. Try it, and if it works for you, then that is better than nothing. Just, be aware that you might indeed have a setup error, so don't be surprised if you see that same error again in another project later.