LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-05-2006, 01:16 AM   #1
ideasman
LQ Newbie
 
Registered: Mar 2004
Location: Australia
Distribution: Home brew
Posts: 25

Rep: Reputation: 15
Broken (GCC 4.1 + Linux 2.6)


Hi All. Just upgraded from gcc-4.0.2 to gcc-4.1.0
All apps compiled okay (Linux-2.15/Gimp/Blender3D/Glibc2.3.6) however the new bzImage I have from GCC 4.1.0 wont boot. it just loads from lilo then halts.
I used the exact same config as with the old bzImage to make sure.

Anyone else have this problem?
- Cam

Last edited by ideasman; 03-05-2006 at 01:17 AM.
 
Old 03-05-2006, 01:47 AM   #2
Simon Bridge
LQ Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
It is not required to recompile everything just because you've upgraded gcc.

Does the old bzimage still boot?

Which kernel(s) are these?

"Home Brew" does not appear in distrowatch. While there are a lot of "homebrew" linuxes around I cannot seem to find anything resembling a distro. Could you point me to the maintainer site, thank you.

(Or do you mean that your distro is "home brewed", as in, you made it yourself from scratch? In which case, this is LFS.)
 
Old 03-05-2006, 09:41 AM   #3
tomdkat
Member
 
Registered: May 2003
Location: S.F. Bay Area
Distribution: Ubuntu 9.04 AMD64
Posts: 595

Rep: Reputation: 30
Quote:
Originally Posted by ideasman
Hi All. Just upgraded from gcc-4.0.2 to gcc-4.1.0
Wow, you've had more success at that than I have.

Quote:
All apps compiled okay (Linux-2.15/Gimp/Blender3D/Glibc2.3.6) however the new bzImage I have from GCC 4.1.0 wont boot. it just loads from lilo then halts.
I used the exact same config as with the old bzImage to make sure.
Since gcc-4.1.0 is so new, chances are the Linux kernel can't be reliably compiled with it.

I would search Linux kernel mailing lists for compilation problems using gcc-4.1.0.

Peace...
 
Old 03-05-2006, 04:44 PM   #4
ideasman
LQ Newbie
 
Registered: Mar 2004
Location: Australia
Distribution: Home brew
Posts: 25

Original Poster
Rep: Reputation: 15
Just to clear some stuff up.

Im trying to compile linux 2.6.15.4

Yep. re-compiling isnt required, but I like to recompile base parts of the system if a new GCC makes more optimal code.
Eg- gcc-4.0.x Blender3D binaries tested 12% faster for raytracing then gcc-3.x,
on similar tests gcc-4.1 binaries are 5% faster.

Linux dosent use the env CFLAGS so Im fairly sure Linux source just needs to be updated to work with the latest GCC.

There are possibly some bugs in GCC also, the flags I was using with 4.0.2 make a binary that segfaulted Blender3D with 4.1.0, just removed some of the flags like -fforce-addr -fomit-frame-pointer -funroll-loops -frerun-cse-after-loop -frerun-loop-opt -falign-functions=4 -maccumulate-outgoing-args -fprefetch-loop-arrays.
 
  


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
broken gcc++ and rpm Zuess Linux - Software 0 02-07-2006 08:10 PM
broken linux Trio3b Mandriva 2 02-17-2005 08:40 AM
FC3: GCC broken? Jorenko Fedora 5 01-24-2005 08:16 AM
a doubt with host gcc and arm-linux-gcc renjithgopal Linux - General 1 09-11-2003 04:02 PM
Linux Is Broken!!! therion12 Linux - General 15 01-14-2002 12:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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