Ritesh Raj Sarraf | 31 Mar 2012 20:44
Picon
Favicon

uml build failure on arch i386

Hello,

I am trying to build uml on kernel 3.2. Following is the build failure I
get when building on my kvm x86 box.

The kvm box is arch:
root <at> debian-x86:~/user-mode-linux (build)# uname -a
Linux debian-x86 3.0.0-1-686-pae #1 SMP Sat Aug 27 16:41:03 UTC 2011
i686 GNU/Linux

My initial search led me to:
http://sourceforge.net/mailarchive/message.php?msg_id=27848489

Based on the comment there, I've tried SUBARCH=i386. But that didn't
help. Any suggestions?

  LD      vmlinux.o
  MODPOST vmlinux.o
  GEN     .version
  CHK     include/generated/compile.h
  UPD     include/generated/compile.h
  CC      init/version.o
  LD      init/built-in.o
  LD      .tmp_vmlinux1
arch/x86/um/built-in.o:(___ksymtab+atomic64_add_unless_386+0x0):
undefined reference to `atomic64_add_unless_386'
arch/x86/um/built-in.o:(___ksymtab+atomic64_inc_not_zero_386+0x0):
undefined reference to `atomic64_inc_not_zero_386'
arch/x86/um/built-in.o:(___ksymtab+atomic64_dec_if_positive_386+0x0):
undefined reference to `atomic64_dec_if_positive_386'
(Continue reading)

richard -rw- weinberger | 2 Apr 2012 08:29
Picon

Re: uml build failure on arch i386

On Sat, Mar 31, 2012 at 8:44 PM, Ritesh Raj Sarraf <rrs <at> debian.org> wrote:
> Hello,
>
> I am trying to build uml on kernel 3.2. Following is the build failure I
> get when building on my kvm x86 box.
>
> The kvm box is arch:
> root <at> debian-x86:~/user-mode-linux (build)# uname -a
> Linux debian-x86 3.0.0-1-686-pae #1 SMP Sat Aug 27 16:41:03 UTC 2011
> i686 GNU/Linux
>
>
> My initial search led me to:
> http://sourceforge.net/mailarchive/message.php?msg_id=27848489
>
> Based on the comment there, I've tried SUBARCH=i386. But that didn't
> help. Any suggestions?

Please share your .config.

--

-- 
Thanks,
//richard

------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure
Ritesh Raj Sarraf | 2 Apr 2012 09:19
Picon
Favicon

Re: uml build failure on arch i386

On Monday 02 April 2012 11:59 AM, richard -rw- weinberger wrote:
>> > My initial search led me to:
>> > http://sourceforge.net/mailarchive/message.php?msg_id=27848489
>> >
>> > Based on the comment there, I've tried SUBARCH=i386. But that didn't
>> > help. Any suggestions?
> Please share your .config.

Config file available at:
http://people.debian.org/~rrs/tmp/config.i386

--

-- 
Ritesh Raj Sarraf | http://people.debian.org/~rrs
Debian - The Universal Operating System

------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
richard -rw- weinberger | 2 Apr 2012 09:50
Picon

Re: uml build failure on arch i386

On Mon, Apr 2, 2012 at 9:19 AM, Ritesh Raj Sarraf <rrs <at> debian.org> wrote:
> On Monday 02 April 2012 11:59 AM, richard -rw- weinberger wrote:
>>> > My initial search led me to:
>>> > http://sourceforge.net/mailarchive/message.php?msg_id=27848489
>>> >
>>> > Based on the comment there, I've tried SUBARCH=i386. But that didn't
>>> > help. Any suggestions?
>> Please share your .config.
>
> Config file available at:
> http://people.debian.org/~rrs/tmp/config.i386

Please give the attached patch a try!

--

-- 
Thanks,
//richard
Attachment (x.diff): text/x-patch, 570 bytes
------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
(Continue reading)

Ritesh Raj Sarraf | 2 Apr 2012 14:22
Picon
Favicon

Re: uml build failure on arch i386

On Monday 02 April 2012 01:20 PM, richard -rw- weinberger wrote:
>> Config file available at:
>> > http://people.debian.org/~rrs/tmp/config.i386
> Please give the attached patch a try!
> 

Thank you Richard. The patch fixes the build failure on i386.

> diff --git a/arch/x86/um/Makefile b/arch/x86/um/Makefile
> index 8fb5840..f322503 100644
> --- a/arch/x86/um/Makefile
> +++ b/arch/x86/um/Makefile
>  <at>  <at>  -19,7 +19,8  <at>  <at>  ifeq ($(CONFIG_X86_32),y)
>  obj-y += checksum_32.o
>  obj-$(CONFIG_BINFMT_ELF) += elfcore.o
>  
> -subarch-y = ../lib/string_32.o ../lib/atomic64_32.o ../lib/atomic64_cx8_32.o
> +subarch-y = ../lib/string_32.o ../lib/atomic64_32.o ../lib/atomic64_cx8_32.o \
> +	../lib/atomic64_386_32.o ../lib/cmpxchg8b_emu.o
>  subarch-$(CONFIG_RWSEM_XCHGADD_ALGORITHM) += ../lib/rwsem.o
>  subarch-$(CONFIG_HIGHMEM) += ../mm/highmem_32.o
>  

--

-- 
Ritesh Raj Sarraf | http://people.debian.org/~rrs
Debian - The Universal Operating System

------------------------------------------------------------------------------
(Continue reading)

richard -rw- weinberger | 2 Apr 2012 14:25
Picon

Re: uml build failure on arch i386

On Mon, Apr 2, 2012 at 2:22 PM, Ritesh Raj Sarraf <rrs <at> debian.org> wrote:
> On Monday 02 April 2012 01:20 PM, richard -rw- weinberger wrote:
>>> Config file available at:
>>> > http://people.debian.org/~rrs/tmp/config.i386
>> Please give the attached patch a try!
>>
>
> Thank you Richard. The patch fixes the build failure on i386.

Okay. :-)
I'll queue it for -stable and 3.4-rc2.

--

-- 
Thanks,
//richard

------------------------------------------------------------------------------
This SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here 
http://p.sf.net/sfu/sfd2d-msazure

Gmane