[SOLVED] Section 6.7. Linux-2.6.37 API Headers make error
Linux From ScratchThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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?
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
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?
- 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?
- 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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.