Hi list I've got a problem with crti.o not being found when compiling certain programs. Here's an example:
/usr/local/lib/fpc/2.6.0/ppcarm -gl -Fu. -Fu../lcl/units/arm-linux -Fu../components/lazutils/lib/arm-linux -Fu../lcl/units/arm-linux/gtk2 -Fu/usr/local/lib/fpc/2.6.0/units/arm-linux/rtl -FE. -FU. -Fl/usr/lib/gcc/arm-linux-gnueabi/4.6.1 -Flinclude -Fl/etc/ld.so.conf.d/*.conf -CfSOFT -darm svn2revisioninc.pas Free Pascal Compiler version 2.6.0rc1 [2011/11/08] for arm Copyright (c) 1993-2011 by Florian Klaempfl and others Target OS: Linux for ARMEL Compiling svn2revisioninc.pas Assembling svn2revisioninc Linking ./svn2revisioninc /usr/bin/ld: warning: ./link.res contains output sections; did you forget -T? /usr/local/lib/fpc/2.6.0/units/arm-linux/rtl/cprt0.o: In function `_haltproc_eabi': (.text+0x88): undefined reference to `_fini' /usr/local/lib/fpc/2.6.0/units/arm-linux/rtl/cprt0.o: In function `_haltproc_eabi': (.text+0x90): undefined reference to `_init' When I add -Fl/usr/lib/arm-linux-gnueabi, the linking succeeds. It seems like the -Fl/etc/ld.so.conf.d/*.conf option that gets added by the compiler should work, since I've got the following under /etc/ld.so.conf.d (among other files): hcv@hcv-ac100:~/source/lazarus$ cat /etc/ld.so.conf.d/arm-linux-gnueabi.conf # Multiarch support /lib/arm-linux-gnueabi /usr/lib/arm-linux-gnueabi But perhaps this isn't working as expected. Any ideas? Henry _______________________________________________ fpc-devel maillist - [email protected] http://lists.freepascal.org/mailman/listinfo/fpc-devel
