Opened 10 years ago

Closed 10 years ago

Last modified 7 months ago

#4590 closed defect (invalid)

Configure fails with MinGW + GCC 4.4.0

Reported by: SF/retrofan Owned by: Kirben
Priority: low Component: Port: Win32
Keywords: build Cc:
Game:

Description

With the following environment on a WinXP:
- ScummVM sources from SVN
- MinGW 5.1.4
- GCC 4.4.0 packed by MinGW folks

configure fails =>

$ ./configure
Running ScummVM configure...
Looking for C++ compiler... g++
Checking for compiler version... 4.4.0, ok
Checking endianness... little
Type with 1 byte... char
Type with 2 bytes... couldn't find data type with 2 bytes

It seems that "int" type is not recognized as a 2 byte datatype but with gcc 3.4.5 compilation is ok.

Ticket imported from: #2853895. Ticket imported from: bugs/4590.

Change History (10)

comment:1 Changed 10 years ago by SF/retrofan

Priority: normallow

comment:2 Changed 10 years ago by SF/retrofan

just a little note, with gcc 3.4.5 the 2 bytes type is short not int

comment:3 Changed 10 years ago by wjp

Can you test compiling the following small program with g++ 4.4.0, and report any error messages?

int main() {
static int test_array [1 - 2 * !(((long int) (sizeof (short))) == 2)];
test_array [0] = 0;
return 0;
}

comment:4 Changed 10 years ago by SF/mac_es

It will compile, it is a problem in g++ compiler after various calls. g++ 4.3.3 in Mingw works well.

comment:5 Changed 10 years ago by SF/retrofan

It outputs nothing or better... it doesn't crash.

mac_es> I know, i only want to test 4.4.0 version just to ckeck how it performs; for me 3.4.5 version is ok but i'll try TDM-GCC version

comment:6 Changed 10 years ago by dhewg

Maybe you're missing compiler dependencies like gmp or mfpr.
Works fine with mingw-w32 4.4.1 (from the mingw-w64 project)

comment:7 Changed 10 years ago by SF/retrofan

gmp & mfpr are present... can you confirm that i can mingw-w32 4.4.1 from the mingw-w64 project on a 32bit windowsXP to produce 32bit application?

comment:8 Changed 10 years ago by Kirben

This is a fault in the GCC 4.4.0 version provided by the mingw project, and not an issue specific to ScummVM.

comment:9 Changed 10 years ago by Kirben

Owner: set to Kirben
Resolution: invalid
Status: newclosed

comment:10 Changed 7 months ago by digitall

Component: --Unset--Port: Win32
Note: See TracTickets for help on using tickets.