Dependencies issue lazarus / 1-Linux ---------------------------------------------------------------------- backprop · 2024-12-15 12:51 Latest installation of clean KDE Neon and "official" deb files for FPC and Lazarus Installation passed fine, however  run default empty app, this is shown: Code: [Select]Compile Project, Target: /home/test/project1: Success, Warnings: 2 project1.lpr(24,1) Warning: "crtbeginS.o" not found, this will probably cause a linking failure project1.lpr(24,1) Warning: "crtendS.o" not found, this will probably cause a linking failure Somewhere at this forum Is wrote  build-essential need to be installed in order to fix this issue. And it is, however this warning is still shown. Probably some other devel libraries need to be installed now. Whoever making these deb files always missing to add all required dependencies inside installation process in order to work correctly with basic installation. Is it ever this will be handled properly which should allow installation, compilation and running without any issues? ---------------------------------------------------------------------- cdbc · 2024-12-15 13:33 Hi PCLinuxOS here and that shows the same 2 warnings, but I've never had any problems with it... Regards Benny ---------------------------------------------------------------------- lainz · 2024-12-15 14:28 Quote from: backprop on December 15, 2024, 01:51:56 pmLatest installation of clean KDE Neon and "official" deb files for FPC and Lazarus Installation passed fine, however  run default empty app, this is shown: Code: [Select]Compile Project, Target: /home/test/project1: Success, Warnings: 2 project1.lpr(24,1) Warning: "crtbeginS.o" not found, this will probably cause a linking failure project1.lpr(24,1) Warning: "crtendS.o" not found, this will probably cause a linking failure Somewhere at this forum Is wrote  build-essential need to be installed in order to fix this issue. And it is, however this warning is still shown. Probably some other devel libraries need to be installed now. Whoever making these deb files always missing to add all required dependencies inside installation process in order to work correctly with basic installation. Is it ever this will be handled properly which should allow installation, compilation and running without any issues? In Project Options, Paths, add the path where the libraries are located in your system. ---------------------------------------------------------------------- Fred vS · 2024-12-15 14:44 Quote from: backprop on December 15, 2024, 01:51:56 pmInstallation passed fine, however  run default empty app, this is shown: Code: [Select]Compile Project, Target: /home/test/project1: Success, Warnings: 2 project1.lpr(24,1) Warning: "crtbeginS.o" not found, this will probably cause a linking failure project1.lpr(24,1) Warning: "crtendS.o" not found, this will probably cause a linking failure The problem comes because the linker does not find those files. The most easy is to find where are those files with this: Code: Bash  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i $ find /usr/ -name crtbeginS.o I get this: Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i /usr/lib/gcc/x86_64-linux-gnu/12/crtbeginS.o And then, add this fpc parameter for compilation: -Fu/usr/lib/gcc/x86_64-linux-gnu/12 or (works also) -Fl/usr/lib/gcc/x86_64-linux-gnu/12 [EDIT] @Lainz: oops, sorry you did it faster... ---------------------------------------------------------------------- backprop · 2024-12-16 05:00 Current version of GNU C++ with new distro is 13. And during initial configuration, Lazarus do not search for these files, but probably use predefined paths. That is not quite intuitive. ---------------------------------------------------------------------- zamronypj · 2024-12-16 06:31 Quote from: backprop on December 15, 2024, 01:51:56 pmLatest installation of clean KDE Neon and "official" deb files for FPC and Lazarus Installation passed fine, however  run default empty app, this is shown: Code: [Select]Compile Project, Target: /home/test/project1: Success, Warnings: 2 project1.lpr(24,1) Warning: "crtbeginS.o" not found, this will probably cause a linking failure project1.lpr(24,1) Warning: "crtendS.o" not found, this will probably cause a linking failure Somewhere at this forum Is wrote  build-essential need to be installed in order to fix this issue. And it is, however this warning is still shown. Probably some other devel libraries need to be installed now. Whoever making these deb files always missing to add all required dependencies inside installation process in order to work correctly with basic installation. Is it ever this will be handled properly which should allow installation, compilation and running without any issues? This happens if you install FPC before you install build-essentials. Try reinstall FPC after you install build-essentials, otherwise you need to set library search path as explain by other answers. ---------------------------------------------------------------------- backprop · 2024-12-18 10:29 Quote from: zamronypj on December 16, 2024, 07:31:32 amThis happens if you install FPC before you install build-essentials. Try reinstall FPC after you install build-essentials, otherwise you need to set library search path as explain by other answers. If that s the case, that should be handled by installation process as I mentioned. I have installed only deb packages for FPC and Lazarus and compiling should work correctly from that. But seems it is still real mess... ---------------------------------------------------------------------- marcov · 2024-12-18 10:48 Quote from: backprop on December 18, 2024, 11:29:39 amIf that s the case, that should be handled by installation process as I mentioned. I have installed only deb packages for FPC and Lazarus and compiling should work correctly from that. But seems it is still real mess... The FPC provided debs are generic for all debian alike distributions. So that kind of distro specific dependencies are not possible there. For that you need the distro depended (apt-get) packages. ---------------------------------------------------------------------- backprop · 2024-12-18 12:25 Is there somewhere available "official" scripts to generate deb files? I would like to look in it... Otherwise, you should write additionally guide "How to properly install and why that is important in order to works as expected ".... It is quite a disappointment to work with broken "official" releases and wasting time here for something should never happens. If you "can't control" installation ordering process (which I doubt), you should suggest solution and fix problem during first starting of IDE. ---------------------------------------------------------------------- marcov · 2024-12-18 12:54 Quote from: backprop on December 18, 2024, 01:25:24 pmIs there somewhere available "official" scripts to generate deb files? I would like to look in it... There are spec files in the "fpcbuild"  repository. QuoteOtherwise, you should write additionally guide "How to properly install and why that is important in order to works as expected ".... https://wiki.freepascal.org/Installing_Lazarus_on_Linux mentions build-essentials. QuoteIt is quite a disappointment to work with broken "official" releases and wasting time here for something should never happens. If you "can't control" installation ordering process (which I doubt), you should suggest solution and fix problem during first starting of IDE. That is the Linux distribution's work. Projects like FPC,Lazarus make general programs, and distributions adapt them to their distributions.  Because of FPC's bootstrapping nature we go a bit further than the average program, but that doesn't change the basic fact. If you want full distro integration, use the packages compiled and packaged with (your version of ) your distribution. ---------------------------------------------------------------------- cdbc · 2024-12-18 13:30 Hi   In PCLinuxOS we've got the latest FPC & Lazarus release versions in our repo.   Easy to install via 'Synaptic'. Current repo version: fpc 3.2.2 laz 3.6 Regards Benny ---------------------------------------------------------------------- TRon · 2024-12-18 16:36 There isn't a fixed location for *nix for this path therefor it depends on the distro's package (manager). And it will (still) fall apart when cross-compiling. No distro/package(manager) automagicially configures FPC for you in that case (but proof me wrong and please do mention the distribution that does)