Error compiling from source in Slackware 14.2 64 bit - SOLVED

3 posts / 0 new
Last post
LU7WA
Error compiling from source in Slackware 14.2 64 bit - SOLVED

Hi, I've been using cqrlog in Slackware from a couple of years without any problem. Now I want to upgrade to version 2.4.0 and I get the following error:

(*** output stripped ***)

(1002) Target OS: Linux for x86-64
(3104) Compiling tachartlazaruspkg.pas
(3104) Compiling tagraph.pas
(3104) Compiling tachartaxis.pas
(3104) Compiling tachartaxisutils.pas
(3104) Compiling tacustomsource.pas
(3104) Compiling tamath.pas
(10001) PPU Loading /usr/share/lazarus/components/tachart/lib/x86_64-linux/gtk2/spe.ppu
(10011) PPU Source: spe.pas not found
(10011) PPU Source: direct.inc not available
(10028) Recompiling spe, checksum changed for System
/usr/share/lazarus/components/tachart/tamath.pas(40,9) Fatal: (10022) Can't find unit spe used by TAMath
Fatal: (1018) Compilation aborted
Error: /usr/bin/ppcx64 returned an error exitcode
Error: (lazarus) Compile package TAChartLazarusPkg 1.0: stopped with exit code 1
Hint: (11030) Start of reading config file /etc/fpc.cfg
Hint: (11031) End of reading config file /etc/fpc.cfg
Free Pascal Compiler version 3.0.4 [2020/03/21] for x86_64
Copyright (c) 1993-2017 by Florian Klaempfl and others
(1002) Target OS: Linux for x86-
Error: (lazarus) Compile package RunTimeTypeInfoControls 0.1: terminated
Hint: (11030) Start of reading config file /etc/fpc.cfg
Hint: (11031) End of reading config file /etc/fpc.cfg
Free Pascal Compiler version 3.0.4 [2020/03/21] for x86_64
Copyright (c) 1993-2017 by Florian Klaempfl and others
(1002) Target OS: Linux for x86-
Hint: (11030) Start of reading config file /etc/fpc.cfg
Hint: (11031) End of reading config file /etc/fpc.cfg
Free Pascal Compiler version 3.0.4 [2020/03/21] for x86_64
Copyright (c) 1993-2017 by Florian Klaempfl and others
(1002) Target OS: Linux for x86-
Error: (lazarus) Compile package SQLDBLaz 1.0.2: terminated
Error: (lazarus) Compile package Printer4Lazarus 0.5: terminated
Error: (lazarus) [TLazPackageGraph.CompileRequiredPackages] "Exit code 1"
Error: (lazbuild) Project dependencies of /tmp/SBo/cqrlog-2.4.0/src/cqrlog.lpi
make: *** [cqrlog] Error 2
Makefile:9: recipe for target 'cqrlog' failed
Failures:
cqrlog: cqrlog.SlackBuild return non-zero

I understand that this is not a problem in cqrlog but as I have no experience with the language and platform used to build it I wanted to ask for help to overcome this issue.

Thanks in advance.

Gustavo - LU7WA

oh1kh
Error compiling from source in Slackware 14.2 64 bit

Hi!
Looks like your compiler is missing some files.
Have you dowloaded and installed all 3 packages fpc, fpc-src and lazarus 2.0.6 from https://www.lazarus-ide.org/ ?

The way I do it is to download the master source from github. Extract it to somewhere, then add symlink "share" to /usr/share into root of cqrlog-master folder. This allows test run from lazarus-ide.
Open lazarus-ide, then open project, search /cqrlog-master/src/cqrlog.lpi and open it.
Then choose build (or clean and build) and watch compiler do the job ( open show compiler messages).
After that you can test run it from > icon, or pick up binary from /cqrlog-master/src/cqrlog and copy it to /usr/bin overwriting the old binary.

--
Saku
OH1KH

LU7WA
Hi Saku, I'm using fpc/fpc

Hi Saku, I'm using fpc/fpc-src 3.0.4 and lazarus 2.0.6, all from slackbuilds.org. The weird thing is that I've tested the build some days ago and worked fine. Earlier today, I used the slackbuild to get the package and no luck. Now I tried the process you mentioned and it worked from the IDE. After that, the slackbuild ran with no problems. I can imagine that after the IDE build, some config/files/etc got fixed and that allowed the slackbuild to run fine.
Thank you so much for your help.
Best.

Gustavo - LU7WA