Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2792154imm; Mon, 10 Sep 2018 06:36:27 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbZ9K8gC9yVrb1y4jEBhKNP+rHPwYkYtHnLrNlt87VjwVYIYOwxtn9oVz81K5x3MeAI3arE X-Received: by 2002:a62:cd3:: with SMTP id 80-v6mr24166972pfm.184.1536586587203; Mon, 10 Sep 2018 06:36:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536586587; cv=none; d=google.com; s=arc-20160816; b=lMpa1OEQv3zoZVFcH2aMYdhWzHLoayZeYXHhd91afTt3Tc1ZC9uFdFQkND+sackVPo 8YAgUBsXaBct4DFjolDjtuSYbCK5ibUYLdd5AWj7nCqi+OCB9+txPsnc9LVb4URaAW4o Pw1+W52LIacwz+8NjusgiE9SEZ3jQwIPzxDAFO1hK9DfRO4WyocdDad5v6KHCCzecoLP DNyryWlNVlmkfZtrUuSOngSqWrcCZrWESEje2eCW0tnOrLLN/eZfs3n4/Npl0NIa6EgO ollsYZW/9BqqndOW/sPeeAlVc0oT3+yDff6GMVaIBngY35OpaJ7/Abr1VNWUh0b0xLUu IuNQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=RaIi9ED6Zm6M3kJdp368D73S+jihuN9PhdM8YQFJD3c=; b=ROq9SSSHsjmmOVRRFR0sI8R8GKuodG30jd31WUlIN9Z8mHWMGhYbDZ4wZWleN9gWqI UrBoiKkCzeX4Xqmffi/vU0b5c41KSr5Iy3lJadpSIVR5dUp4lo7WWlsV3lfXiMxKsD6J uew2L4l2XpUkVRk8VPPBJYauPfLcG2IZbOa8cv4U2fY29phk4kfrp+MiB74R3DiCv70g FuAGQaBg9+kUX0yq/vpr2jRo5dSYSm6BUa6M2PXNuL9H4q0fvjdP/0NANw7rDTp1/5as 04DVYJW6jtkidd4cMwcp8KwoUJ7r6D2nU+E6xscgYzwShu1oAlhFRVnvAmYoyiq86vuC L6Bw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 1-v6si17410767plt.148.2018.09.10.06.35.41; Mon, 10 Sep 2018 06:36:27 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728757AbeIJSYz (ORCPT + 99 others); Mon, 10 Sep 2018 14:24:55 -0400 Received: from pegase1.c-s.fr ([93.17.236.30]:1052 "EHLO pegase1.c-s.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727970AbeIJSYz (ORCPT ); Mon, 10 Sep 2018 14:24:55 -0400 Received: from localhost (mailhub1-int [192.168.12.234]) by localhost (Postfix) with ESMTP id 42887L2Ndmz9ttC0; Mon, 10 Sep 2018 15:30:38 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at c-s.fr Received: from pegase1.c-s.fr ([192.168.12.234]) by localhost (pegase1.c-s.fr [192.168.12.234]) (amavisd-new, port 10024) with ESMTP id 8ddVZpZF0eYa; Mon, 10 Sep 2018 15:30:38 +0200 (CEST) Received: from messagerie.si.c-s.fr (messagerie.si.c-s.fr [192.168.25.192]) by pegase1.c-s.fr (Postfix) with ESMTP id 42887L1jJyz9ttBp; Mon, 10 Sep 2018 15:30:38 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 8B7968B7AD; Mon, 10 Sep 2018 15:30:46 +0200 (CEST) X-Virus-Scanned: amavisd-new at c-s.fr Received: from messagerie.si.c-s.fr ([127.0.0.1]) by localhost (messagerie.si.c-s.fr [127.0.0.1]) (amavisd-new, port 10023) with ESMTP id Zf23eJ1q_5Hz; Mon, 10 Sep 2018 15:30:46 +0200 (CEST) Received: from pc16082vm.idsi0.si.c-s.fr (po15451.idsi0.si.c-s.fr [172.25.231.3]) by messagerie.si.c-s.fr (Postfix) with ESMTP id 4EB2F8B7A5; Mon, 10 Sep 2018 15:30:46 +0200 (CEST) Subject: Re: Conflict between sparse and commit cafa0010cd51f ("Raise the minimum required gcc version to 4.6") To: Luc Van Oostenryck Cc: Nick Desaulniers , joe@perches.com, Kees Cook , LKML , linux-sparse@vger.kernel.org, sparse@chrisli.org, linuxppc-dev@lists.ozlabs.org References: <81a5fd11-366c-0897-4143-d8d041420a41@c-s.fr> <1324e7d6-83f8-f40f-ad34-c46e4ad3139b@c-s.fr> <20180907181337.peyfq7yvhahduvmq@ltop.local> <20180910092835.v5nex5nzfgtl475m@ltop.local> <061b3056-1a9a-af6b-de2a-49fea394320d@c-s.fr> <20180910113448.dxnfvznyimtj3tkv@ltop.local> From: Christophe Leroy Message-ID: <9409138a-dc14-2b12-edc0-cfa0b471da6e@c-s.fr> Date: Mon, 10 Sep 2018 13:19:07 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <20180910113448.dxnfvznyimtj3tkv@ltop.local> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 09/10/2018 11:34 AM, Luc Van Oostenryck wrote: > On Mon, Sep 10, 2018 at 09:56:33AM +0000, Christophe Leroy wrote: >> >> # export REAL_CC=ppc-linux-gcc >> # make CHECK="cgcc -target=ppc -D_CALL_ELF=2 -D__GCC__=5 >> -D__GCC_MINOR__=4" C=2 arch/powerpc/kernel/process.o >> scripts/kconfig/conf --syncconfig Kconfig >> # >> # configuration written to .config >> # >> UPD include/config/kernel.release >> UPD include/generated/utsrelease.h >> CC kernel/bounds.s >> CC arch/powerpc/kernel/asm-offsets.s >> CALL scripts/checksyscalls.sh >> CHECK scripts/mod/empty.c >> Can't exec "/bin/sh": Argument list too long at /usr/local/bin/cgcc line 86. >> make[2]: *** [scripts/mod/empty.o] Error 1 >> make[1]: *** [scripts/mod] Error 2 >> make: *** [scripts] Error 2 > > OK. Clearly nobody has ever used it so :( > There is an infinite loop because cgcc use the env var CHECK > to call sparse while kbuild use CHECK to call cgcc here. > > The following seems to work here. > $ export REAL_CC=ppc-linux-gcc > $ make CHECK="CHECK=sparse cgcc -target=ppc ... Not yet ... [root@pc16082vm linux-powerpc]# export REAL_CC=ppc-linux-gcc [root@pc16082vm linux-powerpc]# make CHECK="CHECK=sparse cgcc -target=ppc -D_CALL_ELF=2 -D__GNUC__=5 -D__GNUC_MINOR__=4" C=2 arch/powerpc/kernel/process.o CALL scripts/checksyscalls.sh CHECK scripts/mod/empty.c :0:0: warning: "__STDC__" redefined : note: this is the location of the previous definition /opt/cldk-1.4.0/lib/gcc/ppc-linux/5.4.0/../../../../ppc-linux/lib/crt1.o:(.rodata+0x4): undefined reference to `main' collect2: error: ld returned 1 exit status make[2]: *** [scripts/mod/empty.o] Error 1 make[1]: *** [scripts/mod] Error 2 make: *** [scripts] Error 2 Christophe > > It's a bit kludgy, I admit. > > -- Luc >