Re: [fpc-pascal] link.res search dirs when cross compiling [solved]
Some are hardcoded, and fpc.cfg might contain -Fl lines with paths too from parsing ld.so.conf on install Well, I did not put them in ~/.fpc.cfg In /etc/fpc.cfg there is -Fl/usr/lib/gcc/x86_64-linux-gnu/10 -Fl/usr/lib/x86_64-linux-gnu/fpc/$fpcversion/lib/$FPCTARGET -Fl/usr/lib/$fpctarget-* The last one explains it. I actually have a directory /usr/lib/'${DEB_HOST_MULTIARCH}'. Why would Ubuntu even ship such a directory. $ dpkg -S DEB_HOST_MULTIARCH libnss3:i386, libnss3:amd64: /usr/lib/${DEB_HOST_MULTIARCH}/libfreeblpriv3.chk libnss3:i386, libnss3:amd64: /usr/lib/${DEB_HOST_MULTIARCH}/libfreeblpriv3.so libnss3:i386, libnss3:amd64: /usr/lib/${DEB_HOST_MULTIARCH}/libfreebl3.chk libnss3:i386, libnss3:amd64: /usr/lib/${DEB_HOST_MULTIARCH}/libfreebl3.so libnss3:i386, libnss3:amd64: /usr/lib/${DEB_HOST_MULTIARCH} Benito On 18.11.20 20:33, Marco van de Voort via fpc-pascal wrote: Op 2020-11-18 om 19:21 schreef Benito van der Zander via fpc-pascal: where do the SEARCH_DIRs in link.res come from? Some are hardcoded, and fpc.cfg might contain -Fl lines with paths too from parsing ld.so.conf on install ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] link.res search dirs when cross compiling
How are you specifying your cross-compilation sysroot? Make sure you use the -XR parameter for that, I use -Fl in ~/.fpc.cfg... When I use -XR nothing happens. The link.res is the same, except -Fl prepends the path to link.res and -XR just ignores it. (same for -Xr) Benito ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] link.res search dirs when cross compiling
Op 2020-11-18 om 19:21 schreef Benito van der Zander via fpc-pascal: where do the SEARCH_DIRs in link.res come from? Some are hardcoded, and fpc.cfg might contain -Fl lines with paths too from parsing ld.so.conf on install ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
Re: [fpc-pascal] link.res search dirs when cross compiling
On 18/11/2020 19:21, Benito van der Zander via fpc-pascal wrote: > where do the SEARCH_DIRs in link.res come from? > > My build has started failing, after trying it on a new computer with > "/home/benito/bin/arm-linux-androideabi-ld.bfd:android/libs/armeabi/link42815.res:17: > ignoring invalid character `'' in expression" How are you specifying your cross-compilation sysroot? Make sure you use the -XR parameter for that, and not -Fl or so. -Fl just instructs the compiler/linker to add a directory to the list of standard directories to search, rather than to completely ignore your host system and only look for libraries in the hierarchy below the sysroot. Jonas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
[fpc-pascal] link.res search dirs when cross compiling
Hi, where do the SEARCH_DIRs in link.res come from? My build has started failing, after trying it on a new computer with "/home/benito/bin/arm-linux-androideabi-ld.bfd:android/libs/armeabi/link42815.res:17: ignoring invalid character `'' in expression" link.res starts with: SEARCH_DIR(/home/benito/opt/android/sdk/ndk-bundle/platforms/android-21/arch-arm/usr/lib/) SEARCH_DIR(/usr/lib/thunderbird-addons/) SEARCH_DIR(/usr/lib/modules/) SEARCH_DIR(/usr/lib/aspell/) SEARCH_DIR(/usr/lib/gnome-shell/) SEARCH_DIR(/usr/lib/binfmt-support/) SEARCH_DIR(/usr/lib/udev/) SEARCH_DIR(/usr/lib/gcc/) SEARCH_DIR(/usr/lib/cups/) SEARCH_DIR(/usr/lib/tmpfiles.d/) SEARCH_DIR(/usr/lib/firewalld/) SEARCH_DIR(/usr/lib/X11/) SEARCH_DIR(/usr/lib/cmake/) SEARCH_DIR(/usr/lib/realmd/) SEARCH_DIR(/usr/lib/klibc/) SEARCH_DIR(/usr/lib/sasl2/) SEARCH_DIR('/usr/lib/${DEB_HOST_MULTIARCH}/') ... I guess '/usr/lib/${DEB_HOST_MULTIARCH}/ is the problem. Why would it even add such a dir Benito ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal