Page 1 of 1

Compile Error using FW17.07, Harbour MinGW

Posted: Wed Sep 06, 2017 8:55 pm
by dmajkic
Where can we find version of harbour and mingw/gcc that is used to build newest FWH?
It looks like there is some missmatch with new nightly Harbour and FWH.

With newest Harbour Nightly and newst FWH, we have these errors:

Code: Select all

c:/fwh3/lib/fivehgc.lib(ACTX.o):ACTX.CPP:(.text+0xe62): undefined reference to `_Unwind_Resume'
c:/fwh3/lib/fivehgc.lib(ACTX.o):ACTX.CPP:(.eh_frame+0x2ab): undefined reference to `__gxx_personality_v0'
c:/fwh3/lib/fivehgc.lib(GDIPFWH.o):GDIPFWH.CPP:(.text+0x438): undefined reference to `_Unwind_Resume'
c:/fwh3/lib/fivehgc.lib(GDIPFWH.o):GDIPFWH.CPP:(.text+0x44c): undefined reference to `_Unwind_Resume'
c:/fwh3/lib/fivehgc.lib(GDIPFWH.o):GDIPFWH.CPP:(.text+0x460): undefined reference to `_Unwind_Resume'
c:/fwh3/lib/fivehgc.lib(GDIPFWH.o):GDIPFWH.CPP:(.text+0x13e5): undefined reference to `_Unwind_Resume'
c:/fwh3/lib/fivehgc.lib(GDIPFWH.o):GDIPFWH.CPP:(.text+0x13f9): undefined reference to `_Unwind_Resume'
c:/fwh3/lib/fivehgc.lib(GDIPFWH.o):GDIPFWH.CPP:(.text+0x140d): more undefined references to `_Unwind_Resume' follow
c:/fwh3/lib/fivehgc.lib(GDIPFWH.o):GDIPFWH.CPP:(.eh_frame+0xdf): undefined reference to `__gxx_personality_v0'
c:/fwh3/lib/fivehgc.lib(GDIPFWH.o):GDIPFWH.CPP:(.eh_frame$_ZNK7Gdiplus6Bitmap5CloneEv+0x13): undefined reference to `__gxx_personality_v0'
c:/fwh3/lib/fivehgc.lib(GDIPFWH.o):GDIPFWH.CPP:(.eh_frame$_ZN7Gdiplus6Matrix8RotateAtEfRKNS_6PointFENS_11MatrixOrderE+0x13): undefined reference to `__gxx_personality_v0'
c:/fwh3/lib/fivehgc.lib(GDIPFWH.o):GDIPFWH.CPP:(.eh_frame$_ZN7Gdiplus19LinearGradientBrushC1ERKNS_5PointES3_RKNS_5ColorES6_+0x13): undefined reference to `__gxx_personality_v0'
c:/fwh3/lib/fivehgc.lib(GDIPFWH.o):GDIPFWH.CPP:(.eh_frame$_ZNK7Gdiplus19LinearGradientBrush5CloneEv+0x13): undefined reference to `__gxx_personality_v0'
c:/fwh3/lib/fivehgc.lib(GDIPFWH.o):GDIPFWH.CPP:(.eh_frame$_ZN7Gdiplus10SolidBrushC1ERKNS_5ColorE+0x13): more undefined references to `__gxx_personality_v0' follow
c:/fwh3/lib/fivehgc.lib(GDIPLUS.o):GDIPLUS.CPP:(.text+0x4b): undefined reference to `_Unwind_Resume'
c:/fwh3/lib/fivehgc.lib(GDIPLUS.o):GDIPLUS.CPP:(.text+0xb4): undefined reference to `_Unwind_Resume'
c:/fwh3/lib/fivehgc.lib(GDIPLUS.o):GDIPLUS.CPP:(.text+0x10b): undefined reference to `_Unwind_Resume'
c:/fwh3/lib/fivehgc.lib(GDIPLUS.o):GDIPLUS.CPP:(.text+0x2fa): undefined reference to `_Unwind_Resume'
c:/fwh3/lib/fivehgc.lib(GDIPLUS.o):GDIPLUS.CPP:(.text+0x58e): undefined reference to `_Unwind_Resume'
c:/fwh3/lib/fivehgc.lib(GDIPLUS.o):GDIPLUS.CPP:(.text+0x612): more undefined references to `_Unwind_Resume' follow
c:/fwh3/lib/fivehgc.lib(GDIPLUS.o):GDIPLUS.CPP:(.eh_frame$_ZN7Gdiplus19LinearGradientBrushC1ERKNS_4RectERKNS_5ColorES6_NS_18LinearGradientModeE+0x13): undefined reference to `__gxx_personality_v0'
c:/fwh3/lib/fivehgc.lib(GDIPLUS.o):GDIPLUS.CPP:(.eh_frame$_ZN7Gdiplus8MetafileC1EP7IStream+0x13): undefined reference to `__gxx_personality_v0'
c:/fwh3/lib/fivehgc.lib(GDIPLUS.o):GDIPLUS.CPP:(.eh_frame$_ZNK7Gdiplus8Metafile5CloneEv+0x13): undefined reference to `__gxx_personality_v0'
c:/fwh3/lib/fivehgc.lib(GDIPLUS.o):GDIPLUS.CPP:(.eh_frame$_ZN7Gdiplus17PathGradientBrushC1EPKNS_12GraphicsPathE+0x13): undefined reference to `__gxx_personality_v0'
c:/fwh3/lib/fivehgc.lib(GDIPLUS.o):GDIPLUS.CPP:(.eh_frame$_ZNK7Gdiplus17PathGradientBrush5CloneEv+0x13): undefined reference to `__gxx_personality_v0'
c:/fwh3/lib/fivehgc.lib(GDIPLUS.o):GDIPLUS.CPP:(.eh_frame$_ZN7Gdiplus8Graphics9FromImageEPNS_5ImageE+0x13): more undefined references to `__gxx_personality_v0' follow

Re: Compile Error using FW17.07, Harbour MinGW

Posted: Thu Sep 07, 2017 7:39 am
by Antonio Linares
What MinGW gcc version are you using ?

Re: Compile Error using FW17.07, Harbour MinGW

Posted: Thu Sep 07, 2017 11:50 am
by dmajkic
What MinGW gcc version are you using ?
The one from the Harbour Nightly builds. It is here, in the comp subdir.
https://sourceforge.net/projects/harbou ... s/nightly/

I can tell that FWH is built with mingw version that has DWARF stack unwinding (that produces "undefined reference to `_Unwind_Resume'")
and I can tell that some GdiPlus functions are missing from the HB Nightly, which means that FWH uses newer MinGW version.

I guess it is something like MinGW-i686-dwarf, but I think It would be nice to have both Harbour and MinGW used to build FWH as binary downloads.
On the FWH downlod link, there are BCC Harbour and MSVC Harbout, but no MinGW.

Re: Compile Error using FW17.07, Harbour MinGW

Posted: Thu Sep 14, 2017 11:16 am
by dmajkic
It would be nice to have both Harbour and MinGW verions used to build FWH as binary downloads.
Antonio, any info on this?

Thanks!

Re: Compile Error using FW17.07, Harbour MinGW

Posted: Thu Sep 14, 2017 11:53 am
by Antonio Linares
It is here:

https://bitbucket.org/fivetech/harbour- ... 141218.zip

but it uses old Harbour and MinGW gcc versions

We are going to update it, once we know what MinGW gcc version to use :-)

Re: Compile Error using FW17.07, Harbour MinGW

Posted: Fri Sep 15, 2017 7:11 am
by dmajkic
We are going to update it, once we know what MinGW gcc version to use :-)
Thank you!

Re: Compile Error using FW17.07, Harbour MinGW

Posted: Fri Sep 15, 2017 7:48 am
by Antonio Linares
What MinGW gcc version are you using ?

c:\MinGW\bin>gcc --version

gcc (MinGW.org GCC-6.3.0-1) 6.3.0

Re: Compile Error using FW17.07, Harbour MinGW

Posted: Fri Sep 15, 2017 2:44 pm
by dmajkic
What MinGW gcc version are you using ?
It is difficult to answer, since we are using:

* FWH (commercial product - and we have libs),
* FRX (commercial component - we have libs),
* LetoDB (open source - build it ourself)
* OpenSSL and CURL (opensource , but not that easy to build)
* Experimenting with LetoDBf (free, but libs only)
* We also use QtContribs, but in separate instance (comes prebuilt)

We need to have FRX, FWH, OpenSSL+CURL, LetoDB. Since FWH have C++ code (for GdiPlus), exception handling
is also important - FWH uses DWARF, and FRX have no C++code, so DWARF dictates everything else.

We had intention to use newest Harbour Nightly, and migrate code to it. But than we find out that
HB Nightly builds are using SJLJ exception handling making it incompatible with FWH.

It would be great to have binary download of MinGW FWH, with compiler and harbour.
Only thing we must check is that it works with FRX (which is a small lib gluing external frx.dll)
Other components, like curl and openssl and LetoDb we can build ourself with supplide compiler.

So - GCC 6.3.0 is fine. It would be great to have both FWH and newish Harbour built with it,
and use that as core development environment.

Re: Compile Error using FW17.07, Harbour MinGW

Posted: Fri Sep 15, 2017 8:39 pm
by Antonio Linares
Building Harbour with MinGW gcc 6.3.0

git clone https://github.com/harbour/core.git harbour

cd harbour

gomingw.bat

Code: Select all

set path=c:\MinGW\bin
win-make
Here you have it already built:
https://bitbucket.org/fivetech/harbour- ... 170915.zip

Re: Compile Error using FW17.07, Harbour MinGW

Posted: Fri Sep 15, 2017 9:15 pm
by Antonio Linares
I have already emailed you the FWH libs for MinGW gcc 6.3.0