LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 05-12-2004, 06:26 PM   #1
mullog
Member
 
Registered: May 2004
Posts: 61

Rep: Reputation: 15
Building Gcc-core-3.3.1 Chapter 5


I'm having quite some problems building the gcc-core-3.3.1.tar.bz2(chapter 5-LFS 5.0).

Here's what i've done:
date >> sbu; ../gcc-3.3.1/configure --prefix=/tools --with-local-prefix=/tools --disable-nls --enable-shared --enable-languages=c && make BOOT_LDFLAGS="-static" bootstrap && make install; date >> sbu

Everytime i try to build it, it gives an internal compiler error, but never in the same function. I've even removed the bootstrap option, but it still gives the same error...it just appears faster.

I'm using Mandrake 9.0.

Could it be a problem with the compiler?


Last edited by mullog; 05-12-2004 at 06:39 PM.
 
Old 05-13-2004, 10:33 AM   #2
320mb
Senior Member
 
Registered: Nov 2002
Location: pikes peak
Distribution: Slackware, LFS
Posts: 2,577

Rep: Reputation: 48
Well, You are NOT following the book correctly!!
Code:
../gcc-3.3.1/configure --prefix=/tools --with-local-prefix=/tools --disable-nls 
--enable-shared --enable-languages=c
this is done first............then............
Code:
 make BOOT_LDFLAGS="-static" bootstrap
this done second, don't add it all on one line........this is not how it
is done in the book...............taking shortcuts like this will
cause alot of errors!!
 
Old 05-13-2004, 01:16 PM   #3
mullog
Member
 
Registered: May 2004
Posts: 61

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by 320mb
Well, You are NOT following the book correctly!!
Code:
../gcc-3.3.1/configure --prefix=/tools --with-local-prefix=/tools --disable-nls 
--enable-shared --enable-languages=c
this is done first............then............
Code:
 make BOOT_LDFLAGS="-static" bootstrap
this done second, don't add it all on one line........this is not how it
is done in the book...............taking shortcuts like this will
cause alot of errors!!
I'm sorry, but executing commands separated by && is the same thing as doing them individually. The second one will only be executed if the first one is sucessfully completed.

But i'm going to try that anyway.

 
Old 05-13-2004, 06:39 PM   #4
mullog
Member
 
Registered: May 2004
Posts: 61

Original Poster
Rep: Reputation: 15
I still have the problem. In the make BOOT_LDFLAGS="-static" bootstrap instruccion it always gives an internal compiler errror and never in the same function.

Anyone has any ideas?
 
Old 05-14-2004, 09:28 AM   #5
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
Does your error message look anything like this http://www.linuxfromscratch.org/lfs/...cannot-find-lc
 
Old 05-14-2004, 04:16 PM   #6
mullog
Member
 
Registered: May 2004
Posts: 61

Original Poster
Rep: Reputation: 15
No, i've already installed glibc-static-devel RPM
 
Old 05-14-2004, 04:59 PM   #7
mullog
Member
 
Registered: May 2004
Posts: 61

Original Poster
Rep: Reputation: 15
Ok, my problem is covered by the LFS-FAQ:
signal 11: (internal error: Segmentation fault), which sugests it may be a hardware problem.
Altough my machine is not overclocked, it tens to heat a lot and it may also be a memory problem, so i'm going to try to solve it.

Has this happened to anyone? And how was it solved?

Thanks.
 
Old 05-20-2004, 06:15 PM   #8
mullog
Member
 
Registered: May 2004
Posts: 61

Original Poster
Rep: Reputation: 15
A little update on the problem. I have tested the two memory modules with memtest86 and found that only one of them has problems and removed the faulty one, but i still can't compile this package as it continues to deliver internal compiler error:segmentation fault on "random" functions.

I've tried on other distribution, same machine, same problem.

Anyone has the same problem?

Last edited by mullog; 05-20-2004 at 06:16 PM.
 
Old 05-27-2004, 01:49 PM   #9
mullog
Member
 
Registered: May 2004
Posts: 61

Original Poster
Rep: Reputation: 15
Problem solved.

It was a hardware problem. The processor was heating too much because it was too dirty, a little cleaning solved everything.
 
  


Reply


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
gcc check error (in chapter 6) alinsoar Linux From Scratch 0 05-23-2005 05:58 AM
gcc chapter 6 time_dot_h problem vmlinuz101 Linux From Scratch 3 03-23-2005 04:44 PM
Chapter 5.13 GCC and C++ RobbieB Linux From Scratch 1 02-07-2005 08:29 PM
Stuck on chapter 5 when building Tcl-8.4.6 For LFS-5.1 deMilo Linux From Scratch 2 06-20-2004 04:31 AM
Chapter 5 - Installing GCC... Grim Reaper Linux From Scratch 22 12-31-2002 01:58 AM

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

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