Skip to contentSkip to conversation

uml build failure on arch i386

uml-devel Ritesh Raj Sarraf 2 participants 6 messages Apr 1, 2012 – Apr 2, 2012

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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

Signature · 13 lines
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
#1 lore raw
Quoted 11 lines · Ritesh Raj Sarraf

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

Quoted 5 lines

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.

Signature · 11 lines
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel
#2 lore raw
Quoted 6 lines · richard -rw- weinberger
Quoted 5 lines
Quoted 5 lines

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

Signature · 2 lines
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

#3 lore raw
Quoted 10 lines · Ritesh Raj Sarraf
Quoted 6 lines · richard -rw- weinberger
Quoted 5 lines
Quoted 5 lines

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!

Signature · 2 lines
Thanks,
//richard
arch/x86/um/Makefile +2 -1
index 8fb5840..f322503 100644
@@ -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
 

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

#4 lore raw
Quoted 4 lines · richard -rw- weinberger
Quoted 2 lines

Config file available at:

Quoted 1 line

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.

Quoted 14 lines
arch/x86/um/Makefile +2 -1
index 8fb5840..f322503 100644
@@ -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
 
Signature · 2 lines
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

#5 lore raw
Quoted 7 lines · Ritesh Raj Sarraf
Quoted 4 lines · richard -rw- weinberger
Quoted 2 lines

Config file available at:

Quoted 1 line

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.

Signature · 11 lines
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel