Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2015-08

Stream Error with trunk and FPC 3.0.0 RC1

11 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Torsten Bonde Christiansen

Hi.

I get the following error (see picture) on a clean installation of FPC 3.0.0 RC1 (just released) and the latest trunk:
Lazarus 1.5 r49709M FPC 3.0.0 x86_64-linux-gtk 2

The error occurs on an empty project just by pressing CTRL+F9 (Compile).

I deleted the old .lazarus/ configuration dir just to be sure, but that did not help.

Kind regards,
Torsten.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20150825/f3862b46/attachment-0001.html> -------------- next part --------------
A non-text attachment was scrubbed...
Name: Screenshot_2015-08-25_21-56-18.png
Type: image/png
Size: 10931 bytes
Desc: not available
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20150825/f3862b46/attachment-0001.png>

Reply by email

Bart
to Torsten Bonde Christiansen
Torsten Bonde Christiansen wrote 5 lines
Hi. I get the following error (see picture) on a clean installation of FPC 3.0.0 RC1 (just released) and the latest trunk: Lazarus 1.5 r49709M FPC 3.0.0 x86_64-linux-gtk 2

What is the value of $FPC_FULLVERSION in this RC?
See revision 49401 and associated bugreport
http://bugs.freepascal.org/view.php?id=27754

Does it work if you change all {$IF FPC_FULLVERSION >= 30001} into {$IF FPC_FULLVERSION >= 30000} in lresources.pp?

Bart

Reply by email

Torsten Bonde Christiansen
to Bart
Bart wrote 6 lines
What is the value of $FPC_FULLVERSION in this RC? See revision 49401 and associated bugreport http://bugs.freepascal.org/view.php?id=27754 Does it work if you change all {$IF FPC_FULLVERSION >= 30001} into {$IF FPC_FULLVERSION >= 30000} in lresources.pp?
program Project1;
{$mode objfpc}{$H+}
begin
   {$IF FPC_FULLVERSION = 30000}
   writeln('3.0.0');
   {$ELSE}
   {$IF FPC_FULLVERSION = 30001}
   writeln('3.0.1');
   {$ELSE}
   {$IF FPC_FULLVERSION > 30001}
   writeln('3.0.?');
   {$ENDIF}
   {$ENDIF}
   {$ENDIF}
end.

This program yields:
torsten at Rainier:~/tmp$ ./project1
3.0.0

Reply by email

Torsten Bonde Christiansen
to Bart: What is the value of $FPC_FULLVERSION in this RC? See revision 49401 and associated…
Bart wrote 12 lines
On 8/25/15, Torsten Bonde Christiansen wrote: > Hi. > > I get the following error (see picture) on a clean installation of FPC > 3.0.0 RC1 (just released) and the latest trunk: > Lazarus 1.5 r49709M FPC 3.0.0 x86_64-linux-gtk 2 What is the value of $FPC_FULLVERSION in this RC? See revision 49401 and associated bugreport http://bugs.freepascal.org/view.php?id=27754 Does it work if you change all {$IF FPC_FULLVERSION >= 30001} into {$IF FPC_FULLVERSION >= 30000} in lresources.pp?

Yep - it worked fine changing to {$IF FPC_FULLVERSION >= 30000} in lresources.pp

However, I found that this was not the only place where this could be an issue - the
laz_xmlstreaming.pas file had the same issue.

I have attached two patches updating the metioned files.

Regards,
Torsten.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: laz_xmlstreaming.patch
Type: text/x-patch
Size: 1397 bytes
Desc: not available
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20150826/9bf87ff4/attachment-0002.bin> -------------- next part --------------
A non-text attachment was scrubbed...
Name: lresources.patch
Type: text/x-patch
Size: 1229 bytes
Desc: not available
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20150826/9bf87ff4/attachment-0003.bin>

Reply by email

Bart
to Torsten Bonde Christiansen
Torsten Bonde Christiansen wrote 5 lines
However, I found that this was not the only place where this could be an issue - the laz_xmlstreaming.pas file had the same issue. I have attached two patches updating the metioned files.

Could you please open a bugreport on the bugtracker for this? (I already patched lresources in trunk (and requested it to be merged into 1.4 branch).

Bart

Reply by email

Bart
to Bart
Bart wrote
Could you please open a bugreport on the bugtracker for this? (I already patched lresources in trunk (and requested it to be merged into 1.4 branch).

Never mind, there already was a report for it.

Bart

Reply by email

Torsten Bonde Christiansen
to Bart
Bart wrote 6 lines
On 8/26/15, Bart wrote: > Could you please open a bugreport on the bugtracker for this? > (I already patched lresources in trunk (and requested it to be merged > into 1.4 branch). Never mind, there already was a report for it.

Sorry - just saw you mail now.

I created a report here:
http://bugs.freepascal.org/view.php?id=28569

Feel free to resolve/close if it is fixed.

-Torsten.

Reply by email

Torsten Bonde Christiansen
to Bart
Bart wrote 7 lines
On 8/26/15, Torsten Bonde Christiansen wrote: > However, I found that this was not the only place where this could be an > issue - the > laz_xmlstreaming.pas file had the same issue. Patched those in trunk. Can you test?

Fixed - working like a charm.

-Torsten.

Reply by email