Re: [fpc-pascal] Issue with Linking

2015-08-21 Thread Tony Caduto
Msmw.amaal On Aug 19, 2015 4:02 PM, "Chris Moody" wrote: > Hi all, > > So I reset up my Pi and I was able to get the current version of FPC to > get as far as the linking stage, at which point it shows this: > > /usr/bin/ld: warning: link.res contains output sections; did you forget -T? > /home/p

Re: [fpc-pascal] Issue with Linking

2015-08-21 Thread Chris Moody
On 08/21/2015 01:08 AM, Jonas Maebe wrote: Chris Moody wrote: Seems it compiles but still complains about linking. Free Pascal Compiler version 3.0.0rc1 [2015/08/20] for arm Copyright (c) 1993-2015 by Florian Klaempfl and others Target OS: Linux for ARMHF Assembling dentist Linking Dentist D

Re: [fpc-pascal] Issue with Linking

2015-08-21 Thread Florian Klaempfl
Am 21.08.2015 um 10:08 schrieb Jonas Maebe: > Chris Moody wrote: >> Seems it compiles but still complains about linking. >> >> Free Pascal Compiler version 3.0.0rc1 [2015/08/20] for arm >> Copyright (c) 1993-2015 by Florian Klaempfl and others >> Target OS: Linux for ARMHF >> >> Assembling dentist

Re: [fpc-pascal] Issue with Linking

2015-08-21 Thread Jonas Maebe
Chris Moody wrote: Seems it compiles but still complains about linking. Free Pascal Compiler version 3.0.0rc1 [2015/08/20] for arm Copyright (c) 1993-2015 by Florian Klaempfl and others Target OS: Linux for ARMHF Assembling dentist Linking Dentist Dentist.pas(106) Warning: "crtbegin.o" not foun

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 https://blogs.oracle.com/

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 https://blogs.oracle.com/

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 Ji

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 h

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 C

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

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 experi

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 you

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] 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 ' I see apt > ou

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 ' I see apt output like "Get: armel " It can be any package lik

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 f

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 wi

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 d

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? /home/pi/fpc-2.6.4/lib/fpc/

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 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.

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. Th

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': (.text+0x8

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: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 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] 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 understa

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 supp

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/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 ren

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 p

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 sy

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

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] 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

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 "compile

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 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-19 Thread Martin Schreiber
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 renewed his domain name. > > This makes it unable

Re: [fpc-pascal] Issue with Linking

2015-08-19 Thread Chris Moody
On 08/19/2015 03:56 PM, Chris Moody wrote: On 08/19/2015 03:41 PM, Graeme Geldenhuys wrote: On 2015-08-19 21:12, Jonas Maebe wrote: while the Raspberry Pi uses ARM EABIHF. Doesn't that apply only for the newer Raspberry Pi 2 models? I have Raspberry Pi 1 model B revision 2, and I believe m

Re: [fpc-pascal] Issue with Linking

2015-08-19 Thread Graeme Geldenhuys
On 2015-08-19 23:53, Jonas Maebe wrote: > > No: > https://www.raspbian.org/RaspbianFAQ#What_compilation_options_should_be_set_Raspbian_code.3F Ah, many thanks for clarifying that. Regards, - Graeme - ___ fpc-pascal maillist - fpc-pascal@lists.f

Re: [fpc-pascal] Issue with Linking

2015-08-19 Thread Chris Moody
On 08/19/2015 03:41 PM, Graeme Geldenhuys wrote: On 2015-08-19 21:12, Jonas Maebe wrote: while the Raspberry Pi uses ARM EABIHF. Doesn't that apply only for the newer Raspberry Pi 2 models? I have Raspberry Pi 1 model B revision 2, and I believe mine uses ARM EABI. Regards, - Graeme - Ho

Re: [fpc-pascal] Issue with Linking

2015-08-19 Thread Jonas Maebe
Graeme Geldenhuys wrote: On 2015-08-19 21:12, Jonas Maebe wrote: while the Raspberry Pi uses ARM EABIHF. Doesn't that apply only for the newer Raspberry Pi 2 models? I have Raspberry Pi 1 model B revision 2, and I believe mine uses ARM EABI. No: https://www.raspbian.org/RaspbianFAQ#What_com

Re: [fpc-pascal] Issue with Linking

2015-08-19 Thread Graeme Geldenhuys
On 2015-08-19 21:12, Jonas Maebe wrote: > while the Raspberry Pi uses ARM EABIHF. Doesn't that apply only for the newer Raspberry Pi 2 models? I have Raspberry Pi 1 model B revision 2, and I believe mine uses ARM EABI. Regards, - Graeme - -- fpGUI Toolkit - a cross-platform GUI toolkit using

Re: [fpc-pascal] Issue with Linking

2015-08-19 Thread Karoly Balogh (Charlie/SGR)
Hi, On Wed, 19 Aug 2015, Chris Moody wrote: > It seems I have both already: > > Any other ideas? Yes. Sadly, I was too quick to reply. See what Jonas wrote in his mail. Charlie ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.f

Re: [fpc-pascal] Issue with Linking

2015-08-19 Thread Chris Moody
On 08/19/2015 01:12 PM, Jonas Maebe wrote: On 19/08/15 22:02, Chris Moody wrote: So I reset up my Pi and I was able to get the current version of FPC to get as far as the linking stage, at which point it shows this: /usr/bin/ld: warning: link.res contains output sections; did you forget -T? /

Re: [fpc-pascal] Issue with Linking

2015-08-19 Thread Chris Moody
On 08/19/2015 01:08 PM, Karoly Balogh (Charlie/SGR) wrote: Hi, On Wed, 19 Aug 2015, Chris Moody wrote: I'm not sure how to fix this. If anyone can assist, it would be greatly appreciated. You link against the libc (because of the nature of the source you're compiling) but C development file

Re: [fpc-pascal] Issue with Linking

2015-08-19 Thread Jonas Maebe
On 19/08/15 22:02, Chris Moody wrote: > So I reset up my Pi and I was able to get the current version of FPC to > get as far as the linking stage, at which point it shows this: > > /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/

Re: [fpc-pascal] Issue with Linking

2015-08-19 Thread Karoly Balogh (Charlie/SGR)
Hi, On Wed, 19 Aug 2015, Chris Moody wrote: > I'm not sure how to fix this. If anyone can assist, it would be greatly > appreciated. You link against the libc (because of the nature of the source you're compiling) but C development files are not installed on your system. You should probably: ap

[fpc-pascal] Issue with Linking

2015-08-19 Thread Chris Moody
Hi all, So I reset up my Pi and I was able to get the current version of FPC to get as far as the linking stage, at which point it shows this: /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