Re: [fpc-pascal] Windows IOT Core

2015-08-20 Thread Sven Barth
Am 20.08.2015 01:09 schrieb Chris Moody inqu...@greensnakedesign.com: On 08/19/2015 02:14 AM, Michael Schnell wrote: Did anybody try to compile fpc programs for this variant of Windows 10. It is available for ARM (eg it's said to run on the RasPI) and on Intel (e.g. for the MinnowBoard Max)

Re: [fpc-pascal] IS operator and library created objects

2015-08-20 Thread Sven Barth
Am 20.08.2015 03:42 schrieb Fabio Luis Girardi fluisgira...@gmail.com: Currently, I'm doing a small program that uses libraries, objects and the operator IS, that is know that this operator fails because of duplication of VMT. And /that/ is one of the reasons why dynamic packages were

Re: [fpc-pascal] IS operator and library created objects

2015-08-20 Thread Michael Van Canneyt
On Thu, 20 Aug 2015, Torsten Bonde Christiansen wrote: On 2015-08-20 08:06, Sven Barth wrote: Am 20.08.2015 03:42 schrieb Fabio Luis Girardi fluisgira...@gmail.com mailto:fluisgira...@gmail.com: Currently, I'm doing a small program that uses libraries, objects and the operator IS, that

Re: [fpc-pascal] IS operator and library created objects

2015-08-20 Thread Torsten Bonde Christiansen
On 2015-08-20 08:06, Sven Barth wrote: Am 20.08.2015 03:42 schrieb Fabio Luis Girardi fluisgira...@gmail.com mailto:fluisgira...@gmail.com: Currently, I'm doing a small program that uses libraries, objects and the operator IS, that is know that this operator fails because of duplication of

Re: [fpc-pascal] Issue with Linking

2015-08-20 Thread Jonas Maebe
Chris Moody wrote: Free Pascal Compiler version 3.0.0rc1 [2015/08/19] for arm Copyright (c) 1993-2015 by Florian Klaempfl and others Target OS: Linux for ARMEL This means that you probably did not specify OPT=-dFPC_ARMHF while building FPC 3.0. Jonas

Re: [fpc-pascal] Issue with Linking

2015-08-20 Thread Jonas Maebe
Martin Schreiber wrote: Where can we find a list of the possible and necessary options for building the Free Pascal compiler? compiler/README.txt looks incomplete. The most complete documentation is Marco's buildfaq: How can we find out the possible make targets and its meanings in compiler

Re: [fpc-pascal] Issue with Linking

2015-08-20 Thread Martin Schreiber
On Thursday 20 August 2015 09:07:59 Jonas Maebe wrote: Chris Moody wrote: Free Pascal Compiler version 3.0.0rc1 [2015/08/19] for arm Copyright (c) 1993-2015 by Florian Klaempfl and others Target OS: Linux for ARMEL This means that you probably did not specify OPT=-dFPC_ARMHF while

Re: [fpc-pascal] Issue with Linking

2015-08-20 Thread Chris Moody
On 08/20/2015 03:16 PM, Jonas Maebe wrote: Chris Moody wrote: To further add to the confusion, I found my Raspberry did not have locate installed, so I asked apt-get to get a copy and it obtained: Unpacking locate (from .../locate_4.4.2-4_armhf.deb) ... I did locate

Re: [fpc-pascal] *SPAM* Re: Windows IOT Core

2015-08-20 Thread Michael Schnell
On 08/20/2015 08:02 AM, Sven Barth wrote: Not if Microsoft requires apps to use the Windows RT APIs (probably even in form of universal apps). Because FPC has zero, null, nadda support for this. And even then you'd need a suitable assembler that can assemble to ARM-COFF (don't know

Re: [fpc-pascal] *SPAM* Re: Windows IOT Core

2015-08-20 Thread Michael Van Canneyt
On Thu, 20 Aug 2015, Michael Schnell wrote: On 08/20/2015 08:02 AM, Sven Barth wrote: Not if Microsoft requires apps to use the Windows RT APIs (probably even in form of universal apps). Because FPC has zero, null, nadda support for this. And even then you'd need a suitable assembler

Re: [fpc-pascal] IS operator and library created objects

2015-08-20 Thread Michael Schnell
On 08/20/2015 03:42 AM, Fabio Luis Girardi wrote: Everyone know some alternative (or more elegant)... AFAIK FPC does not support using objects (er even strings) cross a dynamic library interface. Delphi has Runtime Packages for this. But those are not (yet) implemented in fpc (which would

Re: [fpc-pascal] Issue with Linking

2015-08-20 Thread Graeme Geldenhuys
Hi Chris, I thought you might try the following pre-built FPC ARM compiler created by Paul Breneman - packaged as EasyfpGUI. He packages everything you need to get started into a single 5.7MB zip archive. It even includes fpGUI and some demo programs (serial debug terminal, fpGUI's visual forms

[fpc-pascal] I-Pascal: IDE based on IntelliJ platform

2015-08-20 Thread George Bakhtadze
Hi all, I-Pascal is an IDE (mainly code editor) for Object Pascal based on IntelliJ platform. Other products based on the platform includes IDEA, WebStorm, Android Studio. The platform is built around AST (abstract syntax tree) concept. The AST is built from code and used for analysis.

Re: [fpc-pascal] quality of FPC random

2015-08-20 Thread David W Noon
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Thu, 20 Aug 2015 22:50:05 +0200, Klaus Hartnegg (hartn...@gmx.de) wrote about Re: [fpc-pascal] quality of FPC random (in 55d63d7d.6040...@gmx.de): Am 14.08.2015 um 15:38 schrieb Xiangrong Fang: I need to generate random numbers to be used as IV

Re: [fpc-pascal] quality of FPC random

2015-08-20 Thread Peter
http://www.2uo.de/myths-about-urandom/ ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Issue with Linking

2015-08-20 Thread Chris Moody
On 08/20/2015 03:16 PM, Jonas Maebe wrote: Chris Moody wrote: To further add to the confusion, I found my Raspberry did not have locate installed, so I asked apt-get to get a copy and it obtained: Unpacking locate (from .../locate_4.4.2-4_armhf.deb) ... I did locate

Re: [fpc-pascal] Issue with Linking

2015-08-20 Thread Jonas Maebe
On 20/08/15 15:46, Chris Moody wrote: Thanks for that. Do you happen to know if you can build console based apps with it also? I have a deadline fast approaching, and at this point seriously considering re-writing the code in a language I know is supported on the Pi. I still don't understand

Re: [fpc-pascal] Issue with Linking

2015-08-20 Thread Jonas Maebe
On 20/08/15 16:03, Chris Moody wrote: Assembling dentist Linking Dentist /usr/bin/ld: warning: link.res contains output sections; did you forget -T? /home/pi/fpc-2.6.4/lib/fpc/2.6.4/units/arm-linux/rtl/cprt0.o: In function `_haltproc_eabi': (.text+0x88): undefined reference to `_fini'

Re: [fpc-pascal] Issue with Linking

2015-08-20 Thread Henry Vermaak
On Thu, Aug 20, 2015 at 07:03:11AM -0700, Chris Moody wrote: Assembling dentist Linking Dentist /usr/bin/ld: warning: link.res contains output sections; did you forget -T? /home/pi/fpc-2.6.4/lib/fpc/2.6.4/units/arm-linux/rtl/cprt0.o: In function `_haltproc_eabi': (.text+0x88): undefined

Re: [fpc-pascal] Issue with Linking

2015-08-20 Thread Jonas Maebe
On 20/08/15 16:15, Henry Vermaak wrote: Those symbols (_fini and _init) are defined in crti.o. Try `locate crti.o`, you'll get something like /usr/lib/{arch-triplet}/crti.o. Add this directory to your fpc options with -Fl. E.g. fpc -Fl/usr/lib/arm-linux-gnueabi Please do not do that. The

Re: [fpc-pascal] Issue with Linking

2015-08-20 Thread Martin Schreiber
On Thursday 20 August 2015 16:03:11 Chris Moody wrote: I've done that. Still can't compile code due to ld: Assembling dentist Linking Dentist /usr/bin/ld: warning: link.res contains output sections; did you forget -T? /home/pi/fpc-2.6.4/lib/fpc/2.6.4/units/arm-linux/rtl/cprt0.o: In

Re: [fpc-pascal] Issue with Linking

2015-08-20 Thread Graeme Geldenhuys
On 2015-08-20 15:03, Chris Moody wrote: I've done that. Still can't compile code due to ld: If you want I can dump my 4GB SD card to a compressed img and make it available for download on my server. It is the stock Raspbian with EasyFPC - thus a working FPC 2.6.2 compiler. Alternatively, I can

Re: [fpc-pascal] *SPAM* Re: *SPAM* Re: Windows IOT Core

2015-08-20 Thread Michael Schnell
On 08/20/2015 02:31 PM, Sven Barth wrote: Please keep in mind that while Windows 10 works on PCs, smartphones, the XBox, the HoloLens and other embedded systems this does not mean that developers are allowed to use the Win32 API everywhere (in fact the only one which allows it seems to be

Re: [fpc-pascal] Issue with Linking

2015-08-20 Thread Chris Moody
On 08/20/2015 07:11 AM, Jonas Maebe wrote: On 20/08/15 16:03, Chris Moody wrote: Assembling dentist Linking Dentist /usr/bin/ld: warning: link.res contains output sections; did you forget -T? /home/pi/fpc-2.6.4/lib/fpc/2.6.4/units/arm-linux/rtl/cprt0.o: In function `_haltproc_eabi':

Re: [fpc-pascal] *SPAM* Re: *SPAM* Re: Windows IOT Core

2015-08-20 Thread Michael Schnell
On 08/20/2015 02:31 PM, Sven Barth wrote: Microsoft will probably only allow the usage of Apps (in contrast to normal Win32 programs) there. Thus of course it requires the RT API. I am happy to report that you are wrong :-) A colleague of mine already since a few days does have the Intel

Re: [fpc-pascal] Issue with Linking

2015-08-20 Thread Chris Moody
On 08/20/2015 07:37 AM, Martin Schreiber wrote: On Thursday 20 August 2015 16:03:11 Chris Moody wrote: I've done that. Still can't compile code due to ld: Assembling dentist Linking Dentist /usr/bin/ld: warning: link.res contains output sections; did you forget -T?

Re: [fpc-pascal] Issue with Linking

2015-08-20 Thread Graeme Geldenhuys
On 2015-08-20 14:46, Chris Moody wrote: Thanks for that. Do you happen to know if you can build console based apps with it also? Yes definitely. I just tried with the latest archive from Paul. I could compile and link console apps and fpGUI's demo IDE (gui app). Regards, - Graeme -

Re: [fpc-pascal] Issue with Linking

2015-08-20 Thread Chris Moody
On 08/20/2015 06:56 AM, Jonas Maebe wrote: On 20/08/15 15:46, Chris Moody wrote: Thanks for that. Do you happen to know if you can build console based apps with it also? I have a deadline fast approaching, and at this point seriously considering re-writing the code in a language I know is

Re: [fpc-pascal] Issue with Linking

2015-08-20 Thread Henry Vermaak
On Thu, Aug 20, 2015 at 04:19:33PM +0200, Jonas Maebe wrote: On 20/08/15 16:15, Henry Vermaak wrote: Those symbols (_fini and _init) are defined in crti.o. Try `locate crti.o`, you'll get something like /usr/lib/{arch-triplet}/crti.o. Add this directory to your fpc options with -Fl. E.g.

Re: [fpc-pascal] Issue with Linking

2015-08-20 Thread Chris Moody
On 08/20/2015 07:02 AM, Graeme Geldenhuys wrote: On 2015-08-20 14:46, Chris Moody wrote: Thanks for that. Do you happen to know if you can build console based apps with it also? Yes definitely. I just tried with the latest archive from Paul. I could compile and link console apps and fpGUI's

Re: [fpc-pascal] Issue with Linking

2015-08-20 Thread Martin Schreiber
On Thursday 20 August 2015 10:01:03 Jonas Maebe wrote: The problem Linux/ARM specifically is also that you have to be pretty much an expert at Linux/ARM and know exactly what the capabilities of your ARM hardware are before you can know what you have to build, independent of instructions

Re: [fpc-pascal] IS operator and library created objects

2015-08-20 Thread Mark Morgan Lloyd
Michael Schnell wrote: On 08/20/2015 03:42 AM, Fabio Luis Girardi wrote: Everyone know some alternative (or more elegant)... AFAIK FPC does not support using objects (er even strings) cross a dynamic library interface. Unless you explicitly use the cmem library. However even then it's

Re: [fpc-pascal] Issue with Linking

2015-08-20 Thread Chris Moody
On 08/19/2015 10:52 PM, Martin Schreiber wrote: On Thursday 20 August 2015 00:56:46 Chris Moody wrote: How do I verify what mine uses? I've found the directions at http://michellcomputing.co.uk/blog/2014/05/freepascal-2-7-1-on-raspberry-pi / can't seem to be followed as Thaddy seems to not

Re: [fpc-pascal] *SPAM* Re: Windows IOT Core

2015-08-20 Thread Sven Barth
Am 20.08.2015 12:45 schrieb Michael Schnell mschn...@lumino.de: On 08/20/2015 08:02 AM, Sven Barth wrote: Not if Microsoft requires apps to use the Windows RT APIs (probably even in form of universal apps). Because FPC has zero, null, nadda support for this. And even then you'd need a

Re: [fpc-pascal] Issue with Linking

2015-08-20 Thread Chris Moody
On 08/20/2015 04:53 AM, Graeme Geldenhuys wrote: Hi Chris, I thought you might try the following pre-built FPC ARM compiler created by Paul Breneman - packaged as EasyfpGUI. He packages everything you need to get started into a single 5.7MB zip archive. It even includes fpGUI and some demo

Re: [fpc-pascal] Issue with Linking

2015-08-20 Thread Jonas Maebe
On 20/08/15 14:34, Martin Schreiber wrote: On Thursday 20 August 2015 10:01:03 Jonas Maebe wrote: The problem Linux/ARM specifically is also that you have to be pretty much an expert at Linux/ARM and know exactly what the capabilities of your ARM hardware are before you can know what you have

Re: [fpc-pascal] Issue with Linking

2015-08-20 Thread Martin Schreiber
On Thursday 20 August 2015 14:46:15 Jonas Maebe wrote: May I suggest to open a section in the Wiki where the necessary settings for different known ARM hardware/software targets are listed, can be approved by the experts and added to compiler/README.txt where it can be kept in sync with

Re: [fpc-pascal] quality of FPC random

2015-08-20 Thread Klaus Hartnegg
Am 14.08.2015 um 15:38 schrieb Xiangrong Fang: I need to generate random numbers to be used as IV of block ciphers. My question is: is FPC built-in PRNG good enough as comparing to /dev/urandom? NO!!! For crypto always use /dev/urandom On the other hand, /dev/urandom in my impression is

Re: [fpc-pascal] Issue with Linking

2015-08-20 Thread Chris Moody
On 08/20/2015 09:52 AM, Jonas Maebe wrote: On 20/08/15 18:25, Graeme Geldenhuys wrote: On 2015-08-20 16:01, Jonas Maebe wrote: Yes, it is. Are you certain that this is with the system-installed compiler My working FPC 2.6.0 and 2.6.2 also says Linux for ARMEL. Incidentally, if I do 'sudo

Re: [fpc-pascal] *SPAM* Re: *SPAM* Re: Windows IOT Core

2015-08-20 Thread Sven Barth
Am 20.08.2015 16:21 schrieb Michael Schnell mschn...@lumino.de: On 08/20/2015 02:31 PM, Sven Barth wrote: Microsoft will probably only allow the usage of Apps (in contrast to normal Win32 programs) there. Thus of course it requires the RT API. I am happy to report that you are wrong :-)

Re: [fpc-pascal] Issue with Linking

2015-08-20 Thread Jonas Maebe
On 20/08/15 16:19, Chris Moody wrote: I see that the target is: Target OS: Linux for ARMEL I do have /usr/lib/arm-linux-gnueabihf/crti.o I don't need to specify -Fu/usr/lib/fpc/2.6.4/units/arm-linux is the target os the issue? Yes, it is. Are you certain that this is with the

Re: [fpc-pascal] Issue with Linking

2015-08-20 Thread Martin Schreiber
On Thursday 20 August 2015 15:47:59 Chris Moody wrote: http://sourceforge.net/projects/mseide-msegui/files/fpcarm/ I downloaded the file from this URL and had it overwrite my installed FPC 2.64 files and I still got : /usr/bin/ld: warning: link.res contains output sections; did you forget

Re: [fpc-pascal] Issue with Linking

2015-08-20 Thread Tomas Hajny
On Thu, August 20, 2015 17:01, Jonas Maebe wrote: On 20/08/15 16:19, Chris Moody wrote: Jonas, I see that the target is: Target OS: Linux for ARMEL . . is the target os the issue? Yes, it is. Are you certain that this is with the system-installed compiler, and not with one of the ones

Re: [fpc-pascal] Issue with Linking

2015-08-20 Thread Chris Moody
On 08/20/2015 08:01 AM, Jonas Maebe wrote: On 20/08/15 16:19, Chris Moody wrote: I see that the target is: Target OS: Linux for ARMEL I do have /usr/lib/arm-linux-gnueabihf/crti.o I don't need to specify -Fu/usr/lib/fpc/2.6.4/units/arm-linux is the target os the issue? Yes, it is. Are

Re: [fpc-pascal] Issue with Linking

2015-08-20 Thread Jonas Maebe
Chris Moody wrote: The current FPC is from apt-get pi@raspberrypi ~ $ which fpc /usr/bin/fpc pi@raspberrypi ~ $ which ppcarm /usr/bin/ppcarm Ok, now please remove and reinstall that compiler (apt-get remove fpc; apt-get install fpc) to ensure it has not been overwritten by any of your

Re: [fpc-pascal] Issue with Linking

2015-08-20 Thread Jonas Maebe
Tomas Hajny wrote: I don't want to raise the confusion any further, especially if my knowledge of ARM is zero. However - are you sure that the output of target as displayed by FPC really shows the correct information reflecting the supported ABI? $ ./bin/ppcarmhf2 -l noexisting.pp Free Pascal

Re: [fpc-pascal] Issue with Linking

2015-08-20 Thread Chris Moody
On 08/20/2015 02:38 PM, Jonas Maebe wrote: Chris Moody wrote: The current FPC is from apt-get pi@raspberrypi ~ $ which fpc /usr/bin/fpc pi@raspberrypi ~ $ which ppcarm /usr/bin/ppcarm Ok, now please remove and reinstall that compiler (apt-get remove fpc; apt-get install fpc) to ensure it

Re: [fpc-pascal] Issue with Linking

2015-08-20 Thread Jonas Maebe
Chris Moody wrote: To further add to the confusion, I found my Raspberry did not have locate installed, so I asked apt-get to get a copy and it obtained: Unpacking locate (from .../locate_4.4.2-4_armhf.deb) ... I did locate https://blogs.oracle.com/jtc/entry/is_it_armhf_or_armel and going by

Re: [fpc-pascal] Issue with Linking

2015-08-20 Thread Jonas Maebe
On 20/08/15 18:25, Graeme Geldenhuys wrote: On 2015-08-20 16:01, Jonas Maebe wrote: Yes, it is. Are you certain that this is with the system-installed compiler My working FPC 2.6.0 and 2.6.2 also says Linux for ARMEL. Incidentally, if I do 'sudo apt-get install some_package' I see apt

Re: [fpc-pascal] Issue with Linking

2015-08-20 Thread Graeme Geldenhuys
On 2015-08-20 16:01, Jonas Maebe wrote: Yes, it is. Are you certain that this is with the system-installed compiler My working FPC 2.6.0 and 2.6.2 also says Linux for ARMEL. Incidentally, if I do 'sudo apt-get install some_package' I see apt output like Get: some_package armel It can