LinuxQuestions.org
Visit the LQ Articles and Editorials section
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 09-29-2011, 06:57 PM   #1
steviebob
Member
 
Registered: Jan 2010
Location: Arkansas
Distribution: Slackware-Current, LFS
Posts: 136

Rep: Reputation: 16
Section 6.7. Linux-2.6.37 API Headers make error


Whenever I run make headers_check I get an error about not being able to locate strict.pm in @INC. Here is the full output of
make headers_check:
Code:
root:/sources/torvalds-linux-4a7895f# make headers_check
  CHK     include/linux/version.h
  UPD     include/linux/version.h
  HOSTCC  scripts/basic/fixdep
  HOSTCC  scripts/basic/docproc
  HOSTCC  scripts/unifdef
  INSTALL include/asm-generic (34 files)
Can't locate strict.pm in @INC (@INC contains: /tools/lib/perl5/site_perl/5.12.3/i686-linux /tools/lib/perl5/site_perl/5.12.3 /tools/lib/perl5/5.12.3/i686-linux /tools/lib/perl5/5.12.3 .) at scripts/headers_install.pl line 19.
BEGIN failed--compilation aborted at scripts/headers_install.pl line 19.
make[2]: *** [/sources/torvalds-linux-4a7895f/usr/include/asm-generic/.install] Error 2
make[1]: *** [asm-generic] Error 2
make: *** [headers_install] Error 2
Help is greatly appreciated
~Steve
 
Old 09-30-2011, 01:13 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
Hi,

First of all: Which chapter is this 5.6 or 6.7? (I assume it is 6.7 due to the missing /mnt/lfs part). Please provide basic information such as: Which LFS version, which chapter you are working on and which host you are using.

Quote:
Originally Posted by steviebob
root:/sources/torvalds-linux-4a7895f# make headers_check
This looks suspicious, I would expect: /sources/torvalds-linux-4a7895f/linux-2.6.37. Did you untar the linux-2.6.37.tar.bz2 package and enter the created directory?

If the above isn't the problem and this is chapter 6.7: The error complains about perl, which was installed in chapter 5.28. Are you 100% sure it installed correctly?

Hope this helps.
 
Old 09-30-2011, 10:52 AM   #3
steviebob
Member
 
Registered: Jan 2010
Location: Arkansas
Distribution: Slackware-Current, LFS
Posts: 136

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by druuna View Post
Hi,

First of all: Which chapter is this 5.6 or 6.7? (I assume it is 6.7 due to the missing /mnt/lfs part). Please provide basic information such as: Which LFS version, which chapter you are working on and which host you are using.

This looks suspicious, I would expect: /sources/torvalds-linux-4a7895f/linux-2.6.37. Did you untar the linux-2.6.37.tar.bz2 package and enter the created directory?

If the above isn't the problem and this is chapter 6.7: The error complains about perl, which was installed in chapter 5.28. Are you 100% sure it installed correctly?

Hope this helps.
This is chapter 6.7, I'm installing from /sources/torvalds-linux-4a7895f/ because that's the only download location for the linux kernel version 2.6.37 that I could find (I got it from github) and that was just the package name. the full package name is (when still tar'd) torvalds-linux-v2.6.37-0-g3c0eee3.tar.gz. I got it from there because kernel.org is down right now. And I'm building from Ubuntu Natty Narwhal. How would I go back to install perl again? Just log into lfs and redo that section?

~Steve
 
Old 09-30-2011, 11:09 AM   #4
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: Ubuntu 12.04/12.10/13.04/LFS/Centos6.3/Debain/PCBSD/Mageia 3
Posts: 1,614
Blog Entries: 1

Rep: Reputation: 226Reputation: 226Reputation: 226
There are 2 links in this post
http://www.linuxquestions.org/questi...el-tar-904001/

Yes I would log back in, remove the build directory and redo it

Last edited by spiky0011; 09-30-2011 at 11:12 AM.
 
Old 09-30-2011, 11:19 AM   #5
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
Hi,
Quote:
Originally Posted by steviebob
I'm installing from /sources/torvalds-linux-4a7895f/ because that's the only download location for the linux kernel version 2.6.37 that I could find (I got it from github) and that was just the package name.
I would suggest you make sure you download the correct packages, which are also available here: lfs-packages 6.8.

Quote:
How would I go back to install perl again? Just log into lfs and redo that section?
You are still at the very beginning of chapter 6 so you should be able to redo by:
- exiting the chrooted environment,
- log in as user lfs,
- make sure the correct environment is set (LFS etc),
- install 5.28. Perl-5.12.3

Hope this helps.
 
Old 09-30-2011, 12:33 PM   #6
steviebob
Member
 
Registered: Jan 2010
Location: Arkansas
Distribution: Slackware-Current, LFS
Posts: 136

Original Poster
Rep: Reputation: 16
I went and reinstalled perl, downloaded linux-2.6.37 from the link posted, untarred it, remounted temporary /dev/ devices, entered the chroot environment, and tried doing make headers_check again, but it came up with the same error. I triple-checked if I installed perl correctly, which I did, according to the book, anyway. Any other ideas?
 
Old 09-30-2011, 01:02 PM   #7
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
Hi,

As far as I can see 2 things could be wrong:

- Perl isn't installed correctly. strict.pm is part of the basic perl installation done in 5.28. Have you checked (inside and outside the chrooted environment) if strict.pm is present? /tools/lib/perl5/5.12.3 and /tools/bin are the target directories used in 5.28.

- Linux-2.6.37 API Headers is the very first package used in chapter 6, have you double checked chapters 6.1 -> 6.6 and is all set up correctly?

Not much to go on, but hope this helps
 
Old 09-30-2011, 01:46 PM   #8
steviebob
Member
 
Registered: Jan 2010
Location: Arkansas
Distribution: Slackware-Current, LFS
Posts: 136

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by druuna View Post
- Perl isn't installed correctly. strict.pm is part of the basic perl installation done in 5.28. Have you checked (inside and outside the chrooted environment) if strict.pm is present? /tools/lib/perl5/5.12.3 and /tools/bin are the target directories used in 5.28.
Ah, turns out that I typed /tools/lilb/perl15/5.12.3 instead of /tools/lib/perl5/5.12.3. Stupid mistake made by me. What else would you expect from a sleep deprived computer nerd at 3 in the morning? Haha. Thanks for the support anyway, I probably wouldn't have figured it out by myself.

~Steve
 
  


Reply

Tags
api headers, headers_check, lfs


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
LFS 6.5 : Step 6.7 Installing Linux API headers : make headers_check/install error tsong99 Linux From Scratch 12 12-25-2012 04:26 PM
Error 6.7. Linux-2.6.32.8 API Headers usef62 Linux From Scratch 1 05-09-2010 03:31 AM
Error compiling Linux kernel API headers development LFS krzysz00 Linux From Scratch 3 03-14-2009 04:51 PM
LFS 6.7 Linux API Headers - make headers_check fails gmontjr Linux - Newbie 4 01-26-2009 01:56 AM
make headers_check errors [LFS V6.3, Sect 6.7 Linux-2.6.22.5 API Headers] michealoc Linux From Scratch 1 10-11-2007 09:03 AM


All times are GMT -5. The time now is 10:11 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration