LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 01-14-2013, 09:00 AM   #1
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,150

Rep: Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856
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:
Code:
 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
Code:
[INFO ]  Installing kernel headers
[ERROR]   
[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/linux.sh@112]
[ERROR]  >>        called from: do_kernel_headers[scripts/build/kernel/linux.sh@91]
[ERROR]  >>        called from: main[scripts/crosstool-NG.sh@609]
[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.
P.S.
I am NOT compiling this on the pi but on my main LFS install.
Crosstools itself compiles and installs fine.
 
  


Reply

Tags
crosstools, kernel, raspberry pi



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 10:47 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