This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]