This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/11979] ar creates invalid library file from empty object
- From: "rickf at ebenchmarks dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 19 Aug 2003 19:10:56 -0000
- Subject: [Bug c/11979] ar creates invalid library file from empty object
- References: <20030819160249.11979.rickf@ebenchmarks.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11979
------- Additional Comments From rickf at ebenchmarks dot com 2003-08-19 19:10 -------
Subject: ar creates invalid library file from empty object
On Solaris, there is no /usr/bin/ar, but ccs and xpg4 work correctly.
/usr/local/bin/ar fails.
rick~ %/usr/bin/ar scr empty.a empty.o
/usr/bin/ar: Command not found.
rick~ %/usr/ccs/bin/ar scr empty.a empty.o
rick~ %gcc -ohello hello.o empty.a
rick~ %/usr/xpg4/bin/ar scr empty.a empty.o
rick~ %gcc -ohello hello.o empty.a
rick~ %/usr/local/bin/ar scr empty.a empty.o
rick~ %gcc -ohello hello.o empty.a
ld: fatal: file empty.a: unknown file type
ld: fatal: File processing errors. No output written to hello
collect2: ld returned 1 exit status
rick~ %
Rick Foos