[rlug] fpc pe Raspbian 8.0

Dragos Popescu dragosp at gmail.com
Fri Feb 8 09:19:40 EET 2019


A.S. Iertare pentru mail-ul atât de lung.


Am o problemă la compilarea oricărui program fpc, de fapt de compilare.
Sistemul e un BPi M2+ pe care rulează Raspbian 8.0, un build din iulei
2018, kernel 3.4.39-BPI-M2P-Kernel.
La instalarea pachetului totul pare ok:
root at m2p-devel-v1:/# apt-get install fpc
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
 fp-compiler-2.6.4 fp-ide-2.6.4 fp-units-base-2.6.4 fp-units-db-2.6.4
fp-units-fcl-2.6.4 fp-units-fv-2.6.4 fp-units-gfx-2.6.4
fp-units-gnome1-2.6.4 fp-units-gtk-2.6.4 fp-units-gtk2-2.6.4
fp-units-math-2.6.4
 fp-units-misc-2.6.4 fp-units-multimedia-2.6.4 fp-units-net-2.6.4
fp-units-rtl-2.6.4 fp-utils-2.6.4 fpc fpc-2.6.4
0 upgraded, 18 newly installed, 0 to remove and 2 not upgraded.
Need to get 0 B/15.5 MB of archives.
After this operation, 106 MB of additional disk space will be used.
Do you want to continue? [Y/n]

Se instalează bine şi frumos.
La compilare însă (orice aş compila) eşuează lamentabil:
pi at m2p-devel-v1:/opt/lazarus/Tests $ /usr/bin/fpc  -MObjFPC -Scghi -Tlinux
-Parm -g -gl -vewnhi -lc -Fi/opt/lazarus/smts/PetFood/lib/arm-linux -Fl/lib
-Fl/usr/lib -Fu/opt/lazarus/Tests/ -FU/opt/la
zarus/Tests/lib/arm-linux/ -l test.dpr -lc
Free Pascal Compiler version 2.6.4+dfsg-4+rpi1 [2014/10/21] for arm
Target OS: Linux for ARMHF
Compiling test.dpr
/usr/bin/ld.bfd: /usr/lib/fpc/2.6.4/units/arm-linux/rtl/cprt0.o: undefined
reference to symbol 'abort@@GLIBC_2.4'
//lib/arm-linux-gnueabihf/libc.so.6: error adding symbols: DSO missing from
command line
test.dpr(2070) Error: Error while linking
test.dpr(2070) Fatal: There were 1 errors compiling module, stopping
Fatal: Compilation aborted


Linia de compilare e ok, o folosesc şi pe alt sistem, "cam" aceeaşi
configuraţie dar Jessie din 2016 şi acelaşi fpc, acolo se termină cu:
2069 lines compiled, 4.8 sec
1 warning(s) issued
7 hint(s) issued
38 note(s) issued

Şi cu "-lc" şi fără eroare e aceeaşi.
Nu mai ştiu de unde să-l apuc.

Ceva idei?


-- 
Dragos P
126296 luser
"La revedere. Drum bun"


More information about the RLUG mailing list