[uClibc]buildroot errors

Jason Bodnar jason at shakabuku.org
Fri May 9 04:32:23 UTC 2003


I'm trying to use buildroot to make a uml kernel and uClibc filesystem. After
editing the top-level Makefile and running make I get the following errors:

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
/usr/lib/libc.a(elf-init.o)(.text+0x2): In function `__libc_csu_init':
: undefined reference to `__preinit_array_end'
/usr/lib/libc.a(elf-init.o)(.text+0x9): In function `__libc_csu_init':
: undefined reference to `__preinit_array_start'
/usr/lib/libc.a(elf-init.o)(.text+0x23): In function `__libc_csu_init':
: undefined reference to `__preinit_array_start'
/usr/lib/libc.a(elf-init.o)(.text+0x34): In function `__libc_csu_init':
: undefined reference to `__init_array_end'
/usr/lib/libc.a(elf-init.o)(.text+0x39): In function `__libc_csu_init':
: undefined reference to `__init_array_start'
/usr/lib/libc.a(elf-init.o)(.text+0x49): In function `__libc_csu_init':
: undefined reference to `__init_array_start'
/usr/lib/libc.a(elf-init.o)(.text+0x61): In function `__libc_csu_fini':
: undefined reference to `__fini_array_end'
/usr/lib/libc.a(elf-init.o)(.text+0x67): In function `__libc_csu_fini':
: undefined reference to `__fini_array_start'
/usr/lib/libc.a(elf-init.o)(.text+0x84): In function `__libc_csu_fini':
: undefined reference to `__fini_array_start'
collect2: ld returned 1 exit status
make[1]: *** [linux] Error 1

I can compile a 2.4.19 uml kernel outside of buildroot by downloading the
2.4.19 source, applying the appropriate uml patch, running make xconfig
ARCH=um, saving and running make linux ARCH=um so I'm guessing that the errors
 stem from some config differences between a standard UML config and a uClibc
buildroot config.

Any guesses?

--
Jason Bodnar
jason at shakabuku.org
http://www.shakabuku.org

"You want free speech? Let's see you acknowledge a man whose words make
your blood boil who is standing center stage advocating at the top of
his lungs that which you would spend a lifetime opposing at the top of
yours." -- President Andrew Shephard, "The American President"



More information about the uClibc mailing list