bugmake - Bugs: bug #36397, cross compiling make for Windows...

 
 

bug #36397: cross compiling make for Windows on Linux with mingw, small configure bug

Submitter:  Joe Burmeister <jabjoe>
Submitted:  Fri 04 May 2012 04:02:40 PM UTC
   
 
Severity:  3 - Normal Item Group:  Build/Install
Status:  Fixed Privacy:  Public
Assigned to:  psmith Open/Closed:  Closed
Component Version:  3.82 Operating System:  MS Windows
Fixed Release:  4.0 Triage Status:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Sat 06 Apr 2013 03:00:39 PM UTC, comment #1: 

The config.guess script is part of autoconf, not GNU make.  However, checking with the latest version of autoconf this problem seems to be resolved:


    *:MINGW64*:*)
        echo ${UNAME_MACHINE}-pc-mingw64
        exit ;;
    *:MINGW*:*)
        echo ${UNAME_MACHINE}-pc-mingw32
        exit ;;


If this is sufficient then it will be resolved in the next version of GNU make.  In the meantime you can re-run autoconf for GNU make on your system if you like.

Paul D. Smith <psmith>
Group administrator
Fri 04 May 2012 04:02:40 PM UTC, original submission:  

I was cross compile make on Ubuntu for Windows and was having a problem that WINDOWS32 wasn't defined.
It turned out to be because the configure file is slightly wrong for the naming of mingw on Ubuntu.

On Ubuntu mingw is mingw32msvc so the configure file doesn't create the correct config.h because:

case "$host" in
  --mingw32)

doesn't match mingw32msvc. Simply adding a wildcard on the end of mingw32 makes it match, and thus creates the correct config.h, thus build.
The fix is to replace the above with the below.

case "$host" in
  --mingw32*)


Earlier on configure it already does a host check for mingw, but it does "*-*-mingw*" instead of "*-*-mingw32" which works. The two probably should be consistent (and obviously work ;-) ).

Joe Burmeister <jabjoe>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by psmith (Posted a comment)
  • -email is unavailable- added by jabjoe (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2013-04-06 psmith StatusNone Fixed
        Assigned toNone psmith
        Open/ClosedOpen Closed
        Fixed ReleaseNone 4.0

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code