* * *

Author Topic: Lazarus and FPC 3.0  (Read 44796 times)

zoltanleo

  • Jr. Member
  • **
  • Posts: 63
Re: Lazarus and FPC 3.0
« Reply #30 on: January 27, 2015, 11:59:04 am »
Hi all.

Try to rebuild the trunk Lazarus (rev 47551)/fpc trunk (rev 29561) . When compiling I get an error

Code: [Select]
Compiling forms.pp
Compiling .\widgetset\wsforms.pp
wincontrol.inc(2623,5) Error: Asm: Duplicate label CONTROLS$_$TWINCONTROL_$_ALIGNCONTROLS$TCONTROL$RECT_DOPOSITION$TCONTROL$TALIGN$LONGINT_$$_CONSTRAINTHEIGHT$crc42AA5AF5
wincontrol.inc(2602,5) Error: Asm: Duplicate label CONTROLS$_$TWINCONTROL_$_ALIGNCONTROLS$TCONTROL$RECT_DOPOSITION$TCONTROL$TALIGN$LONGINT_$$_CONSTRAINTWIDTH$crc42AA5AF5
controls.pp(4175) Fatal: There were 2 errors compiling module, stopping
Fatal: Compilation aborted
make[1]: Leaving directory `d:/Archive/development/lazarus_trunk/lcl'

What happened?  :o
« Last Edit: January 27, 2015, 12:06:09 pm by zoltanleo »
Lazarus 1.9(rev. 55042); FPC 3.1.1(rev.36290), Windows 7 x64 Ultim/ Debian 8.7 i386

Sorry for my bad English, I'm using translator ;)

Leledumbo

  • Hero Member
  • *****
  • Posts: 7552
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: Lazarus and FPC 3.0
« Reply #31 on: January 27, 2015, 12:41:52 pm »
Hi all.

Try to rebuild the trunk Lazarus (rev 47551)/fpc trunk (rev 29561) . When compiling I get an error

Code: [Select]
Compiling forms.pp
Compiling .\widgetset\wsforms.pp
wincontrol.inc(2623,5) Error: Asm: Duplicate label CONTROLS$_$TWINCONTROL_$_ALIGNCONTROLS$TCONTROL$RECT_DOPOSITION$TCONTROL$TALIGN$LONGINT_$$_CONSTRAINTHEIGHT$crc42AA5AF5
wincontrol.inc(2602,5) Error: Asm: Duplicate label CONTROLS$_$TWINCONTROL_$_ALIGNCONTROLS$TCONTROL$RECT_DOPOSITION$TCONTROL$TALIGN$LONGINT_$$_CONSTRAINTWIDTH$crc42AA5AF5
controls.pp(4175) Fatal: There were 2 errors compiling module, stopping
Fatal: Compilation aborted
make[1]: Leaving directory `d:/Archive/development/lazarus_trunk/lcl'

What happened?  :o
http://bugs.freepascal.org/view.php?id=27348

zoltanleo

  • Jr. Member
  • **
  • Posts: 63
Re: Lazarus and FPC 3.0
« Reply #32 on: January 27, 2015, 04:44:10 pm »
Thx  :)
Lazarus 1.9(rev. 55042); FPC 3.1.1(rev.36290), Windows 7 x64 Ultim/ Debian 8.7 i386

Sorry for my bad English, I'm using translator ;)

JuhaManninen

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2848
  • I like bugs.
Re: Lazarus and FPC 3.0
« Reply #33 on: February 08, 2015, 11:31:57 am »
Is now any string-based RTL functions (such as StrReplace(), Format(), Trim(), UpperCase(), etc..) will correctly handle characters with variable bytes length?

I have more answers now. For details see :
  http://wiki.freepascal.org/Better_LCL_Unicode_Support

There is no StrReplace() in FPC libs. The other funcs work as expected. UpperCase() continues to work in ASCII area only, just like in Delphi.
The Ansi...() versions of string functions are also Delphi compatible.

Quote
And some functions, like Pos(), Length(), Copy() will be bytes-oriented, or character-oriented?

Bytes-oriented.
In Delphi they are not character-oriented either, they are UnicodeChar(*) (WideChar, Word, 2 Bytes)-oriented. One Unicode codepoint in UTF-16 encoding can consist of 2 UnicodeChars(*). There is lots of sloppy Delphi code forgetting this fact.

Please read carefully this:
  http://wiki.lazarus.freepascal.org/UTF8_strings_and_characters
and you understand that Pos(), Length(), Copy() are very useful with UTF-8.

Quote
Is lazutf8 unit not needed anymore?

No. There will be CodePoint...() functions but they are not implemented yet. With UTF-8 they will be wrappers for the functions in LazUTF8, you can test now with them.

Things happen in a little wrong order. This new UTF-8 support is for Lazarus 2.0 and it works well, but Lazarus 1.4 has not been released and does not even have RC1 yet.
Anyway, please test with the new UTF-8 support and try to find problems. The only known problem is still the Char type with TFormatSettings.

(*) "UnicodeString" and "UnicodeChar" names for types was a very unfortunate choice from Borland.
A Unicode codepoint is a "real" character definition in Unicode which can be encoded differently and its length depends on the encoding.
A Unicode character is either one codepoint or a surrogate pair of multiple codepoints. Yes, this is complex ...
« Last Edit: February 08, 2015, 05:35:32 pm by JuhaManninen »

Wodzu

  • Full Member
  • ***
  • Posts: 171
Re: Lazarus and FPC 3.0
« Reply #34 on: February 14, 2015, 08:46:35 pm »
Sorry guys,

maybe this is a little bit off topic but reading this posts I am getting the impression that FPC 3.0 is already out? But there are no news about FPC 3.0 on the http://www.freepascal.org . So is it out or not?

marcov

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 5338
Re: Lazarus and FPC 3.0
« Reply #35 on: February 15, 2015, 03:12:46 am »
Sorry guys,

maybe this is a little bit off topic but reading this posts I am getting the impression that FPC 3.0 is already out? But there are no news about FPC 3.0 on the http://www.freepascal.org . So is it out or not?

FPC 3.0 has  been branched off and is in  a stabilization phase. It is not an official release yet

Leledumbo

  • Hero Member
  • *****
  • Posts: 7552
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: Lazarus and FPC 3.0
« Reply #36 on: February 15, 2015, 04:23:33 am »
FPC 3.0 has  been branched off and is in  a stabilization phase. It is not an official release yet
Do you know which branches have been / are being merged? I'm mostly interested in enhanced RTTI and custom attributes.

marcov

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 5338
Re: Lazarus and FPC 3.0
« Reply #37 on: February 15, 2015, 02:04:46 pm »
FPC 3.0 has  been branched off and is in  a stabilization phase. It is not an official release yet
Do you know which branches have been / are being merged? I'm mostly interested in enhanced RTTI and custom attributes.

I don't know the exact status of those. To my best knowledge nothing is moving there. There was some talk about the invoke related rtti, but that is about it.

Afaik the last updates on the branches that you name  were public in fpc-devel because of several Mormot people asking.

goodname

  • Sr. Member
  • ****
  • Posts: 282
Re: Lazarus and FPC 3.0
« Reply #38 on: February 24, 2015, 06:05:30 pm »
I've been trying out Lazarus 1.4RC1 with FPC 2.6.4 and it looks good. The upcoming FPC 3.0 contains two new transaction options.
Code: [Select]
sqldb.pp line 265
TSQLTransactionOption = (stoUseImplicit, stoExplicitStart);
If I start using Lazarus 1.4RC1 with FPC 3.0 will these new options show up in the object inspector or will I have to set the option in code?

marcov

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 5338
Re: Lazarus and FPC 3.0
« Reply #39 on: February 24, 2015, 08:58:47 pm »
If I start using Lazarus 1.4RC1 with FPC 3.0 will these new options show up in the object inspector or will I have to set the option in code?

If you recompile the RC1 branch with FPC 3.0 such properties (and additional enum fields) will be visible yes. The Lazarus classes inherit from the FPC ones, so if the FPC ones change, that is automatic.

zoltanleo

  • Jr. Member
  • **
  • Posts: 63
Re: Lazarus and FPC 3.0
« Reply #40 on: April 09, 2015, 02:41:10 pm »
Hi friends

Try to compile the latest trunk fpc (r. 30510), get

Code: [Select]
Start compiling package utils for target i386-win32.
       Compiling BuildUnit_utils.pp
       Compiling usubst.pp
       Compiling ptopu.pp
       Compiling ptop.pp
The installer encountered the following error:
External command "d:/Archive/development/fpc_trunk/compiler/ppc386.exe -Twin32 -FEbin\i386-win32 -FUunits\i386-win32\ -Fud:\Archive\development\fpc_trunk\rtl\units\i386-win32\ -Fud:\Archive\development\fpc_trunk\units\i386-win32\fcl-base -Fud:\Archive\development\fpc_trunk\units\i386-win32\fcl-res -Fud:\Archive\development\fpc_trunk\units\i386-win32\rtl-objpas -Fud:\Archive\development\fpc_trunk\units\i386-win32\paszlib -Fud:\Archive\development\fpc_trunk\units\i386-win32\hash -Fud:\Archive\development\fpc_trunk\units\i386-win32\rtl-extra -Ur -Xs -O2 -n -Fud:/Archive/development/fpc_trunk/rtl/units/i386-win32 -Fud:/Archive/development/fpc_trunk/packages/paszlib/units/i386-win32 -Fud:/Archive/development/fpc_trunk/packages/fcl-process/units/i386-win32 -Fud:/Archive/development/fpc_trunk/packages/hash/units/i386-win32 -Fud:/Archive/development/fpc_trunk/packages/libtar/units/i386-win32 -Fud:/Archive/development/fpc_trunk/packages/fpmkunit/units/i386-win32 -Fud:/Archive/development/fpc_trunk/packages/fcl-json/units/i386-win32 -di386 -dRELEASE -viq ptop.pp" failed with exit code 1. Console output:
Target OS: Win32 for i386
Compiling ptop.pp
PPU Loading D:\Archive\development\fpc_trunk\units\i386-win32\fcl-base\custapp.ppu
PPU Invalid Version 172
ptop.pp(21,29) Fatal: Can't find unit CustApp used by PtoP
Fatal: Compilation aborted

make[2]: Leaving directory `d:/Archive/development/fpc_trunk/utils'
make[1]: Leaving directory `d:/Archive/development/fpc_trunk'

Does someone have a solution?  :-[
« Last Edit: April 09, 2015, 02:44:57 pm by zoltanleo »
Lazarus 1.9(rev. 55042); FPC 3.1.1(rev.36290), Windows 7 x64 Ultim/ Debian 8.7 i386

Sorry for my bad English, I'm using translator ;)

marcov

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 5338
Re: Lazarus and FPC 3.0
« Reply #41 on: April 09, 2015, 04:03:23 pm »
Properly clean out old ppu's and .o's before building new ones.

zoltanleo

  • Jr. Member
  • **
  • Posts: 63
Re: Lazarus and FPC 3.0
« Reply #42 on: April 09, 2015, 08:49:01 pm »
Thank you, you was right  :D
Lazarus 1.9(rev. 55042); FPC 3.1.1(rev.36290), Windows 7 x64 Ultim/ Debian 8.7 i386

Sorry for my bad English, I'm using translator ;)

lainz

  • Hero Member
  • *****
  • Posts: 1841
  • Nace una flor, todos los días sale el sol...
    • BGRABitmap
Re: Lazarus and FPC 3.0
« Reply #43 on: August 09, 2015, 06:26:34 pm »
Hi,

I'm seeing the wiki "recent changes" and I see that they're planning the FPC 3.0.

I can't find anything about Lazarus on these articles, Lazarus will be shipped with FPC 3.0 when they release it? At the same time or not?

marcov

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 5338
Re: Lazarus and FPC 3.0
« Reply #44 on: August 09, 2015, 07:59:17 pm »
Usually Lazarus releases a point release one or two weeks later.

Note that the activity you see is not the (final) release but a release candidate.

 

Recent

Get Lazarus at SourceForge.net. Fast, secure and Free Open Source software downloads Open Hub project report for Lazarus