Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751177AbdFAMqI (ORCPT ); Thu, 1 Jun 2017 08:46:08 -0400 Received: from mail-wm0-f44.google.com ([74.125.82.44]:34877 "EHLO mail-wm0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750952AbdFAMqG (ORCPT ); Thu, 1 Jun 2017 08:46:06 -0400 MIME-Version: 1.0 In-Reply-To: <20170601121224.GE26922@waldemar-brodkorb.de> References: <20170531193431.GA26922@waldemar-brodkorb.de> <20170531.171008.528800003662477033.davem@davemloft.net> <20170601121224.GE26922@waldemar-brodkorb.de> From: Anatoly Pugachev Date: Thu, 1 Jun 2017 15:46:04 +0300 Message-ID: Subject: Re: sparc gcc 7.1 compile issue To: Sparc kernel list Cc: Linux Kernel list Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by mail.home.local id v51CkClM011273 Content-Length: 1477 Lines: 39 on the same topic , latest git does not compile for me with gcc-7.0.1 gcc version 7.0.1 20170407 (experimental) [trunk revision 246759] (Debian 7-20170407-1) $ make ... CC arch/sparc/kernel/ds.o arch/sparc/kernel/ds.c: In function ‘register_services’: arch/sparc/kernel/ds.c:912:3: error: ‘strcpy’: writing at least 1 byte into a region of size 0 overflows the destination [-Werror=stringop-overflow ] strcpy(pbuf.req.svc_id, cp->service_id); ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ cc1: all warnings being treated as errors scripts/Makefile.build:302: recipe for target 'arch/sparc/kernel/ds.o' failed make[2]: *** [arch/sparc/kernel/ds.o] Error 1 scripts/Makefile.build:561: recipe for target 'arch/sparc/kernel' failed make[1]: *** [arch/sparc/kernel] Error 2 Makefile:1016: recipe for target 'arch/sparc' failed make: *** [arch/sparc] Error 2 I'm able to pass arch/sparc/kernel/ compilation, if I change/add to arch/sparc/kernel/Makefile : -ccflags-y := -Werror +ccflags-y := -Werror -Wno-error=stringop-overflow but even with that hack, i'm unable to compile kernel, getting in the end of make: ... LD init/built-in.o LD vmlinux.o MODPOST vmlinux.o ipc/built-in.o: In function `mq_attr_ok.isra.0': mqueue.c:(.text+0xc490): undefined reference to `__multi3' drivers/built-in.o: In function `dm_vcalloc': (.text+0xc9e98): undefined reference to `__multi3' Makefile:997: recipe for target 'vmlinux' failed make: *** [vmlinux] Error 1