LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 12-12-2009, 10:35 AM   #1
Mr. Majestic
Member
 
Registered: Dec 2009
Location: Ohio
Distribution: Ubuntu, slackware, fedora, gentoo
Posts: 53

Rep: Reputation: 17
Stuck on make headers_check


I originally posted this in the linux kernel area, but that was before I realized that there is a special forum for LFS

Ok I am trying to compile the linux API headers. When I run make headers_check I get the following:

Code:
  CHK     include/linux/version.h
  UPD     include/linux/version.h
  HOSTCC  scripts/basic/fixdep
scripts/basic/fixdep.c: In function 'traps':
scripts/basic/fixdep.c:377: warning: dereferencing type-punned pointer will break strict-aliasing rules
scripts/basic/fixdep.c:379: warning: dereferencing type-punned pointer will break strict-aliasing rules
/bin/sh: line 1: 25175 Segmentation fault      (core dumped) scripts/basic/fixdep scripts/basic/.fixdep.d scripts/basic/fixdep 'gcc -Wp,-MD,scripts/basic/.fixdep.d -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer     -o scripts/basic/fixdep scripts/basic/fixdep.c  ' > scripts/basic/.fixdep.tmp
make[1]: *** [scripts/basic/fixdep] Error 139
make: *** [scripts_basic] Error 2
I'm fairly new at this, so I have no idea what the problem is. If anyone could provide some assistance it would be greatly appreciated!
 
Old 12-12-2009, 11:05 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

Is your host up to specs to build LFS? iv. Host System Requirements

But if I where you I would use the LFS liveCD, it was build for being a stable and suitable host for LFS.

BTW: Post a bit more info next time. I started looking at this and assumed the following:

- you are building the latest stable LFS (6.5),
- you are stuck at chap 5.6,
- the previous steps (binutils / gcc pass 1) didn't present any problems.

Hope this helps.
 
Old 12-12-2009, 08:41 PM   #3
Mr. Majestic
Member
 
Registered: Dec 2009
Location: Ohio
Distribution: Ubuntu, slackware, fedora, gentoo
Posts: 53

Original Poster
Rep: Reputation: 17
Your assumptions are correct. And yes, I checked to be sure my host requirements where up to par. I've actually had more luck so far using the Fedora live cd as the host more than I did with the LFS cd. I had nothing but problems with the LFS live cd. Everything else has gone fine up until this point.
 
Old 12-13-2009, 04:57 AM   #4
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

I think that the compiler (gcc in this case) seems to be the problem. I'm not sure about the current Fedora gcc implementation, but previous version where not suitable for LFS........

Does this work: echo 'main(){}' > dummy.c ; gcc dummy.c (you should end up with an a.out file without any messages).

And what is the output of: gcc --version

BTW: Make error 139: Your compiler (GCC) dumped core. You probably have a corrupted, buggy, or old version of GCC

BTW 2: Strange that you have trouble with the LFS liveCD. Care to explain why?
 
Old 12-13-2009, 08:24 AM   #5
Mr. Majestic
Member
 
Registered: Dec 2009
Location: Ohio
Distribution: Ubuntu, slackware, fedora, gentoo
Posts: 53

Original Poster
Rep: Reputation: 17
that created the file with no errors. gcc --version returns:

gcc (GCC) 4.4.2 20091027 (Red Hat 4.4.2-7)

With the LFS live cd I had a lot of problems compiling the software and could not get the chroot environment to work correctly. I'm starting to think that perhaps I should give the LFS cd another whorl though. I ran cat /proc/version though and it says that it's running kernel 2.6.31.5 compiled with gcc 4.4.2 and I made sure that the host had all the necessary development tools mention before I began. Is there anything else that would affect rather or not Fedora would work as a host system?
 
Old 12-13-2009, 01:22 PM   #6
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

Quote:
Originally Posted by Mr. Majestic View Post
gcc (GCC) 4.4.2 20091027 (Red Hat 4.4.2-7)
kernel 2.6.31.5 compiled with gcc 4.4.2
So, your host is _not_ up to specs......

This from the Host System Requirements page:
Gcc-3.0.1 (Versions greater than 4.4.1 are not recommended as they have not been tested)
Linux Kernel-2.6.18 (having been compiled with GCC-3.0 or greater)
This could be the root cause of your problem.

Quote:
With the LFS live cd I had a lot of problems compiling the software and could not get the chroot environment to work correctly. I'm starting to think that perhaps I should give the LFS cd another whorl though.
I would give it another try if I where you. Maybe with the extra experience you now have, things will fall into place and it will work.

Hope this helps.

Last edited by druuna; 12-13-2009 at 01:24 PM.
 
Old 12-13-2009, 02:10 PM   #7
Mr. Majestic
Member
 
Registered: Dec 2009
Location: Ohio
Distribution: Ubuntu, slackware, fedora, gentoo
Posts: 53

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

So, your host is _not_ up to specs......

This from the Host System Requirements page:
Gcc-3.0.1 (Versions greater than 4.4.1 are not recommended as they have not been tested)
Linux Kernel-2.6.18 (having been compiled with GCC-3.0 or greater)
This could be the root cause of your problem.

I would give it another try if I where you. Maybe with the extra experience you now have, things will fall into place and it will work.

Hope this helps.
Wow, I can't believe I didn't see the thing about 4.4.1 and above I guess I'll just give the LFS cd another try and see what happens. Thanks.... even though I feel kind of stupid for not seeing that
 
  


Reply



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 Step 6.7 - make headers_check fails ice13berg Linux From Scratch 7 01-07-2011 09:05 AM
Stuck on make headers_check Mr. Majestic Linux - Kernel 1 12-12-2009 03:21 PM
LFS 6.7 Linux API Headers - make headers_check fails gmontjr Linux - Newbie 4 01-26-2009 01:56 AM
problem with 5.51 make headers_check rodrigomeira Linux From Scratch 6 07-11-2008 01:49 PM
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

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

All times are GMT -5. The time now is 01:50 AM.

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