[fpc-devel] crti.o problem
Henry Vermaak
henry.vermaak at gmail.com
Tue Nov 8 14:56:29 CET 2011
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 at 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
More information about the fpc-devel
mailing list