Re: [fpc-pascal] Rebuilding RTL

2018-08-08 Thread Sven Barth via fpc-pascal
Ryan Joseph  schrieb am Mi., 8. Aug. 2018,
18:48:

> Btw, what are all these messages I get when building the compiler? I don’t
> know if they should be ignored or I caused them myself.
>
> objc1.inc(360,3) Note: tgobj: (FreeTemp) freeing of temp at pos
> -2147483648 requested
>

They are due to the EXTDEBUG define that is set in the pp.lpi. Someone had
added that to the project file cause they wanted to hunt bugs with temps.
If it annoys you, you can remove it in your project options.

Regards,
Sven

>
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Will moving from due core CPU to 6 Core CPU of the same clock speed improve the speed of FPC compiling?

2018-08-08 Thread Christo
On Wed, 2018-08-08 at 19:24 +0800, Dennis wrote:
> 
> Christo Crause wrote:
> > 
> > On Tue, Aug 7, 2018 at 9:42 AM, Dennis Poon  wrote:
> > > Only 20 seconds. But sometimes, when I modify some units used by other 
> > > units which are in
> > > turn used by other units, FPC throws the following exception when I 
> > > compile (not build)
> > > uspdata.pas(228,50) Error: Compilation raised exception internally
> > > 
> > > When that happens, I have to build the entire project, and that takes 
> > > much longer.
> > > 
> > Are you perhaps using generics somewhere in your project? If so your 
> > compiler crash may be
> > similar to bugs 0033593, 0034024 and possibly 0034065.
> > 
>  Yes, I use quite a lot of generics of Generics.Collection   TList and 
> TDictionary etc.
> Are these bugs fixed in the trunk version?
All three bug reports are still open, so not fixed yet.  If you can reduce the 
problem to a
small project with dummy code it may help to to file another bug report to 
highlight this
problem in the compiler. ___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Rebuilding RTL

2018-08-08 Thread Ryan Joseph


> On Aug 7, 2018, at 11:34 PM, Sven Barth via fpc-pascal 
>  wrote:
> 
> The main difference is that the compiler will not be build using the new RTL. 
> This is in most cases no problem at least if you don't want to use new 
> features that you added to the RTL *inside* the compiler.
> 
> I do that myself as well when testing bugs or developing new features (though 
> I don't use Lazbuild, but build inside the IDE, but that shouldn't make a 
> difference). I then build the RTL like this:
> 
> make clean all FPC=/path/to/src/compiler//pp
> 
> And then I can use the new RTL like this (assuming my current directory is 
> the trunk checkout):
> 
> ./compiler//pp -n -Furtl/units/- [other options] mytest.pp
> 
> Please keep in mind that probably you can't use units outside of the RTL 
> directory in that case (due to different checksums), for that you'd need to 
> do a "make clean all" inside the top level directory which will also rebuild 
> the compiler, the RTL and all packages. Also you *must not* use "fpc" as that 
> will use your installed compiler, but you must use the one you compiled 
> directly.

Thanks Sven, that works.

Btw, what are all these messages I get when building the compiler? I don’t know 
if they should be ignored or I caused them myself.

objc1.inc(360,3) Note: tgobj: (FreeTemp) freeing of temp at pos -2147483648 
requested


Regards,
Ryan Joseph

___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Will moving from due core CPU to 6 Core CPU of the same clock speed improve the speed of FPC compiling?

2018-08-08 Thread Christo Crause
On Tue, Aug 7, 2018 at 9:42 AM, Dennis Poon  wrote:

> Only 20 seconds. But sometimes, when I modify some units used by other
> units which are in turn used by other units, FPC throws the following
> exception when I compile (not build)
> uspdata.pas(228,50) Error: Compilation raised exception internally
>
> When that happens, I have to build the entire project, and that takes much
> longer.
>

Are you perhaps using generics somewhere in your project? If so your
compiler crash may be similar to bugs 0033593, 0034024 and possibly 0034065.
___
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal