Sign in Join

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

Mailing lists / lazarus / 2002-12

FPC 1.1 can compile lazarus

9 messages · 6 people ·

Reply by email Subscribe to this list Your subscription

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

Mattias Gaertner
to Peter Vreman: I just tried the 1.1 compiler with Lazarus and it compiles it fine. And also starting…
I just tried the 1.1 compiler with Lazarus and it compiles it fine. And also starting lazarus works fine.

Yes, it starts, but it can't read any file. Starting lazarus with gdb still shows:

(gdb) backtrace
#0 $08252bea in _CLASSES_TSTREAM_$_SEEK$LONGINT$WORD () ^^^^^^^
#1 $08252ac6 in _CLASSES_TSTREAM_$_SETPOSITION$INT64 () #2 $08253a60 in _CLASSES_TMEMORYSTREAM_$_LOADFROMSTREAM$TSTREAM ()

If you have an updated 1.1 compiler you need to rebuild all units (RTL,FCL etc). The simple way is to have the complete fpc source tree and then type "make build" in the top level.

I downloaded a complete new fpc source and used a 'make clean linuxzip' (1.1 was the current compiler). I hope this does not have any impact on the overloading logic of the compiler.

Mattias

Reply by email

Peter Vreman

I just tried the 1.1 compiler with Lazarus and it compiles it fine. And also starting lazarus works fine.

If you have an updated 1.1 compiler you need to rebuild all units (RTL,FCL etc). The simple way is to have the complete fpc source tree and then type "make build" in the top level.

Reply by email

Inpromptu
Show quoted text 6 lines
I just tried the 1.1 compiler with Lazarus and it compiles it fine. And also starting lazarus works fine. If you have an updated 1.1 compiler you need to rebuild all units (RTL,FCL etc). The simple way is to have the complete fpc source tree and then type "make build" in the top level.

I'll wait until Tony Maro tests it... !

(LOL, of course...)

_______________________________________________ Get your free email from http://mymail.operamail.com Powered by Outblaze

Reply by email

Judison e C�ssia
to Peter Vreman: I just tried the 1.1 compiler with Lazarus and it compiles it fine. And also starting…
Show quoted text 16 lines
Yes, it starts, but it can't read any file. Starting lazarus with gdb still shows: (gdb) backtrace #0 $08252bea in _CLASSES_TSTREAM_$_SEEK$LONGINT$WORD () ^^^^^^^ #1 $08252ac6 in _CLASSES_TSTREAM_$_SETPOSITION$INT64 () #2 $08253a60 in _CLASSES_TMEMORYSTREAM_$_LOADFROMSTREAM$TSTREAM () ... I downloaded a complete new fpc source and used a 'make clean linuxzip' (1.1 was the current compiler). I hope this does not have any impact on the overloading logic of the compiler.

Hum.... I have a problem with 1.1 reading files with TFileStream, I can't seek with a TFileStream. (Can't get Size too, because GetSize uses seek)

I have some {$ifdef} to and some weird code to bypass this ;)

something like this:

while not Done do
try
  FStream.ReadByte(B);
  MStream.WriteByte(B);
except
  Done := True
end;

but, I don't recomend you to use this kind of thing, as lazarus are working fine in 1.0, every time I update FPC from cvs, I run some testfiles, one of these is:

program test_stream;
uses Classes;
var
  Stream: TStream;
begin
  Stream := TFileStream.Create('test_stream.pas', fmOpenRead);
  Stream.Seek(3,soFromCurrent);
  Stream.Free;
end.

When this works fine I'll send a message to this list ;)

BTW, you can use RegisterIntegerConsts/CursorToIdent/IdentToCursor ? (example: for TCursor)????

I hope I helped
Your friend
Judison

Reply by email

Peter Vreman
to Peter Vreman: I just tried the 1.1 compiler with Lazarus and it compiles it fine. And also starting…
Show quoted text 17 lines
but, I don't recomend you to use this kind of thing, as lazarus are working fine in 1.0, every time I update FPC from cvs, I run some testfiles, one of these is: program test_stream; uses Classes; var Stream: TStream; begin Stream := TFileStream.Create('test_stream.pas', fmOpenRead); Stream.Seek(3,soFromCurrent); Stream.Free; end. When this works fine I'll send a message to this list ;)

This is now fixed, but due some other changes in the RTL it is not recommended to update from CVS.

Reply by email

Peter Vreman
to Peter Vreman: I just tried the 1.1 compiler with Lazarus and it compiles it fine. And also starting…
Show quoted text 14 lines
On Wed, 18 Dec 2002 21:08:27 +0100 (CET) "Peter Vreman" wrote: > > This is now fixed, but due some other changes in the RTL it is not > recommended to update from CVS. > Yes... :) I update fpc 20 min ago, and fpc does not compile ;) thread.inc(76,19) Error: Incompatible types: got "LongInt" expected "SigSet" I'll look at the code, perhaps I can help, but I don't belive in this ;)

Please don't waist your time. I've already some fixes laying here. But i want to have the snapshot building working before i commit everything.

Reply by email