Forum Discussion
custom uClibc problems
Hi people
I have followed the tutorial from microtronixs on how to build a custom uClibc library. After I have run the menuconfig I then begin the make from the toplevel makefile. It compiles for some time and then it comes to a halt with 2 errors. Has this happend for any of you guys and how did you fix it???
I have just taken the last lines from the command prompt so you can see the errors.
[CODE]In file included from ../../include/asm/page.h:27,
from ../../include/asm/user.h:28,
from ../../include/linux/user.h:1,
from ../../include/sys/user.h:1,
from ../../include/sys/procfs.h:31,
from ../linuxthreads_db/proc_service.h:20,
from ../linuxthreads_db/thread_dbP.h:9,
from internals.h:30,
from attr.c:26:
../../include/linux/config.h:4:28: linux/autoconf.h: No such file or directory
make[2]: *** [attr.o] Error 1
make[2]: Leaving directory `/cygdrive/c/altera/kits/nios2/bin/eclipse/plugins/co
m.microtronix.nios2linux.uClibc_0.1.0/uClibc/libpthread/linuxthreads'
make[1]: *** [_dir_linuxthreads] Error 2
make[1]: Leaving directory `/cygdrive/c/altera/kits/nios2/bin/eclipse/plugins/co
m.microtronix.nios2linux.uClibc_0.1.0/uClibc/libpthread'
make: *** [_dir_libpthread] Error 2[/[CODE]
Regards
3 Replies
- Altera_Forum
Honored Contributor
Hmm... sounds like the Make process couldn't find the autoconf file that's generated during the building of a linux kernel.
Things to confirm: - Double check the Linux Build Location option in the uClibc menuconfig. It should point to a kernel project build directory, not to the linux source tree. - The kernel project that's specified within the uClibc menuconfig must be built at least once to generate the autoconf.h file - After building the kernel, does an autoconf.h file exist inside the build directory? I think it should be in <kernel_project>/build/include/linux Hope that helps, if not let me know and I'll dig a bit deeper. - Altera_Forum
Honored Contributor
Hi Ken
Thx for your help it works now. Stupid me. In the future I should perhaps follow the guide a bit better. But again thanks!!! Regards GreateWhite.DK - Altera_Forum
Honored Contributor
Hey, don't beat yourself up over it. In fact, if you have any suggestions for the documentation, please feel free to PM me about it.
Glad I could help.