Opened 11 years ago

Closed 11 years ago

Last modified 2 years 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
Version: Keywords: build
Cc: Game:


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 by SF/retrofan, 11 years ago

Priority: normallow

comment:2 by SF/retrofan, 11 years ago

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

comment:3 by wjp, 11 years ago

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 by SF/mac_es, 11 years ago

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

comment:5 by SF/retrofan, 11 years ago

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 by dhewg, 11 years ago

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 by SF/retrofan, 11 years ago

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 by Kirben, 11 years ago

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 by Kirben, 11 years ago

Owner: set to Kirben
Resolution: invalid
Status: newclosed

comment:10 by digitall, 2 years ago

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