I build several kernels for debugging purpose. For this I need the gcc7 and gcc4, but when I switch the compiler in the toolchain menu, it won't use the selected compiler. Steps to reproduce. make menuconfig -> toolchain -> GCC compiler Version gcc 4.9.x -> Exit and Save make make menuconfig -> toolchain -> GCC compiler Version gcc 7.x -> Exit and Save make (note, this works!) make menuconfig -> toolchain -> GCC compiler Version gcc 4.9.x -> Exit and Save make (now it builds with gcc 7)
Not a bug: you need to do a full rebuild. This is documented at https://buildroot.org/downloads/manual/manual.html#full-rebuild