Re: 4.14.9 with CONFIG_MCORE2 fails to boot

From: Alexander Tsoy
Date: Fri Dec 29 2017 - 15:23:32 EST


Ð ÐÑ, 29/12/2017 Ð 11:31 -0800, Linus Torvalds ÐÐÑÐÑ:
> On Fri, Dec 29, 2017 at 9:32 AM, Dave Hansen <dave.hansen@xxxxxxxxx>
>
--------------->%---------------
> >
> > MCORE2 seems to get one oddball compiler flag (-march=core2):
> >
> > > ÂÂÂÂÂÂÂÂcflags-$(CONFIG_MCORE2) += \
> > > ÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂÂ$(call cc-option,-march=core2,$(call cc-option,-
> > > mtune=generic))
> >
> > It would be interesting to see if replacing the above "$(call"
> > with:
> >
> > ÂÂÂÂÂÂÂÂ$(call cc-option,-mtune=generic)
> >
> > makes the problem go away the same way as changing the .config
> > option.
>
> Definitely.
>
--------------->%---------------
> But double-checking that "-march=core2" case is definitely worth
> looking into. Especially since there are clear indications that it's
> gcc version-dependent anyway. Alexander?
>

Yes, the change suggested by Dave makes the problem go away.