Tue Dec 10 19:33:02 2019: Request 131165 was acted upon.
Transaction: Ticket created by jkahr...@mathworks.com
       Queue: Win32-API
     Subject: build does not succeed using gmake
   Broken in: (no value)
    Severity: (no value)
       Owner: Nobody
  Requestors: jkahr...@mathworks.com
      Status: new
 Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=131165 >


We recently switched our build on Windows from nmake to gmake. The Makefile 
generated for Win32-API failed to build with the following error:

LINK : fatal error LNK1181: cannot open input file 'call_asm_x64_msvc.obj'
gmake[4]: *** [blib\arch\auto\Win32\API\API.dll] Error 1181

The obj file wasn't generated because '.asm' was not on the .SUFFIXES list. 
'nmake' has it on the SUFFIXES list by default, but 'gmake' doesn't (at least 
our build of gmake).

By mangling the Makefile to include '.asm' on the'.SUFFIXES' list, the the 
build completed successfully using gmake.


$(PERL) -pi.orig -e "s/^\.SUFFIXES : /\.SUFFIXES : .asm /m" Win32-API/Makefile

Reply via email to