gcc problem in chroot

Chris Casey ccasey at mac.com
Wed Sep 20 12:13:59 PDT 2000


I changed it, but got the exact same error.  maybe the cc link is broken?

> From: "Kyle West" <sithii at hotmail.com>
> Reply-To: lfs-discuss at linuxfromscratch.org
> Date: Wed, 20 Sep 2000 19:08:56 GMT
> To: lfs-discuss at linuxfromscratch.org
> Subject: Re: gcc problem in chroot
> 
> I think it is looking for an environment variable, not an actual program.
> Type this:  "echo $CC" (notice the case, unix is case sensitive!)
> 
> It should print out the path to your compiler, i.e.  /usr/bin/cc.  If it
> doesn't, you need to set the variable.  do this by typing "export
> CC=/usr/bin/cc" (or whereever your actual compiler is) and try again.
> 
> 
> 
> 
>> From: chris <ccasey at mac.com>
>> Reply-To: lfs-discuss at linuxfromscratch.org
>> To: lfs-discuss at linuxfromscratch.org
>> Subject: gcc problem in chroot
>> Date: Wed, 20 Sep 2000 13:50:22 -0500
>> MIME-Version: 1.0
>> Received: from [216.29.174.31] by hotmail.com (3.2) with ESMTP id
>> MHotMailBB92553000B6D821EED1D81DAE1F0BC20; Wed Sep 20 12:04:17 2000
>> Received: from shadowfax (localhost.localdomain [127.0.0.1])by
>> shadowfax.linuxfromscratch.org (Postfix) with ESMTPid BEB1536E62; Wed, 20
>> Sep 2000 15:05:17 -0400 (EDT)
>> Received: with LISTAR (v0.129a; list lfs-discuss); Wed, 20 Sep 2000
>> 15:05:17 -0400 (EDT)
>> Received: from pop.todayspublishing.com (unknown [216.181.255.83])by
>> shadowfax.linuxfromscratch.org (Postfix) with ESMTP id 9DAFC36E50for
>> <lfs-discuss at linuxfromscratch.org>; Wed, 20 Sep 2000 15:05:16 -0400 (EDT)
>> Received: from victim (192.168.0.6) by pop.todayspublishing.com with SMTP
>> (Eudora Internet Mail Server 1.3.1); Wed, 20 Sep 2000 14:01:26 -0500
>> From lfs-discuss-owner at linuxfromscratch.org Wed Sep 20 12:06:29 2000
>> X-Mailer: KMail [version 1.0.28]
>> Message-Id: <00092013542000.17188 at victim>
>> Sender: lfs-discuss-owner at linuxfromscratch.org
>> Errors-To: lfs-discuss-owner at linuxfromscratch.org
>> X-original-sender: ccasey at mac.com
>> Precedence: bulk
>> 
>> when trying to compile gcc in the chrooted directory, I get the following
>> error:
>> 
>> Configuring for a i586-pc-linux-gnuoldld host.
>> Created "Makefile" in /usr/src/gcc-build using "mh-frag" and "mt-frag"
>> gcc: installation problem, cannot exec `as': No such file or directory
>> *** The command 'gcc -o conftest -O3 -mcpu=i386 -march=i386   conftest.c'
>> failed.
>> *** You must set the environment variable CC to a working compiler.
>> 
>> I checked /usr/bin & cc does point to gcc, & I didn't find anything in the
>> archives.  I also tried -O2, -O, & no optimization with essentially the
>> same
>> error (that is the letter O & not the number zero, correct?)
>> 
>> thanks for any help
>> 
>> Chris
>> 
>> 
> 
> _________________________________________________________________________
> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
> 
> Share information about yourself, create your own public profile at
> http://profiles.msn.com.
> 
> 
> 






More information about the lfs-dev mailing list