LinuxQuestions.org
Help answer threads with 0 replies.
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 01-07-2005, 04:26 AM   #1
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Rep: Reputation: 69
which gcc to use


i have downloaded packages for LFS 6.0

now it has gcc version 3.4.1

i have 2 linux OS
fedora core 2--gcc version 3.3.3
mandrake 10.1--gcc version 3.4.1

i am more on FC2 than mandrake

and i want to compile LFS on FC2 , but i fear the gcc version.
last time i tried compiling LFS on RH9 whcih had different gcc version. i could bot go with gcc
so i want to know that would the different gcc version be a problem or should i go with mandrake

regards
 
Old 01-07-2005, 04:49 AM   #2
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
Well since the real work happens after the chroot, you would probably be ok, however, you'd be better off from the get go if you had identical GCC versions. You can always have 2 compilers on FC if you'd like, just be sure to change your GCC= to the path of the compiler you want to use.

Cool
 
Old 01-07-2005, 05:22 AM   #3
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
even before you chroot, your path will pick up the temporary tools gcc first (which is completely static) anyway. So it shouldn't make any difference.
 
Old 01-07-2005, 05:22 AM   #4
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Original Poster
Rep: Reputation: 69
thanks for the reply
so will it not matter if i install another gcc
i just need to put that in PATH..

regards
 
Old 01-07-2005, 06:00 AM   #5
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
One of the first things you do is create the /tools directory (which is actually located on the new partition) and set the path to search /tools/bin before anything else. so /tools/bin/gcc will be executed instead of /usr/bin/gcc.
 
Old 01-07-2005, 07:00 AM   #6
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Original Poster
Rep: Reputation: 69
thans for ur replies!
meanwhile i got the gcc-3.4.1 and i have replaced the older one by this , i have replaced the cpp ,libgcc, and gcc packages

do i need some more packages to be replaced?

regards
 
Old 01-07-2005, 04:15 PM   #7
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
replaced?

do you mean you replaced the host system compiler and libs?
 
Old 01-07-2005, 10:58 PM   #8
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Original Poster
Rep: Reputation: 69
yes

i upgraded the gcc compiler and cpp and libgcc packages on the host system

regards
 
Old 01-08-2005, 05:44 PM   #9
__J
Senior Member
 
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973

Rep: Reputation: 46
ok, but what i was referring to was the gcc on the host does not matter. Once you build the temporary compiler in the bootstrap phase (which is compiled static so it won't use shared libs), you will not need the host compiler any longer.
 
Old 01-09-2005, 02:52 AM   #10
masand
LQ Guru
 
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522

Original Poster
Rep: Reputation: 69
thanks of the info
i am presently compiling the packages for LFS and they have not posed any problems as such

regards
 
  


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 wont install, 'failed dependencies: glibc-devel is needed by gcc-3.3.3-41' TdlSnare SUSE / openSUSE 3 11-29-2004 02:13 PM
Kernel compiling: gcc-3.3 is 586, should be gcc-3.3 386 Erik Plaggenmar Linux - Software 0 10-01-2004 11:38 AM
running software built with gcc 3.0.2 on Redhat 8 - gcc 3.2 dst1989 Linux - Software 3 03-08-2004 10:23 PM
a doubt with host gcc and arm-linux-gcc renjithgopal Linux - General 1 09-11-2003 04:02 PM
export CC=/usr/bin/gcc-3.2 - switch gcc version? ferreter Linux - Software 1 08-20-2003 12:07 AM

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

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