From: Anand Kumria Subject: Re: asm/asm-offsets.h: No such file or directory Date: Sun, 08 Jan 2006 03:34:28 +1100 Message-ID: References: <20060107111420.GB27696@fencepost> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On Sat, 07 Jan 2006 06:14:20 -0500, Thomas Schwinge wrote: > Hi! > > I found another problem building > : > > #v+ > [...] > gcc -m32 -Wp,-MD,arch/i386/kernel/.entry-xen.o.d -nostdinc -isystem /fs/pkgs/mount/package/misc/spf/gcc-4.0-branch-20051211T004716Z-1/bin/../lib/gcc/i586-pc-linux-gnu/4.0.3/include -D__KERNEL__ -Iinclude2/asm/mach-xen -Iinclude -Iinclude2 -I/fs/data/mount/tmp/build/linux/linux-2.6-xen-branch/include -include include/linux/autoconf.h -D__ASSEMBLY__ -I/fs/data/mount/tmp/build/linux/linux-2.6-xen-branch/include/asm-i386/mach-xen -Iinclude/asm-i386/mach-xen -I/fs/data/mount/tmp/build/linux/linux-2.6-xen-branch/include/asm-i386/mach-default -Iinclude/asm-i386/mach-default -traditional -c -o arch/i386/kernel/entry-xen.o /fs/data/mount/tmp/build/linux/linux-2.6-xen-branch/arch/i386/kernel/entry-xen.S > In file included from /fs/data/mount/tmp/build/linux/linux-2.6-xen-branch/arch/i386/kernel/entry-xen.S:46: > include2/asm/thread_info.h:51: error: asm/asm-offsets.h: No such file or directory > make[2]: *** [arch/i386/kernel/entry-xen.o] Error 1 > make[1]: *** [arch/i386/kernel] Error 2 > make: *** [_all] Error 2 > #v- > > I was building with a separate output files's directory (putting > O=... on make's command line). > > asm-offsets.h gets created in O/include/asm-i386, but no O/include/asm > symlink is created (which should point to asm-i386). After creating > that symlink the build was able to continue. > > Being mostly ignorant of Linux's build system, I don't know the proper > way to tell the build system to create that link. It sounds as if you already did a make previously, -- I'd do a: make ARCH=xen clean in the kernel directory and then try building again. Cheers, Anand