LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* linux-next 20180320 compile failure - tools/lib/str_error_r.c
@ 2018-03-20 16:43 valdis.kletnieks
  2018-03-21 13:29 ` Arnaldo Carvalho de Melo
  0 siblings, 1 reply; 3+ messages in thread
From: valdis.kletnieks @ 2018-03-20 16:43 UTC (permalink / raw)
  To: Arnaldo Carvalho de Melo, Greg Kroah-Hartman, Andrew Morton; +Cc: linux-kernel

[-- Attachment #1: Type: text/plain, Size: 1061 bytes --]

Not sure who to blame here, or what changed in gcc between 0.16 and 0.19,
or what the proper fix is here....

next-20180307 with "gcc version 8.0.1 20180222 (Red Hat 8.0.1-0.16)" built and runs fine.

next-20180320 with "gcc (GCC) 8.0.1 20180317 (Red Hat 8.0.1-0.19)"  dies a horrid death early
during the compile:

  CC       /usr/src/linux-next/tools/objtool/str_error_r.o
../lib/str_error_r.c: In function 'str_error_r':
../lib/str_error_r.c:25:3: error: passing argument 1 to restrict-qualified parameter aliases with argument 5 [-Werror=restrict]
   snprintf(buf, buflen, "INTERNAL ERROR: strerror_r(%d, %p, %zd)=%d", errnum, buf, buflen, err);
   ^~~~~~~~
cc1: all warnings being treated as errors
mv: cannot stat '/usr/src/linux-next/tools/objtool/.str_error_r.o.tmp': No such file or directory
make[3]: *** [Build:22: /usr/src/linux-next/tools/objtool/str_error_r.o] Error 1
make[2]: *** [Makefile:46: /usr/src/linux-next/tools/objtool/objtool-in.o] Error 2
make[1]: *** [Makefile:63: objtool] Error 2
make: *** [Makefile:1681: tools/objtool] Error 2



[-- Attachment #2: Type: application/pgp-signature, Size: 486 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: linux-next 20180320 compile failure - tools/lib/str_error_r.c
  2018-03-20 16:43 linux-next 20180320 compile failure - tools/lib/str_error_r.c valdis.kletnieks
@ 2018-03-21 13:29 ` Arnaldo Carvalho de Melo
  2018-03-21 18:37   ` valdis.kletnieks
  0 siblings, 1 reply; 3+ messages in thread
From: Arnaldo Carvalho de Melo @ 2018-03-21 13:29 UTC (permalink / raw)
  To: valdis.kletnieks
  Cc: Greg Kroah-Hartman, Andrew Morton, Josh Poimboeuf, Laura Abbott,
	Arnaldo Carvalho de Melo, linux-kernel

Em Tue, Mar 20, 2018 at 12:43:32PM -0400, valdis.kletnieks@vt.edu escreveu:
> Not sure who to blame here, or what changed in gcc between 0.16 and 0.19,
> or what the proper fix is here....
> 
> next-20180307 with "gcc version 8.0.1 20180222 (Red Hat 8.0.1-0.16)" built and runs fine.
> 
> next-20180320 with "gcc (GCC) 8.0.1 20180317 (Red Hat 8.0.1-0.19)"  dies a horrid death early
> during the compile:
> 
>   CC       /usr/src/linux-next/tools/objtool/str_error_r.o
> ../lib/str_error_r.c: In function 'str_error_r':
> ../lib/str_error_r.c:25:3: error: passing argument 1 to restrict-qualified parameter aliases with argument 5 [-Werror=restrict]
>    snprintf(buf, buflen, "INTERNAL ERROR: strerror_r(%d, %p, %zd)=%d", errnum, buf, buflen, err);
>    ^~~~~~~~
> cc1: all warnings being treated as errors
> mv: cannot stat '/usr/src/linux-next/tools/objtool/.str_error_r.o.tmp': No such file or directory
> make[3]: *** [Build:22: /usr/src/linux-next/tools/objtool/str_error_r.o] Error 1
> make[2]: *** [Makefile:46: /usr/src/linux-next/tools/objtool/objtool-in.o] Error 2
> make[1]: *** [Makefile:63: objtool] Error 2
> make: *** [Makefile:1681: tools/objtool] Error 2
> 

https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git/commit/?id=854e55ad289e

- Arnaldo

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: linux-next 20180320 compile failure - tools/lib/str_error_r.c
  2018-03-21 13:29 ` Arnaldo Carvalho de Melo
@ 2018-03-21 18:37   ` valdis.kletnieks
  0 siblings, 0 replies; 3+ messages in thread
From: valdis.kletnieks @ 2018-03-21 18:37 UTC (permalink / raw)
  To: Arnaldo Carvalho de Melo
  Cc: Greg Kroah-Hartman, Andrew Morton, Josh Poimboeuf, Laura Abbott,
	Arnaldo Carvalho de Melo, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 1189 bytes --]

On Wed, 21 Mar 2018 10:29:38 -0300, Arnaldo Carvalho de Melo said:
> Em Tue, Mar 20, 2018 at 12:43:32PM -0400, valdis.kletnieks@vt.edu escreveu:

> > next-20180320 with "gcc (GCC) 8.0.1 20180317 (Red Hat 8.0.1-0.19)"  dies a horrid death early
> > during the compile:
> >
> >   CC       /usr/src/linux-next/tools/objtool/str_error_r.o
> > ../lib/str_error_r.c: In function 'str_error_r':
> > ../lib/str_error_r.c:25:3: error: passing argument 1 to restrict-qualified parameter aliases with argument 5 [-Werror=restrict]
> >    snprintf(buf, buflen, "INTERNAL ERROR: strerror_r(%d, %p, %zd)=%d", errnum, buf, buflen, err);
> >    ^~~~~~~~
> > cc1: all warnings being treated as errors
> > mv: cannot stat '/usr/src/linux-next/tools/objtool/.str_error_r.o.tmp': No such file or directory
> > make[3]: *** [Build:22: /usr/src/linux-next/tools/objtool/str_error_r.o] Error 1
> > make[2]: *** [Makefile:46: /usr/src/linux-next/tools/objtool/objtool-in.o] Error 2
> > make[1]: *** [Makefile:63: objtool] Error 2
> > make: *** [Makefile:1681: tools/objtool] Error 2
> >
>
> https://git.kernel.org/pub/scm/linux/kernel/git/tip/tip.git/commit/?id=854e55ad289e

Confirming that fixes the problem...

[-- Attachment #2: Type: application/pgp-signature, Size: 486 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-03-21 18:37 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-03-20 16:43 linux-next 20180320 compile failure - tools/lib/str_error_r.c valdis.kletnieks
2018-03-21 13:29 ` Arnaldo Carvalho de Melo
2018-03-21 18:37   ` valdis.kletnieks

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).