From owner-freebsd-current Mon Jun 24 00:01:50 1996 Return-Path: owner-current Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id AAA29072 for current-outgoing; Mon, 24 Jun 1996 00:01:50 -0700 (PDT) Received: from phaeton.artisoft.com (phaeton.Artisoft.COM [198.17.250.211]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id AAA29067 for ; Mon, 24 Jun 1996 00:01:48 -0700 (PDT) Received: (from terry@localhost) by phaeton.artisoft.com (8.6.11/8.6.9) id XAA27332; Sun, 23 Jun 1996 23:57:06 -0700 From: Terry Lambert Message-Id: <199606240657.XAA27332@phaeton.artisoft.com> Subject: Re: make fails To: grog@lemis.de (Greg Lehey) Date: Sun, 23 Jun 1996 23:57:05 -0700 (MST) Cc: uh@NU.cs.fsu.edu, FreeBSD-current@FreeBSD.org In-Reply-To: <199606230834.KAA07187@allegro.lemis.de> from "Greg Lehey" at Jun 23, 96 10:34:27 am X-Mailer: ELM [version 2.4 PL24] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-current@FreeBSD.org X-Loop: FreeBSD.org Precedence: bulk > > cc -O -c /usr/src/usr.bin/lex/lib/libmain.c -o libmain.o > > ld: invalid command option `-O' > > *** Error code 1 > > Fascinating. For some non-evident reason, cc has decided to invoke > the loader instead of the compiler. I can't see any good reason for > that, but why not expiriment: change to directory lib, and issue the > command manually. In particular, I'd like to see the output of: > > cc -v -O -c /usr/src/usr.bin/lex/lib/libmain.c -o libmain.o > > and > > cc -v -O -c /usr/src/usr.bin/lex/lib/libmain.c > > The -v option prints out exact information about the passes that cc > starts, and the -o libmain.o is superfluous (though I suspect it has > something to do with this problem). I thought this was expected behaviour for a single .c file without a -C? Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers.