Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.


  Search this Thread
Old 01-14-2013, 10:00 AM   #1
Keith Hedger
Senior Member
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Linux From Scratch, Slackware64, Partedmagic
Posts: 2,482

Rep: Reputation: 622Reputation: 622Reputation: 622Reputation: 622Reputation: 622Reputation: 622
Error building crosstools-ng on LFS for raspberry pi - custom kernel error

Hi I have been trying to use crosstools-ng on a pretty up to date LFS to create an arm tool-chain, but I can not get it to use my kernel headers which are for 3.4.7, I have tried a clean extract from the tarball and then done this:
 make ARCH=arm INSTALL_HDR_PATH=$(pwd)/hdr headers_install
tar cjf my-linux-3.4.7-headers.tar.bz2 -C hdr include
All of which goes fine but when I point crosstools at the tarball I get an error like so
[INFO ]  Installing kernel headers
[ERROR]  >>
[ERROR]  >>  Build failed in step 'Installing kernel headers'
[ERROR]  >>        called in step '(top-level)'
[ERROR]  >>
[ERROR]  >>  Error happened in: CT_DoExecLog[scripts/functions@258]
[ERROR]  >>        called from: do_kernel_install[scripts/build/kernel/]
[ERROR]  >>        called from: do_kernel_headers[scripts/build/kernel/]
[ERROR]  >>        called from: main[scripts/]
[ERROR]  >>
[ERROR]  >>  For more info on this error, look at the file: 'build.log'
[ERROR]  >>  There is a list of known issues, some with workarounds, in:
[ERROR]  >>      '/usr/share/doc/crosstool-ng/ct-ng.1.17.0/B - Known issues.txt'
I have tried pointing crosstools at both the header install folder(hdr), the whole linux folder, the main linux tarball and the tarball made as above, and I still get the above error, if I use a builtin kernel ie 3.6.3 it builds and installs fine, can't seem to find an answer to this and I need to compile this with a custom kernel as I am using armedslack on the pi.
I am NOT compiling this on the pi but on my main LFS install.
Crosstools itself compiles and installs fine.


crosstools, kernel, raspberry pi

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
Issues compiling GCC v4.7.1 while building LFS for ARM (Raspberry Pi) jvilla1983 Linux From Scratch 7 12-25-2012 03:03 PM
Error Building Raspberry Pi markjuggles Linux - Embedded & Single-board computer 8 12-07-2011 10:16 PM
LFS 6.5 error in building glibc-2.10.1 bucovaina78 Linux From Scratch 2 01-11-2011 10:02 AM
Cross compiled app (crosstools 0.43) run error stevene Linux - General 1 04-13-2009 07:06 PM
Error while building initramfs image for custom kernel TDMBG Linux - Software 2 08-01-2008 06:14 PM > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 03:42 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration