Hi, I have successfully installed Xen unstable binary on SuSE 9.3. I am trying to do a source install and I got the following error. Will be glad for any help or guidance. In file included from include/asm-xen/asm/processor.h:18, from include/asm/thread_info.h:17, from include/linux/thread_info.h:21, from include/linux/spinlock.h:12, from include/linux/capability.h:45, from include/linux/sched.h:7, from arch/i386/kernel/asm-offsets.c:7: include/asm-xen/asm/system.h: In function `__cmpxchg'': include/asm-xen/asm/system.h:256: error: `LOCK'' undeclared (first use in this function) include/asm-xen/asm/system.h:256: error: (Each undeclared identifier is reported only once include/asm-xen/asm/system.h:256: error: for each function it appears in.) include/asm-xen/asm/system.h:256: error: syntax error before string constant include/asm-xen/asm/system.h:262: error: syntax error before string constant include/asm-xen/asm/system.h:268: error: syntax error before string constant make[5]: *** [arch/i386/kernel/asm-offsets.s] Error 1 make[4]: *** [arch/i386/kernel/asm-offsets.s] Error 2 make[4]: Leaving directory `/root/xen-unstable/linux-2.6.12-xen0'' make[4]: Entering directory `/root/xen-unstable/linux-2.6.12-xen0'' if [ -r System.map -a -x /sbin/depmod ]; then /sbin/depmod -ae -F System.map-b /root/xen-unstable/dist/install -r 2.6.12-xen0; fi make[4]: Leaving directory `/root/xen-unstable/linux-2.6.12-xen0'' make -C linux-2.6.12-xen0 ARCH=xen INSTALL_PATH=/root/xen-unstable/dist/install install make[4]: Entering directory `/root/xen-unstable/linux-2.6.12-xen0'' CHK include/linux/version.h CC arch/i386/kernel/asm-offsets.s In file included from include/asm-xen/asm/processor.h:18, from include/asm/thread_info.h:17, from include/linux/thread_info.h:21, from include/linux/spinlock.h:12, from include/linux/capability.h:45, from include/linux/sched.h:7, from arch/i386/kernel/asm-offsets.c:7: include/asm-xen/asm/system.h:11:25: asm/smp_alt.h: No such file or directory In file included from include/asm-xen/asm/processor.h:18, from include/asm/thread_info.h:17, from include/linux/thread_info.h:21, from include/linux/spinlock.h:12, from include/linux/capability.h:45, from include/linux/sched.h:7, from arch/i386/kernel/asm-offsets.c:7: include/asm-xen/asm/system.h: In function `__cmpxchg'': include/asm-xen/asm/system.h:256: error: `LOCK'' undeclared (first use in this function) include/asm-xen/asm/system.h:256: error: (Each undeclared identifier is reported only once include/asm-xen/asm/system.h:256: error: for each function it appears in.) include/asm-xen/asm/system.h:256: error: syntax error before string constant include/asm-xen/asm/system.h:262: error: syntax error before string constant include/asm-xen/asm/system.h:268: error: syntax error before string constant make[5]: *** [arch/i386/kernel/asm-offsets.s] Error 1 make[4]: *** [arch/i386/kernel/asm-offsets.s] Error 2 make[4]: Leaving directory `/root/xen-unstable/linux-2.6.12-xen0'' make[3]: *** [build] Error 2 make[3]: Leaving directory `/root/xen-unstable'' make[2]: *** [linux-2.6-xen0-build] Error 2 make[2]: Leaving directory `/root/xen-unstable'' make[1]: *** [install-kernels] Error 1 make[1]: Leaving directory `/root/xen-unstable'' make: *** [world] Error 2 -- benjamin rualthanzauva _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
I am having a similar compile problem. My woes seem to begin when it can''t find smp_alt.h (which I''ve checked and does not exist). I get this: debian:~/xen/xen-unstable.hg# find . | grep smp_alt.h debian:~/xen/xen-unstable.hg# hg co -C 70aa62954e91 debian:~/xen/xen-unstable.hg# make make -C xen install make[1]: Entering directory `/root/xen/xen-unstable.hg/xen'' make -C tools make[2]: Entering directory `/root/xen/xen-unstable.hg/xen/tools'' make -C figlet make[3]: Entering directory `/root/xen/xen-unstable.hg/xen/tools/figlet'' make[3]: `figlet'' is up to date. make[3]: Leaving directory `/root/xen/xen-unstable.hg/xen/tools/figlet'' make symbols make[3]: Entering directory `/root/xen/xen-unstable.hg/xen/tools'' make[3]: `symbols'' is up to date. make[3]: Leaving directory `/root/xen/xen-unstable.hg/xen/tools'' make[2]: Leaving directory `/root/xen/xen-unstable.hg/xen/tools'' make include/xen/compile.h make[2]: Entering directory `/root/xen/xen-unstable.hg/xen'' tools/figlet/figlet -d tools/figlet Xen 3.0-devel > include/xen/banner.h.new __ __ _____ ___ _ _ \ \/ /___ _ __ |___ / / _ \ __| | _____ _____| | \ // _ \ ''_ \ |_ \| | | |__ / _` |/ _ \ \ / / _ \ | / \ __/ | | | ___) | |_| |__| (_| | __/\ V / __/ | /_/\_\___|_| |_| |____(_)___/ \__,_|\___| \_/ \___|_| make[2]: Leaving directory `/root/xen/xen-unstable.hg/xen'' make include/xen/acm_policy.h make[2]: Entering directory `/root/xen/xen-unstable.hg/xen'' make[2]: `include/xen/acm_policy.h'' is up to date. make[2]: Leaving directory `/root/xen/xen-unstable.hg/xen'' [ -e include/asm ] || ln -sf asm-x86 include/asm make -C arch/x86 asm-offsets.s make[2]: Entering directory `/root/xen/xen-unstable.hg/xen/arch/x86'' make[2]: `asm-offsets.s'' is up to date. make[2]: Leaving directory `/root/xen/xen-unstable.hg/xen/arch/x86'' make include/asm-x86/asm-offsets.h make[2]: Entering directory `/root/xen/xen-unstable.hg/xen'' make[2]: `include/asm-x86/asm-offsets.h'' is up to date. make[2]: Leaving directory `/root/xen/xen-unstable.hg/xen'' make -C common make[2]: Entering directory `/root/xen/xen-unstable.hg/xen/common'' gcc -nostdinc -fno-builtin -fno-common -fno-strict-aliasing -iwithprefix include -Wall -Werror -Wno-pointer-arith -pipe -I/root/xen/xen-unstable.hg/xen/include -I/root/xen/xen-unstable.hg/xen/include/asm-x86/mach-generic -I/root/xen/xen-unstable.hg/xen/include/asm-x86/mach-default -O3 -fomit-frame-pointer -msoft-float -m32 -march=i686 -DNDEBUG -DVERBOSE -c kernel.c -o kernel.o ld -m elf_i386 -r -o common.o acm_ops.o ac_timer.o bitmap.o dom0_ops.o domain.o elf.o event_channel.o grant_table.o kernel.o keyhandler.o lib.o memory.o multicall.o page_alloc.o sched_bvt.o sched_sedf.o schedule.o softirq.o string.o symbols.o vsprintf.o xmalloc.o make[2]: Leaving directory `/root/xen/xen-unstable.hg/xen/common'' make -C drivers make[2]: Entering directory `/root/xen/xen-unstable.hg/xen/drivers'' make -C char make[3]: Entering directory `/root/xen/xen-unstable.hg/xen/drivers/char'' gcc -nostdinc -fno-builtin -fno-common -fno-strict-aliasing -iwithprefix include -Wall -Werror -Wno-pointer-arith -pipe -I/root/xen/xen-unstable.hg/xen/include -I/root/xen/xen-unstable.hg/xen/include/asm-x86/mach-generic -I/root/xen/xen-unstable.hg/xen/include/asm-x86/mach-default -O3 -fomit-frame-pointer -msoft-float -m32 -march=i686 -DNDEBUG -DVERBOSE -c console.c -o console.o ld -m elf_i386 -r -o driver.o console.o ns16550.o serial.o make[3]: Leaving directory `/root/xen/xen-unstable.hg/xen/drivers/char'' make -C acpi make[3]: Entering directory `/root/xen/xen-unstable.hg/xen/drivers/acpi'' make[3]: Nothing to be done for `default''. make[3]: Leaving directory `/root/xen/xen-unstable.hg/xen/drivers/acpi'' make[2]: Leaving directory `/root/xen/xen-unstable.hg/xen/drivers'' make -C arch/x86 make[2]: Entering directory `/root/xen/xen-unstable.hg/xen/arch/x86'' ld -m elf_i386 -T x86_32/xen.lds -N \ boot/x86_32.o /root/xen/xen-unstable.hg/xen/common/common.o /root/xen/xen-unstable.hg/xen/drivers/char/driver.o /root/xen/xen-unstable.hg/xen/drivers/acpi/driver.o /root/xen/xen-unstable.hg/xen/arch/x86/arch.o -o /root/xen/xen-unstable.hg/xen/xen-syms nm -n /root/xen/xen-unstable.hg/xen/xen-syms | /root/xen/xen-unstable.hg/xen/tools/symbols>/root/xen/xen-unstable.hg/xen/xen-syms.Smake /root/xen/xen-unstable.hg/xen/xen-syms.o make[3]: Entering directory `/root/xen/xen-unstable.hg/xen/arch/x86'' gcc -nostdinc -fno-builtin -fno-common -fno-strict-aliasing -iwithprefix include -Wall -Werror -Wno-pointer-arith -pipe -I/root/xen/xen-unstable.hg/xen/include -I/root/xen/xen-unstable.hg/xen/include/asm-x86/mach-generic -I/root/xen/xen-unstable.hg/xen/include/asm-x86/mach-default -O3 -fomit-frame-pointer -msoft-float -m32 -march=i686 -DNDEBUG -DVERBOSE -D__ASSEMBLY__ -c /root/xen/xen-unstable.hg/xen/xen-syms.S -o /root/xen/xen-unstable.hg/xen/xen-syms.o make[3]: Leaving directory `/root/xen/xen-unstable.hg/xen/arch/x86'' ld -m elf_i386 -T x86_32/xen.lds -N \ boot/x86_32.o /root/xen/xen-unstable.hg/xen/common/common.o /root/xen/xen-unstable.hg/xen/drivers/char/driver.o /root/xen/xen-unstable.hg/xen/drivers/acpi/driver.o /root/xen/xen-unstable.hg/xen/arch/x86/arch.o /root/xen/xen-unstable.hg/xen/xen-syms.o -o /root/xen/xen-unstable.hg/xen/xen-syms nm -n /root/xen/xen-unstable.hg/xen/xen-syms | /root/xen/xen-unstable.hg/xen/tools/symbols>/root/xen/xen-unstable.hg/xen/xen-syms.Smake /root/xen/xen-unstable.hg/xen/xen-syms.o make[3]: Entering directory `/root/xen/xen-unstable.hg/xen/arch/x86'' gcc -nostdinc -fno-builtin -fno-common -fno-strict-aliasing -iwithprefix include -Wall -Werror -Wno-pointer-arith -pipe -I/root/xen/xen-unstable.hg/xen/include -I/root/xen/xen-unstable.hg/xen/include/asm-x86/mach-generic -I/root/xen/xen-unstable.hg/xen/include/asm-x86/mach-default -O3 -fomit-frame-pointer -msoft-float -m32 -march=i686 -DNDEBUG -DVERBOSE -D__ASSEMBLY__ -c /root/xen/xen-unstable.hg/xen/xen-syms.S -o /root/xen/xen-unstable.hg/xen/xen-syms.o make[3]: Leaving directory `/root/xen/xen-unstable.hg/xen/arch/x86'' ld -m elf_i386 -T x86_32/xen.lds -N \ boot/x86_32.o /root/xen/xen-unstable.hg/xen/common/common.o /root/xen/xen-unstable.hg/xen/drivers/char/driver.o /root/xen/xen-unstable.hg/xen/drivers/acpi/driver.o /root/xen/xen-unstable.hg/xen/arch/x86/arch.o /root/xen/xen-unstable.hg/xen/xen-syms.o -o /root/xen/xen-unstable.hg/xen/xen-syms rm -f /root/xen/xen-unstable.hg/xen/xen-syms.S /root/xen/xen-unstable.hg/xen/xen-syms.o ./boot/mkelf32 /root/xen/xen-unstable.hg/xen/xen-syms /root/xen/xen-unstable.hg/xen/xen 0x100000 make[2]: Leaving directory `/root/xen/xen-unstable.hg/xen/arch/x86'' gzip -f -9 < /root/xen/xen-unstable.hg/xen/xen > /root/xen/xen-unstable.hg/xen/xen.gz.new mv /root/xen/xen-unstable.hg/xen/xen.gz.new /root/xen/xen-unstable.hg/xen/xen.gz [ -d /root/xen/xen-unstable.hg/dist/install/boot ] || install -d -m0755 /root/xen/xen-unstable.hg/dist/install/boot install -m0644 /root/xen/xen-unstable.hg/xen/xen.gz /root/xen/xen-unstable.hg/dist/install/boot/xen-3.0-devel.gz ln -f -s xen-3.0-devel.gz /root/xen/xen-unstable.hg/dist/install/boot/xen-3.0.gz ln -f -s xen-3.0-devel.gz /root/xen/xen-unstable.hg/dist/install/boot/xen-3.gz ln -f -s xen-3.0-devel.gz /root/xen/xen-unstable.hg/dist/install/boot/xen.gz install -m0644 /root/xen/xen-unstable.hg/xen/xen-syms /root/xen/xen-unstable.hg/dist/install/boot/xen-syms-3.0-devel [ -d /root/xen/xen-unstable.hg/dist/install/usr/include/xen/io ] || \ install -d -m0755 /root/xen/xen-unstable.hg/dist/install/usr/include/xen/io install -m0644 include/public/*.h /root/xen/xen-unstable.hg/dist/install/usr/include/xen install -m0644 include/public/io/*.h /root/xen/xen-unstable.hg/dist/install/usr/include/xen/io install -m0644 include/public/COPYING /root/xen/xen-unstable.hg/dist/install/usr/include/xenmake[1]: Leaving directory `/root/xen/xen-unstable.hg/xen'' for i in linux-2.6-xen0 linux-2.6-xenU ; do make $i-install || exit 1; done make[1]: Entering directory `/root/xen/xen-unstable.hg'' make -f buildconfigs/mk.linux-2.6-xen0 build make[2]: Entering directory `/root/xen/xen-unstable.hg'' if grep "^CONFIG_MODULES=" linux-2.6.12-xen0/.config ; then \ make -C linux-2.6.12-xen0 ARCH=xen modules ; \ make -C linux-2.6.12-xen0 ARCH=xen INSTALL_MOD_PATH=/root/xen/xen-unstable.hg/dist/install modules_install ; \ fi CONFIG_MODULES=y make[3]: Entering directory `/root/xen/xen-unstable.hg/linux-2.6.12-xen0'' CHK include/linux/version.h CC arch/i386/kernel/asm-offsets.s In file included from include/asm-xen/asm/processor.h:18, from include/asm/thread_info.h:17, from include/linux/thread_info.h:21, from include/linux/spinlock.h:12, from include/linux/capability.h:45, from include/linux/sched.h:7, from arch/i386/kernel/asm-offsets.c:7: include/asm-xen/asm/system.h:11:25: error: asm/smp_alt.h: No such file or directory In file included from include/asm-xen/asm/processor.h:18, from include/asm/thread_info.h:17, from include/linux/thread_info.h:21, from include/linux/spinlock.h:12, from include/linux/capability.h:45, from include/linux/sched.h:7, from arch/i386/kernel/asm-offsets.c:7: include/asm-xen/asm/system.h: In function ''__cmpxchg'': include/asm-xen/asm/system.h:255: error: syntax error before ''LOCK'' include/asm-xen/asm/system.h:261: error: syntax error before ''LOCK'' include/asm-xen/asm/system.h:267: error: syntax error before ''LOCK'' make[4]: *** [arch/i386/kernel/asm-offsets.s] Error 1 make[3]: *** [arch/i386/kernel/asm-offsets.s] Error 2 make[3]: Leaving directory `/root/xen/xen-unstable.hg/linux-2.6.12-xen0'' make[3]: Entering directory `/root/xen/xen-unstable.hg/linux-2.6.12-xen0'' if [ -r System.map -a -x /sbin/depmod ]; then /sbin/depmod -ae -F System.map -b /root/xen/xen-unstable.hg/dist/install -r 2.6.12-xen0; fi make[3]: Leaving directory `/root/xen/xen-unstable.hg/linux-2.6.12-xen0'' make -C linux-2.6.12-xen0 ARCH=xen INSTALL_PATH=/root/xen/xen-unstable.hg/dist/install install make[3]: Entering directory `/root/xen/xen-unstable.hg/linux-2.6.12-xen0'' CHK include/linux/version.h CC arch/i386/kernel/asm-offsets.s In file included from include/asm-xen/asm/processor.h:18, from include/asm/thread_info.h:17, from include/linux/thread_info.h:21, from include/linux/spinlock.h:12, from include/linux/capability.h:45, from include/linux/sched.h:7, from arch/i386/kernel/asm-offsets.c:7: include/asm-xen/asm/system.h:11:25: error: asm/smp_alt.h: No such file or directory In file included from include/asm-xen/asm/processor.h:18, from include/asm/thread_info.h:17, from include/linux/thread_info.h:21, from include/linux/spinlock.h:12, from include/linux/capability.h:45, from include/linux/sched.h:7, from arch/i386/kernel/asm-offsets.c:7: include/asm-xen/asm/system.h: In function ''__cmpxchg'': include/asm-xen/asm/system.h:255: error: syntax error before ''LOCK'' include/asm-xen/asm/system.h:261: error: syntax error before ''LOCK'' include/asm-xen/asm/system.h:267: error: syntax error before ''LOCK'' make[4]: *** [arch/i386/kernel/asm-offsets.s] Error 1 make[3]: *** [arch/i386/kernel/asm-offsets.s] Error 2 make[3]: Leaving directory `/root/xen/xen-unstable.hg/linux-2.6.12-xen0'' make[2]: *** [build] Error 2 make[2]: Leaving directory `/root/xen/xen-unstable.hg'' make[1]: *** [linux-2.6-xen0-install] Error 2 make[1]: Leaving directory `/root/xen/xen-unstable.hg'' make: *** [install-kernels] Error 1 debian:~/xen/xen-unstable.hg# Anyone got any ideas?? -- ------------------------------------------------------ "You''re walking a very bent ladder" - Alex Kelly http://www.robhulme.com/ http://robhu.livejournal.com/ _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
> I am having a similar compile problem. My woes seem to begin when it > can''t find smp_alt.h (which I''ve checked and does not exist).Thanks to muli on the IRC channel this problem is now resolved. The problem is that the build was failing as it wasn''t running patch as it wasn''t installed. I assume this is a bug? Shouldn''t the buildscript fail if patch is not installed? I''ll enter it into the bugtracker. -- ------------------------------------------------------ "You''re walking a very bent ladder" - Alex Kelly http://www.robhulme.com/ http://robhu.livejournal.com/ _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Muli Ben-Yehuda
2005-Oct-19 02:15 UTC
[PATCH] patch(1) is required for building (was Re: [Xen-devel] Xen unstable/SuSE 9.3 install issue)
On Wed, Oct 19, 2005 at 02:42:25AM +0100, Robert Hulme wrote:> > I am having a similar compile problem. My woes seem to begin when it > > can''t find smp_alt.h (which I''ve checked and does not exist).> Thanks to muli on the IRC channel this problem is now resolved. > > The problem is that the build was failing as it wasn''t running patch > as it wasn''t installed. > > I assume this is a bug? Shouldn''t the buildscript fail if patch is not > installed? I''ll enter it into the bugtracker.Here''s a quick patch to stop the build if patch(1) fails for some reason. Tested on x86 with and without patch(1). Signed-Off-By: Muli Ben-Yehuda <mulix@mulix.org> # HG changeset patch # User Muli Ben-Yehuda <mulix@mulix.org> # Node ID 11e4f65368c2a8d1c583ad19621c58d155d0cd20 # Parent 446aa56ca4fee7d3ea2badfb59e8bb3540b507ae building the kernels should fail if patch(1) is not available when patching the kernel, rather than failing later when trying to build the unpatched kernel. - set -e - avoid two subshells so that make notices our exit status diff -r 446aa56ca4fee7d3ea2badfb59e8bb3540b507ae -r 11e4f65368c2a8d1c583ad19621c58d155d0cd20 buildconfigs/Rules.mk --- a/buildconfigs/Rules.mk Mon Oct 17 12:50:28 2005 +++ b/buildconfigs/Rules.mk Wed Oct 19 02:10:00 2005 @@ -80,10 +80,11 @@ rm -f patches/*/.makedep ref-%/.valid-ref: pristine-%/.valid-pristine + set -e rm -rf $(@D) cp -al $(<D) $(@D) - ([ -d patches/$* ] && \ - for i in patches/$*/*.patch ; do ( cd $(@D) ; patch -p1 <../$$i || exit 1 ) ; done) || true + [ -d patches/$* ] || exit 1 + for i in patches/$*/*.patch ; do cd $(@D) ; patch -p1 <../$$i || exit 1; done touch $@ # update timestamp to avoid rebuild endif -- Muli Ben-Yehuda http://www.mulix.org | http://mulix.livejournal.com/ _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel