On 18/01/2019 16:38, jonetsu wrote:
> On Fri, 18 Jan 2019 09:23:38 +0100
> Pierre Labastie <[email protected]> wrote:
> 
>> But I haven't asked you to run "./gcc", but to run "./gcc -v". That
>> makes a big difference: gcc is just a wrapper which calls other
>> programs sequentially (normal sequence: cpp, cc1 (compiler), as, and
>> collect2 (itself a wrapper to ld). 
> 
> 
> Hmmmm... If "./gcc" returns 'not found', how could "./gcc -v", with a
> parameter, return otherwise ?  Assuming first a cd in "/tools/bin/".

I agree the error message is misleading... "gcc" is a wrapper, as explained
above. It tries to launch sequentially "cpp", "cc1", "as", and "collect2"
(which in turn launches "ld"). If it does not find one of those files, it just
writes "not found" to stderr. With a -v argument, it is more verbose, and
prints the actual program file it is trying to launch. It would eventually
print "not found", but at least, it would tell _what_ is not found.

Pierre
-- 
http://lists.linuxfromscratch.org/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Do not top post on this list.

A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

http://en.wikipedia.org/wiki/Posting_style

Reply via email to