Date: Tue, 5 Mar 1996 23:11:57 -0800 (PST) From: asami@cs.berkeley.edu (Satoshi Asami) To: current@freebsd.org Subject: funny "make" bug Message-ID: <199603060711.XAA15540@silvia.HIP.Berkeley.EDU>
next in thread | raw e-mail | index | archive | help
This is on thud, with a kernel built about a month ago.
===
>> cat Makefile
all: libfoo.a
libfoo.a: foo.o
ar -r $@ $?
ranlib $@
foo.o:
touch foo.o
>> make
touch foo.o
ar -r libfoo.a foo.o
ar: creating archive libfoo.a
ranlib libfoo.a
Malloc warning: free(): malloc() never got called.
>> make
ar -r libfoo.a
ar: no archive members specified
usage: ar -d [-Tv] archive file ...
ar -m [-Tv] archive file ...
ar -m [-abiTv] position archive file ...
ar -p [-Tv] archive [file ...]
ar -q [-cTv] archive file ...
ar -r [-cuTv] archive file ...
ar -r [-abciuTv] position archive file ...
ar -t [-Tv] archive [file ...]
ar -x [-ouTv] archive [file ...]
*** Error code 1
Stop.
>> ls -lT foo.o libfoo.a
0 -rw-r--r-- 1 asami asami 0 Mar 5 23:08:17 1996 foo.o
2 -rw-r--r-- 1 asami asami 136 Mar 5 23:08:18 1996 libfoo.a
===
Well, the "Malloc warning:" probably should be fixed in ranlib, but
the main bug doesn't occur on my really-current machine.
If it persists after a kernel rebuild, I'll send in a PR....
Satoshi
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199603060711.XAA15540>
