- To: psmith@xxxxxxx
- Subject: Re: Error building libgcc: missing setting for CPP
- From: Ian Lance Taylor <iant@xxxxxxxxxx>
- Date: Sun, 22 Jan 2012 11:59:56 -0800
- Cc: gcc-help@xxxxxxxxxxx
- Comment: DKIM? See http://www.dkim.org
- Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=gcc.gnu.org; s=default; x=1327867222; h=Comment: DomainKey-Signature:Received:Received:Received:Received:Received: Received:Received:From:To:Cc:Subject:References:Date:In-Reply-To: Message-ID:User-Agent:MIME-Version:Content-Type:Mailing-List: Precedence:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:Sender:Delivered-To; bh=fnMZZeZSyMPgk8z3NHngha5NSzc=; b=XgOsKKyOtjAa+mmkqJ4IKM+7eueIlkFgig91oA1Y06JrhLW0Re4bfzZtTSWFBp nwaKQGwFVD5VfkyoFtzRPir+jnpfctVuIO6ok7UUVeNjAJIJODIy8/N8cSmFuzDn PYlCm8GQgG+UrfBg60gXFG3KLED8NT0tqDvt1FMkE0Tds=
- In-reply-to: <1327206432.4539.35.camel@homebase> (Paul Smith's message of "Sat, 21 Jan 2012 23:27:12 -0500")
- User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux)
Paul Smith <psmith@xxxxxxx> writes:
> If I check the "as" shell script, I can see that the "ORIGINAL_*" values
> are all empty:
>
> ORIGINAL_AS_FOR_TARGET=""
> ORIGINAL_LD_FOR_TARGET=""
> ORIGINAL_PLUGIN_LD_FOR_TARGET=""
> ORIGINAL_NM_FOR_TARGET=""
>
> and so when we get to:
>
> case "$invoked" in
> as)
> original=$ORIGINAL_AS_FOR_TARGET
> prog=as-new$exeext
> dir=gas
> ;;
>
> $original is empty, and then later:
>
> exec $original ${1+"$@"}
>
> we exec just the arguments, causing this problem.
>
> I can't figure out where this is going wrong. Can someone point me to
> where these values (ORIGINAL_AS_FOR_TARGET etc.) are supposed to be set?
In an ordinary build, ORIGINAL_AS_FOR_TARGET will be set to /usr/bin/as,
and similarly for LD and NM. PLUGIN_LD will typically be the same as
LD.
You said you are building a cross-compiler; make sure that you build and
install a cross-binutils first.
Ian
[Linux C Programming]
[Linux Kernel]
[eCos]
[Fedora Development]
[Fedora Announce]
[Autoconf]
[The DWARVES Debugging Tools]
[Yosemite Campsites]
[Yosemite News]
[Linux GCC]