Did you know LQ has a Linux Hardware Compatibility List?
Go Back > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
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.


  Search this Thread
Old 04-09-2005, 01:31 PM   #1
Registered: Mar 2005
Posts: 44

Rep: Reputation: 15
Unhappy GCC First Pass throwing errors...pls help!

Hi all,

am new to LFS and trying to build it.....the Chapter 5th's Binutils First Pass went on well , but when i tried to configure for GCC First Pass, i got this error..

***You must set the environment variable CC to a working compiler***

i can get that this is a setting's problem, but how to rectify it??

with regards,
Old 04-10-2005, 12:12 AM   #2
Registered: Oct 2003
Location: Planet Earth
Distribution: Slackware, LFS
Posts: 561

Rep: Reputation: 30
Strange..Anyway, just set it manually and try. Assuming your SHELL is /bin/bash, try this:
export CC=`which gcc`
You're looking for the gcc binary, it's may be at /usr/bin/gcc or elsewhere depending on your distro.
Old 04-11-2005, 02:20 PM   #3
Registered: Mar 2005
Posts: 44

Original Poster
Rep: Reputation: 15
Hi all,

i just got bored by getting that message , so i decided to start from First..........when i did as how mentioned again in the document......i didnt get this error message at all!...strange!!!!!!!!!..maybe i missed some steps by mistake the first time.......:-(

anyway all ended well!!!........:-)

with regards,


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 Second pass fails thelonewolf Linux From Scratch 1 08-06-2005 12:07 PM
GCC second pass Mystified Linux From Scratch 6 07-28-2005 10:21 PM
GCC pass 1 error mugwump84 Linux From Scratch 2 05-10-2005 06:21 PM
Error configuring GCC, First Pass lloyd_smart Linux From Scratch 8 10-29-2004 12:45 PM
binutils-2.14 first pass, gcc error Add1Sun Linux From Scratch 3 04-29-2004 05:27 PM

All times are GMT -5. The time now is 11:15 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration