LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Password
Linux - Embedded & Single-board computer This forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.

Notices


Reply
  Search this Thread
Old 02-22-2012, 10:16 PM   #1
jeevan.123
LQ Newbie
 
Registered: Feb 2012
Posts: 2

Rep: Reputation: Disabled
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.

Last edited by jeevan.123; 02-22-2012 at 11:51 PM.
 
Old 02-24-2012, 10:47 AM   #2
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,399
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
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.
 
1 members found this post helpful.
Old 02-27-2012, 12:33 AM   #3
jeevan.123
LQ Newbie
 
Registered: Feb 2012
Posts: 2

Original Poster
Rep: Reputation: Disabled
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.
 
Old 02-27-2012, 09:17 AM   #4
cnxsoft
Member
 
Registered: Nov 2010
Location: Thailand
Distribution: Fedora 12, Ubuntu 10.10
Posts: 166

Rep: Reputation: 29
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.
 
Old 02-27-2012, 11:43 AM   #5
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,399
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Error while Porting Glibc-2.11.1 to arm cortex-a9 target me011089 Linux - Hardware 0 09-28-2011 04:21 AM
Compilation error Linux 2.6.32 for ARM target xplorer30 Linux - General 1 09-27-2010 09:59 PM
shared library error while running gdbserver on target with arm-926ejs processor amit123solanki Linux - Software 0 07-08-2008 12:55 AM
make menuconfig/config/xconfig problems when try building for ARM target kondrara Linux - Software 0 11-28-2007 04:58 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer

All times are GMT -5. The time now is 08:18 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration