Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 01-31-2010, 09:35 AM   #1
LQ Newbie
Registered: Jun 2009
Posts: 9

Rep: Reputation: 0
Question crosstool-NG build ERROR

I am a newbie to embedded linux and am trying to build crosstool-ng toolchain with arm-unknown-linux-uclibc-gnueabi sample.

I have 2 questions.

(1) When I try to load arm-unknown-linux-uclibcgnueabi sample with the following command, which Linux Kernel version should be chosen out of the 15 choices?

~/felabs/sysdev/toolchain/crosstool-ng-1.5.3$ ./ct-ng arm-unknown-linux-uclibcgnueabi
CONF config/
 * Restart config...
* Operating System
Target OS
1. bare-metal (KERNEL_bare_metal)
> 2. linux (KERNEL_linux)
choice[1-2]: 2
 Get kernel headers from:
> 1. kernel's 'headers_install' (KERNEL_LINUX_INSTALL)
choice[1-2]: 1
Check installed headers (KERNEL_LINUX_INSTALL_CHECK) [Y/n/?] y
Linux kernel version
> 1. (KERNEL_V_2_6_31_1)
2. 2.6.31 (KERNEL_V_2_6_31)
3. (KERNEL_V_2_6_30_8) (NEW)
4. (KERNEL_V_2_6_30_7) (NEW)
5. (KERNEL_V_2_6_30_6)
6. (KERNEL_V_2_6_30_5)
7. (KERNEL_V_2_6_30_4)
8. (KERNEL_V_2_6_30_3)
9. (KERNEL_V_2_6_30_2)
10. (KERNEL_V_2_6_30_1)
11. 2.6.30 (KERNEL_V_2_6_30)
12. (KERNEL_V_2_6_29_6)
13. (KERNEL_V_2_6_28_10)
14. (long-term stable) (KERNEL_V_2_6_27_35)
15. Other version (EXPERIMENTAL) (KERNEL_V_select)
(2) Hitting "Enter" in the previous command selects the default kernel
After configuring with menuconfig, I ran ./ctng build, but got the following ERROR. Could you please let me know where I could be going wrong?

[ALL ] linux-
[ALL ] linux-
[ALL ] linux-
[ALL ] linux-
[ALL ] linux-
[ALL ] linux-
[ALL ] linux-
[ALL ] linux-
[ALL ] 
[ALL ] bzip2: Compressed file ends unexpectedly;
[ALL ] perhaps it is corrupted? *Possible* reason follows.
[ALL ] bzip2: Inappropriate ioctl for device
[ALL ] Input file = (stdin), output file = (stdout)
[ALL ] 
[ALL ] It is possible that the compressed file(s) have become corrupted.
[ALL ] You can use the -tvv option to test integrity of such files.
[ALL ] 
[ALL ] You can use the `bzip2recover' program to attempt to recover
[ALL ] data from undamaged sections of corrupted files.
[ALL ] 
[ALL ] tar: Unexpected EOF in archive
[ALL ] tar: Unexpected EOF in archive
 [ALL ] tar: Error is not recoverable: exiting now
[ERROR] Build failed in step 'Extracting and patching toolchain components'
[ERROR] Error happened in '/home/shaahul/felabs/sysdev/toolchain/crosstool-ng-1.5.3/scripts/functions' in function 'CT_DoExecLog' (line unknown, sorry)
[ERROR] called from '/home/shaahul/felabs/sysdev/toolchain/crosstool-ng-1.5.3/scripts/functions' at line # 565 in function 'CT_Extract'
 [ERROR] called from '/home/shaahul/felabs/sysdev/toolchain/crosstool-ng-1.5.3/scripts/build/kernel/' at line # 25 in function 'do_kernel_extract'
[ERROR] called from '/home/shaahul/felabs/sysdev/toolchain/crosstool-ng-1.5.3/scripts/' at line # 510 in function 'main'
[ERROR] Look at '/usr/local/xtools/arm-unknown-linux-uclibcgnueabi/build.log' for more info on this error.
[ERROR] (elapsed: 71:27.80)


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
GCC crosstool compiler and libraries Citizen9 Linux - Newbie 1 09-18-2009 03:11 PM
Crosstool problem krizzz Programming 3 11-14-2008 05:58 PM
ARM crosstool chain thirumalesh Linux - Embedded & Single-board computer 9 06-06-2008 02:07 PM
LXer: Build 'em Right, Build 'em Strong, Build 'em Linux LXer Syndicated Linux News 0 10-01-2007 10:51 PM
crosstool usage gobi_dgm Linux - Software 8 09-19-2006 01:02 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:06 PM.

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