[Bug c/11979] ar creates invalid library file from empty object

rickf at ebenchmarks dot com gcc-bugzilla@gcc.gnu.org
Tue Aug 19 19:10:00 GMT 2003


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



More information about the Gcc-bugs mailing list