[Solved]Failed to build today's snapshot

Help understanding and fixing compiling errors.
Post Reply
samsam598
Posts: 212
Joined: Thu Apr 14, 2011 9:44 pm

[Solved]Failed to build today's snapshot

Post by samsam598 »

1.I've reported a bug regarding the multiple forms causes IDE freezing and looking forward to the early fix:
http://ecere.com/mantis/view.php?id=602

2.As subjected,I failed to build the latest snapshot.Error message is as below:

Code: Select all


C:\person\ecere\today>set path=c:\person\codelite\gcc\bin;c:\person\codelite\gcc
\include;c:\person\codelite\gcc\lib;c:\person\codelite\gcc\include\gl;C:\person\
lovedev\tool;C:\OraHome1\bin;C:\Program Files\Oracle\jre\1.1.7\bin;C:\Windows\sy
stem32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell
\v1.0\;C:\Program Files\Microsoft Application Virtualization Client;C:\Program F
iles\NetManage\RUMBA\System;C:\Program Files\NetManage\RUMBA\;C:\Program Files\Q
uickTime\QTSystem\;C:\Program Files\Intel\DMIX;F:\Apps\INFORMX\Bin;

C:\person\ecere\today>mingw32-make
Bootstrapping eC compiling tools...
Building ecere...
Building ec...
Building ecp...
Building ecc...
Building ecs...
All done!
Building dependencies...
Building FreeType...
Building libjpeg...
Building libpng...
Building libungif...
Building zlib...
Building 2nd stage ecere...
C:\person\ecere\today\ecere\src\sys\Archive.ec:1:1: error: Couldn't open obj/rel
ease.win32\Archive.sym
C:\person\ecere\today\ecere\src\sys\Archive.ec:6:1: error: Couldn't open obj/rel
ease.win32\System.sym
C:\person\ecere\today\ecere\src\sys\Archive.ec:6:1: error: Couldn't open obj/rel
ease.win32\System.sym
C:\person\ecere\today\ecere\src\sys\Archive.ec:50:19: warning: FileOpen undefine
d; assuming extern returning int
C:\person\ecere\today\ecere\src\sys\Archive.ec:50:36: error: unresolved identifi
er read
C:\person\ecere\today\ecere\src\sys\Archive.ec:50:19: warning: incompatible expr
ession ::FileOpen(path, read) (uint); expected File
C:\person\ecere\today\ecere\src\sys\Archive.ec:51:10: warning: incompatible expr
ession file (File); expected bool
C:\person\ecere\today\ecere\src\sys\Archive.ec:54:10: warning: FileGetStats unde
fined; assuming extern returning int
C:\person\ecere\today\ecere\src\sys\Archive.ec:64:11: warning: EARFileSystem::Op
enArchive undefined; assuming extern returning int
C:\person\ecere\today\ecere\src\sys\Archive.ec:64:11: warning: incompatible expr
ession EARFileSystem::OpenArchive(fileName, flags) (uint); expected ecere::sys::
Archive
C:\person\ecere\today\ecere\src\sys\Archive.ec:70:11: warning: EARFileSystem::Qu
erySize undefined; assuming extern returning int
C:\person\ecere\today\ecere\src\sys\Archive.ec:0:0: warning: eSystem_RegisterCla
ss undefined; assuming extern returning int
C:\person\ecere\today\ecere\src\sys\Archive.ec:0:0: error: unresolved identifier
 enumClass
C:\person\ecere\today\ecere\src\sys\Archive.ec:0:0: error: unresolved identifier
 publicAccess
C:\person\ecere\today\ecere\src\sys\Archive.ec:0:0: error: unresolved identifier
 publicAccess
C:\person\ecere\today\ecere\src\sys\Archive.ec:0:0: warning: incompatible expres
sion class (int); expected ecere::com::Class
C:\person\ecere\today\ecere\src\sys\Archive.ec:0:0: warning: eEnum_AddFixedValue
 undefined; assuming extern returning int
C:\person\ecere\today\ecere\src\sys\Archive.ec:0:0: error: unresolved identifier
 bitClass
C:\person\ecere\today\ecere\src\sys\Archive.ec:0:0: error: unresolved identifier
 publicAccess
C:\person\ecere\today\ecere\src\sys\Archive.ec:0:0: error: unresolved identifier
 publicAccess
C:\person\ecere\today\ecere\src\sys\Archive.ec:0:0: warning: incompatible expres
sion class (int); expected ecere::com::Class
C:\person\ecere\today\ecere\src\sys\Archive.ec:0:0: warning: eClass_AddBitMember
 undefined; assuming extern returning int
C:\person\ecere\today\ecere\src\sys\Archive.ec:0:0: error: unresolved identifier
 publicAccess
C:\person\ecere\today\ecere\src\sys\Archive.ec:0:0: error: unresolved identifier
 publicAccess
C:\person\ecere\today\ecere\src\sys\Archive.ec:0:0: error: unresolved identifier
 publicAccess
C:\person\ecere\today\ecere\src\sys\Archive.ec:0:0: error: unresolved identifier
 normalClass
C:\person\ecere\today\ecere\src\sys\Archive.ec:0:0: error: unresolved identifier
 publicAccess
C:\person\ecere\today\ecere\src\sys\Archive.ec:0:0: error: unresolved identifier
 publicAccess
C:\person\ecere\today\ecere\src\sys\Archive.ec:0:0: warning: incompatible expres
sion class (int); expected ecere::com::Class
C:\person\ecere\today\ecere\src\sys\Archive.ec:0:0: warning: eClass_AddVirtualMe
thod undefined; assuming extern returning int
C:\person\ecere\today\ecere\src\sys\Archive.ec:0:0: error: unresolved identifier
 publicAccess
C:\person\ecere\today\ecere\src\sys\Archive.ec:0:0: error: unresolved identifier
 publicAccess
C:\person\ecere\today\ecere\src\sys\Archive.ec:0:0: error: unresolved identifier
 publicAccess
C:\person\ecere\today\ecere\src\sys\Archive.ec:0:0: error: unresolved identifier
 publicAccess
C:\person\ecere\today\ecere\src\sys\Archive.ec:0:0: error: unresolved identifier
 publicAccess
C:\person\ecere\today\ecere\src\sys\Archive.ec:0:0: error: unresolved identifier
 publicAccess
C:\person\ecere\today\ecere\src\sys\Archive.ec:0:0: error: unresolved identifier
 publicAccess
C:\person\ecere\today\ecere\src\sys\Archive.ec:0:0: warning: eClass_AddProperty
undefined; assuming extern returning int
C:\person\ecere\today\ecere\src\sys\Archive.ec:0:0: error: unresolved identifier
 publicAccess
C:\person\ecere\today\ecere\src\sys\Archive.ec:0:0: warning: incompatible expres
sion (void *)0 (void *); expected int
C:\person\ecere\today\ecere\src\sys\Archive.ec:0:0: error: unresolved identifier
 publicAccess
C:\person\ecere\today\ecere\src\sys\Archive.ec:0:0: warning: incompatible expres
sion (void *)0 (void *); expected int
C:\person\ecere\today\ecere\src\sys\Archive.ec:0:0: error: unresolved identifier
 publicAccess
C:\person\ecere\today\ecere\src\sys\Archive.ec:0:0: warning: incompatible expres
sion (void *)0 (void *); expected int
C:\person\ecere\today\ecere\src\sys\Archive.ec:0:0: error: unresolved identifier
 normalClass
C:\person\ecere\today\ecere\src\sys\Archive.ec:0:0: error: unresolved identifier
 publicAccess
C:\person\ecere\today\ecere\src\sys\Archive.ec:0:0: error: unresolved identifier
 publicAccess
C:\person\ecere\today\ecere\src\sys\Archive.ec:0:0: warning: incompatible expres
sion class (int); expected ecere::com::Class
C:\person\ecere\today\ecere\src\sys\Archive.ec:0:0: error: unresolved identifier
 publicAccess
C:\person\ecere\today\ecere\src\sys\Archive.ec:0:0: error: unresolved identifier
 publicAccess
C:\person\ecere\today\ecere\src\sys\Archive.ec:0:0: error: unresolved identifier
 publicAccess
C:\person\ecere\today\ecere\src\sys\Archive.ec:0:0: error: unresolved identifier
 publicAccess
C:\person\ecere\today\ecere\src\sys\Archive.ec:0:0: error: unresolved identifier
 publicAccess
C:\person\ecere\today\ecere\src\sys\Archive.ec:0:0: error: unresolved identifier
 publicAccess
C:\person\ecere\today\ecere\src\sys\Archive.ec:0:0: error: unresolved identifier
 publicAccess
C:\person\ecere\today\ecere\src\sys\Archive.ec:0:0: error: unresolved identifier
 publicAccess
C:\person\ecere\today\ecere\src\sys\Archive.ec:0:0: warning: eClass_AddMethod un
defined; assuming extern returning int
C:\person\ecere\today\ecere\src\sys\Archive.ec:0:0: error: unresolved identifier
 publicAccess
C:\person\ecere\today\ecere\src\sys\Archive.ec:0:0: warning: eSystem_RegisterFun
ction undefined; assuming extern returning int
C:\person\ecere\today\ecere\src\sys\Archive.ec:0:0: error: unresolved identifier
 publicAccess
C:\person\ecere\today\ecere\src\sys\Archive.ec:0:0: error: unresolved identifier
 publicAccess
C:\person\ecere\today\ecere\src\sys\Archive.ec:0:0: warning: incompatible expres
sion (void *)0 (void *); expected int
C:\person\ecere\today\ecere\src\sys\Archive.ec:0:0: warning: incompatible expres
sion (void *)0 (void *); expected int
C:\person\ecere\today\ecere\src\sys\Archive.ec:0:0: warning: incompatible expres
sion (void *)0 (void *); expected int
mingw32-make[1]: *** [obj/release.win32/Archive.c] Error 1
mingw32-make: *** [ecere] Error 2

C:\person\ecere\today>pause
请按任意键继续. . .
Last edited by samsam598 on Thu Sep 08, 2011 12:25 am, edited 1 time in total.
jerome
Site Admin
Posts: 608
Joined: Sat Jan 16, 2010 11:16 pm

Re: Failed to build today's snapshot

Post by jerome »

Hi Sam,

1. I will take a look at the bug. Thank you!
EDIT: I've added a request for feedback for that bug, I can't reproduce it :( Please help.

2. Sorry about that, I broke the build :|
Redj fixed it for me and I just pushed it on github.

Regards,

Jerome
jerome
Site Admin
Posts: 608
Joined: Sat Jan 16, 2010 11:16 pm

Re: Failed to build today's snapshot

Post by jerome »

Bug 602 is fixed :D
samsam598
Posts: 212
Joined: Thu Apr 14, 2011 9:44 pm

Re: Failed to build today's snapshot

Post by samsam598 »

Sorry,my copy of the latest snapshot (I tried from snapshot 'ecere/ide: Fix for 'Setting isModal = true on a form...' to snapshot 'compiler/ecs: Double free memory fix (comment') could not get built successfully except the one ''Setting isModal = true on a form...'.Error:

Code: Select all

C:\person\ecere\today>mingw32-make
Bootstrapping eC compiling tools...
Building ecere...
Building ec...
Building ecp...
Building ecc...
Building ecs...
All done!
Building dependencies...
Building FreeType...
Building libjpeg...
Building libpng...
Building libungif...
Building zlib...
Building 2nd stage ecere...
Building eAR command line tool...
mingw32-make[2]: *** [obj/release.win32/ear.sym] Error 255
mingw32-make[1]: *** [nores] Error 2
mingw32-make: *** [ecere] Error 2
And then Windows popups error dialog and informed that ecp.exe stopped working.

Please help.Thanks.
jerome
Site Admin
Posts: 608
Joined: Sat Jan 16, 2010 11:16 pm

Re: Failed to build today's snapshot

Post by jerome »

Hi Sam,

Sorry you're having trouble again building the snapshot :(

I'm a bit puzzled by that error, it looks as if ecp is crashing, but I can't seem to reproduce this behavior here.

One thing you might run into however is a dependency on libintl.h for building Documentor.
You can get the MinGW libintl dev package from here.

EDIT: You will also need the libiconv and libintl shared libraries to run the internationalized applications (e.g. Documentor). We will try to bundle our own gettext implementation in the future so we get rid of those dependencies :)

Also please make sure you have a recent version of MinGW make, 3.80+ should be fine.

I'll see if I can reproduce the ecp segmentation fault within ear.

EDIT: I still can't manage to reproduce it :S
Could I suggest doing a make clean, and a make again? (Or trying to build it from a new clean directory?) Also you could try doing a 'cd' to sdk\ear\cmd , and running 'make' there to see if it really crashes building ear (You should see the commands being executed as well) Thanks!

Regards,

Jerome
samsam598
Posts: 212
Joined: Thu Apr 14, 2011 9:44 pm

Re: Failed to build today's snapshot

Post by samsam598 »

Thanks for the help.I tried to build ear/cmd,got below error:

Code: Select all


C:\person\ecere\today\ear\cmd>set path=c:\person\codelite\gcc\bin;c:\person\code
lite\gcc\include;c:\person\codelite\gcc\lib;c:\person\codelite\gcc\include\gl;C:
\person\lovedev\tool;C:\OraHome1\bin;C:\Program Files\Oracle\jre\1.1.7\bin;C:\Wi
ndows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPo
werShell\v1.0\;C:\Program Files\Microsoft Application Virtualization Client;C:\P
rogram Files\NetManage\RUMBA\System;C:\Program Files\NetManage\RUMBA\;C:\Program
 Files\QuickTime\QTSystem\;C:\Program Files\Intel\DMIX;F:\Apps\INFORMX\Bin;

C:\person\ecere\today\ear\cmd>make clean

C:\person\ecere\today\ear\cmd>make
make: *** No rule to make target `../extract/obj/release.win32/extract.exe', nee
ded by `obj/release.win32/ear.exe'.  Stop.

C:\person\ecere\today\ear\cmd>pause
请按任意键继续. . .
I tried to build under sdk/ear:

Code: Select all


C:\person\ecere\today\ear>set path=c:\person\codelite\gcc\bin;c:\person\codelite
\gcc\include;c:\person\codelite\gcc\lib;c:\person\codelite\gcc\include\gl;C:\per
son\lovedev\tool;C:\OraHome1\bin;C:\Program Files\Oracle\jre\1.1.7\bin;C:\Window
s\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerS
hell\v1.0\;C:\Program Files\Microsoft Application Virtualization Client;C:\Progr
am Files\NetManage\RUMBA\System;C:\Program Files\NetManage\RUMBA\;C:\Program Fil
es\QuickTime\QTSystem\;C:\Program Files\Intel\DMIX;F:\Apps\INFORMX\Bin;

C:\person\ecere\today\ear>make clean

C:\person\ecere\today\ear>make
Building self-extract tool...
make[1]: *** [obj/release.win32/extract.sym] Error -1073741819
make: *** [all] Error 2

C:\person\ecere\today\ear>pause
请按任意键继续. . .
jerome
Site Admin
Posts: 608
Joined: Sat Jan 16, 2010 11:16 pm

Re: Failed to build today's snapshot

Post by jerome »

Dear Sam,

I figured out the build problem! It was happening on my computer with MinGW's GCC 3.4.5 installed, and then I remember that bug I was fighting with 3 months ago, at that time it was a problem with 4.5. For whatever reason, the problem doesn't happen with GCC 4.4.0.

I had reported a MinGW bug which is exactly what was happening to you.

I had put in a temporary workaround, which I have recently overwritten by mistake.

The work around is back in the latest commit, so you should be able to pull and successfully build again. Sorry about the inconvenience.

Please make sure you either make clean the entire sdk directory, or do a make clean from sdk/compiler/bootstrap, so that this change takes effect.

Regards,

Jerome
samsam598
Posts: 212
Joined: Thu Apr 14, 2011 9:44 pm

Re: Failed to build today's snapshot

Post by samsam598 »

Thanks for your great help.But failed on the last step:

Code: Select all


C:\person\ecere\today>set path=c:\person\codelite\gcc\bin;c:\person\codelite\gcc
\include;c:\person\codelite\gcc\lib;c:\person\codelite\gcc\include\gl;C:\person\
lovedev\tool;C:\OraHome1\bin;C:\Program Files\Oracle\jre\1.1.7\bin;C:\Windows\sy
stem32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell
\v1.0\;C:\Program Files\Microsoft Application Virtualization Client;C:\Program F
iles\NetManage\RUMBA\System;C:\Program Files\NetManage\RUMBA\;C:\Program Files\Q
uickTime\QTSystem\;C:\Program Files\Intel\DMIX;F:\Apps\INFORMX\Bin;

C:\person\ecere\today>make
Bootstrapping eC compiling tools...
Building ecere...
Building ec...
Building ecp...
Building ecc...
Building ecs...
All done!
Building dependencies...
Building FreeType...
Building libjpeg...
Building libpng...
Building libungif...
Building zlib...
Building 2nd stage ecere...
Building eAR command line tool...
Building Vanilla Ecere...
Building ear...
Building self-extract tool...
                       Ultimate Packer for eXecutables
                          Copyright (C) 1996 - 2010
UPX 3.07w       Markus Oberhumer, Laszlo Molnar & John Reiser   Sep 08th 2010

        File size         Ratio      Format      Name
   --------------------   ------   -----------   -----------
   1437621 ->    665525   46.29%    win32/pe     extract.exe

Packed 1 file.
Building eAR command line tool...
Building 2nd stage compiler
Building 2nd stage libec...
C:\person\ecere\today\compiler\libec\src\expression.ec:3004:12: warning: incompa
tible expression yystate (int); expected short
C:\person\ecere\today\compiler\libec\src\grammar.ec:11075:12: warning: incompati
ble expression yystate (int); expected short
C:\person\ecere\today\compiler\libec\src\lexer.ec:1402:28: warning: incompatible
 expression yy_ec[((unsigned int)(unsigned char)*yy_cp)] (int); expected byte
C:\person\ecere\today\compiler\libec\src\lexer.ec:1412:13: warning: incompatible
 expression yy_meta[(unsigned int)yy_c] (int); expected byte
C:\person\ecere\today\compiler\libec\src\lexer.ec:2570:27: warning: incompatible
 expression (*yy_cp ? yy_ec[((unsigned int)(unsigned char)*yy_cp)] : (unsigned c
har)1) (int); expected byte
C:\person\ecere\today\compiler\libec\src\lexer.ec:2580:12: warning: incompatible
 expression yy_meta[(unsigned int)yy_c] (int); expected byte
C:\person\ecere\today\compiler\libec\src\lexer.ec:2615:11: warning: incompatible
 expression yy_meta[(unsigned int)yy_c] (int); expected byte
C:\person\ecere\today\compiler\libec\src\lexer.ec:427:26: warning: incompatible
expression c (int); expected char
C:\person\ecere\today\compiler\libec\src\lexer.ec:435:29: warning: incompatible
expression c (int); expected char
C:\person\ecere\today\compiler\libec\src\type.ec:3378:12: warning: incompatible
expression yystate (int); expected short
C:\person\ecere\today\compiler\libec\obj\release.win32\ec.main.ec:571:1: warning
: Redefinition of sourceFileStack (defining as char[10][MAX_LOCATION], already d
efined as char[MAX_INCLUDE_DEPTH][MAX_LOCATION])
Building 2nd stage ecp...
Building 2nd stage ecc...
Building 2nd stage ecs...
Building eC Core Runtime...
Enabling 2nd stage binaries...
Building IDE...
Building epj2make...
Building Documentor...
C:\person\ecere\today\documentor\obj\release.win32\documentor.main.ec:1:1: error
: Couldn't open obj/release.win32\documentor.main.sym
make[1]: *** [obj/release.win32/documentor.main.c] Error 1
make: *** [documentor] Error 2

C:\person\ecere\today>pause
请按任意键继续. . .
jerome
Site Admin
Posts: 608
Joined: Sat Jan 16, 2010 11:16 pm

Re: Failed to build today's snapshot

Post by jerome »

Hi Sam,

As discussed above, you will need to download and install:

http://sourceforge.net/projects/mingw/f ... a/download (The missing include files which is why you're having this error)

as well as the libintl runtime libraries:

http://sourceforge.net/projects/mingw/f ... a/download

http://sourceforge.net/projects/mingw/f ... a/download

I'm hoping we will get rid of these dependencies soon, as we implement our own gettext functionality.

Regards,

Jerome
samsam598
Posts: 212
Joined: Thu Apr 14, 2011 9:44 pm

Re: Failed to build today's snapshot

Post by samsam598 »

Hi Jerome,

Thank you so much for you great help!
Post Reply