Skip to contentSkip to conversation

UML 2.4.22-2 Compile Problem

uml-devel Ian Chilton 2 participants 2 messages Sep 9, 2003 User-mode Linux (UML)

lore
Share & tools
lore
#0 lore raw

Hello,

Trying to compile 2.4.22-2 on a new Debian (testing) host, running 2.4.22+skas3.

gcc version 3.3.1 20030626 (Debian prerelease)

Getting this:

make[1]: Leaving directory `/home/uml/build/linux-2.4.22/arch/um/os-Linux/drivers'
ld -r init/main.o init/version.o init/do_mounts.o \
--start-group \
kernel/kernel.o mm/mm.o fs/fs.o ipc/ipc.o
arch/um/kernel/built-in.o arch/um/sys-i386/built-in.o arch/um/os-Linux/built-in.o \
drivers/char/char.o drivers/block/block.o drivers/misc/misc.o
drivers/net/net.o drivers/media/media.o arch/um/fs/built-in.o

arch/um/drivers/built-in.o arch/um/os-Linux/drivers/drivers.o \
        net/network.o \
        /home/uml/build/linux-2.4.22/lib/lib.a \
        --end-group \
        -o vmlinux

nm vmlinux | grep -v '\(compiled\)\|\(\.o$\)\|\( [aUw] \)\|\(\.\.ng$\)\|\(LASH[RL]DI\)' | sort > System.map
mv vmlinux vmlinux.o
gcc -Wl,-T,arch/um/link.ld -static -Wl,--wrap,malloc -Wl,--wrap,free -Wl,--wrap,calloc \
-o linux arch/um/main.o vmlinux.o -L/usr/lib -lutil
arch/um/main.o(.text.init+0x2): In function `do_uml_initcalls':
: undefined reference to __uml_initcall_start' arch/um/main.o(.text.init+0xb): In function do_uml_initcalls':
: undefined reference to __uml_initcall_end' arch/um/main.o(.text.init+0x1f): In function do_uml_initcalls':
: undefined reference to __uml_initcall_end' vmlinux.o(.text+0xe42f4): In function mem_init':
: undefined reference to __binary_start' vmlinux.o(.text+0xe4307): In function mem_init':
: undefined reference to __binary_start' vmlinux.o(.text+0xe5bd6): In function do_uml_exitcalls':
: undefined reference to __uml_exitcall_end' vmlinux.o(.text+0xe5bdf): In function do_uml_exitcalls':
: undefined reference to __uml_exitcall_begin' vmlinux.o(.text+0xe5bf3): In function do_uml_exitcalls':
: undefined reference to __uml_exitcall_begin' vmlinux.o(.text+0xebb99): In function show_trace':
: undefined reference to _stext' vmlinux.o(.text+0xebba5): In function show_trace':
: undefined reference to _etext' vmlinux.o(.text+0xee2f7): In function before_mem_tt':
: undefined reference to _etext' vmlinux.o(.text+0xee305): In function before_mem_tt':
: undefined reference to _stext' vmlinux.o(.text+0xee319): In function before_mem_tt':
: undefined reference to _edata' vmlinux.o(.text+0xee326): In function before_mem_tt':
: undefined reference to _sdata' vmlinux.o(.text+0xee34a): In function before_mem_tt':
: undefined reference to __bss_start' vmlinux.o(.text+0xee3de): In function remap_data':
: undefined reference to switcheroo' vmlinux.o(.text+0xeeca4): In function mprotect_kernel_mem':
: undefined reference to _stext' vmlinux.o(.text+0xeecaa): In function mprotect_kernel_mem':
: undefined reference to _etext' vmlinux.o(.text+0xeecc7): In function mprotect_kernel_mem':
: undefined reference to _unprotected_end' vmlinux.o(.text+0xeeccd): In function mprotect_kernel_mem':
: undefined reference to _edata' vmlinux.o(.text+0xeecf2): In function mprotect_kernel_mem':
: undefined reference to __bss_start' vmlinux.o(.text+0xef579): In function do_syscall':
: undefined reference to _stext' vmlinux.o(.text+0xef580): In function do_syscall':
: undefined reference to _etext' vmlinux.o(.text.init+0x3b): In function checksetup':
: undefined reference to __setup_start' vmlinux.o(.text.init+0x82): In function checksetup':
: undefined reference to __setup_end' vmlinux.o(.text.init+0x4d1): In function start_kernel':
: undefined reference to _etext' vmlinux.o(.text.init+0x4da): In function start_kernel':
: undefined reference to _stext' vmlinux.o(.text.init+0x519): In function do_initcalls':
: undefined reference to __initcall_start' vmlinux.o(.text.init+0x527): In function do_initcalls':
: undefined reference to __initcall_end' vmlinux.o(.text.init+0x3d98): In function Usage':
: undefined reference to __uml_help_start' vmlinux.o(.text.init+0x3da6): In function Usage':
: undefined reference to __uml_help_end' vmlinux.o(.text.init+0x3dcf): In function Usage':
: undefined reference to __uml_help_end' vmlinux.o(.text.init+0x3de3): In function uml_checksetup':
: undefined reference to __uml_setup_start' vmlinux.o(.text.init+0x3deb): In function uml_checksetup':
: undefined reference to __uml_setup_end' vmlinux.o(.text.init+0x3e36): In function uml_checksetup':
: undefined reference to __uml_setup_end' vmlinux.o(.text.init+0x3e6e): In function uml_postsetup':
: undefined reference to __uml_postsetup_start' vmlinux.o(.text.init+0x3e77): In function uml_postsetup':
: undefined reference to __uml_postsetup_end' vmlinux.o(.text.init+0x3e8b): In function uml_postsetup':
: undefined reference to __uml_postsetup_end' vmlinux.o(__ksymtab+0xe20): undefined reference to _end'
collect2: ld returned 1 exit status
make: *** [linux] Error 1

Thanks

--ian

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
User-mode-linux-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

#1 lore raw
Quoted 2 lines · [email protected] said:

arch/um/main.o(.text.init+0x2): In function `do_uml_initcalls': :
undefined reference to `__uml_initcall_start'

You botched the build. Do an mrproper and rebuild it.

Jeff

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
User-mode-linux-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel