LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Embedded & Single-board computer (https://www.linuxquestions.org/questions/linux-embedded-and-single-board-computer-78/)
-   -   Linux header installation for target ARM: meke menuconfig error (https://www.linuxquestions.org/questions/linux-embedded-and-single-board-computer-78/linux-header-installation-for-target-arm-meke-menuconfig-error-930795/)

jeevan.123 02-22-2012 10:16 PM

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.

theNbomr 02-24-2012 10:47 AM

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.

jeevan.123 02-27-2012 12:33 AM

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.

cnxsoft 02-27-2012 09:17 AM

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.

theNbomr 02-27-2012 11:43 AM

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.