All of lore.kernel.org
 help / color / mirror / Atom feed
* [uml-devel] uml build failure on arch i386
@ 2012-03-31 18:44 Ritesh Raj Sarraf
  2012-04-02  6:29 ` richard -rw- weinberger
  0 siblings, 1 reply; 6+ messages in thread
From: Ritesh Raj Sarraf @ 2012-03-31 18:44 UTC (permalink / raw)
  To: user-mode-linux-devel

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@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'
arch/x86/um/built-in.o:(___ksymtab+atomic64_dec_386+0x0): undefined
reference to `atomic64_dec_386'
arch/x86/um/built-in.o:(___ksymtab+atomic64_inc_386+0x0): undefined
reference to `atomic64_inc_386'
arch/x86/um/built-in.o:(___ksymtab+atomic64_sub_386+0x0): undefined
reference to `atomic64_sub_386'
arch/x86/um/built-in.o:(___ksymtab+atomic64_add_386+0x0): undefined
reference to `atomic64_add_386'
arch/x86/um/built-in.o:(___ksymtab+atomic64_dec_return_386+0x0):
undefined reference to `atomic64_dec_return_386'
arch/x86/um/built-in.o:(___ksymtab+atomic64_inc_return_386+0x0):
undefined reference to `atomic64_inc_return_386'
arch/x86/um/built-in.o:(___ksymtab+atomic64_sub_return_386+0x0):
undefined reference to `atomic64_sub_return_386'
arch/x86/um/built-in.o:(___ksymtab+atomic64_add_return_386+0x0):
undefined reference to `atomic64_add_return_386'
arch/x86/um/built-in.o:(___ksymtab+atomic64_xchg_386+0x0): undefined
reference to `atomic64_xchg_386'
arch/x86/um/built-in.o:(___ksymtab+atomic64_set_386+0x0): undefined
reference to `atomic64_set_386'
arch/x86/um/built-in.o:(___ksymtab+atomic64_read_386+0x0): undefined
reference to `atomic64_read_386'
fs/built-in.o: In function `xlog_find_tail':
xfs_log_recover.c:(.text+0x133341): undefined reference to
`atomic64_set_386'
xfs_log_recover.c:(.text+0x13335c): undefined reference to
`atomic64_set_386'
xfs_log_recover.c:(.text+0x133379): undefined reference to
`atomic64_set_386'
xfs_log_recover.c:(.text+0x133396): undefined reference to
`atomic64_set_386'
xfs_log_recover.c:(.text+0x133412): undefined reference to
`atomic64_read_386'
xfs_log_recover.c:(.text+0x13349e): undefined reference to
`atomic64_set_386'
xfs_log_recover.c:(.text+0x1334b2): undefined reference to
`atomic64_set_386'
fs/built-in.o: In function `xlog_space_left':
xfs_log.c:(.text+0x13a42f): undefined reference to `atomic64_read_386'
xfs_log.c:(.text+0x13a43b): undefined reference to `atomic64_read_386'
fs/built-in.o: In function `xlog_alloc_log':
xfs_log.c:(.text+0x13a591): undefined reference to `atomic64_set_386'
xfs_log.c:(.text+0x13a5a0): undefined reference to `atomic64_set_386'
xfs_log.c:(.text+0x13a5b9): undefined reference to `atomic64_set_386'
xfs_log.c:(.text+0x13a5cb): undefined reference to `atomic64_set_386'
fs/built-in.o: In function `xlog_grant_push_ail':  
xfs_log.c:(.text+0x13a8f9): undefined reference to `atomic64_read_386'
xfs_log.c:(.text+0x13a91f): undefined reference to `atomic64_read_386'
fs/built-in.o: In function `xlog_grant_sub_space.isra.26':
xfs_log.c:(.text+0x13ab87): undefined reference to `atomic64_read_386'
xfs_log.c:(.text+0x13abad): undefined reference to `cmpxchg8b_emu'
fs/built-in.o: In function `xlog_grant_add_space.isra.27':
xfs_log.c:(.text+0x13abd4): undefined reference to `atomic64_read_386'
xfs_log.c:(.text+0x13ac04): undefined reference to `cmpxchg8b_emu'
fs/built-in.o: In function `xlog_state_do_callback':
xfs_log.c:(.text+0x13b1e1): undefined reference to `atomic64_set_386'
fs/built-in.o: In function `xfs_log_move_tail':
(.text+0x13b5e0): undefined reference to `atomic64_read_386'
fs/built-in.o: In function `xfs_log_move_tail':
(.text+0x13b605): undefined reference to `atomic64_set_386'
fs/built-in.o: In function `xlog_assign_tail_lsn': 
(.text+0x13b83e): undefined reference to `atomic64_read_386'
fs/built-in.o: In function `xlog_assign_tail_lsn': 
(.text+0x13b856): undefined reference to `atomic64_set_386'
collect2: ld returned 1 exit status
  KSYM    .tmp_kallsyms1.S
nm: '.tmp_vmlinux1': No such file
No valid symbol.
make[1]: *** [.tmp_kallsyms1.S] Error 1
make[1]: Leaving directory
`/tmp/buildd/user-mode-linux-3.2-1um/linux-source-3.2'
make: *** [build-stamp] Error 2
dpkg-buildpackage: error: debian/rules build gave error exit status 2
E: Failed autobuilding of package
I: unmounting /var/cache/pbuilder/ccache filesystem
I: unmounting dev/pts filesystem
I: unmounting proc filesystem
 -> Cleaning COW directory
  forking: rm -rf /var/cache/pbuilder/build//cow.2932

-- 
Given the large number of mailing lists I follow, I request you to CC me
in replies for quicker response



------------------------------------------------------------------------------
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@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [uml-devel] uml build failure on arch i386
  2012-03-31 18:44 [uml-devel] uml build failure on arch i386 Ritesh Raj Sarraf
@ 2012-04-02  6:29 ` richard -rw- weinberger
  2012-04-02  7:19   ` Ritesh Raj Sarraf
  0 siblings, 1 reply; 6+ messages in thread
From: richard -rw- weinberger @ 2012-04-02  6:29 UTC (permalink / raw)
  To: Ritesh Raj Sarraf; +Cc: user-mode-linux-devel

On Sat, Mar 31, 2012 at 8:44 PM, Ritesh Raj Sarraf <rrs@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@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
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [uml-devel] uml build failure on arch i386
  2012-04-02  6:29 ` richard -rw- weinberger
@ 2012-04-02  7:19   ` Ritesh Raj Sarraf
  2012-04-02  7:50     ` richard -rw- weinberger
  0 siblings, 1 reply; 6+ messages in thread
From: Ritesh Raj Sarraf @ 2012-04-02  7:19 UTC (permalink / raw)
  To: richard -rw- weinberger; +Cc: user-mode-linux-devel


[-- Attachment #1.1: Type: text/plain, Size: 487 bytes --]

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


[-- Attachment #1.2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 900 bytes --]

[-- Attachment #2: Type: text/plain, Size: 191 bytes --]

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

[-- Attachment #3: Type: text/plain, Size: 194 bytes --]

_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [uml-devel] uml build failure on arch i386
  2012-04-02  7:19   ` Ritesh Raj Sarraf
@ 2012-04-02  7:50     ` richard -rw- weinberger
  2012-04-02 12:22       ` Ritesh Raj Sarraf
  0 siblings, 1 reply; 6+ messages in thread
From: richard -rw- weinberger @ 2012-04-02  7:50 UTC (permalink / raw)
  To: rrs; +Cc: user-mode-linux-devel

[-- Attachment #1: Type: text/plain, Size: 525 bytes --]

On Mon, Apr 2, 2012 at 9:19 AM, Ritesh Raj Sarraf <rrs@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 #2: x.diff --]
[-- Type: text/x-patch, Size: 570 bytes --]

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
@@ -19,7 +19,8 @@ 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
 

[-- Attachment #3: Type: text/plain, Size: 191 bytes --]

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

[-- Attachment #4: Type: text/plain, Size: 194 bytes --]

_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: [uml-devel] uml build failure on arch i386
  2012-04-02  7:50     ` richard -rw- weinberger
@ 2012-04-02 12:22       ` Ritesh Raj Sarraf
  2012-04-02 12:25         ` richard -rw- weinberger
  0 siblings, 1 reply; 6+ messages in thread
From: Ritesh Raj Sarraf @ 2012-04-02 12:22 UTC (permalink / raw)
  To: richard -rw- weinberger; +Cc: user-mode-linux-devel


[-- Attachment #1.1: Type: text/plain, Size: 977 bytes --]

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
> @@ -19,7 +19,8 @@ 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


[-- Attachment #1.2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 900 bytes --]

[-- Attachment #2: Type: text/plain, Size: 191 bytes --]

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

[-- Attachment #3: Type: text/plain, Size: 194 bytes --]

_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [uml-devel] uml build failure on arch i386
  2012-04-02 12:22       ` Ritesh Raj Sarraf
@ 2012-04-02 12:25         ` richard -rw- weinberger
  0 siblings, 0 replies; 6+ messages in thread
From: richard -rw- weinberger @ 2012-04-02 12:25 UTC (permalink / raw)
  To: rrs; +Cc: user-mode-linux-devel

On Mon, Apr 2, 2012 at 2:22 PM, Ritesh Raj Sarraf <rrs@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
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2012-04-02 12:25 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-31 18:44 [uml-devel] uml build failure on arch i386 Ritesh Raj Sarraf
2012-04-02  6:29 ` richard -rw- weinberger
2012-04-02  7:19   ` Ritesh Raj Sarraf
2012-04-02  7:50     ` richard -rw- weinberger
2012-04-02 12:22       ` Ritesh Raj Sarraf
2012-04-02 12:25         ` richard -rw- weinberger

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.