Error building libgcc: missing setting for CPP
Ian Lance Taylor
iant@google.com
Mon Jan 23 10:22:00 GMT 2012
Paul Smith <psmith@gnu.org> 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
More information about the Gcc-help
mailing list