Re: archiving error [make (e=87): The parameter is incorrect.]

Eli Zaretskii <[email protected]>
Newsgroups gmane.comp.gnu.make.windows
Message-ID <[email protected]>
> From: "John Lee \(GMI\)" <[email protected]>
> Cc: <[email protected]>,
> 	"John Lee" <[email protected]>
> Date: Sat, 4 Jun 2011 05:07:20 +0800
> Disposition-Notification-To: "John Lee \(GMI\)" <[email protected]>
> 
> (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.

That's your problem: on Windows, the limit for the length of a command
line is around 32K characters.  You are apparently hitting that
limit.

This is a fundamental limitation of Windows APIs Make uses to run
programs.  Lifting this limit needs to compile Make as Unicode
application, which is a large job.  Patches are welcome.

Until this is resolved, you will have to break your long command line
in two.  E.g., create 2 separate object archives and use both in the
link command line.  Or make the second "ar" command use "-rs" instead
of "-rcs", so that the second portion of *.o files is added to an
already existing archive, rather than creating a new one.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.