(1) I have shorten the *.o file to 1071 files, which works ok, But @ 1072 *.o files, the archiving will fail. Total character count for this *.o arguments is 33085.
(2) The make version used is GNU Make 3.81, program built for i686-pc-mingw32 (3) I used cygwin for windows, and the archive process is like following. Process begin: CreateProcess(C:\STM\ST40R5.0.0\bin\sh4ar.exe, C:/STM/ST40R5.0.0/bin/sh4ar -rcs bin/libmylib.a < ... *.o > The <... *.o> is a list of object files. -----Original Message----- From: Eli Zaretskii [mailto:e...@gnu.org] Sent: Friday, June 03, 2011 10:03 PM To: John Lee (GMI) Cc: make-w32@gnu.org; john_...@goodmind.com.tw Subject: Re: archiving error [make (e=87): The parameter is incorrect.] > From: "John Lee \(GMI\)" <john_...@goodmind.com.tw> > Date: Fri, 3 Jun 2011 21:26:31 +0800 > Cc: John Lee <john_...@goodmind.com.tw> > > Hi all, i have problem with archiving *.o the error message after ar > -rcs libmylib.a [lots of *.o] it gives error make (e=87): The > parameter is incorrect. > > any idea how to solve this? Does the problem go away if you shorten the list of the *.o files? If it does go away, please tell how long was the original command, the one that failed. If shortening the list doesn't help, please show the complete rule which the ar command is a part of. Also, which version of Make is that, and do you have any kind of sh.exe (a port of a Unixy shell) somewhere on your Path? _______________________________________________ Make-w32 mailing list Make-w32@gnu.org https://lists.gnu.org/mailman/listinfo/make-w32