<br>
Hello<br>
<br>
I managed to build the lib_generic/libgeneic.a file by manually performing a make at the top-level by<br>
specifing make lib_generic/libgeneric.a.<br>
<br>
However, I do not get this library included when I try to build the examples directory.&nbsp; Even if I hardcode the<br>
examples directory Makefile so that it includes the lib_generic directory, it still fails to build the examples<br>
directory.&nbsp; See below.<br>
<br>
I have similar results if I change the order of the libgeneric specifier.&nbsp; ie.<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -L../lib_generic -lgeneric
-L/opt/fld_fakeroot/opt/mcp/ppc/bin/../lib/gcc-lib/ppc-linux/3.3.3
-lgcc <br>
<br>
Please advise.&nbsp; Its scary that putc does even work.<br>
<br>
-----------------------------------<br>
<br>
ppc-linux-ld -g&nbsp; -Ttext 0x40000 \<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -o hello_world -e hello_world hello_world.o libstubs.a&nbsp; \<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
-L/opt/fld_fakeroot/opt/mcp/ppc/bin/../lib/gcc-lib/ppc-linux/3.3.3
-lgcc -L../lib_generic -lgeneric <br>
hello_world.o(.text+0x48): In function `hello_world':<br>
/home/davis/cvs/mcp4/u-boot-1.1.2/examples/hello_world.c:36: undefined reference to `printf'<br>
hello_world.o(.text+0x4c):/home/davis/cvs/mcp4/u-boot-1.1.2/examples/hello_world.c:37: undefined reference to `get_version'<br>
hello_world.o(.text+0x58):/home/davis/cvs/mcp4/u-boot-1.1.2/examples/hello_world.c:37: undefined reference to `printf'<br>
hello_world.o(.text+0x64):/home/davis/cvs/mcp4/u-boot-1.1.2/examples/hello_world.c:39: undefined reference to `printf'<br>
hello_world.o(.text+0x70):/home/davis/cvs/mcp4/u-boot-1.1.2/examples/hello_world.c:41: undefined reference to `printf'<br>
hello_world.o(.text+0x9c):/home/davis/cvs/mcp4/u-boot-1.1.2/examples/hello_world.c:44: undefined reference to `printf'<br>
hello_world.o(.text+0xac):/home/davis/cvs/mcp4/u-boot-1.1.2/examples/hello_world.c:49: undefined reference to `printf'<br>
hello_world.o(.text+0xb0):/home/davis/cvs/mcp4/u-boot-1.1.2/examples/hello_world.c:50: undefined reference to `tstc'<br>
hello_world.o(.text+0xbc):/home/davis/cvs/mcp4/u-boot-1.1.2/examples/hello_world.c:53: undefined reference to `getc'<br>
hello_world.o(.text+0xc4):/home/davis/cvs/mcp4/u-boot-1.1.2/examples/hello_world.c:55: undefined reference to `printf'<br>
../lib_generic/libgeneric.a(vsprintf.o)(.text+0x424): In function `panic':<br>
/home/davis/cvs/mcp4/u-boot-1.1.2/lib_generic/vsprintf.c:376: undefined reference to `vprintf'<br>
../lib_generic/libgeneric.a(vsprintf.o)(.text+0x42c):/home/davis/cvs/mcp4/u-boot-1.1.2/lib_generic/vsprintf.c:377:
undefined reference to `putc'<br>
../lib_generic/libgeneric.a(vsprintf.o)(.text+0x438):/home/davis/cvs/mcp4/u-boot-1.1.2/lib_generic/vsprintf.c:382:
undefined reference to `udelay'<br>
../lib_generic/libgeneric.a(vsprintf.o)(.text+0x44c):/home/davis/cvs/mcp4/u-boot-1.1.2/lib_generic/vsprintf.c:383:
undefined reference to `do_reset'<br>
../lib_generic/libgeneric.a(string.o)(.text+0x474): In function `strrchr':<br>
/home/davis/cvs/mcp4/u-boot-1.1.2/lib_generic/string.c:208: undefined reference to `strlen'<br>
../lib_generic/libgeneric.a(string.o)(.text+0x4d0): In function `strstr':<br>
/home/davis/cvs/mcp4/u-boot-1.1.2/lib_generic/string.c:542: undefined reference to `strlen'<br>
../lib_generic/libgeneric.a(string.o)(.text+0x4e4):/home/davis/cvs/mcp4/u-boot-1.1.2/lib_generic/string.c:545:
undefined reference to `strlen'<br>
../lib_generic/libgeneric.a(string.o)(.text+0x500):/home/davis/cvs/mcp4/u-boot-1.1.2/lib_generic/string.c:548:
undefined reference to `memcmp'<br>
../lib_generic/libgeneric.a(string.o)(.text+0x554): In function `strdup':<br>
/home/davis/cvs/mcp4/u-boot-1.1.2/lib_generic/string.c:253: undefined reference to `strlen'<br>
../lib_generic/libgeneric.a(string.o)(.text+0x55c):/home/davis/cvs/mcp4/u-boot-1.1.2/lib_generic/string.c:253:
undefined reference to `malloc'<br>
../lib_generic/libgeneric.a(string.o)(.text+0x578):/home/davis/cvs/mcp4/u-boot-1.1.2/lib_generic/string.c:258:
undefined reference to `strcpy'<br>
make[1]: *** [hello_world] Error 1<br>
make[1]: Leaving directory `/home/davis/cvs/mcp4/u-boot-1.1.2/examples'<br>
<br>