Bug 11181

Summary: Switching toolchain does not work
Product: buildroot Reporter: buildroot
Component: OtherAssignee: unassigned
Status: RESOLVED WONTFIX    
Severity: normal CC: buildroot
Priority: P5    
Version: 2018.05   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Host: Target:
Build:

Description buildroot 2018-07-25 08:42:35 UTC
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)
Comment 1 Thomas Petazzoni 2018-07-25 08:52:07 UTC
Not a bug: you need to do a full rebuild. This is documented at https://buildroot.org/downloads/manual/manual.html#full-rebuild