Re: [fpc-pascal] CThreads problem when cross-compiling to ARM/RPi.

2013-05-23 Thread Bruce Tulloch
Raspbian is a Debian Wheezy derived distribution for ARMHF on Raspberry Pi. My attempts to replicate the exactly same setup for a Wheezy based i386 target (so I could compare with this one) ran into problems when cross compiled and linked: http://lists.freepascal.org/lists/fpc-pascal/2013-May/03

Re: [fpc-pascal] Cross-building on from Linux/x86-64 to Linux/i386 (was: Win64 release of FPC 2.6.2 missing)

2013-05-23 Thread Bruce Tulloch
While trying to debug my ARM cross-compile problems (in another email thread) I decided to replicate the cross-compiler setup to i386 (to compare it for clues) but I've run into another problem with x86_64 -> i386 cross compiling which seems related to this thread. My cross built fpc 2.7.1 works j

Re: [fpc-pascal] FPC / Lazarus install on Fedora 18

2013-05-23 Thread m...@rpzdesign.com
Oops, Looks like there is an internal list coded identifier that links the thread of emails together. The moral of the story is to create a completely new email to start another discussion thread and stay away from "Reply" button for convenience. Sorry about the hijacking, it was not intend

Re: [fpc-pascal] FPC / Lazarus install on Fedora 18

2013-05-23 Thread Reimar Grabowski
Is it just me or is this Fedora stuff hijacking the Android Galaxy S4 thread? If it is not a problem of my mail client, PLEASE stop this sh!t. R. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc

Re: [fpc-pascal] CThreads problem when cross-compiling to ARM/RPi.

2013-05-23 Thread Bruce Tulloch
I have to pack it in for about 8 hours (I'm "down under") but I can provide more feedback then. By way of background, I have cross-compilation set up and working well for Linux i386 and Windows i385 and x86_64 targets from this x86_64 development system. I debootstrapped a raspbian system using q

Re: [fpc-pascal] Re: PostgreSQL and error codes

2013-05-23 Thread silvioprog
2013/5/23 Reinier Olislagers > On 23-5-2013 3:11, silvioprog wrote: > > How to get the error code of a data base error? I'm using the > > PostgreSQL. > > You can catch db specific errors (descendends of EDatabaseError IIRC) in > an exception - the postgresql descendent was extended with more > pr

Re: [fpc-pascal] CThreads problem when cross-compiling to ARM/RPi.

2013-05-23 Thread Bruce Tulloch
Okay, I understand the reason for the two file locations, thanks. The problem occurs ONLY when cross-compiling to ARM. Native (and cross to i386) is fine. The files I referred to are on the crossroot not the host despite appearances; the crossroot is at /usr/local/opt/chroot/raspbian/rootfs but I

Re: [fpc-pascal] FPC / Lazarus install on Fedora 18

2013-05-23 Thread m...@rpzdesign.com
Yes, you may have built the rpms on the platform, but where was the ultimate destination for the executables after you RAN the RPM to install the program? It seems that Fedora 18 unified /bin -> /usr->bin using symbolic links and so the compiler is not ready to run on a system where it install

Re: [fpc-pascal] How does FPC calculate linker search paths upon -XP?

2013-05-23 Thread Jonas Maebe
On 23 May 2013, at 07:38, Bruce Tulloch wrote: despite the fact the ld.so configuration file: /usr/local/opt/chroot/raspbian/rootfs/etc/ld.so.conf.d/arm-linux- gnueabihf.conf specifies both paths as: # Multiarch support /lib/arm-linux-gnueabihf /usr/lib/arm-linux-gnueabihf For the record

Re: [fpc-pascal] CThreads problem when cross-compiling to ARM/RPi.

2013-05-23 Thread Jonas Maebe
On 23 May 2013, at 15:03, Bruce Tulloch wrote: On Thu, May 23, 2013 at 10:50 PM, Jonas Maebe >wrote: On 23 May 2013, at 14:32, Bruce Tulloch wrote: On Thu, May 23, 2013 at 10:28 PM, Jonas Maebe > **wrote: On 23 May 2013, at 14:25, Bruce Tulloch wrote: Do you have a libdl.so in your lib

Re: [fpc-pascal] CThreads problem when cross-compiling to ARM/RPi.

2013-05-23 Thread Bruce Tulloch
Okay, but it is installed: root@beria:~# apt-file search libdl.so libc6: /lib/arm-linux-gnueabihf/libdl.so.2 libc6-dev: /usr/lib/arm-linux-gnueabihf/libdl.so root@beria:~# apt-show-versions libc6-dev libc6-dev/wheezy uptodate 2.13-38+rpi2 but I noticed that: root@beria:/usr/lib/arm-linux-gnueab

Re: [fpc-pascal] CThreads problem when cross-compiling to ARM/RPi.

2013-05-23 Thread Jonas Maebe
On 23 May 2013, at 14:32, Bruce Tulloch wrote: On Thu, May 23, 2013 at 10:28 PM, Jonas Maebe >wrote: On 23 May 2013, at 14:25, Bruce Tulloch wrote: Do you have a libdl.so in your library search path? And what kind of reference to libdl does link.res contain? Yes, it's in the search path a

Re: [fpc-pascal] CThreads problem when cross-compiling to ARM/RPi.

2013-05-23 Thread Bruce Tulloch
Just noticed another INPUT statement also refers to dl as: /usr/local/lib/fpc/2.7.1/units/arm-linux/rtl/dl.o This appears ahead of the -ldl statement. Could this be the problem? -b On Thu, May 23, 2013 at 10:32 PM, Bruce Tulloch wrote: > Yes, it's in the search path as: > > root@beria:/li

Re: [fpc-pascal] CThreads problem when cross-compiling to ARM/RPi.

2013-05-23 Thread Bruce Tulloch
Yes, it's in the search path as: root@beria:/lib/arm-linux-gnueabihf# ls -l libdl* -rw-r--r-- 1 root root 9812 Feb 23 00:37 libdl-2.13.so lrwxrwxrwx 1 root root 13 Feb 23 00:37 libdl.so.2 -> libdl-2.13.so It's referred to in an INPUT statement in link.res as: INPUT( -lpthread -ldl ) and there

Re: [fpc-pascal] CThreads problem when cross-compiling to ARM/RPi.

2013-05-23 Thread Jonas Maebe
On 23 May 2013, at 14:25, Bruce Tulloch wrote: On Thu, May 23, 2013 at 10:18 PM, Jonas Maebe >wrote: On 23 May 2013, at 14:10, Bruce Tulloch wrote: Linking arm-test-threads /usr/local/lib/fpc/2.7.1/ units/arm-linux/rtl/cthreads.**o: In function `CTHREADS_$$_LOADPTHREADS$$**BOOLEAN': cthread

Re: [fpc-pascal] CThreads problem when cross-compiling to ARM/RPi.

2013-05-23 Thread Bruce Tulloch
Okay, so I'm not trying to link statically, not intentionally anyway. Here's the command line from ppas.sh that produces this error: /usr/local/opt/binutils/bin/arm-linux-ld \ --sysroot=/usr/local/opt/chroot/raspbian/rootfs \ --dynamic-linker=/lib/ld-linux-armhf.so.3 \ -s -L. -o arm-test-threads

Re: [fpc-pascal] CThreads problem when cross-compiling to ARM/RPi.

2013-05-23 Thread Jonas Maebe
On 23 May 2013, at 14:10, Bruce Tulloch wrote: However, if I simply add this uses clause: uses cthreads; the program compiles fine but fails when linking: Linking arm-test-threads /usr/local/lib/fpc/2.7.1/ units/arm-linux/rtl/cthreads.o: In function `CTHREADS_$$_LOADPTHREADS$$BOOLEAN': cthr

Re: [fpc-pascal] Re: How does FPC calculate linker search paths upon -XP?

2013-05-23 Thread Jonas Maebe
On 23 May 2013, at 14:03, Bruce Tulloch wrote: So it looks like -XR is not the solution for cross-compiling, at least in my case. The compiler option I used: -XR/usr/local/opt/chroot/raspbian/rootfs seems to break when the linker encounters a linker script that specifies a new path for t

[fpc-pascal] CThreads problem when cross-compiling to ARM/RPi.

2013-05-23 Thread Bruce Tulloch
Starting with a simple test program arm-test.pas: program test; begin writeln('DATE ',{$i %DATE%}); writeln('FPCTARGET ',{$i %FPCTARGET%}); writeln('FPCTARGETCPU ',{$i %FPCTARGETCPU%}); writeln('FPCTARGETOS ',{$i %FPCTARGETOS%}); writeln('FPCVERSION ',{$i %FPCVERSION%}); end. I can cros

[fpc-pascal] Re: How does FPC calculate linker search paths upon -XP?

2013-05-23 Thread Bruce Tulloch
So it looks like -XR is not the solution for cross-compiling, at least in my case. The compiler option I used: -XR/usr/local/opt/chroot/raspbian/rootfs seems to break when the linker encounters a linker script that specifies a new path for the actual library object required; these generated path

Re: [fpc-pascal] Moving packages\fcl-res docs to main fpcdocs?

2013-05-23 Thread Reinier Olislagers
On 23-5-2013 13:46, Michael Van Canneyt wrote: > On Thu, 23 May 2013, Reinier Olislagers wrote: >> On 23-5-2013 13:18, Michael Van Canneyt wrote: > Hm. Yes, we should move it for the time being. > The original idea was that each package would have its own documentation > included. > fpmake can hand

Re: [fpc-pascal] Moving packages\fcl-res docs to main fpcdocs?

2013-05-23 Thread Michael Van Canneyt
On Thu, 23 May 2013, Reinier Olislagers wrote: On 23-5-2013 13:18, Michael Van Canneyt wrote: On Thu, 23 May 2013, Reinier Olislagers wrote: Noticed that fcl-res has documentation in an XML subfolder of $(fpcdir)\packages\fcl-res Shouldn't these be moved into the general fpcdocs repository

Re: [fpc-pascal] Moving packages\fcl-res docs to main fpcdocs?

2013-05-23 Thread Reinier Olislagers
On 23-5-2013 13:18, Michael Van Canneyt wrote: > On Thu, 23 May 2013, Reinier Olislagers wrote: > >> Noticed that fcl-res has documentation in an XML subfolder of >> $(fpcdir)\packages\fcl-res >> >> Shouldn't these be moved into the general fpcdocs repository (and >> generated as part of the fcl d

Re: [fpc-pascal] Moving packages\fcl-res docs to main fpcdocs?

2013-05-23 Thread Michael Van Canneyt
On Thu, 23 May 2013, Reinier Olislagers wrote: Noticed that fcl-res has documentation in an XML subfolder of $(fpcdir)\packages\fcl-res Shouldn't these be moved into the general fpcdocs repository (and generated as part of the fcl docs)? (I know that not all xml files will apply to all platfo

[fpc-pascal] Moving packages\fcl-res docs to main fpcdocs?

2013-05-23 Thread Reinier Olislagers
Noticed that fcl-res has documentation in an XML subfolder of $(fpcdir)\packages\fcl-res Shouldn't these be moved into the general fpcdocs repository (and generated as part of the fcl docs)? (I know that not all xml files will apply to all platforms; IMO it's easier here to indicate some doc is sp

Re: [fpc-pascal] FPC / Lazarus install on Fedora 18

2013-05-23 Thread Mattias Gaertner
> "m...@rpzdesign.com" hat am 22. Mai 2013 um 17:18 > geschrieben: > > > Anybody successful putting Freepascal 2.6.2 / Lazarus 1.0.8 on Fedora 18. I built successfully the 64bit rpms on a FC 18 64bit and had no such problems. Mattias ___ fpc-pascal ma

Re: [fpc-pascal] FPC / Lazarus install on Fedora 18

2013-05-23 Thread Bart
On 5/22/13, m...@rpzdesign.com wrote: > Which package did you download? (Source package or other?) fpc-2.6.2.i386-linux.tar E.g. form http://freepascal.org/down/i386/linux-netherlands.var Bart ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.