On Wed, May 30, 2018 at 11:46:45AM -0700, Guenter Roeck wrote:
On Wed, May 30, 2018 at 03:55:04PM +0200, Arnd Bergmann wrote:
On Wed, May 30, 2018 at 3:31 PM, Guenter Roeck linux@roeck-us.net wrote:
On 05/30/2018 02:27 AM, Arnd Bergmann wrote:
On Mon, May 28, 2018 at 3:48 PM, Guenter Roeck linux@roeck-us.net wrote:
Hi Greg,
please apply the following patches.
to v4.4-stable and older:
cb36af3e48be sh: New gcc support to support gcc 8.1.0 for sh
to v4.9-stable and older:
009615ab7fd4 USB: serial: cp210x: use tcflag_t to fix incompatible pointer type to support gcc 7.3.0 for sparc
Copying Arnd - I can't get sparc images to compile with gcc 8.1.0. Any idea
No, sorry. I've just tried it again and couldn't find any problems with my gcc-8.1 binaries building either sparc32_defconfig or sparc64_defconfig.
Interesting. With sparc64-linux-gcc (GCC) 8.1.0 from kernel.org:
make ARCH=sparc64 CROSS_COMPILE=sparc64-linux- allmodconfig make ARCH=sparc64 CROSS_COMPILE=sparc64-linux- arch/sparc/kernel/sys_sparc_64.o
results in:
./include/linux/syscalls.h:233:18: error: 'sys_sparc64_personality' alias between functions of incompatible types 'long int(long unsigned int)' and 'long int(long int)' [-Werror=attribute-alias]
and many more.
Presumably this is due to
arch/sparc/kernel/Makefile:ccflags-y := -Werror
Right, I have disabled that warning locally, so I didn't get it despite the -Werror.
Would it make sense to add KBUILD_CFLAGS += $(call cc-option,-Wno-attribute-alias) to the sparc Makefile ? It seems to fix the problem for me, and it would be easier to backport than a more comprehensive fix.
Why is that not an option enabled for all arches right now for gcc-8?
thanks,
greg k-h