GLBasic forum

Main forum => GLBasic - en => Topic started by: François Vanzeveren on 2010-Jul-14

Title: GLBasic under Windows 7 64bits Home Edition - g++.exe crashes
Post by: François Vanzeveren on 2010-Jul-14
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
_______________________________________

Title: Re: GLBasic under Windows 7 64bits Home Edition - g++.exe crashes
Post by: kaotiklabs on 2010-Jul-14
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 ***




Title: Re: GLBasic under Windows 7 64bits Home Edition - g++.exe crashes
Post by: kaotiklabs on 2010-Jul-14
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 ***
Title: Re: GLBasic under Windows 7 64bits Home Edition - g++.exe crashes
Post by: MrTAToad on 2010-Jul-14
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.
Title: Re: GLBasic under Windows 7 64bits Home Edition - g++.exe crashes
Post by: Ian Price on 2010-Jul-14
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).
Title: Re: GLBasic under Windows 7 64bits Home Edition - g++.exe crashes
Post by: MrTAToad on 2010-Jul-14
MinGW isn't installed, is it ?
Title: Re: GLBasic under Windows 7 64bits Home Edition - g++.exe crashes
Post by: Ian Price on 2010-Jul-14
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.
Title: Re: GLBasic under Windows 7 64bits Home Edition - g++.exe crashes
Post by: kaotiklabs on 2010-Jul-15
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 (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.
Title: Re: GLBasic under Windows 7 64bits Home Edition - g++.exe crashes
Post by: kaotiklabs on 2010-Jul-15

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.

Title: Re: GLBasic under Windows 7 64bits Home Edition - g++.exe crashes
Post by: MrTAToad on 2010-Jul-15
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.
Title: Re: GLBasic under Windows 7 64bits Home Edition - g++.exe crashes
Post by: Kitty Hello on 2010-Jul-15
So, MrT you're on 64 bits?
Title: Re: GLBasic under Windows 7 64bits Home Edition - g++.exe crashes
Post by: MrTAToad on 2010-Jul-15
Yes
Title: Re: GLBasic under Windows 7 64bits Home Edition - g++.exe crashes
Post by: François Vanzeveren on 2010-Jul-20
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
Title: Re: GLBasic under Windows 7 64bits Home Edition - g++.exe crashes
Post by: MrTAToad on 2010-Jul-20
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 :(
Title: Re: GLBasic under Windows 7 64bits Home Edition - g++.exe crashes
Post by: kaotiklabs on 2010-Jul-20
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?
Title: Re: GLBasic under Windows 7 64bits Home Edition - g++.exe crashes
Post by: MrTAToad on 2010-Jul-20
We know that MinGW does.  However, it shouldn't affect the update system.  Unless its some security problem like not running as an Administrator...

I hope to be able to install W7 x64 on Parallels...

Got Windows 7 x64 install and now downloading V8 beta (no Window updates or anything like that).
Visual Studio 2005 Redist is being installed
Finished installing, now checking for updates.
Update okay.
3D Light demo works okay in Windows.
Compiling for Mac (pointer is flickering like anything :) ) but compiling was successful.

All is fine.

I do find that after first installation, that the IDE starts off very small...

Going to see what happens with the Guest account.

Each user has their own samples...

Update is rather slow, but comes okay, but need to check it again.

Compiling is fine,  Cell shading demo is fine.

Now uninstalling and reverting back to V8.006 on Guest account.  Selecting German this time :)

Found a problem :) :  Updates in Guest accounts terminate the program...
Title: Re: GLBasic under Windows 7 64bits Home Edition - g++.exe crashes
Post by: François Vanzeveren on 2010-Jul-21
Hello, I found nothing special in the System Viewer. But maybe i missed it. Is there anything special I should be looking for?

With regard to the fresh installation, I already did it numerous times without success.

Finally, the only other developpement tool I have is Runtime Revolution.

I have Windows 7 64bits Home Edition in French and I install GLBasic in English.

I am getting mad! :rant:

BTW: thank you for the time spent to help me  :good:
Title: Re: GLBasic under Windows 7 64bits Home Edition - g++.exe crashes
Post by: MrTAToad on 2010-Jul-21
Are you using a standard account ?  Thats the only time there is a problem - and that's only with updating.

QuoteIs there anything special I should be looking for?
Any mention of GLBasic...

Might be worth installing x64 in French and see what happens :)  Especially as you've done a fresh installation.
Title: Re: GLBasic under Windows 7 64bits Home Edition - g++.exe crashes
Post by: Schranz0r on 2010-Jul-21
Have no problems with it, using Win7 64Bit, too!
Title: Re: GLBasic under Windows 7 64bits Home Edition - g++.exe crashes
Post by: backslider on 2010-Jul-21
Yes im using it, too! No problems with

Win 7 Professional 64Bit
Title: Re: GLBasic under Windows 7 64bits Home Edition - g++.exe crashes
Post by: François Vanzeveren on 2010-Jul-21
Hello all,

the issue regarding the update is solved. When I run GLBasic as administrator, GLBasic update works.

I am now running version 8.036

But the compilation for GP2X-WIZ still fails because g++.exe crashes.

Compilation for GP2X F100/F200 and win32 works fine
Code (glbasic) Select


_______________________________________
*** Configuration: GP2X ***
precompiling:
GPC - GLBasic Precompiler V.6.973 SN:126b5585 - 2D, WIN32
Wordcount:0 commands
compile+link:
Q:\Compiler\platform\GP2X\Lib\libGLBasicGP2X.a(gf_sockets.o): In function `netGetLocalIPs(int*, char const*)':
gf_sockets.cpp:(.text+0xaa4): warning: Using 'getaddrinfo' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
Q:\Compiler\platform\GP2X\Lib\libGLBasicGP2X.a(gf_sockets.o): In function `netAddress(char const*, unsigned short)':
gf_sockets.cpp:(.text+0xd1c): warning: Using 'gethostbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
success
Adding mmuhack.o to project: C:\Users\fvanzeveren\Documents\GLBasic\test\test.app
_______________________________________

_______________________________________
*** Configuration: GP2X-WIZ ***
precompiling:
GPC - GLBasic Precompiler V.6.973 SN:126b5585 - 2D, WIN32
Wordcount:0 commands
compile+link:
     17 [main] g++ 3392 fork: child -1 - died waiting for longjmp before initialization, retry 0, exit code 0xC0000005, errno 11
7911582 [main] g++ 3392 fork: child -1 - died waiting for longjmp before initialization, retry 0, exit code 0xC0000005, errno 11
14128210 [main] g++ 3392 fork: child -1 - died waiting for longjmp before initialization, retry 0, exit code 0xC0000005, errno 11
22196366 [main] g++ 3392 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
_______________________________________

_______________________________________
*** Configuration: WIN32 ***
precompiling:
GPC - GLBasic Precompiler V.6.973 SN:126b5585 - 2D, WIN32
Wordcount:0 commands
compiling:

linking:
success
_______________________________________
*** Finished ***
Elapsed: 51.0 sec. Time: 11:59
Build: 2 succeeded.
*** 1 FAILED ***


QUESTION: is it normal that when compiling, GLBasic create a new local hard drive (Q:)? When double clicking on the hard drive Q: icon, it opens the installation directory of GLBasic.

Here is what I found in the system events viewers
Code (glbasic) Select

Nom de l'application défaillante g++.exe, version : 0.0.0.0, horodatage : 0x48545258
Nom du module défaillant : cygwin1.dll, version : 1005.25.0.0, horodatage : 0x48515e73
Code d'exception : 0xc0000005
Décalage d'erreur : 0x00016265
ID du processus défaillant : 0x15d8
Heure de début de l'application défaillante : 0x01cb28bb5bde4c2b
Chemin d'accès de l'application défaillante : Q:\Compiler\platform\WIZ\Bin\g++.exe
Chemin d'accès du module défaillant: Q:\Compiler\platform\WIZ\Bin\cygwin1.dll
ID de rapport : 9996bded-94ae-11df-a51b-506313fd0a76


Regards

François
Title: Re: GLBasic under Windows 7 64bits Home Edition - g++.exe crashes
Post by: MrTAToad on 2010-Jul-21
That GP2X problem is something to do with the network commands.

Have you got a code example ? I've tried :

Code (glbasic) Select
DEBUG NETGETIP$() and
Code (glbasic) Select
DEBUG SOCK_GETIP("127.0.0.1")

But thats okay, so it must be another command that causes the problem

Quoteis it normal that when compiling, GLBasic create a new local hard drive (Q:)?
Yes - its needed for Cywin...

Unfortunately I cant install x64 in French as I only have the English version :(
Title: Re: GLBasic under Windows 7 64bits Home Edition - g++.exe crashes
Post by: MrTAToad on 2010-Jul-21
Got the same compiler warnigns with GP32 compiling - but it doesn't crash.  So, we'll trying it in a standard account.

Those warning messages can be ignored...