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 06-17-2011, 10:14 AM   #1
AndrewJM
LQ Newbie
 
Registered: Jun 2011
Distribution: LFS svn BLFS svn
Posts: 16

Rep: Reputation: Disabled
BLFS svn Firefox build error


I am using the BLFS svn on top of the LFS svn. One inconsistency is that LFS uses GCC 4.6.0 and BLFS uses 4.5.1. I think this may be the cause of this issue.

Firefox 3.6.17 (the latest 3.6 version) gives me the following error when being built with GCC 4.6.0

/sources/mozilla-1.9.2/xpcom/glue/nsEnumeratorUtils.cpp:115:27: error: uninitiliazed const 'EmptyEnumeratorImpl::kInstance' [-fpermissive]

Q1 Is there any way round this?
Q2 If I install GCC 4.5.1 over my existing 4.6.0 will I have further problems especially as I now have many packages built with 4.6.0.

I am very new to Linux so be patient please.

Thanks.
 
Old 06-17-2011, 10:41 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,
Quote:
Originally Posted by AndrewJM View Post
I am using the BLFS svn on top of the LFS svn. One inconsistency is that LFS uses GCC 4.6.0 and BLFS uses 4.5.1. I think this may be the cause of this issue.
I'm not sure if your perception is correct. Your system uses gcc 4.6.0, which you installed during LFS. BLFS gives you the choice to install gcc 4.5.1 and/or gcc 3.3.6, but they are installed in another location and if they are installed gcc 4.6.0 is still your default compiler.

To use a different gcc version then the default use something like this: export CC=/opt/gcc-4.5.1/bin

Hope this helps.
 
Old 06-17-2011, 10:55 AM   #3
AndrewJM
LQ Newbie
 
Registered: Jun 2011
Distribution: LFS svn BLFS svn
Posts: 16

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

To use a different gcc version then the default use something like this: export CC=/opt/gcc-4.5.1/bin
Does that cover all the compilers in GCC, c, c++, fortran etc?
 
Old 06-17-2011, 11:01 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,
Quote:
Originally Posted by AndrewJM View Post
Does that cover all the compilers in GCC, c, c++, fortran etc?
Assuming they where build/installed: Yes it does.

Have another look at this BLFS chapter: GCC-3.3.6, especially the Command Explanations / Configuration information parts.
 
Old 06-17-2011, 11:23 AM   #5
AndrewJM
LQ Newbie
 
Registered: Jun 2011
Distribution: LFS svn BLFS svn
Posts: 16

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by druuna View Post
Hi,
Have another look at this BLFS chapter: GCC-3.3.6, especially the Command Explanations / Configuration information parts.
Thanks - I'll give this a go.
 
Old 06-17-2011, 01:53 PM   #6
AndrewJM
LQ Newbie
 
Registered: Jun 2011
Distribution: LFS svn BLFS svn
Posts: 16

Original Poster
Rep: Reputation: Disabled
Installed gcc 4.5.2 and build of Firefox (actually xulrunner) went a lot further, then failed due to missing header rdfutil.h.

Marking this as solved and will raise a new issue if I can't work this out.
 
  


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
[SOLVED] BLFS svn Dbus won't start AndrewJM Linux From Scratch 1 06-14-2011 04:46 PM
[SOLVED] pure 32 bit LFS Version SVN-20110110 trouble installing libX11 in BLFS mcamp73 Linux From Scratch 4 01-22-2011 03:42 AM
BLFS-svn package dwnload zkillz Linux From Scratch 3 10-04-2006 10:49 AM
BLFS - stunnel build Lenard Spencer Linux From Scratch 1 07-19-2006 12:02 AM
BLFS 5.0 dpkg build fails (ncurses-related error) bhaskie Linux From Scratch 2 02-07-2004 04:59 AM

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

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