[fpc-devel] Lazarus compile dialog and include files not reflected in display during build process

2010-05-04 Thread Andrew Brunner
You know, I had this idea and I was wondering if this is already done
or do-able...

Periodic (every hundred+milliseconds) writing of a stats file.  When
fpc compiles Lazarus projects the dialog does not reflect lines until
the unit is complete.  I have a project that is heavy on include files
and essentially my dialog always waits until the end and spits out the
final numbers.

What if fpc could re-write stats to a file ...  With
Lines#9Errors#9Warnings#9Hints this way the compiler dialog can
read-in the file instead of waiting for the data?  Is there an option
for this already?
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] Win64 FPC is in wrong download location

2010-05-04 Thread Florian Klaempfl
Graeme Geldenhuys schrieb:
> On 4 May 2010 22:05, Florian Klaempfl  wrote:
>> We don't ship any .tar.gz containing 2.4.1?
> 
> With my various build scrips and the 'git archive' command, I have
> been creating my own "fixes" versions for months.

I wanted only to point out that your setup is not simply created by
unpacking the two .tar.gz installers for x86-64 and i386 we provide :)
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] Win64 FPC is in wrong download location

2010-05-04 Thread Graeme Geldenhuys
On 4 May 2010 22:05, Florian Klaempfl  wrote:
>
> We don't ship any .tar.gz containing 2.4.1?

With my various build scrips and the 'git archive' command, I have
been creating my own "fixes" versions for months. Our "fixes" builds
created via our scripts use the latest stable release as starting
compiler - in this case that is 2.4.0 (which we download from
SourceForge).  We use our own "fixes" releases internally in our
company, for development and testing.


-- 
Regards,
  - Graeme -


___
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] Win64 FPC is in wrong download location

2010-05-04 Thread Florian Klaempfl
Graeme Geldenhuys schrieb:
> So Florian and Michael, I would safely say a new binary
> created with FPC (non-gui or fpGUI based) would run perfectly fine on
> rather old Linux distros.
> 

Well, even more FPC itself. This is also why we ship .tar.gzs ;) I'am
the first one to agree to ship only .tar.gz, I wouldn't create rpm/debs.
But believe me, if we ship only .tar.gz, another person will pop up and
write lengthy emails how important .debs and .rpms are. Luckily enough,
we've people who do not write only emails but who create patches for
deb/rpm building and who build those.


Graeme Geldenhuys schrieb:
> On 4 May 2010 20:18, Sven Barth  wrote:
>> Microsoft hadn't done this). Thus there is no real need to ship a 64 bit
>> version of the compiler.
>
> This still seems a bit short-sighted to me. It now simply places the
> burden on the developer to compile there own 64-bit version of FPC -

No. Because there is no reason to do so which compensates the extra work
to create a win64 native installer.
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] Win64 FPC is in wrong download location

2010-05-04 Thread Florian Klaempfl
Graeme Geldenhuys schrieb:
> On 4 May 2010 19:38, Florian Klaempfl  wrote:
>> Ever tried to install the 32 bit and 64 bit native linux tar
>> installer on one system?
> 
> Yes, I have both on my 64-bit Ubuntu 8.04.2 system at work.  It was
> easier to setup that cross-compiling (at least it was for me), but
> installing native FPC's in VirtualBox sessions still gave me the least
> amount of trouble.

Least amount is not no amount.

> 
> 
>> This has nothing to do with Windows or Linux. Installing two native tool
>> chains on one system is simply a problem. Which fpc will a plain
>> fpc
>> call execute? Will the utilities be 32 bit or 64 bit (fpcmake and
> 
> I don't think I have ever used 'fpc' command to compile something. I
> always call the correct ppcXXX command directly. I don't actually know
> what's the point of the 'fpc' executable
> Directory layout is as follows:
> 
>   /opt/fpc-2.4.1/x86_64-linux/bin   <<-- ppcXXX symlink lives here
>   /opt/fpc-2.4.1/x86_64-linux/lib
>   /opt/fpc-2.4.1/x86_64-linux/*
>   /opt/fpc-2.4.1/i386-linux/bin
>   /opt/fpc-2.4.1/i386-linux/lib
>   /opt/fpc-2.4.1/i386-linux/*
>   /opt/fpc-2.4.1/src/
>   /opt/fpc-binutils/i386-linux/

We don't ship any .tar.gz containing 2.4.1?
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] Win64 FPC is in wrong download location

2010-05-04 Thread Graeme Geldenhuys
On 4 May 2010 20:40, Vincent Snijders  wrote:
>
> I don't know where to add this exactly in this thread, but the win64 version
> of Lazarus includes a native win64 version of the compiler. It is done


Kudos to the Lazarus team! :-)



-- 
Regards,
  - Graeme -


___
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] Win64 FPC is in wrong download location

2010-05-04 Thread Graeme Geldenhuys
On 4 May 2010 20:18, Sven Barth  wrote:
> Microsoft hadn't done this). Thus there is no real need to ship a 64 bit
> version of the compiler.

This still seems a bit short-sighted to me. It now simply places the
burden on the developer to compile there own 64-bit version of FPC -
but I guess that's the FPC Team's choice.


-- 
Regards,
  - Graeme -


___
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] Win64 FPC is in wrong download location

2010-05-04 Thread Graeme Geldenhuys
On 4 May 2010 19:38, Florian Klaempfl  wrote:
>
> Ever tried to install the 32 bit and 64 bit native linux tar
> installer on one system?

Yes, I have both on my 64-bit Ubuntu 8.04.2 system at work.  It was
easier to setup that cross-compiling (at least it was for me), but
installing native FPC's in VirtualBox sessions still gave me the least
amount of trouble.


> This has nothing to do with Windows or Linux. Installing two native tool
> chains on one system is simply a problem. Which fpc will a plain
> fpc
> call execute? Will the utilities be 32 bit or 64 bit (fpcmake and

I don't think I have ever used 'fpc' command to compile something. I
always call the correct ppcXXX command directly. I don't actually know
what's the point of the 'fpc' executable
Directory layout is as follows:

  /opt/fpc-2.4.1/x86_64-linux/bin   <<-- ppcXXX symlink lives here
  /opt/fpc-2.4.1/x86_64-linux/lib
  /opt/fpc-2.4.1/x86_64-linux/*
  /opt/fpc-2.4.1/i386-linux/bin
  /opt/fpc-2.4.1/i386-linux/lib
  /opt/fpc-2.4.1/i386-linux/*
  /opt/fpc-2.4.1/src/
  /opt/fpc-binutils/i386-linux/

~/.fpc.cfg file uses the $fpcversion (because I have 2.5.1 installed
too) and the other macro various for CPU and Target.
32-bit binutils is specified in fpc.cfg too.

-- 
Regards,
  - Graeme -


___
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] Win64 FPC is in wrong download location

2010-05-04 Thread Graeme Geldenhuys
On 4 May 2010 17:27, Michael Van Canneyt  wrote:
>> fpGUI probably depends as well as the fp text mode ide on glibc etc. so
>> running on older systems is pure luck.
>
> This is correct. I did some tests for this when still running SuSE.
> Only binaries that do not depend on LibC will run on old linux distros.

Either way, I installed SuSE 9.0 on a spare hard drive. Copied over
fpGUI binaries created on Ubuntu 9.10 compiled today, or in the last
two months. They ran perfectly and without problems. And as a bonus,
Kylix 3 installed without a hitch (something that seldom occurs). :-)

Apps included in the test was some fpGUI demos (even one old fpGUI
v0.4 demo), the fpGUI UI Designer, DocView etc..

SuSE 9.0 is  about 7-8 years old. That's a lifetime for Linux,
considering how fast things change in Linux. The other point being
that it is a free OS, so nothing prevents users from continuously
upgrading as new distro versions are released - no need to be left
behind.  So Florian and Michael, I would safely say a new binary
created with FPC (non-gui or fpGUI based) would run perfectly fine on
rather old Linux distros.

I found my copy of SuSE 8.0, so will be trying that one next. I should
have SuSE 7.x somewhere as well.  ;-)  And for some proof and for your
viewing pleasure, visit the following url.

   http://opensoft.homeip.net/~graemeg/fpgui-on-suse-9.0.png


-- 
Regards,
  - Graeme -


___
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] Win64 FPC is in wrong download location

2010-05-04 Thread ABorka



On 5/4/2010 11:40, Vincent Snijders wrote:

Jonas Maebe schreef:

On 04 May 2010, at 15:29, Graeme Geldenhuys wrote:


So to be able to compile Win64 apps, we need two installations. The
Win64 download (17MB) and the i386 download (35MB).

* now installation is more complex than it needs to be. It now
requires two FPC versions.




I don't know where to add this exactly in this thread, but the win64
version of Lazarus includes a native win64 version of the compiler. It
is done because I think that to make sure it can compile Lazarus
correctly, it has to be able to compile itself correct and create a
running executable.

Vincent



OT: After reading this whole thread, Vincent's reply made me LOL

Is there a hope then to have a native 64bit Windows version of FPC 
posted (download pages, sourceforge, etc.)?


___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] Win64 FPC is in wrong download location

2010-05-04 Thread Vincent Snijders

Jonas Maebe schreef:

On 04 May 2010, at 15:29, Graeme Geldenhuys wrote:


So to be able to compile Win64 apps, we need two installations. The
Win64 download (17MB) and the i386 download (35MB).

* now installation is more complex than it needs to be. It now
requires two FPC versions.




I don't know where to add this exactly in this thread, but the win64 
version of Lazarus includes a native win64 version of the compiler. It 
is done because I think that to make sure it can compile Lazarus 
correctly, it has to be able to compile itself correct and create a 
running executable.


Vincent
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] Win64 FPC is in wrong download location

2010-05-04 Thread Sven Barth

Hi!

On 04.05.2010 16:14, Graeme Geldenhuys wrote:

On 4 May 2010 16:04, Michael Van Canneyt  wrote:


We offer a .tar.gz for download, so what is the problem ?
No-one is forced to use rpm or .deb files ?


I don't have a problem, but it sounded like Florian has (or I
misunderstood him). From what I understood, he stated that deployment
is easier under Windows and able to run on older Windows without
problems. I simply stated that Linux deployment is easy too, if you
use .tar.gz with pre-build binaries inside (including running newer
binaries on older systems - non-gui or fpGUI based of course).




Florian wants to say that you might not be able to run a i386 binary on 
a x86_64 Linux. This is for example the case on my desktop (ArchLinux 
x64) which I haven't configured yet to be able to run i386 binaries, 
cause I didn't have the need yet. Most applications that are available 
in the package manager are available for both platforms. And for FPC I 
simply compiled a new compiler for 64 bit and was happy.


On Windows you don't have this problem, as all 64 bit variants ship with 
a "Windows On Windows 64" system that allows you to run 32 bit binaries 
on a 64 bit system without problems (Win64 would have been a dead birth 
if Microsoft hadn't done this). Thus there is no real need to ship a 64 
bit version of the compiler.


Regards,
Sven
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] Win64 FPC is in wrong download location

2010-05-04 Thread Florian Klaempfl
Graeme Geldenhuys schrieb:
> On 4 May 2010 18:33, Florian Klaempfl  wrote:
>> If anybody builds win64 installers he should also take care of people
>> installing the native win32 and native win64 installer and a wince cross
>> installer, nice nasty problem to solve :)
> 
> Contradicting your self. :-)  

Why? Ever tried to install the 32 bit and 64 bit native linux tar
installer on one system?

>And here I thought you said a bit
> earlier that installations under Windows is a breeze and Linux is the
> problem. ;-)

This has nothing to do with Windows or Linux. Installing two native tool
chains on one system is simply a problem. Which fpc will a plain
fpc
call execute? Will the utilities be 32 bit or 64 bit (fpcmake and
friends, fp text mode ide). If always the native one is choosen, how to
call the other one? etc.
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] Win64 FPC is in wrong download location

2010-05-04 Thread Jonas Maebe

On 04 May 2010, at 16:47, Andrew Brunner wrote:

> Native debugging under x64 would be the number 1 reason or
> justification for doing the work.

A cross-compiler or native compiler has absolutely nothing to do with debugging 
(unless you debug the compiler itself). Binaries generated by a cross-compiler 
are bit-for-bit identical to those generated by a "native" compiler, and hence 
behave identically when debugging (barring bugs in the compiler, of which none 
are known as far as compiling for Win64 is concerned).

> The third and most important would be for consistency.
> Is it normal to have to cross compile to a platform you want to
> develop  under daily?

If it has no impact whatsoever on the development process, why would it matter?

>  Windows version of gdb offers better stability
> than that of Xwindows (gdm keeps needing to be started for threaded
> apps).

Then develop under Windows and use the Win64 version of gdb.


Jonas___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] Win64 FPC is in wrong download location

2010-05-04 Thread Graeme Geldenhuys
On 4 May 2010 18:33, Florian Klaempfl  wrote:
>
> If anybody builds win64 installers he should also take care of people
> installing the native win32 and native win64 installer and a wince cross
> installer, nice nasty problem to solve :)

Contradicting your self. :-)  And here I thought you said a bit
earlier that installations under Windows is a breeze and Linux is the
problem. ;-)


-- 
Regards,
  - Graeme -


___
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] Win64 FPC is in wrong download location

2010-05-04 Thread Florian Klaempfl
> 
> IMO: Native debugging under x64 would be the number 1 reason or
> justification for doing the work.  

There is a native gdb for win64. However, I never got a working win64
textmode ide with integrated debugger, so this is no reason.

> The second would be for
> distribution. 

Yes, it increases the release building effort.

> The third and most important would be for consistency.
> Is it normal to have to cross compile to a platform you want to
> develop  under daily? 

There is nothing wrong with cross compiling. We're not gcc where cross
compiling is a pain.

> Anyways.. All of these arguments are worth the discussion as they do
> in fact relate to why there is no Win64 folder :-)

The are multiple reasons why there is no Win64 native installer.
However, it boils down into: a native compiler/installer is additional
work but it has no real technical advantage over a cross compiler. As
said before: if anybody tests, fixes and builds native win64 compilers
and installers, I'am glad to upload them, however, I'll concentrate on
as good as possible win32 packages.

If anybody builds win64 installers he should also take care of people
installing the native win32 and native win64 installer and a wince cross
installer, nice nasty problem to solve :)
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] Win64 FPC is in wrong download location

2010-05-04 Thread Andrew Brunner
> Speeding up compilation is always nice (and if anyone wants to dive into the 
> unit loading logic, solve its existing problems and make it multi-threading 
> safe, I'd be delighted -- I already spent several weeks on trying, and 
> largely failing, to merely solve particular bugs in it), but I fail to see 
> how that is in any way related to the current thread.

I had the same reaction when I went to install FPC on WinXP64.  I
didn't post b/c I already knew that there was no native FPC x64 for
Windows.  This thread was started with the notion that something
exists that does not :-)   Which is why I'm saying in order to make it
"feasible" to exist we are going to need to overcome the barriers that
make native x64 distro on Windows feasible.

The argument against Win64 native is due to the fact that 64bit
pointers are twice the size of 32bit pointers... With that
statement... Florain's assertion was native 64 would be larger and
slower to compile units.  Someone also suggested that a native Win64
would be a larger executable - which to me is not even a factor.

IMO: Native debugging under x64 would be the number 1 reason or
justification for doing the work.  The second would be for
distribution.  The third and most important would be for consistency.
Is it normal to have to cross compile to a platform you want to
develop  under daily?  Windows version of gdb offers better stability
than that of Xwindows (gdm keeps needing to be started for threaded
apps).

Anyways.. All of these arguments are worth the discussion as they do
in fact relate to why there is no Win64 folder :-)
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] Win64 FPC is in wrong download location

2010-05-04 Thread Jonas Maebe

On 04 May 2010, at 16:17, Andrew Brunner wrote:

> On Tue, May 4, 2010 at 10:09 AM, Jonas Maebe  
> wrote:
> 
>> Cross-compilers can be just as multi-threaded as "native" ones. This is a 
>> completely orthogonal feature.
>> 
> True statement but I fear does not address the issue at hand.

"The issue at hand" of this thread was "why is there only a Win32->Win64 
cross-compiler and no native Win64 compiler" (well, originally it was "why is 
the win64 compiler listed with the win32 binaries").

>  You
> guys really need to tap talent - there's gotta be somebody here that
> wants to solve the compile times... And when that is solved... the
> argument of slow compile times as it relates to the reason of not
> having a native 64bit Windows compiler will then become mute...

There is no such argument, since nobody at any point argued that a native Win64 
compiler would be faster (other than maybe you in your last post).

> But then again from your prospective... I would certainly really mull
> the complaints over since most likely you two would have to oversee
> the work and get lots of questions along the way.  Seems to me like
> work is being averted here... :-(

Speeding up compilation is always nice (and if anyone wants to dive into the 
unit loading logic, solve its existing problems and make it multi-threading 
safe, I'd be delighted -- I already spent several weeks on trying, and largely 
failing, to merely solve particular bugs in it), but I fail to see how that is 
in any way related to the current thread.


Jonas___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] Win64 FPC is in wrong download location

2010-05-04 Thread Michael Van Canneyt



On Tue, 4 May 2010, Florian Klaempfl wrote:


Graeme Geldenhuys schrieb:

On 4 May 2010 16:04, Michael Van Canneyt  wrote:

We offer a .tar.gz for download, so what is the problem ?
No-one is forced to use rpm or .deb files ?


I don't have a problem, but it sounded like Florian has (or I
misunderstood him). From what I understood, he stated that deployment
is easier under Windows


It is *part* of the problem yes. Just look at the lib64/lib mess or
finding the right gcc on linux.


and able to run on older Windows without
problems. I simply stated that Linux deployment is easy too, if you
use .tar.gz with pre-build binaries inside


See below.


(including running newer
binaries on older systems - non-gui or fpGUI based of course).



fpGUI probably depends as well as the fp text mode ide on glibc etc. so
running on older systems is pure luck.


This is correct. I did some tests for this when still running SuSE.
Only binaries that do not depend on LibC will run on old linux distros.

Michael.
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] Win64 FPC is in wrong download location

2010-05-04 Thread Michael Van Canneyt



On Tue, 4 May 2010, Andrew Brunner wrote:


On Tue, May 4, 2010 at 10:09 AM, Jonas Maebe  wrote:


Cross-compilers can be just as multi-threaded as "native" ones. This is a 
completely orthogonal feature.


True statement but I fear does not address the issue at hand.  You
guys really need to tap talent - there's gotta be somebody here that
wants to solve the compile times... And when that is solved... the
argument of slow compile times as it relates to the reason of not
having a native 64bit Windows compiler will then become mute...


As far as I know:
The Morfik people solve this in their IDE by continuously compiling
your project in the background while you are editing, as a low priority
process. When you actually hit the compile button, it's just the linking 
stage that is done - which is by itself a lengthy process.


It's the first thing I disabled, because it eats CPU power and reduces
the responsiveness of your PC incredibly.

Michael.
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] Win64 FPC is in wrong download location

2010-05-04 Thread Florian Klaempfl
Graeme Geldenhuys schrieb:
> On 4 May 2010 16:04, Michael Van Canneyt  wrote:
>> We offer a .tar.gz for download, so what is the problem ?
>> No-one is forced to use rpm or .deb files ?
> 
> I don't have a problem, but it sounded like Florian has (or I
> misunderstood him). From what I understood, he stated that deployment
> is easier under Windows 

It is *part* of the problem yes. Just look at the lib64/lib mess or
finding the right gcc on linux.

> and able to run on older Windows without
> problems. I simply stated that Linux deployment is easy too, if you
> use .tar.gz with pre-build binaries inside 

See below.

> (including running newer
> binaries on older systems - non-gui or fpGUI based of course).
> 

fpGUI probably depends as well as the fp text mode ide on glibc etc. so
running on older systems is pure luck.
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] Win64 FPC is in wrong download location

2010-05-04 Thread Andrew Brunner
On Tue, May 4, 2010 at 10:09 AM, Jonas Maebe  wrote:

> Cross-compilers can be just as multi-threaded as "native" ones. This is a 
> completely orthogonal feature.
>
True statement but I fear does not address the issue at hand.  You
guys really need to tap talent - there's gotta be somebody here that
wants to solve the compile times... And when that is solved... the
argument of slow compile times as it relates to the reason of not
having a native 64bit Windows compiler will then become mute...

But then again from your prospective... I would certainly really mull
the complaints over since most likely you two would have to oversee
the work and get lots of questions along the way.  Seems to me like
work is being averted here... :-(
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] Win64 FPC is in wrong download location

2010-05-04 Thread Florian Klaempfl
Graeme Geldenhuys schrieb:
> On 4 May 2010 16:14, Jonas Maebe  wrote:
>> b) we only distribute an i386->x86-64 cross-compiler because on Windows the 
>> problem that exists under Linux does not exist, and there is no advantage to 
>> having a native x86-64 Windows compiler (at best it will be just as fast as 
>> a i386->x86-64 cross-compiler, and at worst it will be slower)
>>
> 
> 
> "This is a cross compiler package from i386-win32 to x86_64-win64.
> Before you can use it, you need to install fpc for i386-win32. " --
> Free Pascal website
> 
> http://www.freepascal.org/down/x86_64/win64-ftp.freepascal.org.var
> 
> 
> So to be able to compile Win64 apps, we need two installations. The
> Win64 download (17MB) and the i386 download (35MB).
> 
> * now installation is more complex than it needs to be. It now
> requires two FPC versions.

... having the advantage that you can create 32 and 64 bit executables.
Further, you shouldn't forget that win64 executables are larger (example
from today: ppcrossx64.exe 1774956 bytes, ppcx64.exe 2203296 bytes) so
I'd expect a Win64 installer to be 40-45 MB so the additional size due
to the two packages is negliable.

> * Increases download size

Not necessarily: I use 32 bit windows (laptop) and 64 bit windows
(desktop). To be able to compile 32 bit, 64 bit and windows ce apps, I
need to download three packages, I install them on my laptop and on my
desktop. Having a native win32 bit compiler and a native win64 compiler
and cross compilers for every host, it would require that I download 6
packages, i.e. the double size.

> * Cross-compiling doesn't always work, by producing corrupt binaries.

I'am not aware of a single problem with cross-compiling to win64 and I
consider it also as very unlikely because win64 uses no cross-binutils
but assembling and linking as done completly by fpc and not a single
external program is involved.

> * Myth that Win64 compiler was slower than i386 cross compiler

I didn't see new Win64 numbers yet?

Anyways, I'am glad if anybody else volounteers runs, fixes, uploads and
tests future win release builds and provides more than the current
installers. He might start with the bug complaining that fpc cannot be
installed without administrator privileges ;)
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] Win64 FPC is in wrong download location

2010-05-04 Thread Jonas Maebe

On 04 May 2010, at 16:01, Andrew Brunner wrote:

> On Tue, May 4, 2010 at 9:17 AM, Jonas Maebe  wrote:
> 
>> ... and why we do not do this *for Windows*.
> 
> I disagree. I think some thought should go into having a
> multi-threaded system for building projects.  If we had a dependency
> tree worker threads could transverse the tree and compile near
> instantly.  Having a linear compile for projects so 1980s.  With CPUs
> and memory on all new computers in the gig range... I say it's time to
> start thinking about commercial users :-)
> With a multi-threaded system for compiling and reporting status, I
> believe that native compilers would be completely justified...  But
> it's kinda like the chicken before the egg, again isn't it?  How
> ironic to say the least.

Cross-compilers can be just as multi-threaded as "native" ones. This is a 
completely orthogonal feature.


Jonas___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] Win64 FPC is in wrong download location

2010-05-04 Thread Andrew Brunner
On Tue, May 4, 2010 at 9:17 AM, Jonas Maebe  wrote:

> ... and why we do not do this *for Windows*.


I disagree.  I think some thought should go into having a
multi-threaded system for building projects.  If we had a dependency
tree worker threads could transverse the tree and compile near
instantly.  Having a linear compile for projects so 1980s.  With CPUs
and memory on all new computers in the gig range... I say it's time to
start thinking about commercial users :-)
With a multi-threaded system for compiling and reporting status, I
believe that native compilers would be completely justified...  But
it's kinda like the chicken before the egg, again isn't it?  How
ironic to say the least.
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] Win64 FPC is in wrong download location

2010-05-04 Thread Jonas Maebe

On 04 May 2010, at 15:29, Graeme Geldenhuys wrote:

> So to be able to compile Win64 apps, we need two installations. The
> Win64 download (17MB) and the i386 download (35MB).
> 
> * now installation is more complex than it needs to be. It now
> requires two FPC versions.

I have not yet seen bug reports or problem reports about people struggling with 
this.

> * Increases download size

That is correct (if you are not interested in ever compiling any Win32 apps).

> * Increases the difficulty in debugging

It does not, unless you regularly debug the compiler binaries that we ship 
(which I doubt, since they are fully stripped).

> * Cross-compiling doesn't always work, by producing corrupt binaries.

Until today, the people responsible for packaging the Windows releases did not 
know this.

> * Myth that Win64 compiler was slower than i386 cross compiler (info
> supplied by you)

I only provided data for Mac OS X. The situation may be quite different under 
Win64.


Jonas___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] Win64 FPC is in wrong download location

2010-05-04 Thread Graeme Geldenhuys
On 4 May 2010 16:14, Jonas Maebe  wrote:
> b) we only distribute an i386->x86-64 cross-compiler because on Windows the 
> problem that exists under Linux does not exist, and there is no advantage to 
> having a native x86-64 Windows compiler (at best it will be just as fast as a 
> i386->x86-64 cross-compiler, and at worst it will be slower)
>


"This is a cross compiler package from i386-win32 to x86_64-win64.
Before you can use it, you need to install fpc for i386-win32. " --
Free Pascal website

http://www.freepascal.org/down/x86_64/win64-ftp.freepascal.org.var


So to be able to compile Win64 apps, we need two installations. The
Win64 download (17MB) and the i386 download (35MB).

* now installation is more complex than it needs to be. It now
requires two FPC versions.
* Increases download size
* Increases the difficulty in debugging
* Cross-compiling doesn't always work, by producing corrupt binaries.
* Myth that Win64 compiler was slower than i386 cross compiler (info
supplied by you)

So now you have a list that negates the benefits of a cross-compiler
for Win64 platforms. Simply producing a native Win64 would solve all
these issues. Hence Michael and I agree that simply creating our own
native compiler would solves all these issues. Something which should
probably have been done by the FPC release team in the first place.


-- 
Regards,
  - Graeme -


___
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] Win64 FPC is in wrong download location

2010-05-04 Thread Jonas Maebe

On 04 May 2010, at 15:14, Jonas Maebe wrote:

> The above is a correct and full answer to the question why we distribute a 
> native x86-64 compiler for Linux even if it is believed to be slower than an 
> i386->x86-64 cross-compiler, and why we do not do this for Linux.

... and why we do not do this *for Windows*.


Jonas___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] Win64 FPC is in wrong download location

2010-05-04 Thread Jonas Maebe

On 04 May 2010, at 15:07, Graeme Geldenhuys wrote:

> On 4 May 2010 14:12, Andrew Brunner  wrote:
>> 
>> How is it possible that under *nix I'm able to live with the memory
>> performance of 64bit FPC but cannot with Windows?
> 
> This is the exact question I asked Florian, but he side-tracked the
> answer. [or I haven't read a new reply yet].

"I did not get the answer I expected" is not the same as "he side-tracked the 
question". He said
a) we distribute native i386 and x86-64 Linux versions because it is not always 
trivial to use i386 binaries on a 64 bit Linux distribution. The reason for the 
separate distributions has nothing to do with speed.
b) we only distribute an i386->x86-64 cross-compiler because on Windows the 
problem that exists under Linux does not exist, and there is no advantage to 
having a native x86-64 Windows compiler (at best it will be just as fast as a 
i386->x86-64 cross-compiler, and at worst it will be slower)

The above is a correct and full answer to the question why we distribute a 
native x86-64 compiler for Linux even if it is believed to be slower than an 
i386->x86-64 cross-compiler, and why we do not do this for Linux.


Jonas___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] Win64 FPC is in wrong download location

2010-05-04 Thread Graeme Geldenhuys
On 4 May 2010 16:04, Michael Van Canneyt  wrote:
>
> We offer a .tar.gz for download, so what is the problem ?
> No-one is forced to use rpm or .deb files ?

I don't have a problem, but it sounded like Florian has (or I
misunderstood him). From what I understood, he stated that deployment
is easier under Windows and able to run on older Windows without
problems. I simply stated that Linux deployment is easy too, if you
use .tar.gz with pre-build binaries inside (including running newer
binaries on older systems - non-gui or fpGUI based of course).


-- 
Regards,
  - Graeme -


___
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] Win64 FPC is in wrong download location

2010-05-04 Thread Henry Vermaak
On 4 May 2010 14:55, Graeme Geldenhuys  wrote:
>
> It's just the stupid .RPM and .DEB packages that prevent installation, due
> to other external dependencies (eg: pulling in MySQL or Firebird database
> libraries etc). I'm pretty confident a binary FPC executable can run on
> much older Linux distros. I anyway need to install Suse 8.0 for some old
> Kylix 3 project, so I'll be able to test this theory again. :-)

The fpc debs probably need to be split up, like e.g. php does.  Then
the dependencies would be more fine-grained.

Henry
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] Win64 FPC is in wrong download location

2010-05-04 Thread Jonas Maebe

On 04 May 2010, at 14:52, Michael Van Canneyt wrote:

> Summarizing we can state that code execution is not significantly different
> between 32/64 bit, but the binary and memory sizes make the apps load/start 
> slower.
> 
> Correct ?

Not from my experience with the compiler binary on Mac OS X. There are no 
significant speed differences at any level in the tests I did (a 5% increase in 
system time, on a baseline of 700ms, is not statistically significant when 
using a command like "time" to check for execution times).


Jonas___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] Win64 FPC is in wrong download location

2010-05-04 Thread Graeme Geldenhuys
On 4 May 2010 14:12, Andrew Brunner  wrote:
>
> How is it possible that under *nix I'm able to live with the memory
> performance of 64bit FPC but cannot with Windows?

This is the exact question I asked Florian, but he side-tracked the
answer. [or I haven't read a new reply yet].


-- 
Regards,
  - Graeme -


___
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] Win64 FPC is in wrong download location

2010-05-04 Thread Michael Van Canneyt



On Tue, 4 May 2010, Graeme Geldenhuys wrote:


Florian Klaempfl het geskryf:


No. It actually proves that using 32 bit executables (and installer
packages!) on 64 bit linux is a pain. On windows, we can cover with two
installers Win2k (no idea about Win98) up to Win7 regardless if 32 or 64
bit, on linux things are much more compilcated.


I thought we were talking about FPC performance, not deployment. But while
you are at it. What if Linux versions of FPC simply used .tar.gz package
instead of RPM or DEB?


We offer a .tar.gz for download, so what is the problem ?

No-one is forced to use rpm or .deb files ?

Michael.
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] Win64 FPC is in wrong download location

2010-05-04 Thread Graeme Geldenhuys
Florian Klaempfl het geskryf:
> 
> No. It actually proves that using 32 bit executables (and installer
> packages!) on 64 bit linux is a pain. On windows, we can cover with two
> installers Win2k (no idea about Win98) up to Win7 regardless if 32 or 64
> bit, on linux things are much more compilcated.

I thought we were talking about FPC performance, not deployment. But while
you are at it. What if Linux versions of FPC simply used .tar.gz package
instead of RPM or DEB?  I have tested my executables (GUI applications, not
FPC) generated on Ubuntu 8.04.2 with a old Slackware 9.0  [if I remember
correctly] (anyway the distro was quite a few years old), and my apps ran
perfectly.

It's just the stupid .RPM and .DEB packages that prevent installation, due
to other external dependencies (eg: pulling in MySQL or Firebird database
libraries etc). I'm pretty confident a binary FPC executable can run on
much older Linux distros. I anyway need to install Suse 8.0 for some old
Kylix 3 project, so I'll be able to test this theory again. :-)



Regards,
  - Graeme -

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://opensoft.homeip.net/fpgui/


___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] Win64 FPC is in wrong download location

2010-05-04 Thread Michael Van Canneyt



On Tue, 4 May 2010, Jonas Maebe wrote:



On 04 May 2010, at 13:56, Jonas Maebe wrote:


i386->i386 compiler compiling itself:
user0m8.180s
sys 0m0.694s

x86-64->i386 compiler compiling itself:
user0m8.096s
sys 0m0.736s


And i386->i386 compiler compiling itself (again using the same options), but 
with the starting compiler compiled with -Ooasmcse (which is what was disabled by 
default in 2.4.0):
user0m8.047s
sys 0m0.687s

So it doesn't make any real difference for the compiler.


Summarizing we can state that code execution is not significantly different
between 32/64 bit, but the binary and memory sizes make the apps load/start 
slower.


Correct ?

Michael.
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] Win64 FPC is in wrong download location

2010-05-04 Thread Jonas Maebe

On 04 May 2010, at 13:56, Jonas Maebe wrote:

> i386->i386 compiler compiling itself:
> user  0m8.180s
> sys   0m0.694s
> 
> x86-64->i386 compiler compiling itself:
> user  0m8.096s
> sys   0m0.736s

And i386->i386 compiler compiling itself (again using the same options), but 
with the starting compiler compiled with -Ooasmcse (which is what was disabled 
by default in 2.4.0):
user0m8.047s
sys 0m0.687s

So it doesn't make any real difference for the compiler.


Jonas___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] Win64 FPC is in wrong download location

2010-05-04 Thread Jonas Maebe

On 04 May 2010, at 14:05, Jonas Maebe wrote:

> On 04 May 2010, at 13:58, Michael Van Canneyt wrote:
> 
>> On Linux, there was a major difference between i386 and x64_64
>> compilers when running a "make cycle'. But I admit that my last test was 
>> definitely from before 2.4.0.
> 
> "make cycle" not only tests the speed of the compiler code, but also of 
> process launching, make, the shell, and a bunch of other external utilities.

And, since you are compiling native compilers rather than cross-compilers in 
this case, its speed also depends on
a) the number of source files in the compiler for a particular architecture
b) the number of RTL units for a particular architecture


Jonas___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] Win64 FPC is in wrong download location

2010-05-04 Thread Jonas Maebe

On 04 May 2010, at 13:58, Michael Van Canneyt wrote:

> On Linux, there was a major difference between i386 and x64_64
> compilers when running a "make cycle'. But I admit that my last test was 
> definitely from before 2.4.0.

"make cycle" not only tests the speed of the compiler code, but also of process 
launching, make, the shell, and a bunch of other external utilities. If the 
test was a long time ago, maybe the speed regressions due to the Linux kernel 
or libraries rather than in FPC.


Jonas___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] Win64 FPC is in wrong download location

2010-05-04 Thread Jonas Maebe

On 04 May 2010, at 13:56, Jonas Maebe wrote:

> i386->i386 compiler compiling itself:
> user  0m8.180s
> sys   0m0.694s
> 
> x86-64->i386 compiler compiling itself:
> user  0m8.096s
> sys   0m0.736s
> 
> So at least on Mac OS X there is no real speed difference between the two.

... on my Core 2 Duo. Other CPUs may of course give different results.


Jonas
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] Win64 FPC is in wrong download location

2010-05-04 Thread Michael Van Canneyt



On Tue, 4 May 2010, Jonas Maebe wrote:



On 04 May 2010, at 12:51, Michael Van Canneyt wrote:


The i386 version of the compiler is simply much more optimized as the 64-bit
version (as are all FPC-generated binaries).


That was true pre-2.4.0, but as of 2.4.0 the assembler optimiser is no longer 
enabled by default on i386 (and it didn't make that big of a difference in 
previous versions either). There are still some more peephole optimisations for 
i386, but I don't think the i386 code that FPC generates is that much more 
optimised than that for x86_64 at this point (or even PowerPC, for that matter).

And as far as the speed of the compiler binary is concerned depending on 
whether it consists of i386 or x86_64 machine code (using -a -s so that the 
speed of the external assembler is not included):

i386->i386 compiler compiling itself:
user0m8.180s
sys 0m0.694s

x86-64->i386 compiler compiling itself:
user0m8.096s
sys 0m0.736s

So at least on Mac OS X there is no real speed difference between the two.


Hm.

On Linux, there was a major difference between i386 and x64_64
compilers when running a "make cycle'. But I admit that my last 
test was definitely from before 2.4.0.


Michael.
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] Win64 FPC is in wrong download location

2010-05-04 Thread Jonas Maebe

On 04 May 2010, at 12:51, Michael Van Canneyt wrote:

> The i386 version of the compiler is simply much more optimized as the 64-bit
> version (as are all FPC-generated binaries).

That was true pre-2.4.0, but as of 2.4.0 the assembler optimiser is no longer 
enabled by default on i386 (and it didn't make that big of a difference in 
previous versions either). There are still some more peephole optimisations for 
i386, but I don't think the i386 code that FPC generates is that much more 
optimised than that for x86_64 at this point (or even PowerPC, for that matter).

And as far as the speed of the compiler binary is concerned depending on 
whether it consists of i386 or x86_64 machine code (using -a -s so that the 
speed of the external assembler is not included):

i386->i386 compiler compiling itself:
user0m8.180s
sys 0m0.694s

x86-64->i386 compiler compiling itself:
user0m8.096s
sys 0m0.736s

So at least on Mac OS X there is no real speed difference between the two.


Jonas___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] Win64 FPC is in wrong download location

2010-05-04 Thread Andrew Brunner
On Tue, May 4, 2010 at 6:40 AM, Florian Klaempfl  wrote:
>> @Florian
>> I believe you develop mostly under Windows. Maybe the FPC slowness should
>> be resolved before Delphi releases a 64-bit compiler?
>
> This cannot be resolved. A 64-Bit compiler has a bigger memory footprint
> because FPC uses a lot of pointers and pointers simply double in size on
> a 64 bit system.
> ___
> fpc-devel maillist  -  fpc-de...@lists.freepascal.org
> http://lists.freepascal.org/mailman/listinfo/fpc-devel
>

Well, I exclusively use multi core AMD x64 cpus here.  I was surprised
to figure out all of this a few months ago and promptly removed Win64
back to Win32 on my laptop.  But I do use Ubuntu x64 everywhere else.

How is it possible that under *nix I'm able to live with the memory
performance of 64bit FPC but cannot with Windows?  I really think that
for scientific computing Linux would be better (since it's free).
However, for commercial grade service applications Win64 support for
FPC is essential.

I was going to raise these issues a while back when I learned of this.
 I just figured that someone needed an MS Windows XP x64 license...
Which I am willing to donate...
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] Win64 FPC is in wrong download location

2010-05-04 Thread Michael Van Canneyt



On Tue, 4 May 2010, Florian Klaempfl wrote:


@Florian
I believe you develop mostly under Windows. Maybe the FPC slowness should
be resolved before Delphi releases a 64-bit compiler?


This cannot be resolved. A 64-Bit compiler has a bigger memory footprint
because FPC uses a lot of pointers and pointers simply double in size on
a 64 bit system.


This is correct, but it is only a part of the story if I am correct.

The i386 version of the compiler is simply much more optimized as the 64-bit
version (as are all FPC-generated binaries).

Michael.
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] Win64 FPC is in wrong download location

2010-05-04 Thread Florian Klaempfl
Graeme Geldenhuys schrieb:
> On 4 May 2010 10:11, Florian Klaempfl  wrote:
>> Because it has no advantage over a win32 executable (it is very unlikely
>> that the compiler needs more than 2 or 3 GB and a native win64 compiler
>> is slower due to bigger memoy footprint) and because it would require
>> additional release preparations.
> 
> 
> BTW:
> So why is there a native 64-bit Linux compiler?  Shouldn't the same as
> what you mentioned apply to the Linux platform too? [if not, then I
> guess it's proof that the Windows platform is crap and slow. ;-)]

No. It actually proves that using 32 bit executables (and installer
packages!) on 64 bit linux is a pain. On windows, we can cover with two
installers Win2k (no idea about Win98) up to Win7 regardless if 32 or 64
bit, on linux things are much more compilcated.
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] Win64 FPC is in wrong download location

2010-05-04 Thread Florian Klaempfl
> @Florian
> I believe you develop mostly under Windows. Maybe the FPC slowness should
> be resolved before Delphi releases a 64-bit compiler? 

This cannot be resolved. A 64-Bit compiler has a bigger memory footprint
because FPC uses a lot of pointers and pointers simply double in size on
a 64 bit system.
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] Win64 FPC is in wrong download location

2010-05-04 Thread Michael Van Canneyt



On Tue, 4 May 2010, Jonas Maebe wrote:



On 04 May 2010, at 10:44, Michael Van Canneyt wrote:


I had the same experience as Graeme. Admittedly, a couple of years ago.
I never found out why the generated binaries did not work. They simply
refused to run, and immediatly exited. (both from explorer and command-line
prompt)


Again: I've never seen a previous post or bug report about this.


That's because I was not sure about my toolchain: I never said the error is
in FPC. It could equally well be in e.g. ld.

But for me, it is definitely an argument in favour of native development:
elimination of possible sources of errors.

Michael.
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] Win64 FPC is in wrong download location

2010-05-04 Thread Graeme Geldenhuys
Jonas Maebe het geskryf:
> 
> Again: I've never seen a previous post or bug report about this.

For me, it occurred with the 2.4.0 compiler (my issue was back in January).
I'll try the cross-compiling again, after all, if it works, it will save me
a huge amount of time when we do release builds of our project.

I'll update my compilers to latest 2.4.1 code and if it occurs again, I'll
report the bug and see if I can reproduce it will a smaller test executable
that I can attach to the bug report.


Regards,
  - Graeme -

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://opensoft.homeip.net/fpgui/

___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] Win64 FPC is in wrong download location

2010-05-04 Thread Jonas Maebe

On 04 May 2010, at 10:44, Michael Van Canneyt wrote:

> I had the same experience as Graeme. Admittedly, a couple of years ago.
> I never found out why the generated binaries did not work. They simply
> refused to run, and immediatly exited. (both from explorer and command-line
> prompt)

Again: I've never seen a previous post or bug report about this.


Jonas
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] Win64 FPC is in wrong download location

2010-05-04 Thread Michael Van Canneyt



On Tue, 4 May 2010, Jonas Maebe wrote:



On 04 May 2010, at 10:16, Graeme Geldenhuys wrote:


Jonas Maebe het geskryf:



Cross-compiling is OK for small mobile devices, but not for mature platforms and
daily development.


Why not?


Because it doesn't always work.

I run 64-bit FPC under Linux. I have cross-compiled 32-bit Linux and 32-bit
Windows executables. The compilation went fine (no errors), but the
executables were not runnable on the 32-bit platforms. In the end I had to
setup 32-bit VirtualBox sessions with 32-bit FPC compilers to get actual
working executables.

No idea why the cross-compiling created corrupted executables.


The above simply does not make any sense. I'm not saying that the above was not your experience, 
but other than a very strange bug which I have never seen mentioned by anyone before, 
I have no idea what could cause those problems. It's definitely not some kind of inherent 
problem of cross-compiling (with FPC or otherwise).


I had the same experience as Graeme. Admittedly, a couple of years ago.
I never found out why the generated binaries did not work. They simply
refused to run, and immediatly exited. (both from explorer and command-line
prompt)

Michael.
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] Win64 FPC is in wrong download location

2010-05-04 Thread Jonas Maebe

On 04 May 2010, at 10:16, Graeme Geldenhuys wrote:

> Jonas Maebe het geskryf:
>> 
>>> Cross-compiling is OK for small mobile devices, but not for mature 
>>> platforms and
>>> daily development.
>> 
>> Why not?
> 
> Because it doesn't always work.
> 
> I run 64-bit FPC under Linux. I have cross-compiled 32-bit Linux and 32-bit
> Windows executables. The compilation went fine (no errors), but the
> executables were not runnable on the 32-bit platforms. In the end I had to
> setup 32-bit VirtualBox sessions with 32-bit FPC compilers to get actual
> working executables.
> 
> No idea why the cross-compiling created corrupted executables.

The above simply does not make any sense. I'm not saying that the above was not 
your experience, but other than a very strange bug which I have never seen 
mentioned by anyone before, I have no idea what could cause those problems. 
It's definitely not some kind of inherent problem of cross-compiling (with FPC 
or otherwise).


Jonas___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] Win64 FPC is in wrong download location

2010-05-04 Thread Graeme Geldenhuys
Michael Van Canneyt het geskryf:
> 
> Installing 32-bit apps on 64-bit linux is asking for problems,

Simply running apps, I haven't experienced any problems. Cross-compiling
32-bit (linux and windows) apps, I have had issues.

> Personally, I would simply recompile a 64-bit FPC for windows
> if I had to do 64-bit development on windows.

+1

I just thought, maybe there is some technical issue with FPC and a native
64-bit executable.


@Florian
I believe you develop mostly under Windows. Maybe the FPC slowness should
be resolved before Delphi releases a 64-bit compiler? At least that way FPC
will trump Delphi for a while with no excuses.


Regards,
  - Graeme -

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://opensoft.homeip.net/fpgui/

___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] Win64 FPC is in wrong download location

2010-05-04 Thread Michael Van Canneyt



On Tue, 4 May 2010, Jonas Maebe wrote:



On 04 May 2010, at 09:46, Michael Van Canneyt wrote:


Cross-compiling is OK for small mobile devices, but not for mature platforms and
daily development.


Why not?


Because of 2 reasons:

1. you can't debug properly. And with that I mean an efficient
edit-compile-debug
cycle. I tried debugging a 32-bit app on a 64-bit platform, and
gave up because of all the small but annoying things that didn't work.

2. You need all libraries installed for the target platform, 
which is always a pain and sometimes plain impossible.


So I gave up. I can't afford to lose so much time on getting
things that should just work to actually work, when I can simply
do everything natively and not have any of these problems from
the very start.

I'm not saying it can't be done, but I do say that doing it natively
is simply much more efficient. I sleep better as well, then ;-)

Michael.
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] Win64 FPC is in wrong download location

2010-05-04 Thread Graeme Geldenhuys
Jonas Maebe het geskryf:
> 
>> Cross-compiling is OK for small mobile devices, but not for mature platforms 
>> and
>> daily development.
> 
> Why not?

Because it doesn't always work.

I run 64-bit FPC under Linux. I have cross-compiled 32-bit Linux and 32-bit
Windows executables. The compilation went fine (no errors), but the
executables were not runnable on the 32-bit platforms. In the end I had to
setup 32-bit VirtualBox sessions with 32-bit FPC compilers to get actual
working executables.

No idea why the cross-compiling created corrupted executables.


Regards,
  - Graeme -

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://opensoft.homeip.net/fpgui/

___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] New FCL docs (PDF) has formatting mistakes

2010-05-04 Thread Michael Van Canneyt



On Tue, 4 May 2010, Graeme Geldenhuys wrote:


Hi Michael,

 ftp://ftp.freepascal.org/pub/fpc/dist/2.4.0/docs/

The FCL documentation for the DB unit has some formatting mistakes (pdf
version of docs). In the PDF document, some code examples do not wrap, and
simply go of the edge of the page. This happens onscreen and when printed.
I used Adobe Reader, Evince and XPDF to view them, so it's not a viewer issue.


And rightly so, it should not depend on the viewer. 
Otherwise we could dump the whole PDF format.




Some pages that are affected: 207, 208, 210, 255 etc..


This will require some work: these are the automatically generated
definitions of the various structures.

Some lateral thinking will be needed to solve this one.

Michael.
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] Win64 FPC is in wrong download location

2010-05-04 Thread Jonas Maebe

On 04 May 2010, at 09:46, Michael Van Canneyt wrote:

> Cross-compiling is OK for small mobile devices, but not for mature platforms 
> and
> daily development.

Why not?


Jonas___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


[fpc-devel] New FCL docs (PDF) has formatting mistakes

2010-05-04 Thread Graeme Geldenhuys
Hi Michael,

  ftp://ftp.freepascal.org/pub/fpc/dist/2.4.0/docs/

The FCL documentation for the DB unit has some formatting mistakes (pdf
version of docs). In the PDF document, some code examples do not wrap, and
simply go of the edge of the page. This happens onscreen and when printed.
I used Adobe Reader, Evince and XPDF to view them, so it's not a viewer issue.

Some pages that are affected: 207, 208, 210, 255 etc..


Regards,
  - Graeme -

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://opensoft.homeip.net/fpgui/

___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] Win64 FPC is in wrong download location

2010-05-04 Thread Michael Van Canneyt



On Tue, 4 May 2010, Graeme Geldenhuys wrote:


On 4 May 2010 10:11, Florian Klaempfl  wrote:


Because it has no advantage over a win32 executable (it is very unlikely
that the compiler needs more than 2 or 3 GB and a native win64 compiler
is slower due to bigger memoy footprint) and because it would require
additional release preparations.



BTW:
So why is there a native 64-bit Linux compiler?  Shouldn't the same as
what you mentioned apply to the Linux platform too? [if not, then I
guess it's proof that the Windows platform is crap and slow. ;-)]


Installing 32-bit apps on 64-bit linux is asking for problems,
and doubly so when you must develop. So a native binary is preferred.

Personally, I would simply recompile a 64-bit FPC for windows
if I had to do 64-bit development on windows. Cross-compiling 
is OK for small mobile devices, but not for mature platforms and

daily development.

Michael.
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] Win64 FPC is in wrong download location

2010-05-04 Thread Graeme Geldenhuys
On 4 May 2010 10:11, Florian Klaempfl  wrote:
>
> Because it has no advantage over a win32 executable (it is very unlikely
> that the compiler needs more than 2 or 3 GB and a native win64 compiler
> is slower due to bigger memoy footprint) and because it would require
> additional release preparations.

Then maybe all this should be mentioned on the Win64 download page on
the Free Pascal website. I'm pretty user this is confusing to other
people as well, looking for the Win64 native compiler.  Just a
thought.

-- 
Regards,
  - Graeme -


___
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


[fpc-devel] Re: SourceForge docs not updated - where are new docs?

2010-05-04 Thread Graeme Geldenhuys
On 4 May 2010 10:19, Graeme Geldenhuys  wrote:
>
>   http://www.freepascal.org/down/docs/docs-ftp.freepascal.org.var


Also the .zip PDF download link says 6.1MB download, when in fact it
is 6.8 MB (7100651 bytes).   ;-)

  ftp://ftp.freepascal.org/pub/fpc/dist/2.4.0/docs/doc-pdf.zip

-- 
Regards,
  - Graeme -


___
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] Win64 FPC is in wrong download location

2010-05-04 Thread Graeme Geldenhuys
On 4 May 2010 10:11, Florian Klaempfl  wrote:
>
> Because it has no advantage over a win32 executable (it is very unlikely
> that the compiler needs more than 2 or 3 GB and a native win64 compiler
> is slower due to bigger memoy footprint) and because it would require
> additional release preparations.


BTW:
So why is there a native 64-bit Linux compiler?  Shouldn't the same as
what you mentioned apply to the Linux platform too? [if not, then I
guess it's proof that the Windows platform is crap and slow. ;-)]



-- 
Regards,
  - Graeme -


___
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


[fpc-devel] SourceForge docs not updated - where are new docs?

2010-05-04 Thread Graeme Geldenhuys
Hi,

Michael announced on 6 Mar that the FPC 2.4.0 docs have been update
due to the new docs for the DB unit. Well, looking on SourceForge
(link found from Free Pascal website), the last docs updated was from
2009-12-30. So they are still the old docs from original FPC 2.4.0
release date. Could somebody update them please?

  http://sourceforge.net/projects/freepascal/files/


Also, where exactly are these updated docs?  Maybe...

   http://www.freepascal.org/down/docs/docs-ftp.freepascal.org.var

But the above page doesn't mention any dates, so I don't know if this
is the original docs, or the 6 Mar updated docs. Could somebody please
add dates to the above url (like is done with SourceForge) so we know
when the docs was generated. I don't want to keep downloading 6+ MB
just to find out they are old docs. I have limited data per month
(500MB) on my internet connection.

-- 
Regards,
  - Graeme -


___
fpGUI - a cross-platform Free Pascal GUI toolkit
http://opensoft.homeip.net/fpgui/
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] Win64 FPC is in wrong download location

2010-05-04 Thread Florian Klaempfl
Graeme Geldenhuys schrieb:
> Florian Klaempfl het geskryf:
>> Even more: the win64 package is an add on to the win32 installer.
> 
> 
> Why is there no native Win64 version?  

Because it has no advantage over a win32 executable (it is very unlikely
that the compiler needs more than 2 or 3 GB and a native win64 compiler
is slower due to bigger memoy footprint) and because it would require
additional release preparations.

> See comments from the following URL.
> You need i386-win32, to use the win64 version. It seems there is only a
> cross compiler available, no native win64 executable. :-/
> 
>   http://www.freepascal.org/down/x86_64/win64-ftp.freepascal.org.var
> 
> 
> 
> Regards,
>   - Graeme -
> 

___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] Win64 FPC is in wrong download location

2010-05-04 Thread Graeme Geldenhuys
Florian Klaempfl het geskryf:
> 
> Even more: the win64 package is an add on to the win32 installer.


Why is there no native Win64 version?  See comments from the following URL.
You need i386-win32, to use the win64 version. It seems there is only a
cross compiler available, no native win64 executable. :-/

  http://www.freepascal.org/down/x86_64/win64-ftp.freepascal.org.var



Regards,
  - Graeme -

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://opensoft.homeip.net/fpgui/

___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel


Re: [fpc-devel] Win64 FPC is in wrong download location

2010-05-04 Thread Florian Klaempfl
Vincent Snijders schrieb:
> Henry Vermaak schreef:
>> On 3 May 2010 23:49, Graeme Geldenhuys  wrote:
>>> Hi,
>>>
>>> Going to SourceForge to download the Win64 version of FPC, you have to
>>> navigate into the Win32 folder?! Surely it would make more sense to
>>> rename Win32 to Windows (so it can contain both 32 & 64-bit versions),
>>> or create a new Win64 folder for 64-bit versions.
>>
>> Perhaps the win32 refers to the version of the Windows API?
>>
>> http://en.wikipedia.org/wiki/Windows_API#Versions
> 
> No, it refers to the host system. The win64 compiler of FPC supplied by
> the fpc team is a cross compiler from win32 to win64.

Even more: the win64 package is an add on to the win32 installer.
___
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-devel