[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] xen client initiative compile errors


  • To: Gary Grebus <ggrebus@xxxxxxxxxxxxxxx>
  • From: Jean Guyader <jean.guyader@xxxxxxxxx>
  • Date: Fri, 3 Apr 2009 23:28:45 +0200
  • Cc: Xen-Devel <xen-devel@xxxxxxxxxxxxxxxxxxx>, Ben Guthro <ben.guthro@xxxxxxxxxxxxxxxxxxx>
  • Delivery-date: Fri, 03 Apr 2009 14:29:12 -0700
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=mJUt7n/AxSMcs8OPvmnve36d3DJBSCDgTTNMk8NH44nw3fNO3+RdbXGqBkQW1+FE8T T+SfMXjS62AE4wffvaNyZd/DQ4sWH0nbPTg9HREdv18kGuQ0BGHmPOS0wlWV0w9AkrTM f0rCkL3/82ns1i9kAf06DhNHHmsrg2EDEPVLg=
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

2009/4/3 Gary Grebus <ggrebus@xxxxxxxxxxxxxxx>:
> On Fri, 2009-04-03 at 11:41 -0400, Ben Guthro wrote:
>> So...I'm trying to build the xen client initiative code found here:
>> http://xenbits.xen.org/xenclient/
>>
>> However, I'm running into compile errors:
>>  gcc -I../byterun -DCAML_NAME_SPACE -DNATIVE_CODE -DTARGET_amd64
>> -DSYS_linux  -O -Wall -D_FILE_OFFSET_BITS=64 -D_REENTRANT
>> -fno-stack-protector   -c -o signals_asm.o signals_asm.c
>> signals_asm.c: In function 'segv_handler':
>> signals_asm.c:188: error: 'REG_CR2' undeclared (first use in this
>> function)
>> signals_asm.c:188: error: (Each undeclared identifier is reported only
>> once
>> signals_asm.c:188: error: for each function it appears in.)
>> signals_asm.c:194: error: 'REG_RIP' undeclared (first use in this
>> function)
>> signals_asm.c:199: error: 'REG_R14' undeclared (first use in this
>> function)
>> signals_asm.c:200: error: 'REG_R15' undeclared (first use in this
>> function)
>> make[3]: *** [signals_asm.o] Error 1
>>
>> Am I missing something in my build environment that the configure
>> scripts didn't complain about?
>> I'm building on Ubuntu 8.04 (gcc 4.2.4)
>
> It's trying to build a binary using the 32-bit uclibc targeted compiler
> (from the toolchain build), but it's configured as if building for the
> 64 bit native environment (-DTARGET_amd64 -DSYS_linux).
>
> I tried overriding the ARCH and SYSTEM for that target on the
> appropriate make command in package/xenclient/ocaml/ocaml.mk but the
> build failed later trying to run the assembler (running native vs.
> toolchain version?).
>
> At that point I punted and tried building in a 32-bit Fedora 10
> environment.
>
> It goes wrong later trying to download the version of grub specified in
> target/x86/grub2/grub2.mk.  That version doesn't appear to be on the
> debian mirrors anymore, so I tried the next newer version:
>
> GRUB2_VERSION:=1.96+20090317
>
> Everything built successfully, but then I run into problems executing
> the last step of the manual install process.  The install-bootloader
> script errors out running grub-install.  The grub-install command
> complains
>
> error: cannot seek `/dev/sda'
> error: cannot seek `/dev/sda'
> grub-probe: error: no mapping exists for `xenclient-config'
>
> ... and
>
> stat: invalid option -- c
> BusyBox v1.13.1 (2009-04-02 20:55:22 EDT) multi-call binary
>
> Usage: stat [OPTION] FILE...
>
> Display file (default) or filesystem status
>
> Options:
>        -f      Display filesystem status
>        -L      Dereference links
>        -t      Display info in terse form
>
>
> I'd guess that's a problem with the different version of grub, but I
> could had something else wrong too.
>
>        /gary
>
>
>>
>> Has anyone else run into this issue?
>>
>> B
>>
>>

Hi,

Some other folk got exacly the same error message, I'll try to upgrade
the grub version we use.
The "cannot seek" error message is harmless, as well as the stat error
(busybox doesn't support the -c option).

Thanks,
-- 
Jean Guyader

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.