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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
01-07-2005, 04:26 AM
|
#1
|
LQ Guru
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522
Rep:
|
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
|
|
|
01-07-2005, 04:49 AM
|
#2
|
LQ Guru
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613
Rep:
|
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
|
|
|
01-07-2005, 05:22 AM
|
#3
|
Senior Member
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973
Rep:
|
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.
|
|
|
01-07-2005, 05:22 AM
|
#4
|
LQ Guru
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522
Original Poster
Rep:
|
thanks for the reply
so will it not matter if i install another gcc
i just need to put that in PATH..
regards
|
|
|
01-07-2005, 06:00 AM
|
#5
|
Senior Member
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973
Rep:
|
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.
|
|
|
01-07-2005, 07:00 AM
|
#6
|
LQ Guru
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522
Original Poster
Rep:
|
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
|
|
|
01-07-2005, 04:15 PM
|
#7
|
Senior Member
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973
Rep:
|
replaced?
do you mean you replaced the host system compiler and libs?
|
|
|
01-07-2005, 10:58 PM
|
#8
|
LQ Guru
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522
Original Poster
Rep:
|
yes
i upgraded the gcc compiler and cpp and libgcc packages on the host system
regards
|
|
|
01-08-2005, 05:44 PM
|
#9
|
Senior Member
Registered: Dec 2004
Distribution: Slackware, ROCK
Posts: 1,973
Rep:
|
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.
|
|
|
01-09-2005, 02:52 AM
|
#10
|
LQ Guru
Registered: May 2003
Location: INDIA
Distribution: Ubuntu, Solaris,CentOS
Posts: 5,522
Original Poster
Rep:
|
thanks of the info
i am presently compiling the packages for LFS and they have not posed any problems as such
regards
|
|
|
All times are GMT -5. The time now is 08:30 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|