Compiling dev branch

General help: new users, installing the Ecere SDK, using the IDE to compile and run applications.
Post Reply
samsam598
Posts: 212
Joined: Thu Apr 14, 2011 9:44 pm

Compiling dev branch

Post by samsam598 »

Greetings!

I failed to build the most recent dev branch.Below error message:

Code: Select all

C:\person\ecere\ecere>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...
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
   --------------------   ------   -----------   -----------
   1510413 ->    695309   46.03%    win32/pe     extract.exe

Packed 1 file.
Building eAR command line tool...
Building 2nd stage compiler
Building 2nd stage libec...
C:\person\ecere\ecere\compiler\libec\src\lexer.ec:1450:28: warning: incompatible
 expression yy_ec[((unsigned int)(unsigned char)*yy_cp)] (int); expected byte
C:\person\ecere\ecere\compiler\libec\src\lexer.ec:1460:13: warning: incompatible
 expression yy_meta[(unsigned int)yy_c] (int); expected byte
C:\person\ecere\ecere\compiler\libec\src\lexer.ec:2628:27: warning: incompatible
 expression (*yy_cp ? yy_ec[((unsigned int)(unsigned char)*yy_cp)] : (unsigned c
har)1) (int); expected byte
C:\person\ecere\ecere\compiler\libec\src\lexer.ec:2638:12: warning: incompatible
 expression yy_meta[(unsigned int)yy_c] (int); expected byte
C:\person\ecere\ecere\compiler\libec\src\lexer.ec:2673:11: warning: incompatible
 expression yy_meta[(unsigned int)yy_c] (int); expected byte
C:\person\ecere\ecere\compiler\libec\src\lexer.ec:429:26: warning: incompatible
expression c (int); expected char
C:\person\ecere\ecere\compiler\libec\src\lexer.ec:437:29: warning: incompatible
expression c (int); expected char
C:\person\ecere\ecere\compiler\libec\obj\release.win32\ec.main.ec:605: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...
Building EDA...
Building Ecere Data Access layer...
Building EDASQLite driver...
ld: Dwarf Error: Offset (6532) greater than or equal to .debug_abbrev size (718)
.
../../../deps/libffi-3.0.11/i686-pc-mingw32/.libs/libffi.a(ffi.o):ffi.c:(.text+0
x34a): undefined reference to `__chkstk_ms'
ld: Dwarf Error: found dwarf version '0', this reader only handles version 2 and
 3 information.
../../../deps/libffi-3.0.11/i686-pc-mingw32/.libs/libffi.a(ffi.o):ffi.c:(.text+0
x3ee): undefined reference to `__chkstk_ms'
ld: Dwarf Error: found dwarf version '20039', this reader only handles version 2
 and 3 information.
../../../deps/libffi-3.0.11/i686-pc-mingw32/.libs/libffi.a(ffi.o):ffi.c:(.text+0
x3f7): undefined reference to `__chkstk_ms'
ld: Dwarf Error: found dwarf version '8259', this reader only handles version 2
and 3 information.
../../../deps/libffi-3.0.11/i686-pc-mingw32/.libs/libffi.a(ffi.o):ffi.c:(.text+0
x86d): undefined reference to `__chkstk_ms'
ld: Dwarf Error: found dwarf version '11830', this reader only handles version 2
 and 3 information.
../../../deps/libffi-3.0.11/i686-pc-mingw32/.libs/libffi.a(ffi.o):ffi.c:(.text+0
x8b3): undefined reference to `__chkstk_ms'
ld: Dwarf Error: found dwarf version '11777', this reader only handles version 2
 and 3 information.
../../../deps/libffi-3.0.11/i686-pc-mingw32/.libs/libffi.a(ffi.o):ffi.c:(.text+0
xc8d): more undefined references to `__chkstk_ms' follow
mingw32-make[2]: *** [obj/release.win32/EDASQLite.dll] Error 1
mingw32-make[1]: *** [all] Error 2
mingw32-make: *** [eda] Error 2
Could you please help?

Thanks and best regards,
Sam
jerome
Site Admin
Posts: 608
Joined: Sat Jan 16, 2010 11:16 pm

Re: Compiling dev branch

Post by jerome »

Hi Sam!

Thanks for reporting this :)
I pre-built this new libffi dependency for Windows, because it wouldn't build with the provided makefile without MSYS. It turned out that a version compiled with GCC 4.6.2 wouldn't work with an older GCC I suspect you are using (e.g. 4.4.0 that came pre-packaged with Ecere 0.44 Ryoanji). Also I realized it had debug information even though I told the configure script --disable-debug.

Now at first I was thinking of building it with GCC 4.4.0, which worked fine with 4.6.2...
But now I managed to make a libffi Ecere project which is even better.
(I love our build system! :D)

So I cleaned up all the junk in there and libffi.a will now always be built as part of the sdk build process.

See commit detail

Thanks again! :)

Cheers,

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

Re: Compiling dev branch

Post by samsam598 »

Thanks.It's fixed.
Post Reply