Compiling kernel-3.4.xxx with gcc-9.x. Need some help.

Greg KH greg at kroah.com
Tue Mar 30 09:40:37 EDT 2021


On Tue, Mar 30, 2021 at 03:23:10PM +0200, Fawad Lateef wrote:
> So can I still use kernel-3.4 compiled with gcc-5.5, and boot full
> user-space with gcc-9.1?

Yes, of course.

> I was expecting it to be possible but might not work due to
> incompatibility? As I know that when I tried to compile buildroot-2019
> (with latest version of openssl and others) it needs kernel headers
> and then I likely can't use 3.4 kernel.

buildroot might be different, as that is how you are building your whole
system, but there is no dependency on the kernel and userspace to use
the same version of the compiler.  Otherwise everyone would have to
rebuild the world for every time they updated their kernel, this isn't
the BSDs :)

thanks,

greg k-h



More information about the Kernelnewbies mailing list