To recompile Emacs from scratch, including stale bytecode, execute
true \ && make extraclean \ && ./autogen.sh \ && ./configure \ --with-json \ --with-tree-sitter \ --with-sqlite3 \ --with-native-compilation=aot \ && make bootstrap --jobs 8 \ && make install