Linux header installation for target ARM: meke menuconfig error
hi,
I am a newbie trying to build my toolchain for ARM. I have compiled binutils successfully. Next step is to install the Linux headers. when I do make menuconfig, I get the following errors: scripts/kconfig/conf.o:conf.c:(.text+0x21): undefined reference to `_libintl_gettext' scripts/kconfig/conf.o:conf.c:(.text+0x35): undefined reference to `_libintl_gettext' scripts/kconfig/conf.o:conf.c:(.text+0x49): undefined reference to `_libintl_gettext' scripts/kconfig/conf.o:conf.c:(.text+0xdee): undefined reference to `_libintl_gettext' scripts/kconfig/conf.o:conf.c:(.text+0xf8e): undefined reference to `_libintl_gettext' scripts/kconfig/conf.o:conf.c:(.text+0x120f): more undefined references to `_libintl_gettext' follow collect2: ld returned 1 exit status make[1]: *** [scripts/kconfig/conf] Error 1 make: *** [assabet_defconfig] Error 2 I am using Linux-2.6.20 for header and using Cygwin for this. Please help me. |
I think it means you need the ncurses library &/or ncurses devel package. The menuconfig tool is built on the fly, and requires ncurses.
--- rod. |
thanks for help.
actually I changed the Linux version to linux-2.6.39 and problem is solved. I am using the below link as a reference for building toolchain. http://frank.harvard.edu/~coldwell/toolchain/ Now I am at the stage of Glibc headers and stuck in another problem. Below is the line of code: cd BUILD/glibc-2.14-headers ../../glibc-2.3.5/configure --prefix=/usr --host=${TARGET} --enable-add-ons=linuxthreads --with-headers=${SYSROOT}/usr/include 2>&1 | tee configure.out make cross-compiling=yes install_root=${SYSROOT} install-headers 2>&1 | tee make.out touch ${SYSROOT}/usr/include/gnu/stubs.h touch ${SYSROOT}/usr/include/bits/stdio_lim.h when I execute the above code it says the "No rules to make 'install-headers'. Stop." and the two files stubs.h and stdio_lim.h are not generated. from the above configure command, it should install some files(including Makefile) to the path: BUILD/glibc-2.14-headers but its not happening. so that it is giving the above error. Dont know how to get out of this. Please help. |
Sorry, I'm not sure what causes your problem.
I'm just wondering why you want to build your own toolchain. There are plenty of pre-built toolchains for ARM such as CodeSourcery, Emdebian and Linaro. Unless, you need to modify the toolchain for some reasons, you'd better use one of the pre-built toolchain. |
Completely agree with cnxsoft. If it was easy to build a cross toolchain, there would be no need for packages like Crosstool-NG, which I strongly recommend if you really must build a cross toolchain yourself (and, yup, there are good reasons to do so, particularly with the bewildering number of combinations of elements related to ARM CPUs). Your problems are a perfect example of how things can go wrong.
Your current problem seems to be related to a Makefile. Certain versions of Cygwin's make is known to have some issues. I would suggest that Cygwin is probably not an optimal platform for building a cross toolchain. Perhaps consider installing a full-on Linux in a VM; I suggest Debian for cross development. --- rod. |
All times are GMT -5. The time now is 03:11 AM. |