GLBasic under Windows 7 64bits Home Edition - g++.exe crashes

Previous topic - Next topic

François Vanzeveren

Hello

I am running GLBasic under Windows 7 64bits Home Edition. When trying to compile a game for GP2X-WIZ, g++.exe crashes and I get a dialog box warning me that g++.exe has stopped working.

When I run GLBasic under a virtualized windows XP on the same machine, everything works fine.

Regards

Here is the output
Code (glbasic) Select

_______________________________________
*** Configuration: GP2X-WIZ ***
precompiling:
GPC - GLBasic Precompiler V.6.922 SN:126b5585 - 3D, NET
Wordcount:678 commands
compile+link:
     34 [main] g++ 4884 child_info::sync: wait failed, pid 3900, Win32 error 1812
   2290 [main] g++ 4884 fork: child -1 - died waiting for longjmp before initialization, retry 10, exit code 0x1000000, errno 11
     30 [main] ? (-6364) Q:\Compiler\platform\WIZ\Bin\g++.exe: *** fatal error - cygheap base mismatch detected - 0x15C88E0/0x16588E0.
This problem is probably due to using incompatible versions of the cygwin DLL.
Search for cygwin1.dll using the Windows Start->Find/Search facility
and delete all but the most recent version.  The most recent version *should*
reside in x:\cygwin\bin, where 'x' is the drive on which you have
installed the cygwin distribution.  Rebooting is also suggested if you
are unable to find another cygwin DLL.
37581188 [main] g++ 4884 fork: child -1 - died waiting for longjmp before initialization, retry 0, exit code 0xC0000005, errno 11
50328506 [main] g++ 4884 fork: child -1 - died waiting for longjmp before initialization, retry 0, exit code 0xC0000005, errno 11
     30 [main] ? (6420) Q:\Compiler\platform\WIZ\Bin\g++.exe: *** fatal error - cygheap base mismatch detected - 0x15C88E0/0x14F88E0.
This problem is probably due to using incompatible versions of the cygwin DLL.
Search for cygwin1.dll using the Windows Start->Find/Search facility
and delete all but the most recent version.  The most recent version *should*
reside in x:\cygwin\bin, where 'x' is the drive on which you have
installed the cygwin distribution.  Rebooting is also suggested if you
are unable to find another cygwin DLL.
74842880 [main] g++ 4884 fork: child -1 - died waiting for longjmp before initialization, retry 0, exit code 0xC0000005, errno 11
g++: fork: Resource temporarily unavailable
*** FATAL ERROR - Please post this output in the forum
_______________________________________


kaotiklabs

I have reported several times similar issues under win 7 64 bits.

I reproduced the same issues too when I installed another an application that I believe it was using cygwin or some similar crossplatform soft.
Even it was lefting the cyg drive mounted on the system.
I believe some other programs are interfering under 64 bits.

I also get some different error mesages.
This is a test under Win 7 64 bits and the last v8 beta:
Code (glbasic) Select

_______________________________________
*** Configuration: IPHONE ***
precompiling:
GPC - GLBasic Precompiler V.6.922 SN:b446a441 - 3D, NET
Wordcount:2145 commands
compiling:
arch:
/cygdrive/q/Compiler/platform/iPhone/bin/arm-apple-darwin9-libtool: object: gpc_temp0.o truncated or malformed object (stroff field plus strsize field of LC_SYMTAB command 1 extends past the end of the file)
/cygdrive/q/Compiler/platform/iPhone/bin/arm-apple-darwin9-libtool: object: gpc_temp8.o truncated or malformed object (indirectsymoff field of LC_DYSYMTAB command 2 extends past the end of the file)
/cygdrive/q/Compiler/platform/iPhone/bin/arm-apple-darwin9-libtool: object: gpc_tempa.o truncated or malformed object (offset field of section 1 in LC_SEGMENT command 0 extends past the end of the file)
*** FATAL ERROR - Please post this output in the forum
_______________________________________
*** Finished ***
Elapsed: 16.5 sec. Time: 21:55
Build: 0 succeeded.
*** 1 FAILED ***




Vote Cthulhu! Because the stars are right!!!!
Ia Ia Cthulhu F' tang!

kaotiklabs

Another test with another code:

Code (glbasic) Select


_______________________________________
*** Configuration: IPHONE ***
precompiling:
GPC - GLBasic Precompiler V.6.922 SN:b446a441 - 3D, NET
Wordcount:125 commands
compiling:
arch:
/cygdrive/q/Compiler/platform/iPhone/bin/arm-apple-darwin9-libtool: object: gpc_tempg.o truncated or malformed object (offset field of section 4 in LC_SEGMENT command 0 extends past the end of the file)
*** FATAL ERROR - Please post this output in the forum
_______________________________________
*** Finished ***
Elapsed: 3.7 sec. Time: 22:01
Build: 0 succeeded.
*** 1 FAILED ***
Vote Cthulhu! Because the stars are right!!!!
Ia Ia Cthulhu F' tang!

MrTAToad

Are you using the latest version of V8 ?

I get :

_______________________________________
Code (glbasic) Select
*** Configuration: GP2X-WIZ ***
precompiling:
GPC - GLBasic Precompiler V.6.973 SN:c5e44a33 - 3D, NET
Wordcount:81 commands
compile+link:
success
_______________________________________
*** Finished ***
Elapsed: 4.3 sec. Time: 21:19
Build: 1 succeeded.

Ian Price

I'm using Windows 7 Home Premium 64-Bit, and have been for the last 8 months, without any problems (I identified a problem in the early days, but Gernot fixed that).
I came. I saw. I played.

MrTAToad


Ian Price

QuoteMinGW isn't installed, is it ?
Not sure who you are asking MrTAToad, but MinGW isn't installed on my machine at the moment. I only ever needed it on my old machine for updating BlitzMax modules etc.
I came. I saw. I played.

kaotiklabs

Yes, I´m using the last v8 beta update, but this has happened to me with all v7 too.
I don´t have mingw either.

this is a link to an old post with the same win7 64 problems...
http://www.glbasic.com/forum/index.php?topic=3886.msg28392#msg28392

And what´s more, this happens to me always, I can´t compile any code for iPhone but error codes usually differs.

And as I now you will ask for a small code sample..., look this:

Code (glbasic) Select
SETSCREEN 480, 320, 1

PRINT "Hello world\n", 200, 140
SHOWSCREEN

END


Error output:
Code (glbasic) Select

_______________________________________
*** Configuration: IPHONE ***
precompiling:
GPC - GLBasic Precompiler V.6.922 SN:b446a441 - 3D, NET
Wordcount:4 commands
compiling:
arch:
/cygdrive/q/Compiler/platform/iPhone/bin/arm-apple-darwin9-libtool: object: gpc_tempg.o truncated or malformed object (offset field of section 2 in LC_SEGMENT command 0 extends past the end of the file)
/cygdrive/q/Compiler/platform/iPhone/bin/arm-apple-darwin9-libtool: object: gpc_temp0.o truncated or malformed object (reloff field plus nreloc field times sizeof(struct relocation_info) of section 4 in LC_SEGMENT command 0 extends past the end of the file)
*** FATAL ERROR - Please post this output in the forum
_______________________________________
*** Finished ***
Elapsed: 2.9 sec. Time: 00:11
Build: 0 succeeded.
*** 1 FAILED ***


As I stated, I think is not glbasic fault but something must be interfering with.
Vote Cthulhu! Because the stars are right!!!!
Ia Ia Cthulhu F' tang!

kaotiklabs


Problems arise only when compiling for iphone ;)

*** Configuration: GP2X-WIZ ***

Quote from: MrTAToad on 2010-Jul-14
_______________________________________
Code (glbasic) Select
*** Configuration: GP2X-WIZ ***
precompiling:
GPC - GLBasic Precompiler V.6.973 SN:c5e44a33 - 3D, NET
Wordcount:81 commands
compile+link:
success
_______________________________________
*** Finished ***
Elapsed: 4.3 sec. Time: 21:19
Build: 1 succeeded.

Vote Cthulhu! Because the stars are right!!!!
Ia Ia Cthulhu F' tang!

MrTAToad

QuoteNot sure who you are asking MrTAToad, but MinGW isn't installed on my machine at the moment. I only ever needed it on my old machine for updating BlitzMax modules etc.
I knew you wouldn't have it :)

I dont know why its saying there is a malformed object - perhaps it may be worth clearing out the glbasic stuff in %temp%.  And dont run it under compatability mode...
Its possible one or more files is corrupt for some reason.

I get :

Quote*** Configuration: IPHONE ***
precompiling:
GPC - GLBasic Precompiler V.6.973 SN:c5e44a33 - 3D, NET
Wordcount:4 commands
compiling:
arch:
Creating .app for Test
before copy...
...build the Project in: C:\Users\Nicholas\GLBasic\Test Programs\Test\XCode on Mac,
   then compile and release.
success
_______________________________________
*** Finished ***
Elapsed: 3.8 sec. Time: 00:06
Build: 1 succeeded.

Kitty Hello



François Vanzeveren

#12
I installed version 8.006 and got the same issue as described in the first post.

Also, on my Windows 7 64bits, when I asked to update GLBasic, it detects a new version. When I confirm to do the update, GLBasic just quits and the GLBAsic Update Manager Window never opens. It is therefore impossible for me to update to the lastest version. And this problem occured with GLBasic 7 and 8.

Regards

François

MrTAToad

Have a look in System Events to see if any reason is detailed there.

Cant think why it would quit though - I haven't had a problem with V7 or later at all in that regard, unless its due to the fact that you aren't running Windows 7 in English  :S

It cant be an MFC problem as the program wouldn't run at all otherwise.

I was going to see what happens with a fresh install of Windows 7 x64 - but VB wont let me :(

kaotiklabs

I can nearly confirm that with a fresh copy should work perfectly.
The problem arise when you install a lot of developing tools, that´s why I believe it must be something interfering with the compiler.
Probably paths?
Vote Cthulhu! Because the stars are right!!!!
Ia Ia Cthulhu F' tang!