Lazarus
Home
Forum
Help
TinyPortal
Search
Login
Register
Lazarus
»
Free Pascal
»
General
(Moderators:
FPK
,
Tomas Hajny
) »
How do check that the paths in fpc.cfg are passed to the linker?
Free Pascal
Website
Downloads
Wiki
Bugtracker
Mailing List
Lazarus
Website
Downloads (Laz+FPC)
FAQ
Wiki
Bugtracker
Packages
IRC channel
Developer Blog
Follow us on Twitter
Latest SVN
Mailing List
Other languages
Foundation
Website
Useful Wiki Links
Project Roadmap
Getting the Source
Screenshots
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
Search
Advanced search
« previous
next »
Print
Pages: [
1
]
Author
Topic: How do check that the paths in fpc.cfg are passed to the linker? (Read 963 times)
vfclists
Hero Member
Posts: 823
How do check that the paths in fpc.cfg are passed to the linker?
«
on:
March 20, 2017, 05:51:42 pm »
When compiling some 32bit programs on a 64bit system, the linker cannot locate paths which are in fpc.cfg
Code: Pascal
[Select]
/
usr
/
bin
/
ld
:
skipping incompatible
/
usr
/
lib
/
gcc
/
x86_64
-
linux
-
gnu
/
4
.
9
.
2
/
libgcc
.
a
when searching
for
/
usr
/
lib
/
gcc
/
x86_64
-
linux
-
gnu
/
4
.
9
.
2
/
libgcc
.
a
/
usr
/
bin
/
ld
:
cannot find
/
usr
/
lib
/
gcc
/
x86_64
-
linux
-
gnu
/
4
.
9
.
2
/
libgcc
.
a
I can only resolve it by linking
/usr/lib/gcc/x86_64-linux-gnu/4.9.2/32/libgcc.a
to
/usr/lib/i386-linux-gnu
although it is present in fpc.cfg.
Code: Pascal
[Select]
# path
to
the gcclib
#ifdef cpui386
-
Fl
/
usr
/
lib
/
gcc
/
x86_64
-
linux
-
gnu
/
4.9
/
32
#endif
#ifdef cpux86_64
-
Fl
/
usr
/
lib
/
gcc
/
x86_64
-
linux
-
gnu
/
4.9
#endif
Does
cpui386
match all the architectures, iei386, i486, i586, i686?
Anyway back to the main question - how do you check that all the paths specified in fpc.cfg are passed to the linker?
Logged
Windows - Lazarus 1.0.8/FPC 2.6.0
Linux - Lazarus 1.4.4 /FPC 2.6.4
Jonas Maebe
Hero Member
Posts: 561
Re: How do check that the paths in fpc.cfg are passed to the linker?
«
Reply #1 on:
March 20, 2017, 11:07:47 pm »
Compile with -Cn and inspect the generated ppas.sh and link.res files. You can also compile with -va to see how the compiler parses your fpc.cfg file.
Logged
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Free Pascal
»
General
(Moderators:
FPK
,
Tomas Hajny
) »
How do check that the paths in fpc.cfg are passed to the linker?
Recent
how to disable directive
by
Thaddy
[
Today
at 06:50:29 am]
TEdit with rounded corner...
by
edgarrod71
[
Today
at 06:18:57 am]
musl libc
by
benohb
[
Today
at 05:21:43 am]
Pascal N-IDE Android App ...
by
ufreedom1026
[
Today
at 04:42:55 am]
Did anyone try "fpc-3.0.2...
by
chenyuchih
[
Today
at 03:13:23 am]
macOS 32-bit app warning
by
dbannon
[
Today
at 03:00:48 am]
[TCocoaMenuItem _setMenuO...
by
dbannon
[
Today
at 02:07:37 am]
DecodeStringBase64() - co...
by
taazz
[
Today
at 01:21:46 am]
LAMW: Android 7.1.2
by
jmpessoa
[
Today
at 01:18:22 am]
[HowTo] Android Developme...
by
jmpessoa
[
Today
at 12:20:17 am]