Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755060AbcDDKMX (ORCPT ); Mon, 4 Apr 2016 06:12:23 -0400 Received: from us01smtprelay-2.synopsys.com ([198.182.47.9]:58857 "EHLO smtprelay.synopsys.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751339AbcDDKMW (ORCPT ); Mon, 4 Apr 2016 06:12:22 -0400 X-Mozilla-News-Host: news://gmane.comp.lib.uclibc.buildroot:119 To: "linux-kbuild@vger.kernel.org" CC: lkml , Michal Marek , arcml From: Vineet Gupta Subject: weird build issue Message-ID: <57023DE6.6040806@synopsys.com> Date: Mon, 4 Apr 2016 15:41:50 +0530 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.12.197.158] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2442 Lines: 67 Hi, I'm running into a really weird build issue when building 4.6-rc1 for ARC (although this doesn't seem to be version related) I have 2 source trees and I see a build error in only one with exact same everything. ~/arc/k.org>make mrproper ~/arc/k.org>make ARCH=arc axs103_smp_defconfig O=tmp ~/arc/k.org>cd tmp ~/arc/k.org>make ARCH=arc The issue is rules for asm-generic headers from Kbuild not triggering. ------------>8---------------- GEN ./Makefile scripts/kconfig/conf --silentoldconfig Kconfig drivers/pci/pcie/Kconfig:62:warning: choice value used outside its choice group drivers/pci/pcie/Kconfig:68:warning: choice value used outside its choice group drivers/pci/pcie/Kconfig:75:warning: choice value used outside its choice group CHK include/config/kernel.release UPD include/config/kernel.release Using .. as source for kernel GEN ./Makefile CHK include/generated/uapi/linux/version.h UPD include/generated/uapi/linux/version.h CHK include/generated/utsrelease.h UPD include/generated/utsrelease.h HOSTCC scripts/basic/bin2c CC kernel/bounds.s In file included from ../include/linux/types.h:5:0, from ../include/linux/page-flags.h:8, from ../kernel/bounds.c:9: ../include/uapi/linux/types.h:4:23: fatal error: asm/types.h: No such file or directory #include ^ compilation terminated. .././Kbuild:44: recipe for target 'kernel/bounds.s' failed ------------>8------------------- On a different source folder, with exact same kernel version checked out, and a pristine build folder, same instructions as above and I see the headers generated ahead of bound.s compilation, eliding the error. I'm sure it is something stupid at my end.... ------------>8------------------- GEN ./Makefile scripts/kconfig/conf --silentoldconfig Kconfig drivers/pci/pcie/Kconfig:62:warning: choice value used outside its choice group drivers/pci/pcie/Kconfig:68:warning: choice value used outside its choice group drivers/pci/pcie/Kconfig:75:warning: choice value used outside its choice group CHK include/config/kernel.release UPD include/config/kernel.release Using .. as source for kernel GEN ./Makefile WRAP arch/arc/include/generated/asm/auxvec.h ... HOSTCC scripts/basic/bin2c CC kernel/bounds.s ------------>8------------------- TIA for any pointers, -Vineet