Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751352AbcCRDO4 (ORCPT ); Thu, 17 Mar 2016 23:14:56 -0400 Received: from mga01.intel.com ([192.55.52.88]:63314 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751068AbcCRDOs (ORCPT ); Thu, 17 Mar 2016 23:14:48 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.24,352,1455004800"; d="scan'208";a="913560224" Date: Fri, 18 Mar 2016 11:19:01 +0800 From: Philip Li To: Krzysztof Kozlowski Cc: kbuild test robot , Al Viro , kbuild-all@01.org, linux-kernel@vger.kernel.org, Richard Weinberger Subject: Re: arch/x86/um/user-offsets.c:8:24: fatal error: asm/ptrace.h: No such file or directory Message-ID: <20160318031901.GB18159@intel.com> References: <201603130603.uCbpkitB%fengguang.wu@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3562 Lines: 70 On Mon, Mar 14, 2016 at 09:53:06AM +0900, Krzysztof Kozlowski wrote: > On Sun, Mar 13, 2016 at 7:45 AM, kbuild test robot > wrote: > > Hi Al, > > > > FYI, the error/warning still remains. > > > > tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master > > head: 03c668a93187fe7fba9464f96fbe7c22eebd9897 > > commit: 5c48b108ecbf6505d929e64d50dace13ac2bdf34 um: take arch/um/sys-x86 to arch/x86/um > > date: 4 years, 4 months ago > > config: um-i386_defconfig (attached as .config) > > reproduce: > > git checkout 5c48b108ecbf6505d929e64d50dace13ac2bdf34 > > # save the attached .config to linux build tree > > make ARCH=um SUBARCH=i386 > > > > Hi, > > The code is correct. The build machine lacks asm/ptrace.h for i386 > (e.g. /usr/include/i386-linux-gnu/asm/ptrace.h). For example on Ubuntu > this is provided by linux-libc-dev:i386. sorry for late response, we have installed linux-libc-dev:i386 on our build environment to have this head file. Thanks > > Best regards, > Krzysztof > > > > All errors (new ones prefixed by >>): > > > >>> arch/x86/um/user-offsets.c:8:24: fatal error: asm/ptrace.h: No such file or directory > > compilation terminated. > > make[2]: *** [arch/x86/um/user-offsets.s] Error 1 > > make[1]: *** [arch/x86/um/user-offsets.s] Error 2 > > make[1]: Target 'prepare' not remade because of errors. > > make: *** [sub-make] Error 2 > > > > vim +8 arch/x86/um/user-offsets.c > > > > 8d0b9dc9be arch/um/sys-x86_64/user-offsets.c Al Viro 2005-05-05 1 #include > > 8d0b9dc9be arch/um/sys-x86_64/user-offsets.c Al Viro 2005-05-05 2 #include > > 8d0b9dc9be arch/um/sys-x86_64/user-offsets.c Al Viro 2005-05-05 3 #include > > 63ae2a94d9 arch/um/sys-x86_64/user-offsets.c Jeff Dike 2006-03-27 4 #include > > 16dd07bc64 arch/um/sys-x86_64/user-offsets.c Jeff Dike 2007-05-06 5 #include > > 189872f968 arch/um/sys-x86_64/user-offsets.c Jeff Dike 2007-10-16 6 #include > > 8d0b9dc9be arch/um/sys-x86_64/user-offsets.c Al Viro 2005-05-05 7 #define __FRAME_OFFSETS > > 8d0b9dc9be arch/um/sys-x86_64/user-offsets.c Al Viro 2005-05-05 @8 #include > > ba9950c820 arch/um/sys-x86_64/user-offsets.c Jeff Dike 2005-05-20 9 #include > > 8d0b9dc9be arch/um/sys-x86_64/user-offsets.c Al Viro 2005-05-05 10 > > 8d0b9dc9be arch/um/sys-x86_64/user-offsets.c Al Viro 2005-05-05 11 #define DEFINE(sym, val) \ > > 8d0b9dc9be arch/um/sys-x86_64/user-offsets.c Al Viro 2005-05-05 12 asm volatile("\n->" #sym " %0 " #val : : "i" (val)) > > 8d0b9dc9be arch/um/sys-x86_64/user-offsets.c Al Viro 2005-05-05 13 > > ecba97d4aa arch/um/sys-x86_64/user-offsets.c Al Viro 2005-09-28 14 #define DEFINE_LONGS(sym, val) \ > > ecba97d4aa arch/um/sys-x86_64/user-offsets.c Al Viro 2005-09-28 15 asm volatile("\n->" #sym " %0 " #val : : "i" (val/sizeof(unsigned long))) > > ecba97d4aa arch/um/sys-x86_64/user-offsets.c Al Viro 2005-09-28 16 > > > > :::::: The code at line 8 was first introduced by commit > > :::::: 8d0b9dc9be3919e9979eac59fd12e8f82b098325 [PATCH] uml: start cross-build support : mk_user_constants > > > > :::::: TO: Al Viro > > :::::: CC: Linus Torvalds > > > > --- > > 0-DAY kernel test infrastructure Open Source Technology Center > > https://lists.01.org/pipermail/kbuild-all Intel Corporation >