Hi, I've compiled a program on a raspberry pi with Linux rpi2 3.6.11+ #538 PREEMPT Fri Aug 30 20:42:08 BST 2013 armv6l GNU/Linux on one raspberry pi, run it and it works.
I copied the binary program to another raspberry pi with the same kernel revision and I've got a segmentation fault. What to do if I I want to compile the sources only on one machine, without copying the sources to any other machine ? Thanks, Stefan Am 30.08.2013 um 16:10 schrieb Henry Vermaak <henry.verm...@gmail.com>: > On Fri, Aug 30, 2013 at 03:44:35PM +0200, Stefan Fischer wrote: >> Hi, >> a longer time ago, i've installed lazarus on my raspberry pi with >> wheezy. The fpc version was 2.6.0-xxx >> >> I could compile without any problem. >> >> Today I've downloaded fpc 2.6.2 and installed it. >> >> But now I have problems with the linker: >> >> Free Pascal Compiler version 2.6.2 [2013/02/15] for arm >> Copyright (c) 1993-2012 by Florian Klaempfl and others >> Target OS: Linux for ARMEL >> Compiling rfm.pas >> Assembling rfm >> Linking rfm >> /usr/bin/ld: warning: link.res contains output sections; did you forget >> -T? >> /usr/lib/fpc/2.6.2/units/arm-linux/rtl/cprt0.o: In function >> `_haltproc_eabi': >> (.text+0x88): undefined reference to `_fini' >> /usr/lib/fpc/2.6.2/units/arm-linux/rtl/cprt0.o: In function >> `_haltproc_eabi': >> (.text+0x90): undefined reference to `_init' > > This sounds like it may be a multiarch thing biting you. Those symbols > are in crti.o, and perhaps fpc isn't finding it. I vaguely remember > getting a problem like this and fixing it by adding > -Fl/usr/lib/<arch-triplet>. You can use `locate` to check where it is. > > Henry > _______________________________________________ > fpc-pascal maillist - fpc-pascal@lists.freepascal.org > http://lists.freepascal.org/mailman/listinfo/fpc-pascal Mit freundlichen Gruessen, Stefan Fischer BASIS GmbH _______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal