[uClibc] Buildroot gcc undefinned reference

Daniel Dittmann ddittmann at gmx.de
Thu Jan 15 09:07:03 UTC 2004


On Mon, 29 Dec 2003 17:34:31 -0500, Mike wrote:

>TARGETS+=kernel-headers
>#TARGETS+=linux
>TARGETS+=user-mode-linux
>#TARGETS+=system-linux

*snip*

>../include/bits/sigcontext.h:28:29: asm/sigcontext.h: No such file or
>directory

The user-mode-linux kernel set some symlinks in linux/include.
First it set the asm symlink, for instance to asm-um.
Second it set in linux/include/asm-um an arch symlink to
../asm-$(REAL-ARCH) (may be to ../asm-i386)
Third it set in linux/include/asm-um some symlinks to some header files,
for instance sigcontext.h to sigcontext-i386.h.

This symlinks will be set, when you "make ARCH=um setup" in kernel dir.
To do this you can add in user-mode-linux.mk in section

$(LINUX_DIR)/.configured $(BUILD_DIR)/linux/.configured:

at the end of the second line the word "setup" like this:
$(MAKE) -C $(LINUX_DIR) oldconfig include/linux/version.h setup


After i do that. I can build buildroot with UML without any workarounds,
in one touch.

Note: In kernel 2.6 it names "prepare".

Regards

Daniel







More information about the uClibc mailing list