[fpc-pascal] rebuild FPC RTL

Richard Jasmin jasminr at lavabit.com
Fri Jun 12 19:04:44 CEST 2009


RE-make, or re-build?

re-build as in weed out what you dont need. Re-make, yes, I've done 
that.I can't do that on FPOS yet, we have no filesystem.

I execute 'make' on the system unit.

It doesn't catch fpc_short_str_copy and similar right and keeps asking 
for a longInt where a string should be.
similar routines to atoi and itoa from C are in the system unit, but 
they will NOT build as-is.Editing the function calls does not seem to 
help.I am trying to cut down on the number of needed subroutines in the 
system unit, as I don't need everything offered.

I'm working from an idea based on ToroOS' system unit.Lay the files out 
like TP, but with FPC functionality.Much cleaner RTL layout.

I would like to add-in the routines in phases.Strings,heap,those are 
critical.The rest are optional, including syscalls ATM.
I am trying to avoid an int80 if at all possible, as it is written in 
software, not the BIOS.I find int21 and int80 very piss poor 
programming.I have interrupts 0-33 plus IRQ 0-15 already working.It 
would be a waste to say the least to put all those routines in a single 
handler, of which, I can't even find in the Linux kernel sources.
---

fpc-pascal-request at lists.freepascal.org wrote:
> Send fpc-pascal mailing list submissions to
> 	fpc-pascal at lists.freepascal.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
> 	http://lists.freepascal.org/mailman/listinfo/fpc-pascal
> or, via email, send a message with subject or body 'help' to
> 	fpc-pascal-request at lists.freepascal.org
>
> You can reach the person managing the list at
> 	fpc-pascal-owner at lists.freepascal.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of fpc-pascal digest..."
>
>
> Today's Topics:
>
>    1. Re:  Compiling Lazarus and LCL using rebuilt FPC RTL
>       (fpclist at silvermono.co.za)
>    2. Re:  Compiling Lazarus and LCL using rebuilt FPC RTL
>       (Graeme Geldenhuys)
>    3. Re:  Compiling Lazarus and LCL using rebuilt FPC RTL
>       (fpclist at silvermono.co.za)
>    4.  rebuild FPC RTL (Richard Jasmin)
>    5. Re:  rebuild FPC RTL (Jonas Maebe)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Thu, 11 Jun 2009 12:38:25 +0200
> From: fpclist at silvermono.co.za
> Subject: Re: [fpc-pascal] Compiling Lazarus and LCL using rebuilt FPC
> 	RTL
> To: "FPC-Pascal users discussions" <fpc-pascal at lists.freepascal.org>
> Message-ID: <200906111238.26741.fpclist at silvermono.co.za>
> Content-Type: text/plain;  charset="utf-8"
>
> On Thursday 11 June 2009 10:05:47 Graeme Geldenhuys wrote:
>   
>>> Assuming that a FPC RTL rebuild has succeeded, can somebody please
>>> describe the process of rebuilding Lazarus and the LCL using the new FPC
>>> RTL?
>>>       
>> Load your previous Lazarus IDE. Then do: "Tools > Build Lazarus"
>>     
> This only works if changes are made to the Lazarus IDE, but will fail if the 
> FPC RTL is rebuilt because the LCL must first be rebuilt to use the new FPC 
> RTL and only then can Lazarus (IDE) be rebuilt. 
>
> Attempting to build Lazarus as per the above causes the compiler to halt with 
> a  "checksum changed" error on the first changed unit it encounters.
>
> By the way, I'm trying to rebuild the Linux version on Linux.
>
> Regards, 
> Nino
>
>
>
> ------------------------------
>
> Message: 2
> Date: Thu, 11 Jun 2009 12:49:40 +0200
> From: Graeme Geldenhuys <graemeg at opensoft.homeip.net>
> Subject: Re: [fpc-pascal] Compiling Lazarus and LCL using rebuilt FPC
> 	RTL
> To: FPC-Pascal users discussions <fpc-pascal at lists.freepascal.org>
> Message-ID: <4A30E144.3060804 at opensoft.homeip.net>
> Content-Type: text/plain; charset=UTF-8
>
> fpclist at silvermono.co.za wrote:
>   
>> Attempting to build Lazarus as per the above causes the compiler to halt with 
>> a  "checksum changed" error on the first changed unit it encounters.
>>     
>
> Then use the "Tools > Configure Build Lazarus > Advanced tab" dialog.
> Check the "clean" checkbox and rebuild.
>
> I often make changes to the RTL and FCL. Many of my packages which are
> compiled into the Lazarus IDE depend on the FCL. I also use Linux and
> this process works perfectly for me.
>
>
> Regards,
>   - Graeme -
>
> _______________________________________________________
> fpGUI - a cross-platform GUI toolkit using Free Pascal
> http://opensoft.homeip.net/fpgui/
>
>
>
> ------------------------------
>
> Message: 3
> Date: Thu, 11 Jun 2009 13:03:04 +0200
> From: fpclist at silvermono.co.za
> Subject: Re: [fpc-pascal] Compiling Lazarus and LCL using rebuilt FPC
> 	RTL
> To: "FPC-Pascal users discussions" <fpc-pascal at lists.freepascal.org>
> Message-ID: <200906111303.05286.fpclist at silvermono.co.za>
> Content-Type: text/plain;  charset="utf-8"
>
> On Thursday 11 June 2009 12:49:40 Graeme Geldenhuys wrote:
>   
>> I often make changes to the RTL and FCL. Many of my packages which are
>> compiled into the Lazarus IDE depend on the FCL. I also use Linux and
>> this process works perfectly for me.
>>     
>
> I'm off to a meeting. Will try later today.
>
> Thanks Graeme.
>
> Regards,
> Nino
>
>
>
> ------------------------------
>
> Message: 4
> Date: Thu, 11 Jun 2009 12:14:53 -0400
> From: Richard Jasmin <jasminr at lavabit.com>
> Subject: [fpc-pascal] rebuild FPC RTL
> To: fpc-pascal at lists.freepascal.org
> Message-ID: <4A312D7D.9090002 at lavabit.com>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> HOw exactly is this done? I cant seem to get string copy routines to 
> catch right for some reason and I'm almost there.I'm trying to weed out 
> unnecessarey includes on a linux based OS kernel rtl.I dont use 90% of 
> the syscall-tied routines, anyway.
>
>
>
>
>
> ------------------------------
>
> Message: 5
> Date: Thu, 11 Jun 2009 19:09:50 +0200
> From: Jonas Maebe <jonas.maebe at elis.ugent.be>
> Subject: Re: [fpc-pascal] rebuild FPC RTL
> To: FPC-Pascal users discussions <fpc-pascal at lists.freepascal.org>
> Message-ID: <150AE7AC-BFD0-4C73-8F99-8F05FF01CCAF at elis.ugent.be>
> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes
>
>
> On 11 Jun 2009, at 18:14, Richard Jasmin wrote:
>
>   
>> HOw exactly is this done?
>>     
>
> Execute "make" in the rtl directory (or in the rtl/<target> directory).
>
>   
>> I cant seem to get string copy routines to catch right for some  
>> reason and I'm almost there.
>>     
>
> What do you mean by "catch right"? What is the command that you are  
> executing, and what is the error message that you get? And which  
> changes did you make?
>
>
> Jonas
>
>
> ------------------------------
>
> _______________________________________________
> fpc-pascal maillist  -  fpc-pascal at lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-pascal
>
> End of fpc-pascal Digest, Vol 60, Issue 18
> ******************************************
>
> ____________________________________________________________________________________
> Use the link below to report this message as innocent.
> https://lavabit.com/apps/teacher?sig=613196&key=524148017
> ____________________________________________________________________________________
>
>   




More information about the fpc-pascal mailing list