[Scummvm-devel] MinGW gcc 4 issues with our configure

Travis Howell kirben at optusnet.com.au
Mon Jan 10 12:24:35 CET 2011


On 10/01/2011 10:11 PM, yotam barnoy wrote:
> Has anyone had any luck getting MinGW series 4 gcc through our
> configure for either the trunk or the tools repository?
>
> I usually build for the PSP, but currently I'm working on the mp3 VBR
> header tool and I'm trying to get the tools to build using MinGW gcc
> ver 4.5.0. However, I can't even get configure to detect properly (and
> it doesn't work for the regular scummvm trunk either). My config.log
> shows the following:
>
> "#include<stdlib.h>
> #include<signal.h>
> int main(int argc, char **argv) {
> 	unsigned char test[8] = { 0x11, 0x22, 0x33, 0x44, 0x55, 0x66, 0x77, 0x88 };
> 	signal(SIGBUS, exit);
> 	signal(SIGABRT, exit);
> 	signal(SIGSEGV, exit);
> 	if (*((unsigned int *)(test + 1)) != 0x55443322&&  *((unsigned int
> *)(test + 1)) != 0x22334455) {
> 		return 1;
> 	}
> 	return 0;
> }
>
> g++ /tmp/scummvm-conf.XvOFHVMkbX.cpp -o /tmp/scummvm-conf.XvOFHVMkbX.exe
> C:/DOCUME~1/a323378/LOCALS~1/Temp/scummvm-conf.XvOFHVMkbX.cpp: In
> function 'int main(int, char**)':
> C:/DOCUME~1/a323378/LOCALS~1/Temp/scummvm-conf.XvOFHVMkbX.cpp:5:9:
> error: 'SIGBUS' was not declared in this scope
>
> int main(void) { return 0; }
>
> g++ /tmp/scummvm-conf.XvOFHVMkbX.cpp -o /tmp/scummvm-conf.XvOFHVMkbX.exe -lm
>
> This application has requested the Runtime to terminate it in an unusual way.
> Please contact the application's support team for more information."
>
>> From this point on, every call to g++ returns the same error "this
> application has..." which indicates an exception. I can't reproduce
> this from the command line though.

Unfortunately this is a bug in the MinGW builds of GCC, that occurs in 
all their recent 4.x.x builds.

> (BTW gcc 3 series succeeds and builds fine, but I had another issue with it.)

GCC 4.2.1 was the last usable MinGW build of GCC, which	I use for the 
Windows snapshots.




More information about the Scummvm-devel mailing list