Re: [fpc-pascal] Linking failed on RaspberryPi

2015-09-18 Thread Peter
On 16/09/15 02:28, Xiangrong Fang wrote: > Hi Peter, > > xrfang@pi ~ $ ls /usr/lib/**/crti.o > /usr/lib/arm-linux-gnueabihf/crti.o > > Thanks! Then you could try compiling your program with the switch -Fl /usr/lib/arm-linux-gnueabihf {Note its a lower case l not an upper case I (as per your gre

Re: [fpc-pascal] Linking failed on RaspberryPi

2015-09-16 Thread Mark Morgan Lloyd
Peter wrote: It would be useful to see the output of these two commands grep Fl /etc/fpc.cfg ls /usr/lib/**/crti.o Jonas knows a lot more about FPC than I do! Jonas pointed out to me when I went through this a couple of weeks ago that fpc.cfg isn't used while FPC is being built. See the e

Re: [fpc-pascal] Linking failed on RaspberryPi

2015-09-15 Thread Xiangrong Fang
Another problem is, as I downloaded the wrong version and ran its install.sh (as root), how can I uninstall it? Thanks! 2015-09-16 9:29 GMT+08:00 Xiangrong Fang : > I asked on the list before. The version shipped with Pi is 2.6.0, and is > said to be very buggy, I need version 2.6.4, so I dow

Re: [fpc-pascal] Linking failed on RaspberryPi

2015-09-15 Thread Xiangrong Fang
I asked on the list before. The version shipped with Pi is 2.6.0, and is said to be very buggy, I need version 2.6.4, so I downloaded from official site. 2015-09-15 19:52 GMT+08:00 Jonas Maebe : > On 15/09/15 13:28, Xiangrong Fang wrote: > >> I downloaded arm linux distribution from freeepasca

Re: [fpc-pascal] Linking failed on RaspberryPi

2015-09-15 Thread Xiangrong Fang
Hi Peter, xrfang@pi ~ $ grep FI /etc/fpc.cfg # nested #IFNDEF, #IFDEF, #ENDIF, #ELSE, #DEFINE, #UNDEF are allowed # -d is the same as #DEFINE #DEFINE NEEDCROSSBINUTILS xrfang@pi ~ $ ls /usr/lib/**/crti.o /usr/lib/arm-linux-gnueabihf/crti.o Thanks! 2015-09-15 20:06 GMT+08:00 Peter : > It wou

Re: [fpc-pascal] Linking failed on RaspberryPi

2015-09-15 Thread Jonas Maebe
On 15/09/15 14:06, Peter wrote: It would be useful to see the output of these two commands grep Fl /etc/fpc.cfg ls/usr/lib/**/crti.o Jonas knows a lot more about FPC than I do! The version on the FPC website is an ARMEL version, so it will look for the ARMEL version of crti.o (in /usr/lib/a

Re: [fpc-pascal] Linking failed on RaspberryPi

2015-09-15 Thread Peter
It would be useful to see the output of these two commands grep Fl /etc/fpc.cfg ls /usr/lib/**/crti.o Jonas knows a lot more about FPC than I do! Regards, PB ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-b

Re: [fpc-pascal] Linking failed on RaspberryPi

2015-09-15 Thread Jonas Maebe
On 15/09/15 13:28, Xiangrong Fang wrote: I downloaded arm linux distribution from freeepascal website (sourceforge). So, I should get it work by fixing crti as suggested by PB, or I shall get the compiler from Pi website as suggested by Jonas? You don't get it from the Pi website, but by using

Re: [fpc-pascal] Linking failed on RaspberryPi

2015-09-15 Thread Xiangrong Fang
I downloaded arm linux distribution from freeepascal website (sourceforge). So, I should get it work by fixing crti as suggested by PB, or I shall get the compiler from Pi website as suggested by Jonas? 2015-09-15 19:11 GMT+08:00 Peter : > On 14/09/15 21:09, Mark Morgan Lloyd wrote: > > Peter

Re: [fpc-pascal] Linking failed on RaspberryPi

2015-09-15 Thread Peter
On 14/09/15 21:09, Mark Morgan Lloyd wrote: > Peter wrote: >> On 04/09/15 02:15, Xiangrong Fang wrote: >>> . >>> Is there anything missing from my FPC installation? >>> TIA for any hint. >> >> To build FPC programs on linux one generally needs a variant of >> libc-dev, which is not part of FPC

Re: [fpc-pascal] Linking failed on RaspberryPi

2015-09-14 Thread Mark Morgan Lloyd
Peter wrote: On 04/09/15 02:15, Xiangrong Fang wrote: . Is there anything missing from my FPC installation? TIA for any hint. To build FPC programs on linux one generally needs a variant of libc-dev, which is not part of FPC itself. The package you need might be libc6-dev, or some other

Re: [fpc-pascal] Linking failed on RaspberryPi

2015-09-14 Thread Peter
On 04/09/15 02:15, Xiangrong Fang wrote: > . > Is there anything missing from my FPC installation? > > TIA for any hint. > To build FPC programs on linux one generally needs a variant of libc-dev, which is not part of FPC itself. The package you need might be libc6-dev, or some other combi

Re: [fpc-pascal] Linking failed on RaspberryPi

2015-09-14 Thread Jonas Maebe
On 04/09/15 03:15, Xiangrong Fang wrote: I try to compile my program on Pi, with the official FPC 2.6.4 for arm linux, Official from where: from your Raspberry Pi repository, or downloaded from our website? In the latter case: there are approximately a thousand different variants of ARM Linu

[fpc-pascal] Linking failed on RaspberryPi

2015-09-03 Thread Xiangrong Fang
Hi All, I try to compile my program on Pi, with the official FPC 2.6.4 for arm linux, but get the following error: /usr/lib/fpc/2.6.4/units/arm-linux/rtl/cprt0.o: In function `_haltproc_eabi': (.text+0x88): undefined reference to `_fini' /usr/lib/fpc/2.6.4/units/arm-linux/rtl/cprt0.o: In function