From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757224AbdLPWft (ORCPT ); Sat, 16 Dec 2017 17:35:49 -0500 Received: from out0-219.mail.aliyun.com ([140.205.0.219]:51955 "EHLO out0-219.mail.aliyun.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756922AbdLPWfp (ORCPT ); Sat, 16 Dec 2017 17:35:45 -0500 X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R161e4;CH=green;FP=0|-1|-1|-1|0|-1|-1|-1;HT=e02c03306;MF=yang.s@alibaba-inc.com;NM=1;PH=DS;RN=6;SR=0;TI=SMTPD_---.9k9Aix4_1513463734; To: dianders@chromium.org Cc: Arnd Bergmann , mingo@kernel.org, linux@roeck-us.net, yamada.masahiro@socionext.com, linux-kernel From: "Yang Shi" Subject: [BUG] Build error for 4.15-rc3 kernel caused by patch "kbuild: Add a cache for generated variables" Message-ID: <8d9a5c09-23e2-253b-860d-7bc9d20f5317@alibaba-inc.com> Date: Sun, 17 Dec 2017 06:35:24 +0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi folks, I just upgraded gcc to 6.4 on my centos 7 machine by Arnd's suggestion. But, I ran into the below compile error with 4.15-rc3 kernel: In file included from ./include/uapi/linux/uuid.h:21:0, from ./include/linux/uuid.h:19, from ./include/linux/mod_devicetable.h:12, from scripts/mod/devicetable-offsets.c:2: ./include/linux/string.h:8:20: fatal error: stdarg.h: No such file or directory #include I bisected to commit 3298b690b21cdbe6b2ae8076d9147027f396f2b1 ("kbuild: Add a cache for generated variables"). Once I revert this commit, kernel build is fine. gcc 4.8.5 is fine to build kernel with this commit. I'm not quite sure if this is a bug or my gcc install is skewed although it can build kernel without that commit since that commit might exacerbate the case. Any hint is appreciated Regards, Yang