[lfs-support] Kernel bug involving physical to virtual remapping

Michael Shell list1 at michaelshell.org
Thu Jul 19 23:48:33 PDT 2018


On Thu, 19 Jul 2018 21:54:20 +0200
Frans de Boer <frans at fransdb.nl> wrote:

> I get an syntax error when compiling pager.c. I had this before and 
> remembered that gcc 8.1 is less forgiving then the 7 series.


  Frans,

FWIW, there was some discussion about gcc 8.1 issues on the kernel
mailing list:

https://lkml.org/lkml/2018/5/5/181

But, it seems the problems they mention are just warnings, annoying
but they don't actually break anything.

There are some gcc 8.1 kernel patches here:

https://git.kernel.org/pub/scm/linux/kernel/git/jpoimboe/linux.git/log/?h=objtool-gcc8

The one of interest are the top two with "Support GCC 8" in the title.

But, I think you'll be more interested in the other set of 
GCC 8 patches here:

https://patchwork.openembedded.org/patch/151479/

two files in the kernel source are changed:

tools/lib/str_error_r.c 
tools/lib/subcmd/pager.c

So, there is your pager.c problem.

Looking at the patch code, it seems there are/were potential problems
in the kernel code which gcc 8.1 detects and warns (or errors) about.
But, gcc 8 itself isn't the cause of these issues.

> I don't believe that this is the right thread anymore.

Yeah, but the recent little odds and ends here sure are interesting.


  Cheers,

  Mike



More information about the lfs-support mailing list